/* ==========================================================================
   MAC DIGITAL AGENCY - DESIGN SYSTEM & LAYOUT SYSTEM
   ========================================================================== */

/* Importing Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&family=Sora:wght@600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* Design Tokens - Core Variables */
:root {
  /* Brand Colors */
  --primary-500: #ca8a04;
  --primary-600: #a16207;
  --secondary-500: #d97706;
  --secondary-600: #b45309;
  --accent-500: #fbbf24;
  
  /* Status Colors */
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;

  /* Neutral Palette */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
  --gradient-accent: linear-gradient(135deg, #fde047 0%, var(--primary-500) 100%);
  --gradient-surface: linear-gradient(180deg, var(--white) 0%, #f8fafc 100%);
  --gradient-glow: radial-gradient(circle, rgba(202, 138, 4, 0.08) 0%, rgba(217, 119, 6, 0.02) 70%, transparent 100%);

  /* Fonts */
  --font-heading: 'Sora', 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Typography Scale */
  --fs-hero: clamp(2.5rem, 5vw + 1rem, 4rem);       /* ~40px to 64px */
  --fs-h1: clamp(2.2rem, 4vw + 1rem, 3.25rem);       /* ~35px to 52px */
  --fs-h2: clamp(1.8rem, 3vw + 0.8rem, 2.625rem);    /* ~28px to 42px */
  --fs-h3: clamp(1.5rem, 2vw + 0.8rem, 2rem);        /* ~24px to 32px */
  --fs-h4: clamp(1.25rem, 1.5vw + 0.6rem, 1.5rem);   /* ~20px to 24px */
  --fs-h5: clamp(1.1rem, 1vw + 0.6rem, 1.25rem);     /* ~17px to 20px */
  --fs-body: 1.125rem;                               /* 18px */
  --fs-small: 1rem;                                  /* 16px */
  --fs-caption: 0.875rem;                            /* 14px */

  /* Line Heights */
  --lh-heading: 1.15;
  --lh-body: 1.7;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-30: 120px;
  --space-40: 160px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Elevation (Shadows) */
  --shadow-sm: 0 4px 20px -2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 8px 30px -4px rgba(17, 24, 39, 0.05);
  --shadow-lg: 0 16px 40px -6px rgba(17, 24, 39, 0.07);
  --shadow-xl: 0 24px 60px -8px rgba(17, 24, 39, 0.1);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Border styles */
  --border-light: 1px solid var(--gray-200);
  --border-strong: 1px solid var(--gray-300);

  /* Motion & Easing */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-extra: 700ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-emphasized: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--white);
  color: var(--gray-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--lh-body);
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

p {
  font-size: var(--fs-body);
  color: var(--gray-500);
  margin-bottom: var(--space-4);
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--gray-50);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-pill);
  border: 2px solid var(--gray-50);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Accessibility Focus Outline */
*:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 4px;
}

/* ==========================================================================
   LAYOUT & GRID UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.section {
  padding-top: var(--space-30);
  padding-bottom: var(--space-30);
  position: relative;
  overflow: hidden;
}

.section.alt-bg {
  background-color: var(--gray-50);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Typography styles */
.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--gray-500); }
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-500);
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--space-3);
}

