/**
 * Kayro Digital Studio - Main Stylesheet
 * Design System + Components
 */

/* ========================================
   CSS VARIABLES (Design Tokens)
   ======================================== */
:root {
  /* Colors */
  --color-primary: #0097B2;
  --color-primary-dark: #007A91;
  --color-accent: #FAD02C;
  --color-accent-dark: #E5BC1F;
  --color-dark: #020301;
  --color-dark-light: #1a1a1a;
  --color-white: #FFFFFF;
  --color-gray-100: #F8F9FA;
  --color-gray-200: #E9ECEF;
  --color-gray-300: #DEE2E6;
  --color-gray-400: #CED4DA;
  --color-gray-500: #ADB5BD;
  --color-gray-600: #6C757D;
  --color-gray-700: #495057;
  --color-gray-800: #343A40;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders & Shadows */
  --border-radius-sm: 0.375rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px rgba(0, 151, 178, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 300ms ease;
  --transition-slow: 500ms ease;

  /* Layout */
  --container-max: 1280px;
  --header-height: 80px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

@media (max-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
  }

  h2 {
    font-size: var(--font-size-3xl);
  }

  h3 {
    font-size: var(--font-size-xl);
  }
}

.text-primary {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-gray-600);
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section--gray {
  background-color: var(--color-gray-100);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section__subtitle {
  color: var(--color-gray-600);
  font-size: var(--font-size-lg);
  margin-top: var(--space-4);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-gray-200);
  transition: all var(--transition);
}

.header.scrolled {
  --header-height: 64px;
  height: var(--header-height);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__list {
  display: flex;
  gap: var(--space-6);
}

.nav__link {
  font-weight: 500;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: var(--space-2) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: var(--space-2);
  margin-left: var(--space-4);
  padding-left: var(--space-4);
  border-left: 1px solid var(--color-gray-300);
}

.lang-switcher__btn {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--border-radius-sm);
  color: var(--color-gray-600);
  transition: all var(--transition-fast);
}

.lang-switcher__btn:hover,
.lang-switcher__btn.active {
  color: var(--color-primary);
  background: rgba(0, 151, 178, 0.1);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  /* Ensure header matches menu background when open */
  body.menu-open .header {
    background: var(--color-white) !important;
    backdrop-filter: none;
    border-bottom-color: var(--color-gray-200);
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-8);
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .header__nav.open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    gap: var(--space-4);
    width: 100%;
  }

  .nav__link {
    font-size: var(--font-size-lg);
    display: block;
    padding: var(--space-4);
  }

  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-gray-300);
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 100%);
  padding-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(0, 151, 178, 0.15) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(250, 208, 44, 0.1) 0%, transparent 70%);
  animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-white);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero__title span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-gray-400);
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* 3D Floating Element */
.hero__visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  display: none;
}

@media (min-width: 1024px) {
  .hero__visual {
    display: block;
  }
}

.hero__shape {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-2xl);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  opacity: 0.8;
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-glow);
}

.hero__shape:nth-child(2) {
  transform: rotate(15deg) scale(0.9);
  animation-delay: -2s;
  opacity: 0.5;
}

.hero__shape:nth-child(3) {
  transform: rotate(-10deg) scale(0.8);
  animation-delay: -4s;
  opacity: 0.3;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-20px) rotate(5deg);
  }

  66% {
    transform: translateY(10px) rotate(-5deg);
  }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-weight: 600;
  font-size: var(--font-size-sm);
  border-radius: var(--border-radius);
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

.btn--primary:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}


/* ========================================
   HERO ENHANCEMENTS (Moved from hero.php)
   ======================================== */

/* Particles (WOW Effect) */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: rise 15s infinite linear;
}

.particle:nth-child(1) {
  width: 5px;
  height: 5px;
  left: 10%;
  animation-duration: 10s;
  animation-delay: 0s;
  opacity: 0.5;
}

.particle:nth-child(2) {
  width: 8px;
  height: 8px;
  left: 20%;
  animation-duration: 18s;
  animation-delay: -5s;
  background: rgba(0, 151, 178, 0.3);
}

.particle:nth-child(3) {
  width: 4px;
  height: 4px;
  left: 35%;
  animation-duration: 12s;
  animation-delay: -2s;
  opacity: 0.3;
}

.particle:nth-child(4) {
  width: 6px;
  height: 6px;
  left: 50%;
  animation-duration: 20s;
  animation-delay: -8s;
  background: rgba(250, 208, 44, 0.3);
}

