/*
* Typography & Colors
* Header: White background, Saffron navigation hover
* Hero Section: Dark blue gradient background, Gold heading, Saffron button
* Content Sections: Cream background, Maroon headings
* Footer: Dark blue background, Gold icons
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Space+Mono&display=swap');

:root {
  /* Colors */
  --c-header-bg: #FFFFFF;
  --c-nav-hover: #F4C430; /* Saffron/Gold */
  --c-saffron: #FF9933; /* True Saffron */
  --c-hero-bg-start: #0B192C; /* Dark blue */
  --c-hero-bg-end: #1A365D; /* Dark blue */
  --c-gold: #FFD700;
  --c-cream: #FDFBF7;
  --c-maroon: #800000;
  --c-footer-bg: #0A1128;
  --c-text-main: #2D3748;
  --c-text-light: #718096;
  --c-white: #FFFFFF;

  /* Typography */
  --font-primary: 'Inter', sans-serif; /* Sans-serif for body */
  --font-heading: 'Playfair Display', serif; /* Elegant headings */
  --font-accent: 'Space Mono', monospace; /* Monospace accents */

  /* Spacing & Layout */
  --section-padding: 6rem 5%;
  --container-width: 1200px;
  --radius-lg: 24px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Effects */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --shadow-hover: 0 20px 40px -10px rgba(0,0,0,0.1);
  
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s ease;
}

/* Reset & Base HTML */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--c-text-main);
  background-color: var(--c-cream);
  line-height: 1.7;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 1s ease;
}
body.loaded {
  opacity: 1;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--c-maroon);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.oversized-header {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gold-heading {
  color: var(--c-gold);
}

.mono-accent {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  color: var(--c-saffron);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

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

/* Image containment rules to prevent cropping */
.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: rgba(0,0,0,0.03); /* slight bg to show container bounds if needed */
  border-radius: var(--radius-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-saffron {
  background-color: var(--c-saffron);
  color: var(--c-white);
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
}

.btn-saffron:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 153, 51, 0.4);
  background-color: #E68A2E;
}

.btn-outline {
  border-color: var(--c-maroon);
  color: var(--c-maroon);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--c-maroon);
  color: var(--c-white);
}

/* Layout Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--c-header-bg);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding-block: 0.5rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-maroon);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text-main);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--c-nav-hover);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--c-nav-hover);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--c-nav-hover);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--c-maroon);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--c-hero-bg-start) 0%, var(--c-hero-bg-end) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  color: var(--c-white);
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.5;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--c-saffron);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--c-gold);
  bottom: -50px;
  left: -100px;
}

/* Sections General */
section {
  padding: var(--section-padding);
  position: relative;
}

.bg-cream {
  background-color: var(--c-cream);
}

.bg-white {
  background-color: var(--c-white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
}

/* Layout Utilities */
.split-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 1.5rem;
}

.bento-item {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.bento-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item.medium {
  grid-column: span 2;
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--c-saffron);
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-content {
  width: 90%;
  background: var(--c-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background-color: var(--c-saffron);
  border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -55px;
}
.timeline-item:nth-child(even) .timeline-content::before {
  left: -55px;
}

.timeline-date {
  font-family: var(--font-accent);
  color: var(--c-saffron);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info {
  background: var(--c-hero-bg-start);
  color: var(--c-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
}

.contact-info h3 {
  color: var(--c-gold);
}

.info-item {
  margin-bottom: 2rem;
}

.info-item h4 {
  color: var(--c-saffron);
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
}

.info-item p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

.contact-form {
  background: var(--c-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--c-maroon);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 1rem;
  background: var(--c-cream);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--c-saffron);
  box-shadow: 0 0 0 3px rgba(255,153,51,0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  background-color: var(--c-footer-bg);
  color: rgba(255,255,255,0.7);
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--c-gold);
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--c-gold);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
  .split-screen {
    grid-template-columns: 1fr;
  }
  
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 0;
  }
  
  .timeline-item, .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
  }
  
  .timeline-content {
    width: 100%;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -40px;
    right: auto;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--c-header-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding-top: 100px;
    text-align: center;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-item.large, .bento-item.medium {
    grid-column: span 1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Gate Page Styles */
.gate-wrapper {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-hero-bg-start) 0%, var(--c-hero-bg-end) 100%);
  position: relative;
  overflow: hidden;
}

.gate-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  z-index: 10;
}

.gate-card h1 {
  color: var(--c-maroon);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.gate-card p {
  color: var(--c-text-main);
  margin-bottom: 2rem;
}

.gate-input-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gate-input {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 0.2em;
  font-family: var(--font-accent);
}

.gate-error {
  color: #E53E3E;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: none;
}
