/* =============================================
   CLOUD TECH CONSULTING — MAIN STYLESHEET
   ============================================= */

/* ---- 1. CSS CUSTOM PROPERTIES --------------- */
:root {
  /* Brand Colors */
  --color-primary:       #0d599b;
  --color-primary-dark:  #0a4780;
  --color-primary-light: #1a6db5;
  --color-secondary:     #247ac6;
  --color-dark:          #303030;
  --color-dark-90:       rgba(48, 48, 48, 0.9);
  --color-dark-80:       rgba(48, 48, 48, 0.8);
  --color-white:         #ffffff;
  --color-off-white:     #f4f7fb;
  --color-gray-light:    #e8edf4;
  --color-gray-mid:      #9ca3af;
  --color-text:          #1a1a2e;
  --color-text-muted:    #6b7280;
  --color-success:       #22c55e;

  /* Gradients */
  --gradient-hero:    linear-gradient(135deg, #0d599b 0%, #303030 100%);
  --gradient-accent:  linear-gradient(135deg, #0d599b, #247ac6);
  --gradient-light:   linear-gradient(135deg, #f4f7fb 0%, #e8edf4 100%);

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

  /* Spacing (8pt scale) */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:      0 4px 16px rgba(0, 0, 0, 0.10), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg:      0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-xl:      0 24px 64px rgba(0, 0, 0, 0.18);
  --shadow-primary: 0 8px 32px rgba(13, 89, 155, 0.30);
  --shadow-card:    0 4px 24px rgba(13, 89, 155, 0.08);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max:  1200px;
  --nav-height:     72px;
  --section-pad:    var(--space-20);
}

/* ---- 2. SKIP LINK (accessibility + SEO) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 99999;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ---- 3. RESET & BASE ----------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---- 3. LAYOUT UTILITIES ------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section-padding {
  padding-block: var(--section-pad);
}

.section-alt {
  background-color: var(--color-off-white);
}

/* ---- 4. TYPOGRAPHY UTILITIES --------------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(36, 122, 198, 0.10);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---- 5. BUTTONS ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-primary);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.18);
  transform: skewX(-20deg);
  transition: left var(--transition-slow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(13, 89, 155, 0.40);
}

.btn-primary:hover::after {
  left: 125%;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

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

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

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  margin-top: var(--space-4);
}

/* Dark-bg outline variant (contact/footer area) */
.contact .btn-outline,
.footer .btn-outline {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.contact .btn-outline:hover,
.footer .btn-outline:hover {
  background: rgba(13, 89, 155, 0.08);
}

/* ---- 6. SCROLL PROGRESS BAR ---------------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-accent);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---- 7. NAVBAR ----------------------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition-base);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Default nav (on hero — transparent) */
#navbar {
  background: transparent;
}

/* Scrolled state — glassmorphism */
#navbar.scrolled {
  background: rgba(13, 89, 155, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.20);
  height: 60px;
}

/* Non-hero sections: always show solid nav */
#navbar.nav-solid {
  background: var(--color-primary);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

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

.nav-logo-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  color: var(--color-white);
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13, 89, 155, 0.4);
}

.nav-logo-code {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 0.5rem;
  font-weight: 800;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1;
}

.nav-logo-text {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background: var(--color-white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link-cta {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- 8. HERO SECTION ----------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Animated background blobs */
.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #247ac6, transparent 70%);
  top: -200px;
  right: -100px;
  animation: blobFloat1 12s ease-in-out infinite;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #0d599b, transparent 70%);
  bottom: -200px;
  left: -100px;
  animation: blobFloat2 15s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(30px, 40px) scale(1.08); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-20px, -30px) scale(1.06); }
}

.hero-container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-12);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-20);
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #7dc4f7, #b8ddff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}

.hero-stat span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
}

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

.hero-card-main {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-10);
  text-align: center;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.hero-cloud-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: var(--gradient-accent);
  border-radius: 50%;
  margin-bottom: var(--space-6);
  font-size: 2.5rem;
  color: var(--color-white);
  box-shadow: var(--shadow-primary);
}

