/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
  /* Color Tokens */
  --bg-primary: #0B0F19;
  --bg-surface: #141A27;
  --border-color: #263041;
  
  --text-heading: #F8FAFC;
  --text-body: #A1AAB8;
  --text-muted: #6B7280;
  
  --accent-primary: #FF6B6B;
  --accent-secondary: #4EA8DE;
  
  --btn-primary: #4F9CF9;
  --btn-primary-hover: #6BAEFF;
  --btn-secondary-border: #334155;
  
  /* Layout & Speeds */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
}

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

/* ==========================================================================
   Interactive Background Ambient Follower
   ========================================================================== */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(78, 168, 222, 0.08) 0%, rgba(255, 107, 107, 0.03) 40%, rgba(11, 15, 25, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.loader-content {
  text-align: center;
  width: 280px;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.loader-bar-container {
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  transition: width 0.1s ease-out;
}

.loader-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   Typography & Reusable Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  max-width: 680px;
  margin-bottom: 5rem;
  text-align: left;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFFFFF 30%, #A1AAB8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-description {
  font-size: 1.15rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Glassmorphism Surface Base */
.glass-panel {
  background: rgba(20, 26, 39, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(38, 48, 65, 0.5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background-color: var(--btn-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
  box-shadow: 0 0 25px rgba(79, 156, 249, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--btn-secondary-border);
  color: var(--text-heading);
}

.btn-secondary:hover {
  border-color: var(--text-heading);
  background-color: rgba(248, 250, 252, 0.05);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 64px;
  z-index: 1000;
  border-radius: 16px;
  background: rgba(11, 15, 25, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(38, 48, 65, 0.4);
  transition: var(--transition-smooth);
}

.header.scrolled {
  top: 0.75rem;
  background: rgba(11, 15, 25, 0.8);
  border-color: rgba(38, 48, 65, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.logo-symbol {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: screen;
}

.nav {
  display: flex;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-body);
  position: relative;
  padding: 0.25rem 0;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-heading);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-heading);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section & Canvas (Scroll Scrubbing)
   ========================================================================== */
.hero-scroll-container {
  position: relative;
  width: 100vw;
  height: 350vh; /* Control vertical length for scrolling scrub speed */
  background-color: var(--bg-primary);
}

.hero-sticky-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#hero-canvas {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  display: block;
}

/* Scroll prompt indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
  transition: var(--transition-smooth);
}

.scroll-indicator.fade-out {
  opacity: 0;
  pointer-events: none;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
  animation: bounceDot 2s infinite ease-in-out;
}

.scroll-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  font-weight: 500;
}

@keyframes bounceDot {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* ==========================================================================
   Story Continuous Sections Base
   ========================================================================== */
.story-wrapper {
  position: relative;
  background-color: var(--bg-primary);
  z-index: 10;
}

.story-section {
  position: relative;
  min-height: 100vh;
  padding: 10rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Soft cinematic parallax image handling */
.section-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
  transform: translateY(0);
  will-change: transform;
}

/* Seamless blend layer overlaying bg to fit primary dark colors */
.section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark mask that keeps center graphics visible but fades boundaries to body color */
  background: radial-gradient(circle at center, rgba(11, 15, 25, 0.75) 0%, rgba(11, 15, 25, 0.95) 85%, #0B0F19 100%);
  z-index: 2;
}

/* Transitions: Fade in-out transitions at section borders */
.story-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  background: linear-gradient(to bottom, #0B0F19 0%, transparent 100%);
  z-index: 3;
}

.story-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  background: linear-gradient(to top, #0B0F19 0%, transparent 100%);
  z-index: 3;
}

.relative-content {
  position: relative;
  z-index: 4;
}

/* ==========================================================================
   Services Section (Capabilties Grid)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 3rem 2.25rem;
  border-radius: 20px;
  background: rgba(20, 26, 39, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(38, 48, 65, 0.4);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(78, 168, 222, 0.4);
  background: rgba(20, 26, 39, 0.75);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(78, 168, 222, 0.05);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 2rem;
  position: relative;
  background: rgba(38, 48, 65, 0.5);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(78, 168, 222, 0.15) 0%, rgba(255, 107, 107, 0.1) 100%);
  border-color: rgba(78, 168, 222, 0.5);
  box-shadow: 0 0 20px rgba(78, 168, 222, 0.2);
}

/* Icons styling using simple elegant CSS shapes */
.service-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.service-card:hover .service-icon::after {
  opacity: 1;
}

/* Service Card SVGs */
.icon-ai::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='4'%3E%3C/circle%3E%3C/svg%3E"); }
.icon-seo::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E"); }
.icon-ads::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'%3E%3C/path%3E%3C/svg%3E"); }
.icon-psych::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2.5 3.19-2.5 5.5h20c0-2.31-1-4.24-2.5-5.5M12 15a6 6 0 100-12 6 6 0 000 12z'%3E%3C/path%3E%3C/svg%3E"); }
.icon-creative::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 20h9M16.5 3.5a2.121 2.121 0 013 3L7 19l-4 1 1-4L16.5 3.5z'%3E%3C/path%3E%3C/svg%3E"); }
.icon-growth::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M23 6l-9.5 9.5-5-5L1 18'%3E%3C/path%3E%3Cpath d='M17 6h6v6'%3E%3C/path%3E%3C/svg%3E"); }

.service-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.service-card-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   How It Works (Process Timeline)
   ========================================================================== */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.timeline-line {
  position: absolute;
  left: 28px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-secondary), var(--accent-primary));
  opacity: 0.3;
}

.process-step {
  display: flex;
  gap: 3rem;
  position: relative;
}

.step-number-box {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  transition: var(--transition-smooth);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.process-step:hover .step-number-box {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
  transform: scale(1.05);
}

.step-content {
  padding-top: 0.75rem;
  max-width: 700px;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
  transition: var(--transition-fast);
}

.process-step:hover .step-title {
  color: var(--text-heading);
  transform: translateX(4px);
}

.step-text {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   Why Choose Us (Stats Grid)
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.why-card {
  padding: 3.5rem 2.5rem;
  border-radius: 20px;
  background: rgba(20, 26, 39, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(38, 48, 65, 0.4);
  transition: var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(20, 26, 39, 0.75);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4), inset 0 0 25px rgba(255, 107, 107, 0.03);
}

.why-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}

.why-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.why-card:hover .why-badge {
  color: var(--text-heading);
  border-color: var(--accent-secondary);
}

.why-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.why-card-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   Contact Section (Wrapper, Details, Form)
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  background: rgba(20, 26, 39, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(38, 48, 65, 0.4);
  border-radius: 24px;
  padding: 4.5rem;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-panel-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #FFFFFF 30%, #A1AAB8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-panel-desc {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 3.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(38, 48, 65, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  position: relative;
}

.detail-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.detail-icon.email::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

.detail-icon.location::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.detail-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-heading);
}

/* Contact Form Grid and Elements */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-heading);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  background-color: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(78, 168, 222, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-secondary);
  background-color: rgba(11, 15, 25, 0.95);
  box-shadow: 0 0 15px rgba(78, 168, 222, 0.15);
}

