/* ============================================
   CSS VARIABLES - COLOR TOKENS
   ============================================ */

:root[data-theme="dark"] {
  /* Background Tokens */
  --bg-primary: #0B0F1A;
  --bg-secondary: #111827;
  --bg-tertiary: #161E2E;
  --bg-glass: rgba(255, 255, 255, 0.06);

  /* Text Tokens */
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-disabled: #4B5563;

  /* Brand / Accent Tokens */
  --brand-primary: #3B82F6;
  --brand-secondary: #8B5CF6;
  --brand-accent: #22D3EE;
  --brand-gradient: linear-gradient(135deg, #3B82F6, #8B5CF6);

  /* Borders & Shadows */
  --border-default: #1F2937;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.35);

  /* State Colors */
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #38BDF8;
}

:root[data-theme="light"] {
  /* Background Tokens */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #EEF2F7;
  --bg-glass: rgba(255, 255, 255, 0.7);

  /* Text Tokens */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-disabled: #94A3B8;

  /* Brand / Accent Tokens */
  --brand-primary: #2563EB;
  --brand-secondary: #7C3AED;
  --brand-accent: #06B6D4;
  --brand-gradient: linear-gradient(135deg, #2563EB, #7C3AED);

  /* Borders & Shadows */
  --border-default: #E2E8F0;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 18px rgba(37, 99, 235, 0.25);

  /* State Colors */
  --success: #16A34A;
  --warning: #D97706;
  --error: #DC2626;
  --info: #0284C7;
}

/* ============================================
   FONT DISPLAY OPTIMIZATION
   ============================================ */
/* Override Font Awesome fonts to use font-display: swap for better performance */

@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2"),
       url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.ttf") format("truetype");
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2"),
       url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.ttf") format("truetype");
}

@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.woff2") format("woff2"),
       url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.ttf") format("truetype");
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-primary);
  color: var(--text-primary);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  color: var(--text-primary);
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* Screen reader only text - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Fluid container for home page */
body>.container,
#home .container,
.hero .container,
.about .container,
.services .container,
.portfolio .container,
.clients .container,
.testimonials .container,
.blog .container {
  max-width: 100%;
  padding: 0 40px;
}

@media (max-width: 768px) {

  body>.container,
  #home .container,
  .hero .container,
  .about .container,
  .services .container,
  .portfolio .container,
  .clients .container,
  .testimonials .container,
  .blog .container,
  .contact .container {
    padding: 0 20px;
  }
}

.section {
  padding: 100px 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
  opacity: 0.5;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-default);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  position: relative;
  transition: transform 0.3s ease;
}

.nav__logo:hover {
  transform: scale(1.1);
}

.logo-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav__logo:hover .logo-text::after {
  transform: scaleX(1);
}

.nav__menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link.active {
  color: var(--brand-primary);
  font-weight: 600;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  border-color: var(--brand-primary);
}

.nav__toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.btn--primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn--primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn--primary:active {
  transform: translateY(-1px);
}

.btn--glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  }

  50% {
    box-shadow: 0 4px 25px rgba(59, 130, 246, 0.6);
  }
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-default);
}

.btn--secondary:hover {
  border-color: var(--brand-primary);
  background: var(--bg-tertiary);
}

.btn--outline {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

.btn--outline:hover {
  background: var(--brand-primary);
  color: white;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
  animation: particles-float 15s ease-in-out infinite;
}

@keyframes particles-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

/* Gradient Orbs */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orb-float 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent);
  bottom: 20%;
  right: 15%;
  animation-delay: -7s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent);
  top: 50%;
  right: 30%;
  animation-delay: -14s;
}

@keyframes orb-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(50px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  animation: fade-in-up 1s ease-out;
  position: relative;
  z-index: 10;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid var(--border-default);
  margin-bottom: 2rem;
  animation: fade-in-up 1s ease-out 0.2s both;
}

.badge-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-text-line {
  display: inline-block;
  animation: fade-in-up 0.8s ease-out both;
}