.hero-code-tag {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.625rem;
  font-weight: 800;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
}

.hero-card-tagline {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.hero-card-sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

/* Floating Badges */
.hero-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-white);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-dark);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

.hero-floating-badge i {
  color: var(--color-primary);
  font-size: 0.875rem;
}

.badge-1 { top: 5%;   left: -5%;  animation: float 5s ease-in-out infinite; }
.badge-2 { bottom: 15%; left: -10%; animation: float 6s ease-in-out infinite 1s; }
.badge-3 { top: 20%;  right: -8%; animation: float 7s ease-in-out infinite 0.5s; }

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

/* Scroll cue */
.hero-scroll-cue {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: var(--space-8);
  transition: color var(--transition-base);
}

.hero-scroll-cue:hover {
  color: rgba(255, 255, 255, 0.85);
}

.hero-scroll-cue i {
  font-size: 0.875rem;
  animation: bounce 2s ease-in-out infinite;
}

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

/* ---- 9. ABOUT SECTION ---------------------- */
.about {
  background-color: var(--color-white);
}

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

/* About Visual */
.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-visual-card {
  background: var(--gradient-hero);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  text-align: center;
  width: 100%;
  max-width: 340px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-visual-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.about-visual-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.about-visual-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.about-visual-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
}

.about-visual-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

.about-visual-lines {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-6);
  justify-content: center;
  position: relative;
  z-index: 1;
}

.about-visual-lines span {
  display: block;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
}

.about-visual-lines span:nth-child(1) { width: 40px; background: rgba(255, 255, 255, 0.8); }
.about-visual-lines span:nth-child(2) { width: 28px; }
.about-visual-lines span:nth-child(3) { width: 20px; }

/* Stat Badges */
.stat-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  font-weight: 600;
}

.stat-badge strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-badge span {
  color: var(--color-text-muted);
  font-weight: 500;
}

.stat-badge i {
  color: var(--color-secondary);
}

.stat-badge-1 {
  bottom: -16px;
  left: -16px;
  animation: float 5s ease-in-out infinite;
}

.stat-badge-2 {
  top: -16px;
  right: -8px;
  animation: float 6s ease-in-out infinite 0.8s;
}

.stat-badge-3 {
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  animation: float 7s ease-in-out infinite 1.5s;
}

/* About Content */
.about-content {
  max-width: 580px;
}

.about-intro {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-8);
}

.about-mission {
  background: linear-gradient(135deg, rgba(13, 89, 155, 0.05), rgba(36, 122, 198, 0.08));
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-6) var(--space-6) var(--space-6) var(--space-8);
  margin-bottom: var(--space-8);
  position: relative;
}

.about-mission i {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
  display: block;
  opacity: 0.6;
}

.about-mission p {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  font-weight: 500;
}

/* Why Choose Us Grid */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.why-icon {
  width: 40px;
  height: 40px;
  background: rgba(13, 89, 155, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.why-item:hover .why-icon {
  background: var(--gradient-accent);
  color: var(--color-white);
  transform: scale(1.05);
}

.why-text h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}

.why-text p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---- 10. SERVICES SECTION ------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gray-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

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

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(13, 89, 155, 0.08), rgba(36, 122, 198, 0.12));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.375rem;
  margin-bottom: var(--space-5);
  transition: all var(--transition-spring);
}

.service-card:hover .service-icon {
  background: var(--gradient-accent);
  color: var(--color-white);
  transform: rotate(8deg) scale(1.1);
  box-shadow: var(--shadow-primary);
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Special "And More" card */
.service-card-more {
  background: var(--gradient-hero);
  border-color: transparent;
  display: flex;
  flex-direction: column;
}

.service-card-more h3,
.service-card-more p {
  color: rgba(255, 255, 255, 0.9);
}

.service-card-more p {
  color: rgba(255, 255, 255, 0.70);
}

.service-icon-more {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--color-white) !important;
}

