/* ==========================================================================
   Balkrishan Goenka | Welspun World - Premium Corporate Design System
   ========================================================================== */

/* Google Fonts - Inter & Raleway */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Raleway:wght@400;600;700;800;900&display=swap');

:root {
  /* Dynamic Color Palette */
  --color-primary-dark: #070B14;       /* Deep Navy / Base */
  --color-graphite: #1A1D24;           /* Graphite / Secondary Base */
  --color-steel-light: #4A5568;        /* Steel / Text accents */
  --color-steel-metallic: #8C99AA;     /* Soft Metallic / Accents */
  --color-copper: #C27045;             /* Warm Copper / Highlights */
  --color-copper-glow: rgba(194, 112, 69, 0.4);
  
  --color-text-main: #FFFFFF;
  --color-text-muted: #CBD5E1;
  
  /* Gradients & Glass */
  --gradient-metallic: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
  --gradient-copper: linear-gradient(135deg, #D97706 0%, #C27045 100%);
  --glass-bg: rgba(26, 29, 36, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-hero: 'Raleway', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Structural Variables */
  --nav-height: 90px;
  --container-width: 1400px;
  --grid-gap: 2rem;
  
  /* Animations */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.5s cubic-bezier(0.68, -0.55, 0.26, 1.55);
}

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

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

body {
  background-color: var(--color-primary-dark);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Global Subtle Grain Texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   Typography 
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-hero);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.heading-xl { font-size: clamp(3rem, 6vw, 6rem); }
.heading-lg { font-size: clamp(2.5rem, 5vw, 4rem); }
.heading-md { font-size: clamp(2rem, 3.5vw, 3rem); }
.heading-sm { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }

.copper-text {
  color: var(--color-copper);
}

.muted-text {
  color: var(--color-text-muted);
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ==========================================================================
   Navigation (Glassmorphism Header)
   ========================================================================== */
header {
  position: fixed;
  top: 0; width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: transparent;
}

header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  height: 70px;
}

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

.logo-main {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  position: relative;
}

.logo-main span {
  color: var(--color-copper);
}

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

.nav-links li a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 5px;
}

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

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Code Lock Page (Vault Concept)
   ========================================================================== */
.vault-body {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: radial-gradient(circle at center, var(--color-graphite) 0%, var(--color-primary-dark) 100%);
}

.vault-container {
  position: relative;
  z-index: 10;
  text-align: center;
}

.vault-door-left, .vault-door-right {
  position: absolute;
  top: 0;
  height: 100vh;
  width: 50vw;
  background: var(--gradient-metallic);
  z-index: 5;
  transition: transform 1.5s cubic-bezier(0.8, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.vault-door-left {
  left: 0;
  border-right: 2px solid var(--color-copper);
  box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}

.vault-door-right {
  right: 0;
  border-left: 2px solid var(--color-copper);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.vault-open .vault-door-left { transform: translateX(-100%); }
.vault-open .vault-door-right { transform: translateX(100%); }

.login-module {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  padding: 4rem;
  border-radius: 4px;
  transform: translateY(0);
  transition: var(--transition-smooth);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
}

.vault-open .login-module {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.login-module h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-copper);
}

.login-module p {
  color: var(--color-steel-metallic);
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.input-group {
  position: relative;
  margin-bottom: 2rem;
}

.input-group input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--color-steel-light);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: white;
  border-radius: 2px;
  outline: none;
  transition: var(--transition-smooth);
  text-align: center;
  letter-spacing: 5px;
}

.input-group input:focus {
  border-color: var(--color-copper);
  box-shadow: 0 0 15px var(--color-copper-glow);
}

.btn-primary {
  background: var(--color-copper);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-smooth);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: #a95f39;
  box-shadow: 0 10px 20px rgba(194, 112, 69, 0.3);
  transform: translateY(-2px);
}

/* Error Shake */
.shake-error {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  border-color: #ef4444 !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4) !important;
}

@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); }
}

/* ==========================================================================
   Hero Section Layouts (Diagonal Split - NEW CONCEPT)
   ========================================================================== */
.hero-diagonal {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 60%;
  padding: 15vh 5% 5vh 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-subtitle {
  color: var(--color-copper);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
  font-size: 0.9rem;
}

.hero-content h1 {
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
  border-left: 3px solid var(--color-copper);
  padding-left: 1.5rem;
}

.hero-image-wrapper {
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 100%;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 5;
  background: var(--gradient-metallic);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* STRICT RULE: full visibility, no crop */
  filter: drop-shadow(0 0 30px rgba(0,0,0,0.8));
}

.diagonal-divider {
  position: absolute;
  top: 0; left: 45%;
  height: 100%;
  width: 4px;
  background: var(--color-copper);
  z-index: 6;
  transform: skewX(-14deg);
  box-shadow: 0 0 20px var(--color-copper-glow);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 10%;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 20;
}

.scroll-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-steel-metallic);
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--color-steel-light);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--color-copper);
  animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

