/* ============================================
   IT SUMON — Layout Styles
   Header, Footer, Grid Systems
   ============================================ */

/* ──────────────────────────────────────────────
   HEADER & NAVIGATION
   ────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: var(--space-4) 0;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(11, 17, 33, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-primary);
  padding: var(--space-3) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.header-logo .logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

.header-logo .logo-text span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* Header CTA */
.header-cta {
  margin-left: var(--space-4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: calc(var(--z-header) + 1);
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-primary);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-20) var(--space-6) var(--space-6);
    gap: var(--space-1);
    transition: right var(--transition-slow);
    z-index: var(--z-header);
  }
  
  .header-nav.open {
    right: 0;
  }
  
  .nav-link {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }
  
  .nav-link.active::after {
    left: 0;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
  }
  
  .header-cta {
    margin-left: 0;
    margin-top: var(--space-4);
  }
  
  .header-cta .btn {
    width: 100%;
  }
  
  /* Mobile overlay */
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-header) - 1);
    display: none;
  }
  
  .mobile-overlay.active {
    display: block;
  }
}

/* ──────────────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--space-20);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-glass);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.hero-badge .status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.hero-title .typing-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--color-primary);
  margin-left: 4px;
  animation: blink 0.8s infinite;
  vertical-align: text-bottom;
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-primary);
}

.hero-stat .stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat .stat-text {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* Hero Visual / Image */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
}

.hero-image {
  width: 100%;
  height: 100%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  object-fit: cover;
  border: 3px solid var(--border-secondary);
  animation: blobMorph 8s ease-in-out infinite;
  box-shadow: var(--shadow-glow-lg);
}

/* Floating decoration elements */
.hero-float-element {
  position: absolute;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}

.hero-float-element:nth-child(2) { animation-delay: -2s; }
.hero-float-element:nth-child(3) { animation-delay: -4s; }

.hero-float-element .float-icon {
  margin-right: var(--space-2);
}

/* Background decorations */
.hero-bg-gradient {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-bg-gradient.blue {
  background: var(--color-primary);
  top: 10%;
  right: 10%;
}

.hero-bg-gradient.violet {
  background: var(--color-secondary);
  bottom: 10%;
  left: 20%;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title { font-size: var(--text-4xl); }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-image-wrapper {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 480px) {
  .hero { min-height: auto; padding-top: var(--space-24); padding-bottom: var(--space-12); }
  .hero-title { font-size: var(--text-3xl); }
  .hero-stats { flex-direction: column; gap: var(--space-4); align-items: center; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-image-wrapper { width: 220px; height: 220px; }
}

/* ──────────────────────────────────────────────
   PAGE HEADER (Interior Pages)
   ────────────────────────────────────────────── */

.page-header {
  padding: var(--space-32) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-header .page-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-4);
  position: relative;
}

.page-header .page-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.page-header .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  position: relative;
}

.page-header .breadcrumb a {
  color: var(--text-tertiary);
}

.page-header .breadcrumb a:hover {
  color: var(--color-primary);
}

.page-header .breadcrumb .separator {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .page-header {
    padding: var(--space-24) 0 var(--space-10);
  }
  
  .page-header .page-title {
    font-size: var(--text-3xl);
  }
}

/* ──────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  text-decoration: none;
}

.footer-brand .footer-logo img {
  height: 36px;
}

.footer-brand .footer-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.footer-brand .footer-description {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-5);
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-size: var(--text-base);
}

.footer-social-link:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
}

.footer-column-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-link:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────
   CTA BANNER
   ────────────────────────────────────────────── */

.cta-banner {
  background: var(--gradient-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 50%);
  animation: gradientShift 8s ease-in-out infinite;
  background-size: 200% 200%;
}

.cta-banner .cta-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  position: relative;
}

.cta-banner .cta-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-banner .cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ──────────────────────────────────────────────
   MAIN CONTENT SPACER
   ────────────────────────────────────────────── */

.main-content {
  min-height: 60vh;
}