.service-card-more:hover .service-icon-more {
  background: rgba(255, 255, 255, 0.25) !important;
  color: var(--color-white) !important;
  box-shadow: none !important;
}

.service-card-more .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  margin-top: auto;
  align-self: flex-start;
}

.service-card-more .btn-primary::after {
  background: rgba(13, 89, 155, 0.12);
}

.service-card-more .btn-primary:hover {
  box-shadow: var(--shadow-lg);
}

.service-card-more::after {
  display: none;
}

/* ---- 11. CONTACT SECTION ------------------- */
.contact {
  background-color: var(--color-white);
}

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

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(13, 89, 155, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-1);
}

.contact-info-text strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-dark);
}

.contact-info-text a,
.contact-info-text span {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.contact-info-text a:hover {
  color: var(--color-primary);
}

/* Social Links */
.contact-social,
.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(13, 89, 155, 0.08);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--gradient-accent);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
  background: var(--color-off-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  border: 1px solid var(--color-gray-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-group:last-of-type {
  margin-bottom: var(--space-6);
}

.form-group label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-dark);
}

.form-group label span {
  color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-gray-mid);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(36, 122, 198, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-error {
  font-size: 0.8125rem;
  color: #ef4444;
  font-weight: 500;
  min-height: 1em;
}

/* Select wrapper */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--space-10);
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-mid);
  pointer-events: none;
  font-size: 0.75rem;
  transition: transform var(--transition-base);
}

.select-wrapper:focus-within .select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* Form note */
.form-note {
  font-size: 0.8125rem;
  color: var(--color-gray-mid);
  text-align: center;
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

/* Submit button state */
#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Form Success State */
.form-success-state {
  text-align: center;
  padding: var(--space-12) var(--space-8);
}

.form-success-state[hidden] {
  display: none;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  font-size: 2.5rem;
  color: var(--color-success);
}

.form-success-state h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.form-success-state p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  font-size: 1.0625rem;
}

/* ---- 12. FOOTER ----------------------------- */
.footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.footer h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

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

.footer-links a,
.footer-services a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-base);
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--color-white);
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact i {
  color: var(--color-secondary);
  font-size: 0.875rem;
  width: 16px;
  flex-shrink: 0;
}

.footer-contact a:hover {
  color: var(--color-white);
}

.footer .social-link {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}

.footer .social-link:hover {
  background: var(--gradient-accent);
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom i {
  color: #ef4444;
  font-size: 0.8125rem;
}

/* ---- 13. SCROLL-REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-right {
  transform: translateX(32px);
}

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

/* ---- 14. RESPONSIVE ------------------------ */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

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

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  :root {
    --nav-height: 72px;
  }

  /* Nav */
  .nav-toggle {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    gap: var(--space-2) !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-16);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

/* Wide: 1280px+ */
@media (min-width: 1280px) {
  .container {
    padding-inline: var(--space-8);
  }
}

/* Mobile nav */
@media (max-width: 1023px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 89, 155, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-4) var(--space-6) var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    gap: var(--space-1);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav-links.open {
    max-height: 400px;
    padding: var(--space-4) var(--space-6) var(--space-6);
  }

  .nav-link {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 1rem;
  }

  .nav-link-cta {
    text-align: center;
    margin-top: var(--space-2);
  }

  .nav-link::after {
    display: none;
  }

  .hero-floating-badge {
    display: none;
  }

  .stat-badge-3 {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --section-pad: var(--space-16);
  }

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

  .hero-ctas {
    flex-direction: column;
  }

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

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

  .contact-form-wrapper {
    padding: var(--space-6);
  }

  .stat-badge-1,
  .stat-badge-2 {
    display: none;
  }
}

/* ---- 15. REDUCED MOTION -------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- 16. FOCUS VISIBLE (Accessibility) ----- */
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- 17. SELECTION ------------------------- */
::selection {
  background: rgba(13, 89, 155, 0.20);
  color: var(--color-primary-dark);
}