.hero-text-line:nth-child(1) {
  animation-delay: 0.3s;
}

.hero-text-line:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-text-line:nth-child(3) {
  animation-delay: 0.7s;
}

.subtitle-highlight {
  color: var(--brand-primary);
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.subtitle-highlight:hover {
  color: var(--brand-secondary);
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fade-in-up 1s ease-out 0.9s both;
}

.hero__cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.hero__cta .btn i {
  transition: transform 0.3s ease;
}

.hero__cta .btn:hover i {
  transform: translateX(5px);
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  animation: fade-in-up 1s ease-out 1.1s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  animation: fade-in-up 1s ease-out 1.3s both;
}

.scroll-indicator {
  width: 30px;
  height: 50px;
  border: 2px solid var(--border-default);
  border-radius: 25px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  position: relative;
  overflow: hidden;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  width: 4px;
  height: 8px;
  background: var(--brand-primary);
  border-radius: 2px;
  animation: scroll-mouse 2s ease-in-out infinite;
}

.scroll-indicator i {
  animation: bounce 2s infinite;
  margin-top: 20px;
}

@keyframes scroll-mouse {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-tertiary);
  border-radius: 20px;
  color: var(--brand-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.section__tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--brand-gradient);
  opacity: 0.1;
  transition: left 0.5s ease;
}

.section__tag:hover::before {
  left: 100%;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about__roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.role-card {
  padding: 2rem;
  background: var(--bg-tertiary);
  border-radius: 16px;
  border: 1px solid var(--border-default);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.role-card:hover::before {
  left: 100%;
}

.role-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand-primary);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.role-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  transition: transform 0.3s ease;
}

.role-card:hover .role-card__icon {
  transform: rotate(5deg) scale(1.1);
}

.role-card__icon i {
  font-size: 1.5rem;
  color: white;
}

.role-card__shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.role-card:hover .role-card__shine {
  opacity: 1;
  animation: shine-sweep 1s ease;
}

@keyframes shine-sweep {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.role-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.role-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.about__skills {
  background: var(--bg-tertiary);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-default);
}

.skills__title {
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
  text-align: center;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border-default);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-primary);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
  background: var(--bg-tertiary);
}

.skill-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.skill-card__icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.skill-card:hover .skill-card__icon {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.skill-card__icon i {
  color: white;
  font-size: 1.25rem;
}

.skill-card__info {
  flex: 1;
  min-width: 0;
}

.skill-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.skill-card__subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.skill-card__percent {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: 'Space Grotesk', sans-serif;
}

.percent-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.percent-symbol {
  font-size: 1.125rem;
  color: var(--brand-primary);
  font-weight: 600;
}

.skill-card__progress {
  margin-top: 1rem;
}

.skill-card__bar {
  height: 10px;
  background: var(--bg-primary);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-card__fill {
  height: 100%;
  background: var(--brand-gradient);
  border-radius: 10px;
  position: relative;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.skill-card__fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.skill-card__glow {
  height: 100%;
  width: 0;
  background: radial-gradient(circle at center,
      rgba(59, 130, 246, 0.4),
      transparent);
  border-radius: 10px;
  position: absolute;
  top: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: blur(8px);
  opacity: 0;
}

.skill-card:hover .skill-card__glow {
  opacity: 1;
}

/* Animate progress bars when in view */
.skill-card.animate .skill-card__fill {
  width: var(--skill-width, 0%);
}

.skill-card.animate .skill-card__glow {
  width: var(--skill-width, 0%);
}

/* Responsive adjustments */
@media (max-width: 968px) {
  .skills__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 576px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }

  .skill-card__header {
    flex-wrap: wrap;
  }

  .skill-card__percent {
    width: 100%;
    margin-top: 0.5rem;
  }
}

.technologies {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.technologies::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
  opacity: 0.3;
}

.tech-stack {
  margin-top: 3rem;
}

.tech-stack__subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  text-align: left;
  position: relative;
  padding-bottom: 0.75rem;
}

.tech-stack__subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.tech-stack h4 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  text-align: center;
}