/* Badge styling */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-primary {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-500);
}
.badge-secondary {
  background: rgba(124, 58, 237, 0.08);
  color: var(--secondary-500);
}
.badge-accent {
  background: rgba(34, 211, 238, 0.12);
  color: #0891b2;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 56px;
  padding: 0 var(--space-8);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-small);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--duration-normal) var(--ease-emphasized),
              box-shadow var(--duration-normal) var(--ease-emphasized),
              background var(--duration-normal) var(--ease-emphasized),
              border-color var(--duration-normal) var(--ease-emphasized),
              color var(--duration-normal) var(--ease-emphasized);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px 0 rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-500);
  border: 2px solid var(--primary-500);
}
.btn-secondary:hover {
  transform: translateY(-4px);
  background: rgba(37, 99, 235, 0.05);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  height: auto;
  padding: var(--space-2) 0;
  border-radius: 0;
  position: relative;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out);
}
.btn-ghost:hover {
  color: var(--primary-500);
}
.btn-ghost:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================================================================
   LOADING SCREEN (PRELOADER)
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity var(--duration-slow) var(--ease-out),
              visibility var(--duration-slow) var(--ease-out);
}
.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  position: relative;
}
.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--gray-100);
  border-top-color: var(--primary-500);
  border-radius: var(--radius-pill);
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out);
}
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-light);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.nav-link {
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--gray-700);
  position: relative;
  padding: var(--space-2) 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-500);
}
.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-2);
  z-index: 1010;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gray-900);
  margin: 5px 0;
  transition: all var(--duration-normal) var(--ease-out);
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  padding: 100px var(--space-8) var(--space-8);
  transition: right var(--duration-slow) var(--ease-out);
}
.mobile-nav-drawer.open {
  right: 0;
}
.mobile-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--gray-900);
}
.mobile-nav-link.active {
  color: var(--primary-500);
}
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  background: var(--gradient-glow);
  position: relative;
}

.hero-grid {
  align-items: center;
}

.hero-content {
  grid-column: span 6;
}
.hero-visual {
  grid-column: span 6;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-title {
  font-size: var(--fs-hero);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  font-weight: 800;
}

.hero-desc {
  font-size: var(--fs-body);
  color: var(--gray-700);
  margin-bottom: var(--space-8);
  max-width: 580px;
}

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

/* Animated interactive SVG illustration / halo styles */
.hero-illustration {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(var(--shadow-xl));
}

.hero-halo {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(34, 211, 238, 0.05) 50%, transparent 100%);
  border-radius: var(--radius-pill);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulse-glow 8s infinite alternate ease-in-out;
}

.floating-blob {
  position: absolute;
  border-radius: var(--radius-pill);
  filter: blur(40px);
  opacity: 0.45;
  z-index: 0;
  mix-blend-mode: multiply;
  animation: float-blob 20s infinite alternate ease-in-out;
}
.blob-1 {
  width: 300px;
  height: 300px;
  background: rgba(37, 99, 235, 0.15);
  top: 10%;
  right: 5%;
}
.blob-2 {
  width: 250px;
  height: 250px;
  background: rgba(124, 58, 237, 0.15);
  bottom: 10%;
  left: 5%;
  animation-delay: -5s;
}

@keyframes pulse-glow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--gray-500);
  font-size: var(--fs-caption);
  cursor: pointer;
  z-index: 2;
}
.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  position: relative;
}
.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--primary-500);
  border-radius: var(--radius-pill);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel-anim 1.5s infinite;
}

@keyframes scroll-wheel-anim {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-16);
}
.section-title {
  font-size: var(--fs-h2);
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
  font-weight: 800;
}
.section-desc {
  font-size: var(--fs-body);
  color: var(--gray-500);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  align-items: center;
}
.about-content {
  grid-column: span 6;
}
.about-cards {
  grid-column: span 6;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.about-text {
  font-size: var(--fs-body);
  color: var(--gray-700);
  margin-bottom: var(--space-6);
}

.about-card {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: var(--border-light);
  transition: transform var(--duration-normal) var(--ease-emphasized),
              box-shadow var(--duration-normal) var(--ease-emphasized);
}
.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.about-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  color: var(--secondary-500);
}
.about-card h3 {
  font-size: var(--fs-h5);
  margin-bottom: var(--space-2);
}
.about-card p {
  font-size: var(--fs-caption);
  margin-bottom: 0;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  border: var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-emphasized),
              box-shadow var(--duration-normal) var(--ease-emphasized);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-md);
  color: var(--primary-500);
  margin-bottom: var(--space-6);
  font-size: 1.75rem;
  transition: transform var(--duration-normal) var(--ease-emphasized);
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--gradient-primary);
  color: var(--white);
}