.particle:nth-child(5) {
  width: 3px;
  height: 3px;
  left: 65%;
  animation-duration: 14s;
  animation-delay: -4s;
  opacity: 0.4;
}

.particle:nth-child(6) {
  width: 7px;
  height: 7px;
  left: 80%;
  animation-duration: 22s;
  animation-delay: -10s;
  background: rgba(0, 151, 178, 0.2);
}

.particle:nth-child(7) {
  width: 5px;
  height: 5px;
  left: 90%;
  animation-duration: 16s;
  animation-delay: -1s;
  opacity: 0.5;
}

.particle:nth-child(8) {
  width: 4px;
  height: 4px;
  left: 15%;
  animation-duration: 15s;
  animation-delay: -7s;
  background: rgba(250, 208, 44, 0.2);
}

.particle:nth-child(9) {
  width: 6px;
  height: 6px;
  left: 25%;
  animation-duration: 19s;
  animation-delay: -2s;
  opacity: 0.3;
}

.particle:nth-child(10) {
  width: 3px;
  height: 3px;
  left: 45%;
  animation-duration: 13s;
  animation-delay: -11s;
  background: rgba(0, 151, 178, 0.3);
}

.particle:nth-child(11) {
  width: 8px;
  height: 8px;
  left: 55%;
  animation-duration: 24s;
  animation-delay: -5s;
  opacity: 0.2;
}

.particle:nth-child(12) {
  width: 5px;
  height: 5px;
  left: 70%;
  animation-duration: 11s;
  animation-delay: -15s;
  background: rgba(250, 208, 44, 0.4);
}

.particle:nth-child(13) {
  width: 4px;
  height: 4px;
  left: 85%;
  animation-duration: 17s;
  animation-delay: -3s;
  opacity: 0.4;
}

.particle:nth-child(14) {
  width: 6px;
  height: 6px;
  left: 5%;
  animation-duration: 21s;
  animation-delay: -9s;
  background: rgba(0, 151, 178, 0.2);
}

.particle:nth-child(15) {
  width: 3px;
  height: 3px;
  left: 95%;
  animation-duration: 16s;
  animation-delay: -6s;
  opacity: 0.5;
}
}

@keyframes rise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  20% {
    opacity: 0.5;
  }

  80% {
    opacity: 0.2;
  }

  100% {
    transform: translateY(-100vh) translateX(20px);
    opacity: 0;
  }
}

/* Hero Badges */
.hero__badges {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease forwards;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  color: var(--color-gray-300);
  backdrop-filter: blur(10px);
}

.hero__badge svg {
  color: var(--color-primary);
}

/* Enhanced Hero Title */
.hero__title .gradient-text {
  display: inline-block;
  animation: gradient-shift 4s ease infinite;
  background-size: 200% auto;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: fadeInUp 1s ease 0.8s forwards;
  opacity: 0;
}

.hero__scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }

  50% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }
}

/* Floating Icons */
.hero__floating-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  animation: float-icon 4s ease-in-out infinite;
}

.hero__floating-icon--1 {
  top: 10%;
  right: 20%;
  animation-delay: 0s;
}

.hero__floating-icon--2 {
  top: 50%;
  right: 10%;
  animation-delay: -1.5s;
  background: rgba(0, 151, 178, 0.2);
}

.hero__floating-icon--3 {
  bottom: 20%;
  right: 25%;
  animation-delay: -3s;
  background: rgba(250, 208, 44, 0.2);
}

@keyframes float-icon {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-15px) rotate(5deg);
  }

  50% {
    transform: translateY(-5px) rotate(-3deg);
  }

  75% {
    transform: translateY(-20px) rotate(3deg);
  }
}

/* Enhanced shapes */
.hero__shape--1 {
  animation: float 6s ease-in-out infinite, glow-pulse 3s ease-in-out infinite alternate;
}

.hero__shape--2 {
  transform: rotate(15deg) scale(0.9);
  animation: float 6s ease-in-out infinite -2s;
  opacity: 0.5;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
}

.hero__shape--3 {
  transform: rotate(-10deg) scale(0.8);
  animation: float 6s ease-in-out infinite -4s;
  opacity: 0.3;
}

@keyframes glow-pulse {
  from {
    box-shadow: 0 0 20px rgba(0, 151, 178, 0.2);
  }

  to {
    box-shadow: 0 0 40px rgba(0, 151, 178, 0.4);
  }
}