/* ==========================================================================
   Page Sections & Layouts
   ========================================================================== */
.section {
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

.section-bg-alt {
  background: var(--color-graphite);
}

.section-header {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-header.center {
  align-items: center;
  text-align: center;
}

.section-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-copper);
  color: var(--color-copper);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-radius: 2px;
}

/* Grid Systems */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Interactive Cards (Glassmorphism & Isometric feel) */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--color-steel-light);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-10px);
  background: rgba(30, 36, 48, 0.8);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.glass-card:hover::before {
  background: var(--color-copper);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-copper);
  margin-bottom: 1.5rem;
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Vertical Stats */
.stat-box {
  padding: 2rem;
  border-left: 2px solid var(--color-steel-light);
  transition: var(--transition-smooth);
}

.stat-box:hover {
  border-color: var(--color-copper);
}

.stat-number {
  font-family: var(--font-hero);
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.5rem;
  display: block;
}

/* Timeline Layout */
.timeline-module {
  position: relative;
  padding-left: 3rem;
  border-left: 1px solid var(--color-steel-metallic);
  margin-top: 3rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.4rem;
  top: 0;
  width: 15px; height: 15px;
  background: var(--color-copper);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-copper-glow);
}

.timeline-year {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-steel-metallic);
  margin-bottom: 0.5rem;
}

/* Content Blocks for Narrative Pages */
.story-content {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

.story-content p {
  margin-bottom: 1.5rem;
}

.quote-block {
  margin: 3rem 0;
  padding: 3rem;
  background: var(--gradient-metallic);
  border-left: 4px solid var(--color-copper);
  position: relative;
}

.quote-block p {
  font-size: 1.8rem;
  font-family: var(--font-hero);
  font-style: italic;
  font-weight: 600;
  color: white;
  line-height: 1.4;
}

/* Interactive Global Map Area */
.map-container {
  width: 100%;
  height: 600px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  position: relative;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-node {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--color-copper);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.map-node::after {
  content: '';
  position: absolute;
  top: -6px; left: -6px;
  width: 24px; height: 24px;
  border: 1px solid var(--color-copper);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-steel-metallic);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--color-steel-light);
  padding: 1rem;
  color: white;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-copper);
  outline: none;
  background: rgba(0,0,0,0.4);
}

/* ==========================================================================
   Premium Enterprise Footer (Strict Rule: Creaa Think Designs Credit)
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 6rem 0 0 0;
  position: relative;
  overflow: hidden;
}

.footer-gradient-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at bottom right, rgba(194,112,69,0.05) 0%, transparent 60%);
  pointer-events: none;
}

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

.footer-brand .logo-main {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  color: var(--color-steel-metallic);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-title {
  color: white;
  font-family: var(--font-hero);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

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

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

.footer-links a {
  color: var(--color-steel-metallic);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.newsletter-form {
  display: flex;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-steel-light);
  padding: 0.8rem 1rem;
  color: white;
  border-right: none;
  outline: none;
}

.newsletter-form button {
  background: var(--color-copper);
  color: white;
  border: none;
  padding: 0 1.5rem;
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition-smooth);
}

.newsletter-form button:hover {
  background: #a95f39;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-steel-metallic);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.agency-credit {
  text-align: right;
}

.agency-credit a {
  color: var(--color-copper);
  font-weight: bold;
}

.back-to-top {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 50px; height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 100;
}

.back-to-top:hover {
  background: var(--color-copper);
  transform: translateY(-5px);
}

/* ==========================================================================
   Utility Classes & Animations
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-content { width: 50%; padding-left: 5%; }
  .hero-image-wrapper { width: 65%; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height); right: -100%;
    width: 100%; height: calc(100vh - var(--nav-height));
    background: var(--color-primary-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
  }
  
  .nav-links.active { right: 0; }
  .menu-toggle { display: block; }
  
  .hero-diagonal { flex-direction: column; }
  .hero-content { width: 100%; padding: 120px 5% 5vh 5%; z-index: 10; }
  .hero-image-wrapper { 
    position: relative; width: 100%; height: 50vh; 
    clip-path: none; padding: 2rem;
  }
  .diagonal-divider { display: none; }
  
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .agency-credit { text-align: center; }
}