.service-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-4);
}
.service-card p {
  font-size: var(--fs-small);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.service-benefits {
  list-style: none;
  margin-bottom: var(--space-8);
}
.service-benefits li {
  font-size: var(--fs-caption);
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.service-benefits svg {
  color: var(--success);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.service-card .btn {
  margin-top: auto;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}
.filter-chip {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}
.filter-chip:hover, .filter-chip.active {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.portfolio-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: var(--border-light);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-normal) var(--ease-emphasized),
              box-shadow var(--duration-normal) var(--ease-emphasized),
              opacity var(--duration-normal) var(--ease-out),
              scale var(--duration-normal) var(--ease-out);
  transform-origin: center;
}
.portfolio-item.hidden {
  display: none;
  opacity: 0;
  scale: 0.8;
}
.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  background: var(--gray-50);
}
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.portfolio-item:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.85) 0%, rgba(124, 58, 237, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-btn {
  background: var(--white);
  color: var(--gray-900);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-weight: 600;
  font-size: var(--fs-caption);
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-emphasized);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.portfolio-item:hover .portfolio-btn {
  transform: translateY(0);
}
.portfolio-btn:hover {
  background: var(--gradient-primary);
  color: var(--white);
}

.portfolio-content {
  padding: var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.portfolio-content h3 {
  font-size: var(--fs-h5);
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}
.portfolio-content p {
  font-size: var(--fs-caption);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}
.portfolio-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}
.portfolio-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   PORTFOLIO STATISTICS
   ========================================================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.stat-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  border: var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-emphasized);
}
.stat-item:hover {
  transform: translateY(-6px);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 800;
  margin-bottom: var(--space-2);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-1);
}
.stat-desc {
  font-size: var(--fs-caption);
  color: var(--gray-500);
}

/* ==========================================================================
   BEFORE & AFTER SLIDER
   ========================================================================== */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 540px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: var(--border-strong);
  user-select: none;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.slider-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slider-after {
  z-index: 1;
}

.slider-before {
  z-index: 2;
  width: 50%;
  overflow: hidden;
}
.slider-before img {
  width: 960px; /* Explicit width to match parent max-width container, preventing resize */
  max-width: none;
}

.slider-handle {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--white);
  cursor: ew-resize;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-handle-button {
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  color: var(--primary-500);
}
.slider-handle-button svg {
  width: 24px;
  height: 24px;
}

.slider-label {
  position: absolute;
  bottom: var(--space-4);
  padding: 6px 14px;
  background: rgba(17, 24, 39, 0.7);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 4;
}
.label-before {
  left: var(--space-4);
}
.label-after {
  right: var(--space-4);
}

/* ==========================================================================
   CASE STUDIES SECTION
   ========================================================================== */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.case-card {
  background: var(--gradient-surface);
  border-radius: var(--radius-xl);
  border: var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-normal) var(--ease-emphasized),
              box-shadow var(--duration-normal) var(--ease-emphasized);
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.case-card-header {
  padding: var(--space-8) var(--space-8) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.case-card-body {
  padding: var(--space-8);
  flex-grow: 1;
}
.case-card-body h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-4);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.case-metric {
  background: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: var(--border-light);
}
.case-metric-val {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--secondary-500);
}
.case-metric-lbl {
  font-size: var(--fs-caption);
  color: var(--gray-500);
}

.case-details {
  margin-bottom: var(--space-6);
}
.case-detail-item {
  font-size: var(--fs-small);
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}
.case-detail-item strong {
  color: var(--gray-900);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-12);
}

.skill-category-title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.skill-category-title svg {
  color: var(--primary-500);
  width: 28px;
  height: 28px;
}

.skill-bars-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.skill-item {
  width: 100%;
}
.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}
.skill-name {
  font-weight: 600;
  color: var(--gray-700);
  font-size: var(--fs-small);
}
.skill-percent {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary-500);
  font-size: var(--fs-small);
}