@media (max-width: 768px) {
  .hero__badges {
    justify-content: center;
  }

  .hero__scroll {
    display: none;
  }

  .hero__content {
    text-align: center;
  }

  .hero__cta {
    justify-content: center;
  }
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
  transform: translateY(-2px);
}

.btn--outline:active {
  transform: translateY(0);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-dark);
}

.btn--accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

/* ========================================
   SERVICES
   ======================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.service-card {
  padding: var(--space-8);
  background: var(--color-white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--color-gray-200);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-white);
}

.service-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}

.service-card__desc {
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* ========================================
   PORTFOLIO
   ======================================== */
.portfolio__filters {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--space-3) var(--space-6);
  font-weight: 500;
  font-size: var(--font-size-sm);
  border-radius: var(--border-radius);
  color: var(--color-gray-600);
  background: var(--color-gray-100);
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
}

.portfolio-card {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-gray-200);
}

.portfolio-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card__image {
  transform: scale(1.05);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 3, 1, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__category {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.portfolio-card__title {
  color: var(--color-white);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.portfolio-card__year {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
}

/* ========================================
   WHY KAYRO
   ======================================== */
.why__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 768px) {
  .why__content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.why__intro {
  font-size: var(--font-size-xl);
  color: var(--color-gray-300);
  line-height: 1.7;
}

.why__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.why__point {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.why__point-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why__point-icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-dark);
}

.why__point-text {
  font-size: var(--font-size-lg);
  color: var(--color-white);
  line-height: 1.5;
}

/* ========================================
   WORKFLOW
   ======================================== */
.workflow__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .workflow__steps {
    grid-template-columns: 1fr;
  }
}

.workflow-step {
  text-align: center;
  padding: var(--space-8);
}

.workflow-step__number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-white);
  margin: 0 auto var(--space-6);
}

.workflow-step__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}

.workflow-step__desc {
  color: var(--color-gray-600);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0, 151, 178, 0.2) 0%, transparent 50%);
}

.cta-section__content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.cta-section__text {
  font-size: var(--font-size-lg);
  color: var(--color-gray-400);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

/* ========================================
   CONTACT
   ======================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-weight: 500;
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-4);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Honeypot */
.form-group--honeypot {
  position: absolute;
  left: -9999px;
}

.form-message {
  padding: var(--space-4);
  border-radius: var(--border-radius);
  font-weight: 500;
}

.form-message--success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.form-message--error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.contact-info__text h4 {
  margin-bottom: var(--space-1);
}

.contact-info__text a {
  color: var(--color-primary);
}

.contact-info__text a:hover {
  text-decoration: underline;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-dark);
  color: var(--color-gray-400);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand img {
  height: 32px;
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-size: var(--font-size-sm);
  max-width: 280px;
}

.footer h5 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  width: 40px;
  height: 40px;
  background: var(--color-dark-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-primary);
}

.footer__social svg {
  width: 20px;
  height: 20px;
  color: var(--color-white);
}

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-dark-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: var(--font-size-sm);
}

.footer__lang {
  display: flex;
  gap: var(--space-4);
}

.footer__lang a {
  font-size: var(--font-size-sm);
}

.footer__lang a:hover {
  color: var(--color-primary);
}

/* ========================================
   404 PAGE
   ======================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8);
}

.error-page__code {
  font-size: 8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.error-page h1 {
  margin-bottom: var(--space-4);
}

.error-page p {
  color: var(--color-gray-600);
  margin-bottom: var(--space-8);
}

/* ========================================
   UTILITIES
   ======================================== */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn--full {
  width: 100%;
}

/* ========================================
   3D EFFECTS & ANIMATIONS
   ======================================== */

/* 3D Perspective Container */
.perspective-container {
  perspective: 1000px;
}

/* 3D Tilt Effect for Cards */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.tilt-card:hover {
  transform: rotateX(5deg) rotateY(-5deg) scale(1.02);
}

/* Enhanced Service Cards with 3D */
.service-card {
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 151, 178, 0.1), rgba(250, 208, 44, 0.1));
  border-radius: var(--border-radius-xl);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-12px) rotateX(3deg) scale(1.02);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(0, 151, 178, 0.15);
}

.service-card__icon {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}

.service-card:hover .service-card__icon {
  transform: translateZ(30px) rotateY(10deg) scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 151, 178, 0.4);
}