.tech-stack__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.tech-stack__main {
  position: sticky;
  top: 100px;
  background: var(--bg-tertiary);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  border: 2px solid var(--border-default);
}

.tech-stack__main .tech-stack__subtitle {
  margin-bottom: 2.5rem;
}

.tech-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 2px solid var(--border-default);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 110px;
  position: relative;
  overflow: hidden;
}

.tech-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tech-icon:hover::before {
  transform: scaleX(1);
}

.tech-icon:hover {
  transform: translateY(-8px) scale(1.05);
  background: var(--bg-tertiary);
  border-color: var(--brand-primary);
  border-width: 3px;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.25);
}

.tech-icon i {
  font-size: 2rem;
  color: var(--brand-primary);
  transition: all 0.4s ease;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.tech-icon:hover i {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.4));
}

.tech-icon span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-align: center;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-icon:hover span {
  color: var(--brand-primary);
}

.tech-stack__categories {
  display: flex;
  flex-direction: column;
}

.tech-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tech-category {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-tertiary);
  border-radius: 20px;
  border: 2px solid var(--border-default);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tech-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tech-category:hover::before {
  transform: scaleX(1);
}

.tech-category:hover {
  border-color: var(--brand-primary);
  border-width: 3px;
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
  background: var(--bg-secondary);
}

.tech-category__icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 14px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tech-category:hover .tech-category__icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.tech-category__icon i {
  color: white;
  font-size: 1.25rem;
  transition: transform 0.4s ease;
}

.tech-category:hover .tech-category__icon i {
  transform: scale(1.1);
}

.tech-category__content {
  flex: 1;
}

.tech-category h5 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  transition: color 0.3s ease;
}

.tech-category:hover h5 {
  color: var(--brand-primary);
}

.tech-category p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  transition: color 0.3s ease;
}

.tech-category:hover p {
  color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .tech-icons {
    grid-template-columns: repeat(4, 1fr);
  }

  .tech-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 968px) {
  .tech-stack__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tech-stack__main {
    position: static;
    padding: 2rem 1.75rem;
  }

  .tech-stack__main .tech-stack__subtitle {
    margin-bottom: 2rem;
  }

  .tech-icons {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 0.75rem;
  }

  .tech-icon {
    padding: 1rem 0.5rem;
    min-height: 100px;
  }

  .tech-icon i {
    font-size: 1.75rem;
  }

  .tech-categories-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .tech-category {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .tech-icons {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
  }

  .tech-icon {
    padding: 0.875rem 0.5rem;
    min-height: 90px;
  }

  .tech-icon i {
    font-size: 1.5rem;
  }

  .tech-icon span {
    font-size: 0.75rem;
  }

  .tech-category {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }

  .tech-category__icon {
    margin: 0 auto;
    width: 45px;
    height: 45px;
  }

  .tech-category__icon i {
    font-size: 1.125rem;
  }
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--bg-tertiary);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-default);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.team-card:hover::before {
  transform: scaleX(1);
}

.team-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-card:hover::after {
  opacity: 1;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-primary);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.1);
  background: var(--bg-secondary);
}

.team-card__image {
  position: relative;
  margin-bottom: 1.5rem;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin: 0 auto;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
  border: 4px solid var(--bg-tertiary);
}

.team-card:hover .team-avatar {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4);
  border-color: var(--brand-primary);
}

.team-avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--brand-gradient);
  background-clip: padding-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: rotate-border 3s linear infinite paused;
}

.team-card:hover .team-avatar::after {
  opacity: 1;
  animation-play-state: running;
}

@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.team-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.team-card__name {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.team-card__role {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-card__bio {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.team-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: auto;
}

.skill-tag {
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.team-card:hover .skill-tag {
  background: var(--bg-tertiary);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-tertiary);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border-default);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  width: 300px;
  height: 300px;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.1);
  border-color: var(--brand-primary);
}

.service-card__icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.service-card:hover .service-card__icon {
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.service-card__icon i {
  font-size: 1.75rem;
  color: white;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card__icon i {
  transform: scale(1.1);
}

.service-card__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card__description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio__filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--brand-gradient);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  width: 200px;
  height: 200px;
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 4;
}

