/* ===================================================
   I INFO VISION — Enterprise Landing Page
   Design System & Styles
   =================================================== */

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

/* ── CSS Custom Properties ── */
:root {
  /* Brand Palette */
  --blue-900: #0a1628;
  --blue-800: #0d2137;
  --blue-700: #0f3460;
  --blue-600: #1a56db;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;
  --blue-200: #93c5fd;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;

  --white: #ffffff;
  --black: #000000;

  /* Accent */
  --accent-teal: #06b6d4;
  --accent-cyan: #22d3ee;
  --accent-green: #10b981;

  /* Functional */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-400);
  --text-on-dark: var(--white);
  --text-on-blue: var(--blue-50);

  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-dark: var(--blue-900);

  --border-light: var(--gray-200);
  --border-medium: var(--gray-300);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
  --shadow-blue: 0 8px 30px rgba(37, 99, 235, 0.25);
  --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-py: 100px;
  --container-max: 1280px;
  --container-px: 24px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}


/* ===================================================
   HEADER / NAVIGATION
   =================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    backdrop-filter var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.site-header.scrolled .nav-link {
  color: var(--gray-700);
}

.site-header.scrolled .nav-link:hover {
  color: var(--blue-600);
}

.site-header.scrolled .nav-link.active {
  color: var(--white);
  background: var(--blue-600);
}

.site-header.scrolled .logo-text {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.site-header.scrolled .logo-accent {
  background: linear-gradient(135deg, var(--accent-teal), var(--blue-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.logo-img {
  width: auto;
  height: 48px;
  object-fit: contain;
  display: block;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-slogan {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gray-600);
  margin-top: 2px;
}

.site-footer .logo-slogan {
  color: rgba(255, 255, 255, 0.7);
}

.logo-text {
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  transition: all var(--duration-normal) var(--ease-out);
}

.logo-accent {
  background: linear-gradient(135deg, var(--accent-teal), var(--blue-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

.nav-cta {
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500)) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1003;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

.site-header.scrolled .nav-toggle span {
  background: var(--gray-700);
}

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

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

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

/* ===================================================
   HERO CAROUSEL
   =================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  max-height: 1000px;
  overflow: hidden;
  background-color: var(--blue-900);
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease-in-out), visibility 0s 1s;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s var(--ease-in-out), visibility 0s 0s;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 8s linear;
}

.carousel-slide.active .slide-bg {
  transform: scale(1.06);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(10, 22, 40, 0.85) 0%,
      rgba(15, 52, 96, 0.7) 50%,
      rgba(10, 22, 40, 0.8) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: var(--radius-full);
  color: var(--blue-200);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  width: fit-content;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s var(--ease-out);
  transition-delay: 0.3s;
}

.carousel-slide.active .slide-tag {
  opacity: 1;
  transform: translateY(0);
}

.slide-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.slide-headline {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--white);
  max-width: 720px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
  transition-delay: 0.45s;
}

.carousel-slide.active .slide-headline {
  opacity: 1;
  transform: translateY(0);
}

.slide-headline .highlight {
  background: linear-gradient(135deg, var(--blue-300), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide-subtext {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
  transition-delay: 0.6s;
}

.carousel-slide.active .slide-subtext {
  opacity: 1;
  transform: translateY(0);
}

.slide-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
  transition-delay: 0.75s;
}

.carousel-slide.active .slide-actions {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 10;
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.carousel-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--white);
  border-radius: 2px;
  transition: width 0s;
}

.carousel-dot.active::after {
  width: 100%;
  transition: width 6s linear;
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 0.35);
}

.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--duration-fast) var(--ease-out);
  backdrop-filter: blur(10px);
}

.carousel-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

/* Hero Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 48px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.scroll-indicator span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
  0% {
    top: -100%;
  }

  100% {
    top: 100%;
  }
}


/* ===================================================
   STATS BAR
   =================================================== */
.stats-bar {
  background: var(--white);
  padding: 0;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: background var(--duration-fast) var(--ease-out);
}

.stat-item:hover {
  background: var(--blue-50);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-light);
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--blue-600), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ===================================================
   SECTION COMMON
   =================================================== */
.section {
  padding: var(--section-py) 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 16px;
}

.section-dark .section-eyebrow {
  color: var(--blue-300);
}

.section-eyebrow-line {
  width: 24px;
  height: 2px;
  background: var(--blue-500);
  border-radius: 1px;
}