/* Portfolio Card 3D Effect */
.portfolio-card {
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card:hover {
  transform: translateY(-10px) rotateX(5deg) scale(1.03);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.portfolio-card__overlay {
  transform-style: preserve-3d;
}

.portfolio-card:hover .portfolio-card__title {
  transform: translateZ(20px);
}

/* Glassmorphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glow Effects */
.glow {
  animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from {
    box-shadow: 0 0 20px rgba(0, 151, 178, 0.3);
  }

  to {
    box-shadow: 0 0 40px rgba(0, 151, 178, 0.6), 0 0 60px rgba(0, 151, 178, 0.3);
  }
}

/* Text Gradient Animation */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-primary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Floating Animation */
.float {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Scale In Animation */
.scale-in {
  animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide Up Animation */
.slide-up {
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button 3D Effect */
.btn--primary,
.btn--accent {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--primary::before,
.btn--accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn--primary:hover::before,
.btn--accent:hover::before {
  left: 100%;
}

.btn--primary:hover {
  box-shadow:
    0 10px 30px rgba(0, 151, 178, 0.4),
    0 0 20px rgba(0, 151, 178, 0.3);
}

/* Workflow Step 3D */
.workflow-step {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.workflow-step:hover {
  transform: translateY(-8px);
}

.workflow-step__number {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.workflow-step:hover .workflow-step__number {
  transform: scale(1.1) rotateY(10deg);
  box-shadow: 0 15px 40px rgba(0, 151, 178, 0.4);
}

/* Why Point Hover */
.why__point {
  transition: all 0.3s ease;
  padding: var(--space-3);
  border-radius: var(--border-radius-lg);
}

.why__point:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(10px);
}

/* Hero Enhancements */
.hero__title {
  animation: fadeInUp 1s ease forwards;
}

.hero__subtitle {
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero__cta {
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Particle Effect Background */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.5;
  animation: particle-float 15s infinite;
}

.particle:nth-child(2) {
  left: 20%;
  animation-delay: -2s;
  background: var(--color-accent);
}

.particle:nth-child(3) {
  left: 40%;
  animation-delay: -4s;
}

.particle:nth-child(4) {
  left: 60%;
  animation-delay: -6s;
  background: var(--color-accent);
}

.particle:nth-child(5) {
  left: 80%;
  animation-delay: -8s;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Icon Rotation on Hover */
.contact-info__icon {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-info__item:hover .contact-info__icon {
  transform: scale(1.1) rotateY(15deg);
}

/* Smooth Underline Animation */
.underline-hover {
  position: relative;
}

.underline-hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.underline-hover:hover::after {
  width: 100%;
}

/* Magnetic Button Effect Container */
.magnetic {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Stats Counter Animation */
.stat-number {
  display: inline-block;
}

/* Card Shine Effect */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 100%);
  transform: rotate(30deg);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }

  20%,
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

/* ========================================
   MISSING CLASSES - PHASE 1 ADDITIONS
   ======================================== */

/* Magnetic Effect for Premium Interactions */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic:hover {
  transform: translateY(-4px);
}

/* Glow Effect */
.glow {
  position: relative;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: var(--shadow-glow);
  }

  50% {
    box-shadow: 0 0 40px rgba(0, 151, 178, 0.5);
  }
}

/* Hero Floating Icons */
.hero__floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
  opacity: 0.8;
}

.hero__floating-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.hero__floating-icon--1 {
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.hero__floating-icon--2 {
  top: 60%;
  right: 5%;
  animation-delay: -2s;
}

.hero__floating-icon--3 {
  top: 40%;
  right: 15%;
  animation-delay: -4s;
}

@media (max-width: 1024px) {
  .hero__floating-icon {
    display: none;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}


/* Scroll Indicator */
.hero__scroll {
  animation: fadeInUp 0.8s ease 0.8s forwards;
  opacity: 0;
  cursor: pointer;
  color: var(--color-gray-400);
}

.hero__scroll-text {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.hero__scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {

  0%,
  100% {
    transform: scaleY(0.5);
    opacity: 0.3;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */

.portfolio {
  padding: var(--space-20) 0;
}

.portfolio__filters {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--color-gray-300);
  background: transparent;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
  transition: all var(--transition);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .portfolio__grid {
    grid-template-columns: 1fr;
  }
}

/* Portfolio Cards */
.portfolio-card {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  opacity: 1;
  transform: scale(1);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.portfolio-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-gray-100);
}

.portfolio-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card__image img {
  transform: scale(1.05);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__content {
  padding: var(--space-6);
}

.portfolio-card__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.portfolio-card__category {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: rgba(0, 151, 178, 0.1);
  color: var(--color-primary);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.portfolio-card__desc {
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* ========================================
   DARK MODE OVERRIDES
   ======================================== */

/* Hero Buttons - Fix Visibility in Dark Mode */
[data-theme="dark"] .hero .btn--outline {
  border-color: #fff !important;
  color: #fff !important;
}

[data-theme="dark"] .hero .btn--outline:hover {
  background: #fff !important;
  color: #000 !important;
}

/* Portfolio Dark Mode */
[data-theme="dark"] .portfolio-card {
  background: var(--color-dark-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .portfolio-card__desc {
  color: var(--color-gray-400);
}

[data-theme="dark"] .filter-btn {
  color: var(--color-gray-300);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .filter-btn.active,
[data-theme="dark"] .filter-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ========================================
   PHASE 2: FORM VALIDATION & LOADING STATES
   ======================================== */

/* Form Messages */
.form-message {
  padding: var(--space-4);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-6);
  font-size: var(--font-size-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: slideDown 0.3s ease;
}

.form-message.hidden {
  display: none;
}

.form-message--success {
  background: rgba(52, 168, 83, 0.1);
  color: #34A853;
  border: 1px solid rgba(52, 168, 83, 0.3);
}

.form-message--success::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #34A853;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.form-message--error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.form-message--error::before {
  content: '✕';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Loading State */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
  pointer-events: none;
}

.btn.loading {
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn--primary.loading::after {
  border-color: white;
  border-right-color: transparent;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Enhanced Input Focus States */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.1);
  outline: none;
}

/* Dark Mode Form Elements */
[data-theme="dark"] .form-message--success {
  background: rgba(52, 168, 83, 0.15);
  border-color: rgba(52, 168, 83, 0.4);
}

[data-theme="dark"] .form-message--error {
  background: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.4);
}

/* ========================================
   PHASE 3: SERVICES PAGE STYLES (FROM INLINE)
   ======================================== */

.services-hero {
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-16);
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a1a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(0, 151, 178, 0.1) 0%, transparent 70%);
}

.services-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
  position: relative;
}

.services-hero .section__subtitle {
  color: var(--color-gray-400);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.service-detail {
  padding: var(--space-20) 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.service-detail:nth-child(even) {
  background: var(--color-gray-100);
}

.service-detail__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.service-detail:nth-child(even) .service-detail__inner {
  direction: rtl;
}

.service-detail:nth-child(even) .service-detail__inner>* {
  direction: ltr;
}

@media (max-width: 768px) {

  .service-detail__inner,
  .service-detail:nth-child(even) .service-detail__inner {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.service-detail__content h2 {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.service-detail__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-detail__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.service-detail__desc {
  color: var(--color-gray-600);
  font-size: var(--font-size-lg);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.service-detail__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.service-detail__feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
}

.service-detail__feature svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.service-detail__visual {
  background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
  border-radius: var(--border-radius-xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-6);
}

.service-detail__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-detail:nth-child(even) .service-detail__visual {
  background: var(--color-white);
}

.service-detail__visual-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
}

.service-detail__visual-icon svg {
  width: 48px;
  height: 48px;
  color: var(--color-white);
}

.process-section {
  padding: var(--space-20) 0;
  background: var(--color-dark);
}

.process-section h2 {
  color: var(--color-white);
  text-align: center;
  margin-bottom: var(--space-12);
}

.process-steps {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.process-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
}

.process-step__number {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-white);
  font-size: var(--font-size-sm);
}

.process-step__label {
  color: var(--color-gray-300);
  font-weight: 500;
}

.process-step__arrow {
  color: var(--color-gray-600);
  margin-left: var(--space-4);
}

@media (max-width: 768px) {
  .process-steps {
    flex-direction: column;
    align-items: center;
  }

  .process-step__arrow {
    display: none;
  }
}

/* ========================================
   PHASE 4: RESPONSIVE & MOBILE ENHANCEMENTS
   ======================================== */

/* Mobile Typography Scaling */
@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.2;
  }

  .section__header h2 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .service-card__title,
  .portfolio-card__title {
    font-size: var(--font-size-lg);
  }
}

/* Touch-Friendly Buttons on Mobile */
@media (max-width: 768px) {
  .btn {
    min-height: 48px;
    /* Minimum touch target size */
    padding: var(--space-4) var(--space-6);
  }

  .filter-btn {
    min-height: 44px;
  }

  /* Larger tap targets for mobile menu */
  .nav__link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

/* Improved Mobile Spacing */
@media (max-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }

  .portfolio__grid,
  .services__grid {
    gap: var(--space-6);
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Remove Animations on Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}