/* ============================================
   SAMASTA TEKNOLOGI - Main Stylesheet
   Part: CSS Variables, Reset & Base
   ============================================ */

/* --- CSS Custom Properties (Dark Theme Default) --- */
:root {
  /* Primary palette */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.4);

  /* Accent */
  --accent: #06b6d4;
  --accent-light: #22d3ee;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1, #06b6d4);
  --gradient-text: linear-gradient(135deg, #818cf8, #22d3ee);
  --gradient-bg: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(6,182,212,0.1));

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Font */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Dark theme (default) */
[data-theme="dark"] {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111127;
  --bg-tertiary: #1a1a3e;
  --bg-card: rgba(25, 25, 60, 0.6);
  --bg-card-hover: rgba(35, 35, 80, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-border: rgba(255, 255, 255, 0.1);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --nav-bg: rgba(10, 10, 26, 0.85);
}

/* Light theme */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --bg-glass-border: rgba(0, 0, 0, 0.08);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --border-color: rgba(0, 0, 0, 0.06);
  --shadow-color: rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(248, 250, 252, 0.9);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

/* --- Utility Classes --- */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--border-radius);
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  inset: 0;
  background: #050510;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s, visibility 0.6s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Logo image preloader */
.loader-logo {
  position: relative;
  width: 80px;
  height: 80px;
  animation: logoPulse 2s ease-in-out infinite;
}

.preloader-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  animation: logoFadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.preloader-logo-svg {
  width: 80px;
  height: 80px;
  animation: logoFadeIn 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes logoFadeIn {
  from { opacity: 0; transform: scale(0.7) rotate(-10deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(68,102,255,0.4)); }
  50% { filter: drop-shadow(0 0 20px rgba(68,102,255,0.8)); }
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  animation: textFadeIn 0.8s ease-out 0.5s forwards;
}

@keyframes textFadeIn {
  to { opacity: 1; }
}

/* --- Logo image/SVG in navbar/footer --- */
.logo-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform var(--transition);
}

.logo-icon-svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.nav-logo:hover .logo-icon-img,
.nav-logo:hover .logo-icon-svg {
  transform: rotate(15deg) scale(1.1);
}

/* --- Custom Cursor (desktop only) --- */
.cursor-dot, .cursor-outline {
  display: none;
}

@media (pointer: fine) {
  .cursor-dot {
    display: block;
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
  }

  .cursor-outline {
    display: block;
    position: fixed;
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary-glow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
  }

  .cursor-outline.hover {
    width: 50px;
    height: 50px;
    border-color: var(--primary-light);
  }
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

#navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px var(--shadow-color);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  z-index: 1001;
}

.logo-icon {
  font-size: 1.6rem;
}

.logo-accent {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* --- Nav Dropdown --- */
.nav-dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.6rem;
  margin-left: 4px;
  transition: transform var(--transition);
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 300px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--border-radius);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  z-index: 1002;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--bg-glass-border);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.dropdown-item:hover {
  background: var(--bg-glass);
}

.dropdown-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.dropdown-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.dropdown-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.dropdown-menu-single {
  grid-template-columns: 1fr;
  min-width: 280px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
  font-size: 1rem;
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary-glow);
  transform: rotate(20deg);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-outline {
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn i {
  transition: transform var(--transition);
}

.btn:hover i {
  transform: translateX(4px);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#heroCanvas {
  width: 100%;
  height: 100%;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(6,182,212,0.1) 0%, transparent 60%),
              linear-gradient(to bottom, transparent 70%, var(--bg-primary) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-light);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-light);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: float 3s ease-in-out infinite;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes scroll-wheel {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 20px; }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.about-img-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-img-wrapper:hover img {
  transform: scale(1.05);
}

.about-img-accent {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 50%;
  height: 50%;
  border: 3px solid var(--primary);
  border-radius: var(--border-radius-lg);
  z-index: -1;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  padding: 20px 24px;
  text-align: center;
  z-index: 2;
}

