/* =========================================
   CSS Reset & Base
   ========================================= */

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #111111;
  --text-primary: #f0f0f0;
  --text-muted: #888888;
  --forge-color: #7C3AED;
  --mind-color: #6366F1;
  --core-color: #3B82F6;
  --air-color: #14B8A6;
  --base-color: #10B981;
  --grid-color: #F59E0B;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.mobile-menu-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =========================================
   Utility Classes
   ========================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: linear-gradient(to right, var(--forge-color), var(--grid-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================
   Navigation
   ========================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background-color: #0a0a0aee;
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.nav-logo {
  font-family: 'Black Ops One', cursive;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.nav-logo .dot {
  color: var(--grid-color);
}

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

.nav-links li a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--forge-color), var(--grid-color));
  transition: width 0.3s ease;
}

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

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
}

.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 0.3rem 0.8rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-toggle button.active {
  background-color: var(--text-primary);
  color: var(--bg-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
  background: transparent;
  border: none;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
  transform-origin: left center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* =========================================
   Hero Section
   ========================================= */

#hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(10,10,10,0.7), rgba(245,158,11,0.3)), linear-gradient(to bottom, transparent 60%, var(--bg-dark));
  z-index: -1;
  animation: gradientShift 10s ease infinite alternate;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 1rem;
}

.logo-3d {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(4rem, 12vw, 10rem);
  color: #fff;
  letter-spacing: 0.15em;
  text-shadow: 
    0 1px 0 #7C3AED,
    0 2px 0 #7039D4,
    0 3px 0 #6366F1,
    0 4px 0 #4F74F3,
    0 5px 0 #3B82F6,
    0 6px 0 #28A0AE,
    0 7px 0 #14B8A6,
    0 8px 0 #12C993,
    0 9px 0 #10B981,
    0 10px 0 #8AAC46,
    0 11px 0 #F59E0B,
    0 14px 20px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero-phone {
  margin-top: 2rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--grid-color);
  letter-spacing: 0.2em;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================
   Divisions Section
   ========================================= */

#divisions {
  padding: 6rem 2rem;
}

#divisions .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Black Ops One', cursive;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--forge-color), var(--grid-color));
  border-radius: 2px;
}

.section-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--forge-color), var(--grid-color));
  margin: -2.5rem auto 3rem;
  border-radius: 2px;
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.division-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border-top-width: 4px;
  border-top-style: solid;
}

.division-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at top center, currentColor 0%, transparent 70%);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.division-card > * {
  position: relative;
  z-index: 1;
}

.division-card:hover {
  transform: translateY(-8px);
}

.division-card[data-division='forge'] { color: var(--forge-color); border-top-color: var(--forge-color); }
.division-card[data-division='mind'] { color: var(--mind-color); border-top-color: var(--mind-color); }
.division-card[data-division='core'] { color: var(--core-color); border-top-color: var(--core-color); }
.division-card[data-division='air'] { color: var(--air-color); border-top-color: var(--air-color); }
.division-card[data-division='base'] { color: var(--base-color); border-top-color: var(--base-color); }
.division-card[data-division='grid'] { color: var(--grid-color); border-top-color: var(--grid-color); }

.division-card[data-division='forge']:hover { border-color: rgba(124, 58, 237, 0.5); box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1); }
.division-card[data-division='mind']:hover { border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1); }
.division-card[data-division='core']:hover { border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1); }
.division-card[data-division='air']:hover { border-color: rgba(20, 184, 166, 0.5); box-shadow: 0 10px 30px rgba(20, 184, 166, 0.1); }
.division-card[data-division='base']:hover { border-color: rgba(16, 185, 129, 0.5); box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1); }
.division-card[data-division='grid']:hover { border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1); }

.division-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  fill: currentColor;
  stroke: currentColor;
}

.division-name {
  font-family: 'Black Ops One', cursive;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.division-name span {
  color: currentColor;
}

.division-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: currentColor;
  opacity: 0.8;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.division-desc {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.division-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  color: currentColor;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.division-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.division-link:hover svg {
  transform: translateX(4px);
}

/* =========================================
   Contact Section
   ========================================= */

#contact {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-dark), #0d0d0d);
}

.contact-title {
  font-family: 'Black Ops One', cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-family: 'Rajdhani', sans-serif;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-item a {
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--grid-color);
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--grid-color);
}

.contact-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================
   Footer
   ========================================= */

.footer {
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-copy {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* =========================================
   Animations
   ========================================= */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes gradientShift {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(10deg);
  }
}

/* =========================================
   Responsive Breakpoints
   ========================================= */

@media (max-width: 1024px) {
  .divisions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 999;
  }

  body.mobile-menu-open .nav-links {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li a {
    font-size: 1.5rem;
  }

  .divisions-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-methods {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-tagline {
    font-size: 1rem;
  }
  
  .hero-phone {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }
}