.section-dark .section-eyebrow-line {
  background: var(--blue-400);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-dark .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
}


/* ===================================================
   PREMIUM SERVICES SECTION (Glass Building Background)
   =================================================== */
.premium-services-section {
  position: relative;
  overflow: hidden;
}

.section-dark.premium-services-section {
  background: url('assets/images/glass-building-bg.jpg') center / cover no-repeat;
}

.premium-services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 22, 40, 0.88) 0%,
      rgba(10, 22, 40, 0.93) 100%);
  z-index: 0;
}

.premium-services-section::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
  animation: premium-bg-float 25s infinite alternate ease-in-out;
}

@keyframes premium-bg-float {
  0% {
    transform: rotate(0deg) scale(1);
  }

  100% {
    transform: rotate(10deg) scale(1.15);
  }
}

.premium-services-section>* {
  position: relative;
  z-index: 1;
}


/* ===================================================
   SERVICE CATEGORIES (Tabs)
   =================================================== */
.services-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.services-tab {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--white);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.services-tab:hover {
  color: var(--blue-600);
  border-color: var(--blue-200);
  background: var(--blue-50);
}

.services-tab.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}


/* ===================================================
   SERVICE CARDS GRID
   =================================================== */
.services-panel {
  display: none;
  animation: fadeInUp 0.5s var(--ease-out);
}

.services-panel.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--accent-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
}

.service-card-icon.blue {
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  color: var(--blue-600);
}

.service-card-icon.teal {
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  color: #0891b2;
}

.service-card-icon.green {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
}

.service-card-icon.purple {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  color: #7c3aed;
}

.service-card-icon.orange {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #ea580c;
}

.service-card-icon.rose {
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  color: #e11d48;
}

.service-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.service-card-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-600);
  transition: gap var(--duration-fast) var(--ease-out);
}

.service-card:hover .service-card-link {
  gap: 10px;
}


/* ===================================================
   CTA BANNER
   =================================================== */
.cta-banner {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-900) 100%);
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
  animation: float-bg 20s infinite linear;
}

@keyframes float-bg {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(-2%, 2%) rotate(3deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  transition: all var(--duration-fast) var(--ease-out);
}

.footer-social-link:hover {
  background: var(--blue-600);
  border-color: var(--blue-500);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
  color: var(--blue-300);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 14px;
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-400);
  font-size: 16px;
}

.footer-contact-text a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact-text a:hover {
  color: var(--blue-300);
}

.footer-contact-text span {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.footer-contact-text .label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links a:hover {
  color: var(--blue-300);
}


/* ===================================================
   SCROLL REVEAL
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}


/* ===================================================
   WHATSAPP FLOAT
   =================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 96px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--duration-normal) var(--ease-out);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.5);
  background: #20bd5a;
  color: #ffffff;
}

/* ===================================================
   BACK TO TOP
   =================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}


/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 72px;
    --container-px: 20px;
  }

  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    flex-direction: column;
    align-items: flex-start;
    padding: 120px 32px 40px;
    gap: 12px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right var(--duration-normal) var(--ease-out);
    z-index: 1002;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    color: var(--gray-800) !important;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.02);
    transition: all var(--duration-fast) var(--ease-out);
  }

  .nav-link:hover,
  .nav-link:active {
    background: var(--blue-50) !important;
    color: var(--blue-600) !important;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  }

  .nav-cta {
    margin-top: 16px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal);
    z-index: 1001;
  }

  .mobile-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  /* Hero */
  .slide-headline {
    font-size: clamp(28px, 7vw, 42px);
  }

  .slide-subtext {
    font-size: 15px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .carousel-controls {
    bottom: 32px;
  }

  .scroll-indicator {
    display: none;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 32px;
  }

  .stat-item {
    padding: 28px 20px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-tabs {
    gap: 6px;
  }

  .services-tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

  .stat-item::after {
    display: none;
  }

  .slide-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .carousel-dots {
    gap: 6px;
  }

  .carousel-dot {
    width: 28px;
  }
}

/* ===================================================
   PREMIUM SERVICES (GLASSMORPHISM)
   =================================================== */
.premium-services-section {
  background: var(--bg-dark);
}

.premium-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.premium-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 380px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lg);
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal);
  cursor: pointer;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.premium-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--duration-slow) var(--ease-out);
  z-index: 1;
}

.premium-card:hover .premium-card-bg {
  transform: scale(1.08);
}