.exp-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.exp-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.about-image {
  position: relative;
}

.about-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--gradient-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-light);
}

.feature-item h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.service-icon-wrap {
  position: relative;
  margin-bottom: 20px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.service-icon-bg {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-glow);
  filter: blur(15px);
  z-index: 0;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.service-tags li {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-light);
  transition: gap var(--transition);
}

.service-link:hover {
  gap: 10px;
}

/* ============================================
   WHY CHOOSE SECTION
   ============================================ */
.why-choose-section {
  background: var(--bg-secondary);
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.why-choose-header {
  position: sticky;
  top: 120px;
}

.why-choose-header .section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.why-choose-header .section-title {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.why-choose-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.why-choose-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  padding: 32px 28px;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  border: 1px solid var(--bg-glass-border);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.why-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: var(--primary-light);
  transition: all var(--transition);
}

.why-card:hover .why-card-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.1);
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .why-choose-header {
    position: static;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .why-choose-cards {
    grid-template-columns: 1fr;
  }
  .why-choose-header .section-title {
    font-size: 1.8rem;
  }
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition);
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.portfolio-img {
  position: relative;
  overflow: hidden;
  height: 260px;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,26,0.95), rgba(10,10,26,0.3));
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-content {
  transform: translateY(20px);
  transition: transform var(--transition);
}

.portfolio-card:hover .portfolio-overlay-content {
  transform: translateY(0);
}

.portfolio-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-light);
  background: rgba(6, 182, 212, 0.2);
  margin-bottom: 8px;
}

.portfolio-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.portfolio-overlay p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  line-height: 1.5;
}

.portfolio-tech {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.portfolio-tech span {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients-section {
  background: var(--bg-secondary);
  overflow: hidden;
}

.clients-carousel {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.clients-track {
  display: flex;
  gap: 40px;
  animation: scroll-clients 30s linear infinite;
  width: max-content;
}

.client-logo {
  flex-shrink: 0;
  width: 160px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.client-logo-inner i {
  font-size: 1.4rem;
  color: var(--primary-light);
}

.client-logo-inner:hover {
  color: var(--text-primary);
  border-color: var(--primary-glow);
  transform: translateY(-2px);
}

@keyframes scroll-clients {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-img-wrap {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 1;
}

.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-img-wrap img {
  transform: scale(1.08);
}

.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,26,0.9) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-socials {
  display: flex;
  gap: 10px;
}

.team-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  transition: all var(--transition);
  transform: translateY(10px);
}

.team-card:hover .team-socials a {
  transform: translateY(0);
}

.team-socials a:hover {
  background: var(--primary);
  transform: translateY(-2px) !important;
}

.team-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
  background: var(--bg-secondary);
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
  text-align: center;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.testimonial-card blockquote p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-glow);
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-align: left;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.slider-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-color);
  border-color: var(--primary-glow);
}

.blog-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-img img {
  transform: scale(1.08);
}

.blog-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary);
  color: #fff;
}

.blog-content {
  padding: 24px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.blog-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-content h3 a:hover {
  color: var(--primary-light);
}

.blog-content > p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  transition: gap var(--transition);
}

.blog-link:hover {
  gap: 10px;
}

/* ============================================
/* ============================================
   CTA DIVIDER
   ============================================ */
.cta-divider {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.cta-divider-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.12;
}

.cta-divider-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.25), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(6,182,212,0.2), transparent 60%);
}

.cta-divider-content {
  position: relative;
  z-index: 2;
}