.portfolio-item:hover::before {
  transform: scaleX(1);
}

.portfolio-item__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-item__badge {
  transform: scale(1.1) rotate(5deg);
}

.portfolio-item__badge i {
  color: white;
  font-size: 1.25rem;
}

.portfolio-item__image {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.portfolio-item__gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-item__gradient {
  opacity: 1;
}

.portfolio-item__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(11, 15, 26, 0.98), rgba(11, 15, 26, 0.85), rgba(11, 15, 26, 0.5), transparent);
  backdrop-filter: blur(12px);
  z-index: 2;
  transition: all 0.4s ease;
}

:root[data-theme="light"] .portfolio-item__info {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.5), transparent);
}

.portfolio-item:hover .portfolio-item__info {
  opacity: 0;
  transform: translateY(15px);
}

.portfolio-item__category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brand-gradient);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.portfolio-item__meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.portfolio-item__tech {
  padding: 3px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.portfolio-item:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 30px 60px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(59, 130, 246, 0.1);
  border-color: var(--brand-primary);
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: block;
}

.portfolio-item:hover .portfolio-placeholder {
  opacity: 0.8;
  transform: scale(1.1);
}

.portfolio-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 15, 26, 0.95), rgba(59, 130, 246, 0.1));
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.4s ease;
  padding: 2rem;
  text-align: center;
  z-index: 3;
}

:root[data-theme="light"] .portfolio-item__overlay {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(37, 99, 235, 0.1));
}

.portfolio-item:hover .portfolio-item__overlay {
  opacity: 1;
}

.portfolio-item__overlay::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--brand-primary);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-item__overlay::before {
  opacity: 1;
  transform: scale(1);
}

.portfolio-item__overlay::after {
  content: '→';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 1.25rem;
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s ease 0.15s;
}

.portfolio-item:hover .portfolio-item__overlay::after {
  opacity: 1;
  transform: scale(1);
}