.premium-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.6) 40%, rgba(10, 22, 40, 0.2) 100%);
  z-index: 2;
  transition: background var(--duration-normal);
}

.premium-card:hover .premium-card-overlay {
  background: linear-gradient(to top, rgba(10, 22, 40, 0.98) 0%, rgba(10, 22, 40, 0.7) 50%, rgba(10, 22, 40, 0.3) 100%);
}

.premium-card-content.glass-effect {
  position: relative;
  z-index: 3;
  width: calc(100% - 32px);
  margin: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--white);
}

.premium-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue-500), var(--accent-teal));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.premium-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.premium-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* ===================================================
   LIVE MARKET PULSE
   =================================================== */
.live-market-section {
  background: #050a12;
  /* Extra dark for trading feel */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.market-pulse-header {
  text-align: center;
  margin-bottom: 48px;
}

.market-accent-heading {
  color: var(--accent-green);
  font-family: monospace;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-size: 14px;
}

.market-title {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--white);
  font-weight: 700;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.market-card {
  background: #0d131f;
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s;
}

.market-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-green);
  transition: background 0.3s;
}

.market-card.down::before {
  background: #ef4444;
  /* red */
}

.market-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.market-company {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.market-ticker {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.market-card-mid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.market-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.market-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.market-change.positive {
  color: var(--accent-green);
}

.market-change.negative {
  color: #ef4444;
}

.market-sparkline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 40px;
  gap: 4px;
}

.spark-bar {
  flex: 1;
  background: var(--accent-green);
  opacity: 0.6;
  border-radius: 2px 2px 0 0;
  transition: height 0.5s ease;
}

.market-card.down .spark-bar {
  background: #ef4444;
}

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

  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .premium-services-grid {
    grid-template-columns: 1fr;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   CONTACT FORM
   =================================================== */
.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 16px;
  color: var(--gray-900);
  background: var(--bg-secondary);
  transition: all var(--duration-normal) var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px var(--blue-100);
  background: var(--white);
}

.submit-btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  font-size: 16px;
}

@media (max-width: 768px) {
  .contact-wrapper {
    padding: 32px 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   CONTACT VIDEO BACKGROUND
   =================================================== */
.contact-section {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
  background-image: url('assets/images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
}

.contact-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(37, 99, 235, 0.75) 100%);
  z-index: 1;
}

.contact-section .section-title,
.contact-section .section-subtitle,
.contact-section .section-eyebrow {
  color: var(--white);
}

/* Contact Form Animation */
.js-contact-anim-ready .contact-field-group {
  opacity: 0;
  transform: translateY(-40px);
}

.contact-field-group.drop-in {
  animation: dropIn 550ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Delays for each field group (cascade) */
.contact-field-group.drop-in:nth-child(1) {
  animation-delay: 0ms;
}

.contact-field-group.drop-in:nth-child(2) {
  animation-delay: 120ms;
}

.contact-field-group.drop-in:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

inset: 0;
background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(37, 99, 235, 0.6) 100%);
z-index: 1;
}

.contact-section-video .section-title,
.contact-section-video .section-subtitle,
.contact-section-video .section-eyebrow {
  color: var(--white);
}

.contact-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* ===================================================
   SERVICE CARDS — Click-Triggered Entrance Animations
   =================================================== */
@keyframes slideInLeft {
  from {
    transform: translateX(-250px) rotate(-5deg);
    opacity: 0;
  }

  to {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(250px) rotate(5deg);
    opacity: 0;
  }

  to {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
}

@keyframes fadeScaleIn {
  from {
    transform: scale(0.5) translateY(80px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.anim-left {
  animation: slideInLeft 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.anim-center {
  animation: fadeScaleIn 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.anim-right {
  animation: slideInRight 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Stagger delays for each row of 3 cards */
.premium-card:nth-child(3n+1).anim-left {
  animation-delay: 0ms;
}

.premium-card:nth-child(3n+2).anim-center {
  animation-delay: 150ms;
}

.premium-card:nth-child(3n+3).anim-right {
  animation-delay: 300ms;
}

/* Row stagger — each row starts a bit later */
.premium-card:nth-child(n+4).anim-left,
.premium-card:nth-child(n+4).anim-center,
.premium-card:nth-child(n+4).anim-right {
  animation-delay: calc(var(--row-delay, 0ms) + var(--col-delay, 0ms));
}