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

:root {
  --clr-navy: #0A192F;
  --clr-charcoal: #112240;
  --clr-light-charcoal: #233554;
  --clr-slate-light: #CCD6F6;
  --clr-slate: #8892B0;
  --clr-gold: #D4AF37;
  --clr-blue-accent: #64FFDA;
  --clr-white: #E6F1FF;
  --clr-dark-bg: #020c1b;

  --font-primary: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--clr-navy);
  color: var(--clr-slate-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--clr-white);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Glassmorphism */
.glass {
  background: rgba(17, 34, 64, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Base Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 100px 0;
  position: relative;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  font-family: var(--font-display);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--clr-gold);
  color: var(--clr-navy);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.btn-outline {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.btn-outline:hover {
  background-color: var(--clr-gold);
  color: var(--clr-navy);
}

/* Gate Page */
#gate-body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, var(--clr-charcoal) 0%, var(--clr-dark-bg) 100%);
  overflow: hidden;
}

.gate-container {
  text-align: center;
  padding: 50px;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  animation: fadeIn 1s ease forwards;
}

.gate-container h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.gate-container p {
  color: var(--clr-slate);
  margin-bottom: 30px;
}

.gate-form {
  position: relative;
}

.gate-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gate-input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  background: rgba(2, 12, 27, 0.5);
  border: 1px solid var(--clr-light-charcoal);
  color: var(--clr-white);
  font-family: var(--font-primary);
  outline: none;
  font-size: 1rem;
  transition: var(--transition);
}

.gate-input:focus {
  border-color: var(--clr-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.gate-btn {
  position: absolute;
  right: 5px;
  background: var(--clr-gold);
  color: var(--clr-navy);
  border: none;
  height: 40px;
  width: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gate-btn:hover {
  background: var(--clr-white);
}

.error-msg {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 10px;
  opacity: 0;
  transition: var(--transition);
}

.error-shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 0 5%;
}

.logo {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--clr-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-gold);
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--clr-white);
  font-size: 1.8rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section (Home) */
.hero-home {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--clr-slate);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  z-index: 2;
}

.hero-shape {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--clr-gold);
  border-radius: 20px;
  z-index: 1;
}

/* Specialized Page Headers */
.page-header {
  padding: 150px 0 80px;
  background: var(--clr-dark-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(10,25,47,0) 40%, rgba(2,12,27,1) 80%);
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.page-header p {
  color: var(--clr-gold);
  font-family: var(--font-display);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Split Layouts & Asymmetry */
.split-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: center;
}

.split-layout.reversed {
  grid-template-columns: 7fr 5fr;
}

/* Card Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  padding: 40px;
  border-radius: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(2, 12, 27, 0.5);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--clr-gold);
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

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

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--clr-light-charcoal);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

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

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--clr-dark-bg);
  border: 4px solid var(--clr-gold);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-left {
  left: 0;
}

.timeline-right {
  left: 50%;
}

.timeline-right::after {
  left: -10px;
}

.timeline-content {
  padding: 30px;
  border-radius: 20px;
}

/* Footer Element */
.mega-footer {
  background: var(--clr-dark-bg);
  padding: 80px 0 20px;
  border-top: 1px solid var(--clr-light-charcoal);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--clr-white);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--clr-gold);
}

.footer-col p {
  color: var(--clr-slate);
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--clr-slate);
}

.footer-links a:hover {
  color: var(--clr-gold);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  background: var(--clr-charcoal);
  border: 1px solid var(--clr-light-charcoal);
  color: var(--clr-white);
  border-radius: 5px 0 0 5px;
  outline: none;
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--clr-gold);
  color: var(--clr-navy);
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--clr-light-charcoal);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--clr-slate);
}

.credits a {
  color: var(--clr-gold);
}

.back-to-top {
  width: 40px;
  height: 40px;
  background: var(--clr-light-charcoal);
  color: var(--clr-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.back-to-top:hover {
  background: var(--clr-gold);
  color: var(--clr-navy);
}

/* Responsive */
@media (max-width: 991px) {
  .hero-grid, .split-layout, .split-layout.reversed {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--clr-charcoal);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 100px 40px 40px;
    gap: 30px;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 101;
  }

  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-left, .timeline-right { left: 0; }
  .timeline-left::after, .timeline-right::after { left: 21px; }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