.skill-bar-container {
  width: 100%;
  height: 8px;
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  width: 0%; /* Populated in JS via observer */
  background: var(--gradient-primary);
  border-radius: var(--radius-pill);
  transition: width 1.5s var(--ease-emphasized);
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.why-card {
  background: var(--white);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  border: var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-emphasized),
              box-shadow var(--duration-normal) var(--ease-emphasized);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.why-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(34, 211, 238, 0.08);
  border-radius: var(--radius-md);
  color: #0891b2;
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}
.why-card h3 {
  font-size: var(--fs-h5);
  margin-bottom: var(--space-2);
  font-weight: 700;
}
.why-card p {
  font-size: var(--fs-caption);
  margin-bottom: 0;
}

/* ==========================================================================
   WORK PROCESS TIMELINE
   ========================================================================== */
.timeline-container {
  position: relative;
  padding: var(--space-12) 0;
  display: flex;
  justify-content: space-between;
}
/* Horizontal line behind process elements */
.timeline-line {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gray-200);
  z-index: 1;
}
.timeline-line-progress {
  height: 100%;
  width: 0; /* Populated by JS on scroll */
  background: var(--gradient-primary);
  transition: width var(--duration-normal) var(--ease-out);
}

.timeline-step {
  position: relative;
  z-index: 2;
  width: 11%;
  text-align: center;
  opacity: 0.5;
  transform: translateY(20px);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}
.timeline-step.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-step.active .timeline-node {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  scale: 1.15;
}

.timeline-node {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 4px solid var(--gray-200);
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--gray-500);
  margin: 0 auto var(--space-4);
  transition: all var(--duration-normal) var(--ease-emphasized);
}

.timeline-step h3 {
  font-size: var(--fs-small);
  margin-bottom: var(--space-1);
}
.timeline-step p {
  font-size: var(--fs-caption);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ==========================================================================
   TESTIMONIALS CAROUSEL
   ========================================================================== */
.carousel-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  padding: var(--space-4) 0;
}

.carousel-track {
  display: flex;
  transition: transform var(--duration-slow) var(--ease-emphasized);
  will-change: transform;
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  padding: 0 var(--space-4);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  border: var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
}

.testimonial-quote {
  font-size: var(--fs-h4);
  color: var(--gray-700);
  font-style: italic;
  line-height: var(--lh-body);
  margin-bottom: var(--space-8);
  font-weight: 500;
  position: relative;
  display: inline-block;
  max-width: 640px;
}
.testimonial-quote::before, .testimonial-quote::after {
  color: rgba(37, 99, 235, 0.1);
  font-size: 5rem;
  font-family: Georgia, serif;
  position: absolute;
}
.testimonial-quote::before {
  content: '“';
  top: -40px;
  left: -35px;
}
.testimonial-quote::after {
  content: '”';
  bottom: -90px;
  right: -35px;
}

.testimonial-rating {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  color: var(--warning);
}
.testimonial-rating svg {
  width: 20px;
  height: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}
.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  border: 3px solid var(--primary-500);
}
.testimonial-info {
  text-align: left;
}
.testimonial-name {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--gray-900);
}
.testimonial-company {
  font-size: var(--fs-caption);
  color: var(--gray-500);
}

/* Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: var(--border-light);
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
}
.carousel-btn:hover {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: var(--space-2);
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--gray-300);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}
.carousel-dot.active {
  width: 24px;
  background: var(--primary-500);
}

/* ==========================================================================
   TRUSTED BY (LOGO MARQUEE)
   ========================================================================== */
