@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Outfit:wght@400;600;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #050505;
  /* Deep rich dark background */
  color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.card-title {
  font-family: 'Outfit', sans-serif;
}

/* Header - Glassmorphism */
header {
  padding: 25px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  z-index: 1000;
  transition: all 0.4s ease;
}

h1 {
  font-size: 22px;
  letter-spacing: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

nav a {
  margin-left: 35px;
  text-decoration: none;
  color: #aaa;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  position: relative;
  transition: color 0.3s ease;
}

/* Micro-interaction: Animated Nav Underlines */
nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

nav a:hover {
  color: #fff;
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8%;
  overflow: hidden;
}

/* Cinematic glowing orb background */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(106, 17, 203, 0.15) 0%, rgba(5, 5, 5, 0) 60%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: pulse 8s infinite alternate ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1) translate(20px, 20px);
    opacity: 1;
  }
}

.hero h2 {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 800;
  max-width: 900px;
  line-height: 1.05;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin-top: 25px;
  font-size: 1.2rem;
  color: #999;
  max-width: 600px;
  font-weight: 300;
}

/* Grid & Cards */
.grid {
  padding: 120px 8%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.card img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Gradient Overlay */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.3) 40%, transparent 100%);
  opacity: 0.7;
  transition: opacity 0.6s ease;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(106, 17, 203, 0.2);
}

.card:hover img {
  transform: scale(1.06);
}

.card:hover::after {
  opacity: 0.9;
}

/* Card Text Reveal */
.card-title {
  position: absolute;
  bottom: -20px;
  left: 30px;
  font-size: 26px;
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  z-index: 2;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-title {
  bottom: 35px;
  opacity: 1;
}

/* Gallery Section */
.gallery {
  padding: 160px 8% 100px;
}

.gallery h2 {
  font-size: 3rem;
  margin-bottom: 60px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.gallery-grid img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 35px rgba(37, 117, 252, 0.15);
  z-index: 1;
  position: relative;
}

/* Enhanced Buttons */
.button {
  display: inline-block;
  margin-top: 60px;
  padding: 14px 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover {
  background: #fff;
  color: #050505;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.15);
}

/* Scroll Animations - Smoother Bezier Curves */
.fade {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

footer {
  text-align: center;
  padding: 50px 8%;
  color: #555;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}