.portfolio-item__title {
  font-size: 1.375rem;
  margin-bottom: 0;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

.portfolio-item__category {
  color: var(--brand-primary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.portfolio-item__overlay-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.portfolio-item__overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.portfolio-item__overlay-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.portfolio-item__description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.portfolio-item__tech-stack {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tech-badge {
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.portfolio-item__overlay .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.portfolio-item__overlay .btn i {
  transition: transform 0.3s ease;
}

.portfolio-item__overlay .btn:hover i {
  transform: translateX(3px);
}

/* ============================================
   PORTFOLIO MODAL
   ============================================ */

.portfolio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  overflow-y: auto;
}

.portfolio-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.portfolio-modal__content {
  background: var(--bg-secondary);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  position: relative;
  border: 1px solid var(--border-default);
}

.portfolio-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.portfolio-modal__close:hover {
  background: var(--brand-primary);
}

.portfolio-modal__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

.portfolio-modal__image {
  aspect-ratio: 16/10;
  background: var(--bg-tertiary);
  border-radius: 12px;
  overflow: hidden;
}

.portfolio-modal__info h2 {
  margin-bottom: 1rem;
}

.portfolio-modal__description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.portfolio-modal__tech,
.portfolio-modal__outcomes {
  margin-bottom: 1.5rem;
}

.portfolio-modal__tech h4,
.portfolio-modal__outcomes h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 4px 12px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.portfolio-modal__outcomes ul {
  list-style: none;
  padding-left: 0;
}

.portfolio-modal__outcomes li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.portfolio-modal__outcomes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
}

/* ============================================
   CLIENTS SECTION
   ============================================ */

.clients__marquee {
  overflow: hidden;
  position: relative;
}

.clients__track {
  display: flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  min-width: 200px;
  height: 100px;
  background: var(--bg-tertiary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  border: 1px solid var(--border-default);
  filter: grayscale(100%);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.client-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.client-logo:hover::before {
  opacity: 0.1;
}

.client-logo:hover {
  filter: grayscale(0%);
  color: var(--text-primary);
  border-color: var(--brand-primary);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.client-logo:hover img {
  filter: grayscale(0%);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials__carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-tertiary);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid var(--border-default);
  display: none;
  animation: fade-in 0.5s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--brand-gradient);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease;
}

.testimonial-card.active {
  display: block;
}

.testimonial-card.active::before {
  transform: scaleY(1);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.testimonial-card__quote {
  font-size: 3rem;
  color: var(--brand-primary);
  opacity: 0.3;
  margin-bottom: 1.5rem;
}

.testimonial-card__text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.testimonial-info h4 {
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.testimonials__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.testimonial-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.dot.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--bg-tertiary);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.blog-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.blog-card:hover::after {
  transform: scaleX(1);
}

.blog-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.25);
  border-color: var(--brand-primary);
}

.blog-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-secondary);
  display: block;
  position: relative;
}

.blog-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__content {
  padding: 2rem;
}

.blog-card__category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-card__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.blog-card__excerpt {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-card__link {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.blog-card__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  transition: width 0.3s ease;
}

.blog-card__link:hover {
  gap: 1rem;
  color: var(--brand-secondary);
}

.blog-card__link:hover::after {
  width: 100%;
}

.blog-card__link i {
  transition: transform 0.3s ease;
}

.blog-card__link:hover i {
  transform: translateX(5px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact__content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.contact-item__icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item__icon i {
  color: white;
  font-size: 1.25rem;
}

.contact-item__content h4 {
  margin-bottom: 0.5rem;
}

.contact-item__content p {
  color: var(--text-secondary);
}

.contact-item__content a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item__content a:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

.contact__form {
  background: var(--bg-tertiary);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
}

.contact__form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.contact__form:focus-within::before {
  transform: scaleX(1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.contact__cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   HIRE MODAL
   ============================================ */

.hire-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hire-modal.active {
  display: flex;
}

.hire-modal__content {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  border: 1px solid var(--border-default);
  max-height: 90vh;
  overflow-y: auto;
}

.hire-modal__content::-webkit-scrollbar {
  width: 8px;
}

.hire-modal__content::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

.hire-modal__content::-webkit-scrollbar-thumb {
  background: var(--brand-primary);
  border-radius: 4px;
}

.hire-modal__content::-webkit-scrollbar-thumb:hover {
  background: var(--brand-secondary);
}

.hire-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hire-modal__close:hover {
  background: var(--bg-tertiary);
}

.hire-modal__content h2 {
  margin-bottom: 1rem;
}

.hire-modal__content>p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */

.success-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid var(--border-default);
  z-index: 3000;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.success-message.active {
  display: block;
  animation: success-popup 0.5s ease;
}

@keyframes success-popup {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.success-message__content i {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1rem;
}

.success-message__content h3 {
  margin-bottom: 0.5rem;
}

.success-message__content p {
  color: var(--text-secondary);
}

/* ============================================
   FLOATING ACTION BUTTONS
   ============================================ */

.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.floating-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.floating-btn:hover::before {
  width: 200px;
  height: 200px;
}

.floating-btn.whatsapp {
  background: #25D366;
}

.floating-btn.email {
  background: var(--brand-gradient);
}

.floating-btn.contact {
  background: var(--brand-primary);
}

.floating-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--brand-gradient);
  opacity: 0.3;
}

.footer__top {
  padding: 4rem 0 2rem;
  position: relative;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer__brand {
  max-width: 350px;
}

.footer__logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.footer__logo {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.footer__logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--brand-gradient);
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.3;
  z-index: 0;
}

.footer__tagline {
  color: var(--brand-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer__contact-item i {
  color: var(--brand-primary);
  width: 18px;
}

.footer__heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 0.75rem;
}

.footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.footer__links ul,
.footer__services ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a,
.footer__services a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.footer__links a i,
.footer__services a i {
  font-size: 0.75rem;
  color: var(--brand-primary);
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.footer__links a:hover,
.footer__services a:hover {
  color: var(--brand-primary);
  transform: translateX(5px);
}

.footer__links a:hover i,
.footer__services a:hover i {
  opacity: 1;
  transform: translateX(0);
}

.footer__social-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9375rem;
  font-weight: 500;
}

.social-link i {
  width: 20px;
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

.social-link:hover {
  background: var(--bg-secondary);
  border-color: var(--brand-primary);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.social-link:hover i {
  transform: scale(1.1);
}

.social-link.linkedin:hover {
  background: linear-gradient(135deg, #0077b5, #005885);
  color: white;
  border-color: #0077b5;
}

.social-link.github:hover {
  background: linear-gradient(135deg, #333, #24292e);
  color: white;
  border-color: #333;
}

.social-link.twitter:hover {
  background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
  color: white;
  border-color: #1DA1F2;
}

.social-link.dribbble:hover {
  background: linear-gradient(135deg, #ea4c89, #c32361);
  color: white;
  border-color: #ea4c89;
}

.footer__cta {
  margin-top: 1rem;
}

.footer__bottom {
  padding: 2rem 0;
  border-top: 1px solid var(--border-default);
  background: var(--bg-tertiary);
}

.footer__bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p {
  color: var(--text-primary);
  font-size: 0.875rem;
  margin: 0;
}

.footer__highlight {
  color: var(--brand-primary);
  font-weight: 600;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__legal a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--brand-primary);
  text-underline-offset: 2px;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer__legal a:hover {
  color: var(--brand-primary);
}

.footer__divider {
  color: var(--text-muted);
}

/* ============================================
   LEGAL PAGES (Privacy Policy & Terms)
   ============================================ */

.legal-page {
  padding-top: 120px;
  min-height: 100vh;
}

.legal-page__header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-default);
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.legal-page__back:hover {
  color: var(--brand-primary);
  transform: translateX(-5px);
}

.legal-page__back i {
  transition: transform 0.3s ease;
}

.legal-page__back:hover i {
  transform: translateX(-3px);
}

.legal-page__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-page__subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.legal-page__subtitle span {
  color: var(--brand-primary);
  font-weight: 600;
}

.legal-page__content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-tertiary);
  border-radius: 16px;
  border: 1px solid var(--border-default);
  transition: all 0.3s ease;
}

.legal-section:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.legal-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  padding-left: 1rem;
}

.legal-section__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.legal-section__subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-section__text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.legal-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
}

.legal-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: bold;
}

.legal-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-contact {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-default);
}

.legal-contact p {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.legal-contact a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-contact a:hover {
  color: var(--brand-secondary);
  text-decoration: underline;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
  .legal-page {
    padding-top: 100px;
  }

  .legal-section {
    padding: 1.5rem;
  }

  .legal-section__title {
    font-size: 1.25rem;
  }

  .legal-section__subtitle {
    font-size: 1rem;
  }
}

/* Responsive Footer */
@media (max-width: 968px) {
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .footer__brand {
    max-width: 100%;
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .footer__content {
    grid-template-columns: 1fr;
  }

  .footer__bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .social-link {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .social-link span {
    display: none;
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1400px) {

  .portfolio__grid,
  .services__grid,
  .blog__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {

  .portfolio__grid,
  .services__grid,
  .blog__grid,
  .team__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 968px) {
  .nav__menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    border-top: 1px solid var(--border-default);
  }

  .nav__menu.active {
    left: 0;
  }

  .nav__toggle {
    display: block;
  }

  .about__content {
    grid-template-columns: 1fr;
  }

  .about__roles {
    grid-template-columns: 1fr;
  }

  .contact__content {
    grid-template-columns: 1fr;
  }

  .portfolio-modal__body {
    grid-template-columns: 1fr;
  }

  .portfolio__grid,
  .services__grid,
  .blog__grid,
  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .blog__grid {
    grid-template-columns: 1fr;
  }

  .team__grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    padding: 2rem 1.5rem;
  }

  .team-avatar {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  .floating-actions {
    bottom: 1rem;
    right: 1rem;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}