.marquee-container {
  overflow: hidden;
  width: 100%;
  padding: var(--space-4) 0;
  background: var(--gray-50);
  border-top: var(--border-light);
  border-bottom: var(--border-light);
  position: relative;
}
.marquee-container::before, .marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--gray-50) 0%, transparent 100%);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--gray-50) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: var(--space-16);
  width: max-content;
  animation: marquee-scroll 25s infinite linear;
}
.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-logo {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.75;
  filter: grayscale(1);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: default;
}
.marquee-logo:hover {
  opacity: 1;
  filter: grayscale(0);
  color: var(--gray-700);
}
.marquee-logo svg {
  width: 24px;
  height: 24px;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}
.faq-item.active {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-md);
}

.faq-trigger {
  width: 100%;
  padding: var(--space-6) var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
}
.faq-trigger h3 {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--gray-900);
  transition: color var(--duration-normal) var(--ease-out);
}
.faq-item.active .faq-trigger h3 {
  color: var(--primary-500);
}

.faq-icon {
  color: var(--gray-500);
  transition: transform var(--duration-normal) var(--ease-out),
              color var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-500);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-in-out);
}
.faq-text {
  padding: 0 var(--space-8) var(--space-6);
  font-size: var(--fs-small);
  color: var(--gray-500);
  line-height: var(--lh-body);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  gap: var(--space-12);
}

.contact-info {
  grid-column: span 5;
}
.contact-form-container {
  grid-column: span 7;
  background: var(--white);
  padding: var(--space-12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: var(--border-light);
}

.contact-subtitle {
  font-size: var(--fs-body);
  color: var(--gray-500);
  margin-bottom: var(--space-8);
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}
.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-md);
  color: var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-info h4 {
  font-size: var(--fs-small);
  margin-bottom: 4px;
}
.contact-detail-info p {
  font-size: var(--fs-caption);
  margin-bottom: 0;
  color: var(--gray-500);
}

.social-links {
  display: flex;
  gap: var(--space-3);
}
.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.social-link:hover {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
}

/* Premium Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}
.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-weight: 500;
  font-size: var(--fs-caption);
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-input {
  height: 56px;
  padding: 0 var(--space-4);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--gray-900);
  font-size: var(--fs-small);
  transition: all var(--duration-normal) var(--ease-out);
}
textarea.form-input {
  height: 160px;
  padding: var(--space-4);
  resize: none;
}
.form-input:hover {
  border-color: var(--gray-300);
}
.form-input:focus {
  border-color: var(--primary-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Form validation states */
.form-group.error .form-input {
  border-color: var(--danger);
  background: rgba(220, 38, 38, 0.01);
}
.form-group.success .form-input {
  border-color: var(--success);
  background: rgba(22, 163, 74, 0.01);
}
.validation-message {
  font-size: var(--fs-caption);
  color: var(--danger);
  margin-top: 4px;
  display: none;
}
.form-group.error .validation-message {
  display: block;
}

/* Honeypot field (hidden from users) */
.honey-field {
  display: none;
}

/* CAPTCHA readiness mockup spacing */
.captcha-container {
  margin-top: var(--space-4);
  font-size: var(--fs-caption);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding-top: var(--space-20);
  padding-bottom: var(--space-8);
  border-top: 1px solid var(--gray-800);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer-brand {
  grid-column: span 1.5;
}
.footer-brand .logo {
  color: var(--white);
  margin-bottom: var(--space-4);
}
.footer-brand p {
  color: var(--gray-300);
  font-size: var(--fs-caption);
  line-height: var(--lh-body);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links h4 {
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-links a {
  font-size: var(--fs-caption);
  color: var(--gray-300);
}
.footer-links a:hover {
  color: var(--primary-500);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-copy {
  font-size: var(--fs-caption);
  color: var(--gray-500);
}
.footer-legal {
  display: flex;
  gap: var(--space-4);
  list-style: none;
}
.footer-legal a {
  font-size: var(--fs-caption);
  color: var(--gray-500);
}
.footer-legal a:hover {
  color: var(--white);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   PORTFOLIO LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal) var(--ease-out);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform var(--duration-normal) var(--ease-emphasized);
}
.lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--gray-100);
  color: var(--gray-700);
  cursor: pointer;
  z-index: 10;
  transition: all var(--duration-normal) var(--ease-out);
}
.lightbox-close:hover {
  background: var(--danger);
  color: var(--white);
}

.lightbox-img-wrapper {
  width: 100%;
  height: 400px;
  overflow: hidden;
}
.lightbox-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-body {
  padding: var(--space-10);
}
.lightbox-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-2);
}
.lightbox-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-4);
}
.lightbox-desc {
  font-size: var(--fs-body);
  color: var(--gray-700);
  margin-bottom: var(--space-8);
}
.lightbox-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