/* Custom Dropdown Styles */
.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  background-color: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  color: var(--text-heading);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
  user-select: none;
}

.custom-select:hover .select-trigger {
  border-color: rgba(78, 168, 222, 0.4);
}

.custom-select.active .select-trigger {
  border-color: var(--accent-secondary);
  background-color: rgba(11, 15, 25, 0.95);
  box-shadow: 0 0 15px rgba(78, 168, 222, 0.15);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.select-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: var(--transition-fast);
  transform-origin: center;
}

.custom-select.active .select-arrow {
  transform: rotate(-135deg) translateY(2px);
  border-color: var(--accent-secondary);
}

.select-options-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-secondary);
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: var(--transition-fast);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.custom-select.active .select-options-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-option {
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition-fast);
}

.select-option:hover {
  background-color: rgba(78, 168, 222, 0.1);
  color: var(--text-heading);
}

.select-option.selected {
  background-color: rgba(78, 168, 222, 0.15);
  color: var(--text-heading);
  font-weight: 500;
}

/* Form Errors validation styling */
.error-message {
  font-size: 0.8rem;
  color: var(--accent-primary);
  margin-top: -0.25rem;
  display: none;
  opacity: 0;
  transform: translateY(-3px);
  transition: var(--transition-fast);
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error .select-trigger {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.15);
}