.cta-divider h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-divider p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.contact-info-card {
  padding: 40px;
  height: 100%;
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--gradient-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-socials {
  display: flex;
  gap: 10px;
}

.contact-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.contact-socials a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Form Styles */
.contact-form {
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.required {
  color: #ef4444;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.form-error {
  display: none;
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 4px;
}

.form-error.visible {
  display: block;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.footer-socials a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-newsletter h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-newsletter p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.newsletter-input-wrap {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
}

.newsletter-input-wrap input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  outline: none;
  font-size: 0.88rem;
}

.newsletter-input-wrap button {
  padding: 12px 20px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  transition: opacity var(--transition);
}

.newsletter-input-wrap button:hover {
  opacity: 0.9;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 20px var(--primary-glow);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll[data-animation="fade-up"].visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll[data-animation="fade-down"] {
  transform: translateY(-30px);
}
.animate-on-scroll[data-animation="fade-down"].visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll[data-animation="fade-right"] {
  transform: translateX(-40px);
}
.animate-on-scroll[data-animation="fade-right"].visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-on-scroll[data-animation="fade-left"] {
  transform: translateX(40px);
}
.animate-on-scroll[data-animation="fade-left"].visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  :root { --section-padding: 70px 0; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    transform: none;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 30px;
    gap: 4px;
    transition: right var(--transition);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px var(--shadow-color);
    z-index: 1000;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 12px 16px;
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile dropdown */
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: auto;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 16px;
    grid-template-columns: 1fr;
    background: transparent;
    backdrop-filter: none;
    display: none;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown.open .dropdown-menu {
    display: grid;
    transform: none;
  }

  .dropdown-item {
    padding: 8px 12px;
  }

  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .stat-number { font-size: 1.8rem; }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .about-img-wrapper img { height: 280px; }
  .experience-badge { bottom: -10px; right: 10px; }

  .scroll-indicator { display: none; }

  .contact-form,
  .contact-info-card {
    padding: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .portfolio-filters { gap: 6px; }
  .filter-btn { padding: 6px 16px; font-size: 0.8rem; }
}

/* ============================================
   SUBPAGES - Solusi & Layanan Detail Pages
   ============================================ */

/* --- Subpage Hero --- */
.subpage-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
}

.subpage-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.15;
}

.subpage-hero-bg .hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.2), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(6,182,212,0.15), transparent 60%);
}

.subpage-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px;
}

.subpage-hero-content .hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.subpage-hero-content .hero-title i {
  margin-right: 12px;
  font-size: 0.85em;
}

.subpage-hero-content .hero-subtitle {
  max-width: 700px;
  margin: 0 auto;
}

/* --- Subpage Content Layout --- */
.subpage-content {
  padding: 80px 0;
}

.subpage-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.subpage-main h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 16px;
  margin-top: 40px;
  color: var(--text-primary);
}

.subpage-main h2:first-child {
  margin-top: 0;
}

.subpage-main > p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* --- Feature Cards Grid --- */
.subpage-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.subpage-feature-card {
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.subpage-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-color);
}

.subpage-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.subpage-feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.subpage-feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- Checklist / Bullet List --- */
.subpage-list {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
}

.subpage-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--border-color);
}

.subpage-list li:last-child {
  border-bottom: none;
}

.subpage-list li i {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

/* --- Sidebar --- */
.subpage-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  padding: 28px;
}

.sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.sidebar-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.sidebar-card .btn {
  width: 100%;
  justify-content: center;
}

.sidebar-links {
  list-style: none;
  padding: 0;
}

.sidebar-links li {
  margin-bottom: 0;
}

.sidebar-links li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
  transition: color var(--transition), padding-left var(--transition);
}

.sidebar-links li:last-child a {
  border-bottom: none;
}

.sidebar-links li a:hover {
  color: var(--primary-light);
  padding-left: 8px;
}

.sidebar-links li a i {
  width: 20px;
  text-align: center;
  color: var(--primary);
}

/* --- Subpage Responsive --- */
@media (max-width: 968px) {
  .subpage-grid {
    grid-template-columns: 1fr;
  }

  .subpage-sidebar {
    position: static;
  }

  .subpage-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .subpage-hero {
    min-height: 320px;
    padding-top: 80px;
  }

  .subpage-hero-content {
    padding: 40px 16px;
  }

  .subpage-content {
    padding: 48px 0;
  }

  .subpage-feature-card {
    padding: 20px;
  }
}