/* ==========================================================================
   TOAST NOTIFICATION ALERT
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: var(--space-8);
  left: var(--space-8);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.toast {
  background: var(--white);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--primary-500);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transform: translateX(-150%);
  transition: transform var(--duration-normal) var(--ease-emphasized);
}
.toast.show {
  transform: translateX(0);
}
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }

.toast-icon {
  width: 24px;
  height: 24px;
}
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }

.toast-message {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--gray-700);
}

/* ==========================================================================
   RESPONSIVENESS MEDIA QUERIES
   ========================================================================== */

/* Tablet Portrait and down (Max width: 991px) */
@media (max-width: 991px) {
  :root {
    --space-30: var(--space-24); /* Section padding 96px */
  }

  .grid-12 {
    gap: var(--space-4);
  }

  /* Navigation */
  .nav-menu, .nav-container > .btn {
    display: none;
  }
  .hamburger {
    display: block;
  }

  /* Hero */
  .hero-section {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .hero-content {
    grid-column: span 12;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    grid-column: span 12;
    margin-top: var(--space-12);
  }

  /* About */
  .about-content {
    grid-column: span 12;
    text-align: center;
    margin-bottom: var(--space-8);
  }
  .about-cards {
    grid-column: span 12;
  }

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

  /* Portfolio & Stats */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  /* Before & After */
  .slider-container {
    height: 400px;
  }
  .slider-before img {
    width: 768px;
  }

  /* Case Studies */
  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Why Choose Us */
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Timeline (Make vertical on mobile/tablet) */
  .timeline-container {
    flex-direction: column;
    gap: var(--space-8);
    padding-left: var(--space-8);
  }
  .timeline-line {
    top: 0;
    left: 24px;
    width: 4px;
    height: 100%;
  }
  .timeline-line-progress {
    width: 100%;
    height: 0; /* populated vertically */
  }
  .timeline-step {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    transform: translateX(-20px);
  }
  .timeline-step.visible {
    transform: translateX(0);
  }
  .timeline-node {
    margin: 0;
    flex-shrink: 0;
  }

  /* Contact */
  .contact-info {
    grid-column: span 12;
    text-align: center;
  }
  .contact-details-list {
    align-items: center;
  }
  .contact-detail-card {
    text-align: left;
    width: 100%;
    max-width: 400px;
  }
  .social-links {
    justify-content: center;
  }
  .contact-form-container {
    grid-column: span 12;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand {
    grid-column: span 2;
    text-align: center;
    margin-bottom: var(--space-6);
  }
}

/* Mobile Screen Size (Max width: 600px) */
@media (max-width: 600px) {
  :root {
    --space-30: var(--space-16); /* Section padding 72px */
  }

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

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

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    grid-template-columns: 1fr;
  }

  /* Before & After */
  .slider-container {
    height: 300px;
  }
  .slider-before img {
    width: 480px;
  }

  /* Why Choose Us */
  .why-grid {
    grid-template-columns: 1fr;
  }

  /* Contact Form */
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group {
    grid-column: span 1;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .contact-form-container {
    padding: var(--space-6);
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links {
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   REDUCED MOTION STYLES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .floating-blob, .hero-halo {
    animation: none !important;
    display: none;
  }

  .preloader, .mobile-nav-drawer, .lightbox, .toast {
    transition: opacity var(--duration-fast) linear !important;
  }
}
