/* ============================================================
   ALPHA PAINTING - Premium Contracting Website
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #1a56db;
  --primary-dark: #1240a8;
  --primary-light: #3b82f6;
  --primary-lighter: #93bbfd;
  --primary-subtle: #eff6ff;

  --accent: #f59e0b;
  --accent-dark: #d97706;

  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --gray-lighter: #cbd5e1;
  --gray-border: #e2e8f0;
  --light: #f8fafc;
  --white: #ffffff;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 50px -12px rgba(0,0,0,0.15);
  --shadow-xl: 0 25px 60px -12px rgba(0,0,0,0.2);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.loading {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-brush {
  display: flex;
  align-items: center;
  animation: brushMove 1.5s ease-in-out infinite;
}

.brush-handle {
  width: 60px;
  height: 14px;
  background: linear-gradient(135deg, #8B6914, #C49A2A);
  border-radius: 4px 0 0 4px;
}

.brush-bristles {
  width: 24px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 0 4px 4px 0;
}

.loader-stroke {
  width: 120px;
  height: 4px;
  background: var(--dark-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-stroke::after {
  content: '';
  position: absolute;
  left: -40%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  animation: loaderSlide 1.2s ease-in-out infinite;
}

.loader-text {
  color: var(--white);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.6;
}

@keyframes brushMove {
  0%, 100% { transform: translateX(-20px); }
  50% { transform: translateX(20px); }
}

@keyframes loaderSlide {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* --- Custom Cursor --- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}

body:hover .cursor-dot, body:hover .cursor-ring {
  opacity: 1;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(26, 86, 219, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
}

.cursor-ring.hover {
  width: 50px;
  height: 50px;
  border-color: rgba(26, 86, 219, 0.6);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  z-index: 1001;
}

.logo-alpha {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .logo-alpha {
  color: var(--dark);
}

.logo-painting {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--primary-light);
  text-transform: uppercase;
}

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

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
}

.navbar.scrolled .nav-link {
  color: var(--gray);
}

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

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary);
  background: var(--primary-subtle);
}

.nav-cta {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 86, 219, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--dark);
}

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

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

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(26, 86, 219, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  animation: particleFloat var(--duration, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-30px) scale(1.5); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-lighter);
  margin-bottom: 32px;
}

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

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-main);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.title-line {
  display: block;
  font-size: clamp(36px, 6vw, 72px);
  color: var(--white);
}

.title-accent {
  color: var(--gray-light);
  font-weight: 300;
  font-size: clamp(28px, 4.5vw, 56px);
}

.title-highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--gray-light);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-main);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 86, 219, 0.4);
}

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

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

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

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

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

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

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-plus, .stat-percent {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-light);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--gray-light);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-light);
  font-size: 12px;
  letter-spacing: 1px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* --- Section Styles --- */
.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}

.text-accent {
  color: var(--primary);
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

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

/* --- About Section --- */
.about {
  padding: 120px 0;
  background: var(--light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img,
.about-img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
}

.about-img-accent {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--white);
}

.about-experience-badge {
  position: absolute;
  top: -20px;
  right: 40%;
  background: var(--primary);
  color: var(--white);
  padding: 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: badgeFloat 3s ease-in-out infinite;
}

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

.exp-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.exp-text {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.3;
}

.about-text {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius);
}

.feature strong {
  display: block;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 2px;
}

.feature p {
  font-size: 14px;
  color: var(--gray);
}

/* --- Services Section --- */
.services {
  padding: 120px 0;
}

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

.service-card {
  position: relative;
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

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

.service-card.featured {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.service-card.featured::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(1);
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.service-card:hover .service-icon {
  transform: scale(1.05);
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card.featured .service-desc {
  color: rgba(255, 255, 255, 0.8);
}

.service-list {
  margin-bottom: 24px;
}

.service-list li {
  font-size: 14px;
  color: var(--gray);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.service-card.featured .service-list li {
  color: rgba(255, 255, 255, 0.8);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
}

.service-card.featured .service-list li::before {
  background: var(--accent);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.service-card.featured .service-link {
  color: var(--white);
}

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

/* --- Process Section --- */
.process {
  padding: 120px 0;
  background: var(--light);
}

.process-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-subtle);
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary-lighter));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

.process-connector {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.process-connector::before {
  content: '';
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-lighter), var(--primary-light));
  border-radius: 1px;
}

/* --- Portfolio Section --- */
.portfolio {
  padding: 120px 0;
}

.portfolio-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-main);
  color: var(--gray);
  background: var(--light);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary-lighter);
}

.filter-btn.active {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  transition: var(--transition);
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.portfolio-img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: var(--dark-2);
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}


.portfolio-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  width: fit-content;
}

.portfolio-overlay h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.portfolio-overlay p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Testimonials Section --- */
.testimonials {
  padding: 120px 0;
  background: var(--light);
}

.testimonials-slider {
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  flex: 0 0 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.testimonial-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--accent);
  margin-bottom: 24px;
}

.testimonial-text {
  font-size: 18px;
  color: var(--dark-3);
  line-height: 1.8;
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
}

.testimonial-author strong {
  display: block;
  font-size: 16px;
  color: var(--dark);
}

.testimonial-author span {
  font-size: 13px;
  color: var(--gray);
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.test-nav-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 50%;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}

.test-nav-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.test-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.test-dot {
  width: 10px;
  height: 10px;
  background: var(--gray-lighter);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.test-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* --- CTA Section --- */
.cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
}

.cta-shapes {
  position: absolute;
  inset: 0;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cta-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  animation: shapeFloat 8s ease-in-out infinite;
}

.cta-shape:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: -80px;
  left: 10%;
  animation: shapeFloat 6s ease-in-out infinite reverse;
}

.cta-shape:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 20%;
  left: 5%;
  animation: shapeFloat 10s ease-in-out infinite;
}

@keyframes shapeFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 10px) scale(0.95); }
}

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

.cta-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

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

/* --- Contact Section --- */
.contact {
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 32px;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius);
}

.contact-item strong {
  display: block;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 2px;
}

.contact-item span, .contact-item a {
  font-size: 14px;
  color: var(--gray);
}

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

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--light);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
  background: var(--white);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 40px;
}

.form-success svg {
  color: #10b981;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--gray);
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

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

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-brand .nav-logo {
  display: inline-flex;
}

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

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

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

.footer-links h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

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

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

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

.footer-links li:not(:has(a)) {
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 14px;
}

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

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

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

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 900;
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* --- Scroll Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-up {
  transform: translateY(40px);
}

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

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

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0);
}

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

  .about-grid {
    gap: 48px;
  }

  .contact-grid {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links.open .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    padding: 12px 24px;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-images {
    max-width: 400px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .process-steps {
    flex-direction: column;
    gap: 0;
  }

  .process-connector {
    width: 2px;
    height: 40px;
    margin: 0 auto;
  }

  .process-connector::before {
    width: 2px;
    height: 100%;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .portfolio-filter {
    flex-wrap: wrap;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero-stats {
    gap: 24px;
  }

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

  .testimonial-card {
    padding: 32px 24px;
  }

  .testimonial-text {
    font-size: 16px;
  }

  .contact-form-wrapper {
    padding: 32px 24px;
  }

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

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

  .cursor-dot, .cursor-ring {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

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

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

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

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

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

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