.form-group.has-error .error-message {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Submit & Spinner animation */
.btn-submit {
  width: 100%;
  height: 52px;
  position: relative;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  display: none;
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.contact-form.submitting .btn-text {
  opacity: 0;
}

.contact-form.submitting .spinner {
  display: block;
}

.contact-form.submitting button {
  pointer-events: none;
  opacity: 0.8;
}

/* Success Card */
.form-success-alert {
  display: none;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid rgba(78, 168, 222, 0.3);
  background: rgba(20, 26, 39, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.form-success-alert.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.success-icon {
  width: 44px;
  height: 44px;
  background: rgba(78, 168, 222, 0.15);
  border: 1px solid var(--accent-secondary);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.success-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0) invert(1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='20,6 9,17 4,12'%3E%3C/polyline%3E%3C/svg%3E");
}

.success-alert-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.success-alert-content p {
  font-size: 0.9rem;
  color: var(--text-body);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 6rem 0 3rem;
  position: relative;
  z-index: 10;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

.footer-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-heading);
  margin-bottom: 1.75rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--text-body);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-heading);
  transform: translateX(3px);
}

.footer-info {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-info strong {
  color: var(--text-heading);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(38, 48, 65, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  position: relative;
  transition: var(--transition-fast);
}

.social-link:hover {
  border-color: var(--accent-secondary);
  background-color: rgba(78, 168, 222, 0.1);
  transform: translateY(-2px);
}

.social-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.social-link:hover::after {
  opacity: 1;
}

.social-link.x::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M4 4l11.733 16h4.267l-11.733-16z M4 20l6.768-6.768M20 4l-6.768 6.768'%3E%3C/path%3E%3C/svg%3E");
}

.social-link.linkedin::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6zM2 9h4v12H2zM4 2a2 2 0 100 4 2 2 0 000-4z'%3E%3C/path%3E%3C/svg%3E");
}

.social-link.github::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 00-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0020 4.77 5.07 5.07 0 0019.91 1S18.73.65 16 2.48a13.38 13.38 0 00-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 005 4.77a5.44 5.44 0 00-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 009 18.13V22'%3E%3C/path%3E%3C/svg%3E");
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

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

/* ==========================================================================
   Animations & Interaction Reveal Classes
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Delay modifiers for lists or grid card entries */
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.3s; }

.why-grid .why-card:nth-child(2) { transition-delay: 0.15s; }
.why-grid .why-card:nth-child(3) { transition-delay: 0.3s; }

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .why-card {
    padding: 2.5rem 2rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .header {
    height: 56px;
    top: 1rem;
    border-radius: 12px;
  }
  
  .header.scrolled {
    top: 0.5rem;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 6rem 2.5rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.6);
  }
  
  .nav.active {
    transform: translateX(0);
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Animate menu button lines when active */
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .header-cta {
    display: none; /* Hide top CTA on mobile to fit log and menu icon */
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .process-timeline {
    gap: 3.5rem;
  }
  
  .timeline-line {
    left: 20px;
  }
  
  .step-number-box {
    width: 42px;
    height: 42px;
  }
  
  .step-num {
    font-size: 0.95rem;
  }
  
  .process-step {
    gap: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-legal-links {
    justify-content: center;
  }
}
