/* Base Styles & Custom Properties */
:root {
  --bg-color: #050810; /* Deeper space black */
  --bg-alt: #0a0e17;
  --accent: #d4af37; /* Brighter, classic metallic gold */
  --accent-glow: rgba(212, 175, 55, 0.4);
  --text-main: #f8fafc;
  --text-muted: #a1a1aa;
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(212, 175, 55, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

ul {
  list-style: none;
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 25px 0;
  transition: all 0.4s ease;
}

#navbar.scrolled {
  padding: 12px 0;
  background: rgba(5, 8, 16, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.logo {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 3px;
  text-shadow: 0 0 15px var(--accent-glow);
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links li a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
  box-shadow: 0 0 5px var(--accent-glow);
}

.nav-links li a:hover {
  color: var(--text-main);
  text-shadow: none;
}

.nav-links li a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.bar {
  width: 28px;
  height: 2px;
  background-color: var(--text-main);
  transition: 0.3s;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}

/* Luxury cinematic lighting effect behind the hero */
#hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(5, 8, 16, 0) 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(50px);
}

.hero-content {
  text-align: center;
  max-width: 850px;
  z-index: 2;
  position: relative;
}

.title {
  font-size: 5.5rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--text-main);
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 4px;
  margin-bottom: 25px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

.description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.btn {
  padding: 14px 35px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #050810;
  border: 1px solid var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn.primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translateY(-3px);
}

.btn.secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-muted);
}

.btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-3px);
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.1) 0%, var(--bg-color) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Base Sections */
.section {
  padding: 120px 40px;
  position: relative;
}

.section.alt-bg {
  background: var(--bg-alt);
  border-top: 1px solid rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 2.8rem;
  color: var(--text-main);
  margin-bottom: 50px;
  text-align: center;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Cards & Grids */
.grid-2, .grid-3 {
  display: grid;
  gap: 40px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 45px;
  border-radius: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.card:hover::before {
  left: 150%;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px rgba(212, 175, 55, 0.1);
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: 1px;
}

.card h4 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 25px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.project-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Styled Lists */
.styled-list li, .details-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  color: var(--text-muted);
  line-height: 1.6;
}

.styled-list li::before, .details-list li::before {
  content: '♦';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  top: 4px;
  text-shadow: 0 0 5px var(--accent-glow);
}

.grid-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 25px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -0.5px;
}

.timeline-item {
  padding: 10px 50px;
  position: relative;
  background-color: inherit;
  width: 50%;
  left: 50%;
}

.timeline-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: var(--accent);
  border-radius: 50%;
  z-index: 1;
  left: -7px;
  top: 45px;
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Footer */
footer {
  background: #03050a;
  padding: 70px 40px;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-logo {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.social-links {
  margin-bottom: 30px;
  color: var(--accent);
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 5px;
}

.copyright {
  font-size: 0.8rem !important;
  color: #3f3f46 !important;
  letter-spacing: 1px;
}

/* Animations (Now controlled intelligently by GSAP) */
.reveal {
  /* GSAP handles opacity and transforms via script.js */
}

.reveal.active {
  /* No longer used, GSAP handles end state */
}

/* Mobile Responsive */
@media screen and (max-width: 900px) {
  .title { font-size: 3.5rem; letter-spacing: 3px; }
  .grid-2 { grid-template-columns: 1fr; gap: 30px; }
  
  .timeline::after {
    left: 40px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 0;
    left: 0%;
  }
  .timeline-dot {
    left: 33px;
  }
  .section {
    padding: 80px 20px;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: -100%;
    top: 100%;
    flex-direction: column;
    background: rgba(5, 8, 16, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 40px 0;
    border-bottom: 1px solid var(--card-border);
  }
  .nav-links.active { right: 0; }
  .hamburger { display: flex; }
  .title { font-size: 2.8rem; }
  .subtitle { font-size: 0.9rem; letter-spacing: 2px; }
  .hero-links { flex-direction: column; gap: 15px; }
  .grid-list { grid-template-columns: 1fr; }
  
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ========================================= */
/* $1M LUXURY PHYSICS UPGRADES               */
/* ========================================= */

/* Particles Hero Canvas */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1; /* Sits over the glow, under the text */
}

/* Make sure text shines through */
.hero-content {
  z-index: 5;
}

/* 3D Holographic Card Innards */
.card {
  transform-style: preserve-3d;
  perspective: 1000px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-content {
  transform: translateZ(50px);
  /* This literally pops the text completely off the glass card in 3D */
}

