* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

:root {
  --primary: #06b6d4;
  --secondary: #0f172a;
  --background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  --background-solid: #ffffff;
  --text: #334155;
  --accent: #f59e0b;
  --card-bg: rgba(255, 255, 255, 0.98);
  --shadow: 0 20px 60px rgba(6, 182, 212, 0.12);
  --neumorphic-shadow: 12px 12px 24px rgba(6, 182, 212, 0.08),
    -12px -12px 24px rgba(245, 158, 11, 0.08);
  --gradient-1: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --gradient-3: linear-gradient(135deg, #14b8a6 0%, #22d3ee 100%);
}

[data-theme="dark"] {
  --primary: #22d3ee;
  --secondary: #f1f5f9;
  --background: linear-gradient(135deg, #0c4a6e 0%, #0e7490 100%);
  --background-solid: #0f172a;
  --text: #e2e8f0;
  --accent: #fbbf24;
  --card-bg: rgba(15, 23, 42, 0.95);
  --shadow: 0 20px 60px rgba(34, 211, 238, 0.2);
  --neumorphic-shadow: 12px 12px 24px rgba(0, 0, 0, 0.4),
    -12px -12px 24px rgba(34, 211, 238, 0.1);
  --gradient-1: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-3: linear-gradient(135deg, #14b8a6 0%, #22d3ee 100%);
}

::selection {
  background: var(--primary);
  color: #ffffff;
}

::-moz-selection {
  background: var(--primary);
  color: #ffffff;
}

body {
  background: var(--background-solid);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  margin: 0;
  padding-top: 80px;
  font-weight: 400;
}


/* Prevent horizontal scroll on all elements */
* {
  max-width: 100%;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

html {
  scroll-padding-top: 88px;
}

/* Ensure all sections are visible */
section {
  display: block;
  visibility: visible;
  opacity: 1;
  min-height: auto;
  overflow-x: hidden;
  max-width: 100vw;
}

section h2 {
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--gradient-1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.3s ease;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.custom-cursor.hovered {
  transform: translate(-50%, -50%) scale(1.5);
  background: var(--gradient-2);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.8);
}

@media (pointer: coarse), (max-width: 768px) {
  .custom-cursor {
    display: none;
  }
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--primary);
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Scroll Progress */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--gradient-1);
  z-index: 1000;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}
.sidebar-nav, .horizontal-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  width: 100%;
  max-width: 100vw;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(0.75rem, 3vw, 3rem);
  z-index: 10000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .sidebar-nav,
[data-theme="dark"] .horizontal-navbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: rgba(34, 211, 238, 0.15);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}


[data-theme="dark"] .sidebar-nav,
[data-theme="dark"] .horizontal-navbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(34, 211, 238, 0.15);
}

.sidebar-nav .logo, .horizontal-navbar .logo {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
  justify-content: center;
  overflow: visible;
  list-style: none;
}

.sidebar-nav a, .horizontal-navbar a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav .link-text, .horizontal-navbar .link-text {
  display: inline-block;
}

.sidebar-nav a i, .horizontal-navbar a i {
  display: none;
}

.sidebar-nav a::after, .horizontal-navbar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.sidebar-nav a:hover::after,
.sidebar-nav a.active::after,
.horizontal-navbar a:hover::after,
.horizontal-navbar a.active::after {
  width: 100%;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.horizontal-navbar a:hover,
.horizontal-navbar a.active {
  color: var(--primary);
}

.theme-toggle {
  background: var(--gradient-1);
  border: none;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
  flex-shrink: 0;
}

.theme-toggle:hover {
  transform: rotate(180deg) scale(1.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}


.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
  z-index: 10002;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}



.mobile-menu-toggle:hover {
  color: var(--accent);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.88) 0%, rgba(232, 252, 255, 0.74) 45%, rgba(255, 247, 237, 0.82) 100%),
    url("images/bg-tech-img-.jpg") center / cover;
  position: relative;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  z-index: 2;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="dark"] .hero {
  background:
    linear-gradient(115deg, rgba(8, 13, 28, 0.92) 0%, rgba(15, 23, 42, 0.9) 48%, rgba(12, 74, 110, 0.78) 100%),
    url("images/bg-tech-img-.jpg") center / cover;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  animation: floatGradient 20s ease-in-out infinite;
  z-index: 0;
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  animation: floatGradient 25s ease-in-out infinite reverse;
  z-index: 0;
  border-radius: 50%;
}

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

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 1300px;
  width: 100%;
  align-items: center;
  position: relative;
  z-index: 1;
}


.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}


.hero-welcome {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--primary);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-title {
  font-size: clamp(2.35rem, 4.7vw, 3.9rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--secondary);
  margin: 0;
  letter-spacing: 0;
  max-width: 820px;
}

.hero-role {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}

.hero-role::after {
  content: "";
  position: absolute;
  left: 0.08em;
  right: 0.08em;
  bottom: 0.03em;
  height: 0.18em;
  background: rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  z-index: -1;
}

.hero-description {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.8;
  color: var(--text);
  margin: 0;
  max-width: 600px;
  opacity: 0.9;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 640px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  color: var(--text);
  line-height: 1.2;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-highlights strong {
  color: var(--primary);
  margin-right: 0.35rem;
  font-size: 1.05rem;
}

[data-theme="dark"] .hero-welcome,
[data-theme="dark"] .hero-highlights span {
  background: rgba(15, 23, 42, 0.66);
  border-color: rgba(34, 211, 238, 0.2);
}


.hero-buttons {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}



.btn-hire {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gradient-1);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}


.btn-hire::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-hire:hover::before {
  left: 100%;
}

.btn-hire:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.4);
}

.btn-projects {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}


.btn-projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-1);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-projects:hover::before {
  width: 100%;
}

.btn-projects:hover {
  transform: translateY(-3px);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.25);
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}


.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}



.hero-image-border {
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(6, 182, 212, 0.6) 50%, rgba(20, 184, 166, 0.4) 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  z-index: 0;
  animation: borderFloat 6s ease-in-out infinite;
}

[data-theme="dark"] .hero-image-border {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.8) 0%, rgba(20, 184, 166, 0.6) 50%, rgba(6, 182, 212, 0.4) 100%);
}

@keyframes borderFloat {
  0%, 100% {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    transform: rotate(5deg);
  }
}


.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.3);
  transition: all 0.3s ease;
}

.hero-floating-card {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--secondary);
  border: 1px solid rgba(6, 182, 212, 0.18);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: floatingCard 5.5s ease-in-out infinite;
}

.hero-floating-card i {
  color: var(--primary);
}

.hero-floating-card.card-top {
  top: 13%;
  left: -7%;
}

.hero-floating-card.card-bottom {
  right: -6%;
  bottom: 16%;
  animation-delay: -2s;
}

[data-theme="dark"] .hero-floating-card {
  background: rgba(15, 23, 42, 0.78);
  color: var(--secondary);
  border-color: rgba(34, 211, 238, 0.2);
}

@keyframes floatingCard {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

.hero-image:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(6, 182, 212, 0.4);
}

/* About Section */
.about {
  padding: clamp(3rem, 8vw, 8rem) clamp(0.75rem, 3vw, 2rem);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background: var(--background-solid);
  position: relative;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.about h2 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 2rem;
  color: var(--secondary);
  position: relative;
}

.about h2::after {
  content: "";
  width: 100px;
  height: 5px;
  background: var(--gradient-1);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}

.about-content {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

/* Profile Image with Running Border */
.about-image-wrapper {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 280px;
}

.profile-image-container {
  position: relative;
  width: min(280px, 100%);
  height: min(280px, 100%);
  max-width: 90vw;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.running-border {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #667eea);
  background-size: 400% 400%;
  animation: gradientRotate 4s linear infinite;
  z-index: 0;
  max-width: 100%;
}

@keyframes gradientRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.profile-image {
  width: min(260px, 100%);
  height: min(260px, 100%);
  max-width: 85vw;
  max-height: 85vw;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 5px solid var(--background);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
  min-width: min(280px, 100%);
  background: var(--card-bg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.about-text:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(99, 102, 241, 0.2);
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text);
  text-align: justify;
}

.about-skills {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.skills-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.skills-list li {
  font-size: 1rem;
  color: var(--text);
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skills-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.skills-list li:hover::before {
  opacity: 0.1;
}

.skills-list li:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  color: var(--primary);
}

/* Services Section */
.services {
  padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem);
  background: var(--background);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.services h2 {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 2.5rem;
  color: #ffffff;
  position: relative;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  padding-bottom: 2rem;
}

.services h2::after {
  content: "";
  width: 100px;
  height: 5px;
  background: #ffffff;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}



.service-item {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(6, 182, 212, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}



.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-1);
  transition: height 0.4s ease;
}

.service-item::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-item:hover::before {
  height: 100%;
}

.service-item:hover::after {
  opacity: 1;
}

.service-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 30px 80px rgba(6, 182, 212, 0.25),
    0 0 40px rgba(245, 158, 11, 0.1);
  border-color: var(--primary);
}

.service-item h3 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin-bottom: 0.8rem;
  color: var(--secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-item p {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: var(--text);
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Stats Section */
.stats {
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 2rem);
  background-image: 
    linear-gradient(135deg, rgba(6, 182, 212, 0.92) 0%, rgba(20, 184, 166, 0.9) 50%, rgba(14, 116, 144, 0.92) 100%), 
    url("images/stats-bg.avif");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  text-align: center;
  position: relative;
  max-width: 100vw;
  overflow-x: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.12) 0%, transparent 50%);
  pointer-events: none;
}


.stats h2 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 2rem;
  position: relative;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  padding-bottom: 2rem;
}

.stats h2::after {
  content: "";
  width: 100px;
  height: 5px;
  background: white;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}



.stat-item {
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item:hover {
  transform: translateY(-12px) scale(1.05);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.12) 100%);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(245, 158, 11, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.stat-item h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

/* Case Studies Section */
.case-studies {
  padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem);
  background: var(--background);
  max-width: 100vw;
  overflow-x: hidden;
}

.case-studies h2 {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 2.5rem;
  color: #ffffff;
  position: relative;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  padding-bottom: 2rem;
}

.case-studies h2::after {
  content: "";
  width: 100px;
  height: 5px;
  background: #ffffff;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.case-study-item {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  flex-wrap: wrap;
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}



.case-study-item:hover {
  transform: translateX(10px);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.2);
}

.case-study-image {
  flex: 1;
  min-width: 260px;
}

.case-study-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.case-study-image img:hover {
  transform: scale(1.05);
}

.case-study-content {
  flex: 2;
  min-width: 260px;
}

.case-study-content h3 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin-bottom: 0.8rem;
  color: var(--secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.case-study-content p {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.case-study-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.case-study-content a::after {
  content: '→';
  transition: transform 0.3s ease;
}

.case-study-content a:hover {
  color: var(--accent);
}

.case-study-content a:hover::after {
  transform: translateX(5px);
}

.case-study-content a:hover {
  text-decoration: underline;
}

/* Portfolio Section */
.portfolio {
  padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem);
  background: var(--background-solid);
  max-width: 100vw;
  overflow-x: hidden;
}

.portfolio h2 {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 2.5rem;
  color: var(--secondary);
  position: relative;
  font-weight: 700;
  padding-bottom: 2rem;
}

.portfolio h2::after {
  content: "";
  width: 100px;
  height: 5px;
  background: var(--gradient-1);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.5);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 0 0.5rem;
}

.filter-btn {
  padding: 0.8rem 1.8rem;
  background: var(--card-bg);
  border: 2px solid rgba(99, 102, 241, 0.1);
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}



.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient-1);
  color: white;
  transform: translateY(-5px);
  box-shadow: 
    0 15px 40px rgba(6, 182, 212, 0.4),
    0 0 30px rgba(6, 182, 212, 0.2);
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}



.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(6, 182, 212, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  contain: layout style paint;
  background: var(--card-bg);
}

.portfolio-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 30px 80px rgba(6, 182, 212, 0.3),
    0 0 60px rgba(245, 158, 11, 0.15);
  border-color: var(--primary);
}

.portfolio-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item .img-mobile {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .img-mobile {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.95) 0%, rgba(20, 184, 166, 0.93) 50%, rgba(245, 158, 11, 0.92) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  color: white;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

.portfolio-overlay p {
  color: #ddd;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  text-align: center;
  padding: 0 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.portfolio-links {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
  z-index: 10;
}

.portfolio-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.portfolio-link-btn:hover {
  background: #ffffff;
  color: var(--primary) !important;
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.portfolio-link-btn i {
  font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials {
  padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem);
  background: var(--background-solid);
  max-width: 100vw;
  overflow-x: hidden;
}

.testimonials h2 {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 2.5rem;
  color: var(--secondary);
  position: relative;
  font-weight: 700;
  padding-bottom: 2rem;
}

.testimonials h2::after {
  content: "";
  width: 100px;
  height: 5px;
  background: var(--gradient-1);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.5);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}



.testimonial-item {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}



.testimonial-item::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
}

.testimonial-item p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.testimonial-item h4 {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Schedule Meeting Section */
.schedule {
  padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem);
  background: var(--background-solid);
  text-align: center;
  max-width: 100vw;
  overflow-x: hidden;
}

.schedule h2 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 2rem;
  color: var(--secondary);
  position: relative;
  font-weight: 700;
  padding-bottom: 2rem;
}

.schedule h2::after {
  content: "";
  width: 100px;
  height: 5px;
  background: var(--gradient-1);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.5);
}

.schedule p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0 1rem;
}

.schedule-button {
  display: inline-block;
  padding: 1.2rem 3.5rem;
  background: var(--gradient-1);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}



.schedule-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.schedule-button:hover::before {
  left: 100%;
}

.schedule-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.4);
}

/* Blog Preview Section */
.blog {
  padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem);
  background: var(--background-solid);
  max-width: 100vw;
  overflow-x: hidden;
}

.blog h2 {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 2.5rem;
  color: var(--secondary);
  position: relative;
  font-weight: 700;
  padding-bottom: 2rem;
}

.blog h2::after {
  content: "";
  width: 100px;
  height: 5px;
  background: var(--gradient-1);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.5);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}



.blog-item {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}



.blog-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.blog-item:hover::before {
  transform: scaleX(1);
}

.blog-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
}

.blog-item h3 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin-bottom: 0.8rem;
  color: var(--secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.blog-item p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text);
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* FAQ Section */
.faq {
  padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem);
  background: var(--background-solid);
  max-width: 100vw;
  overflow-x: hidden;
}

.faq h2 {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 2.5rem;
  color: var(--secondary);
  position: relative;
  font-weight: 700;
  padding-bottom: 2rem;
}

.faq h2::after {
  content: "";
  width: 100px;
  height: 5px;
  background: var(--gradient-1);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.5);
}

.faq-item {
  max-width: 850px;
  margin: 1rem auto;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}



.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.faq-item summary {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--secondary);
  cursor: pointer;
  padding: 0.5rem 0;
  outline: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.faq-item p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text);
  padding: 0.8rem 0;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Contact Section (Enhanced Grid) */
.contact {
  padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem);
  background: var(--background-solid);
  max-width: 100vw;
  overflow-x: hidden;
}

.contact h2 {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--secondary);
  position: relative;
}

.contact h2::after {
  content: "";
  width: 100px;
  height: 5px;
  background: var(--gradient-1);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}

.contact-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text);
  max-width: 700px;
  margin: 2rem auto 3rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
  max-width: 1200px;
  margin: 3rem auto;
}



.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}



.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover::before {
  opacity: 0.05;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(99, 102, 241, 0.25);
  border-color: var(--primary);
}
.contact-card i {
  font-size: 2.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.contact-card a,
.contact-card p {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.contact-form {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  max-width: 100%;
  box-sizing: border-box;
}


.form-group {
  margin-bottom: 1.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  background: var(--background-solid);
  color: var(--text);
  transition: all 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
  max-width: 100%;
}



.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.form-group textarea {
  height: 150px;
  resize: vertical;
}
.form-submit {
  width: 100%;
  padding: 1.2rem;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}



.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.form-submit:hover::before {
  left: 100%;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--gradient-1);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.5);
}

/* Footer */
footer {
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%), url("images/footer-bg-img.avif");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

footer p {
  font-size: 1rem;
  margin: 0;
}

.copyright-text {
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.95);
}

.brand-name {
  font-weight: 700;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.1rem;
  text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.footer-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.heart-icon {
  color: #ef4444;
  animation: heartbeat 1.5s ease-in-out infinite;
  display: inline-block;
  font-size: 1.1rem;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(1); }
}

.code-icon {
  font-family: 'Courier New', monospace;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Responsive Design */
/* iPad and Tablets (768px - 1024px) */




/* Additional Mobile Overflow Protection */

/* ========== NEW ENHANCEMENTS ========== */

/* Enhanced Skills Section */
.skills-section {
  padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem);
  background: var(--background-solid);
  max-width: 100vw;
  overflow-x: hidden;
}

.skills-section h2 {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--secondary);
  position: relative;
}

.skills-section h2::after {
  content: "";
  width: 100px;
  height: 5px;
  background: var(--gradient-1);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 3rem auto;
}



.skill-category {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}



.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.25);
  border-color: var(--primary);
}

/* Running border animation */
.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 2px;
  background: var(--gradient-1);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBorder 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-category:hover::before {
  opacity: 1;
}

@keyframes rotateBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.skill-category h3 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin-bottom: 2rem;
  color: var(--secondary);
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.skill-bar {
  height: 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 10px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skill-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 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%);
  }
}

/* Process Section */
.process {
  padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.03) 0%, rgba(245, 158, 11, 0.03) 100%);
  overflow: hidden;
  position: relative;
  max-width: 100vw;
}



.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: var(--gradient-1);
  opacity: 0.05;
  border-radius: 0 0 50% 50%;
}

.process h2 {
  text-align: center;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--secondary);
  position: relative;
  font-weight: 800;
  padding-bottom: 2rem;
}


.process h2::after {
  content: "";
  width: 120px;
  height: 6px;
  background: var(--gradient-1);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.process-intro {
  text-align: center;
  font-size: 1.3rem;
  color: var(--text);
  max-width: 800px;
  margin: 2rem auto 5rem;
  font-weight: 500;
  opacity: 0.9;
}






/* Responsive adjustments */

/* Achievements & Recognition Section (Replaces Brands) */
.achievements {
  padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem);
  background: var(--background-solid);
  max-width: 100vw;
  overflow-x: hidden;
}

.achievements h2 {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 3rem;
  color: var(--secondary);
  position: relative;
}

.achievements h2::after {
  content: "";
  width: 100px;
  height: 5px;
  background: var(--gradient-1);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}



.achievement-card {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}



.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.25);
  border-color: var(--primary);
}

.achievement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left 0.5s;
}

.achievement-card:hover::before {
  left: 100%;
}

.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.25);
  border-color: var(--primary);
}

.achievement-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  transition: all 0.4s ease;
}

.achievement-card:hover .achievement-icon {
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.achievement-card h3 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--secondary);
  margin-bottom: 1rem;
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.achievement-card p {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: var(--text);
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Areas of Expertise Section */
.expertise {
  padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.03) 0%, rgba(245, 158, 11, 0.03) 100%);
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

.expertise::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.expertise h2 {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--secondary);
  position: relative;
  z-index: 1;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.expertise-subtitle {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text);
  margin-bottom: 3rem;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}



.expertise-card {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(6, 182, 212, 0.08);
  border: 2px solid rgba(6, 182, 212, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}



.expertise-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.expertise-card:hover::before {
  opacity: 0.05;
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(6, 182, 212, 0.2);
  border-color: var(--primary);
}

.expertise-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(245, 158, 11, 0.12) 100%);
  color: var(--primary);
  flex-shrink: 0;
}


.expertise-card:hover .expertise-icon {
  transform: scale(1.1) rotateY(180deg);
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.expertise-card h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--secondary);
  position: relative;
  z-index: 1;
  margin: 0;
  transition: color 0.3s ease;
}

.expertise-card:hover h3 {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.expertise-card p {
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  color: var(--text);
  line-height: 1.7;
  opacity: 0.85;
  position: relative;
  z-index: 1;
  margin: 0;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.expertise-tags .tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  transition: all 0.3s ease;
}

.expertise-card:hover .expertise-tags .tag {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Animated Running Border for Cards */
.service-item,
.testimonial-item,
.blog-item,
.portfolio-item {
  position: relative;
  overflow: hidden;
}

.service-item::after,
.testimonial-item::after,
.blog-item::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--primary),
    var(--accent),
    var(--primary),
    var(--accent)
  );
  border-radius: 15px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.service-item:hover::after,
.testimonial-item:hover::after,
.blog-item:hover::after {
  opacity: 1;
}

/* Floating particles in hero */
.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: 
    radial-gradient(circle, rgba(255, 77, 77, 0.3) 2px, transparent 2px),
    radial-gradient(circle, rgba(92, 124, 250, 0.3) 2px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 200px 200px, 300px 300px, 150px 150px;
  background-position: 0 0, 50px 50px, 100px 100px;
  animation: floatParticles 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatParticles {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-50px) translateX(30px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

/* Enhanced hover effects */
.cta-button,
.schedule-button,
.form-submit {
  position: relative;
  overflow: hidden;
}

.cta-button::before,
.schedule-button::before,
.form-submit::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, height 0.6s;
}

.cta-button:hover::before,
.schedule-button:hover::before,
.form-submit:hover::before {
  width: 300px;
  height: 300px;
}

/* Card flip effect on portfolio items */
.portfolio-item {
  perspective: 1000px;
}

.portfolio-item:hover {
  animation: cardFloat 0.6s ease-in-out;
}

@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0) rotateY(0deg);
  }
  50% {
    transform: translateY(-10px) rotateY(5deg);
  }
}

/* Stats counter animation */
.stat-item h3 {
  display: inline-block;
  background: linear-gradient(45deg, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Ripple effect on buttons */
.filter-btn {
  position: relative;
  overflow: hidden;
}

.filter-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.filter-btn:active::after {
  width: 200px;
  height: 200px;
}

/* Contact cards with glow effect */
.contact-card {
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 77, 77, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover::before {
  opacity: 1;
  animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments for new sections */


/* Tools & Technologies Section */
.tools-section {
  padding: 8rem 2rem;
  background: var(--background-solid);
}

.tools-section h2 {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 3rem;
  color: var(--secondary);
  position: relative;
}

.tools-section h2::after {
  content: "";
  width: 100px;
  height: 5px;
  background: var(--gradient-1);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-item {
  background: var(--card-bg);
  padding: 2rem 1rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tool-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 25px 70px rgba(99, 102, 241, 0.25);
  border-color: var(--primary);
}

.tool-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.tool-item:hover::before {
  opacity: 0.1;
}

.tool-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.tool-item i {
  font-size: 3rem;
  color: var(--primary);
  transition: all 0.3s ease;
  z-index: 1;
}

.tool-item:hover i {
  color: var(--accent);
  transform: scale(1.2) rotateY(360deg);
}

.tool-item span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  z-index: 1;
}

/* Additional mobile responsiveness improvements */



/* Fun Facts Section */
.fun-facts {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.fun-facts::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.fun-facts h2 {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 3rem;
  color: white;
  position: relative;
  z-index: 1;
}

.fun-facts h2::after {
  content: "";
  width: 100px;
  height: 5px;
  background: white;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Mobile responsive adjustments for fun facts */


.text-center{
  text-align: center;
}

/* Modern About Section Redesign */
.about {
  padding: 6rem 2rem;
  background: var(--background-solid);
}

.about-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-header {
  text-align: center;
  margin-bottom: 4rem;
}

.about-label {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--gradient-1);
  color: white;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.about-header h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--secondary);
  margin: 1rem 0;
  font-weight: 800;
}

.about-subtitle {
  font-size: 1.2rem;
  color: var(--text);
  opacity: 0.8;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 450px) 1fr;
  gap: 5rem;
  align-items: start;
  max-width: 100%;
}



.about-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  max-width: 100%;
  overflow: visible;
}

.profile-wrapper {
  position: relative;
  max-width: 100%;
  overflow: visible;
}

.profile-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  z-index: 10;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

.profile-image-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.running-border {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50% 40% 50% 40%;
  background: linear-gradient(45deg, #06b6d4, #8b5cf6, #f59e0b, #06b6d4);
  background-size: 400% 400%;
  animation: borderMorph 8s ease-in-out infinite, gradientRotate 4s linear infinite;
  z-index: 0;
  filter: blur(2px);
}

@keyframes borderMorph {
  0%, 100% {
    border-radius: 50% 40% 50% 40%;
  }
  25% {
    border-radius: 40% 50% 40% 50%;
  }
  50% {
    border-radius: 50% 60% 40% 50%;
  }
  75% {
    border-radius: 60% 40% 60% 40%;
  }
}

@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.profile-image {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 8px solid var(--background-solid);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.2);
  transition: transform 0.5s ease;
  filter: brightness(1.05) contrast(1.05);
}

.profile-image:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 25px 70px rgba(6, 182, 212, 0.4), 0 0 0 2px rgba(139, 92, 246, 0.4);
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  max-width: 100%;
}

.stat-card {
  background: var(--card-bg);
  padding: clamp(1rem, 4vw, 2rem) clamp(0.75rem, 3vw, 1.5rem);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(6, 182, 212, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.stat-card:hover::before {
  opacity: 0.08;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.25);
  border-color: var(--primary);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.stat-card:hover .stat-icon {
  transform: rotateY(360deg);
}

.stat-content {
  position: relative;
  z-index: 1;
}

.stat-content h3 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--secondary);
  margin: 0;
  line-height: 1;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-content p {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0.5rem 0 0;
  font-weight: 600;
  opacity: 0.8;
}

.about-right {
  padding-top: 0.5rem;
}

.about-right h2 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  position: relative;
  padding-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Color Pattern for Title */
.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.secondary-text {
  color: var(--secondary);
  font-weight: 800;
}

.accent-text {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.about-right h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 5px;
  background: var(--gradient-1);
  border-radius: 10px;
}

.lead-text {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2rem;
  font-weight: 500;
  opacity: 0.9;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
}

.lead-text .accent-text {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.lead-text strong {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* About Description with Read More */
.about-description {
  position: relative;
}

.description-preview {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1rem;
  opacity: 0.85;
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.description-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  opacity: 0;
}

.description-full.expanded {
  max-height: 1000px;
  opacity: 1;
  margin-bottom: 1rem;
}

.description-full p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.5rem;
  opacity: 0.85;
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.read-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.read-more-btn:hover::before {
  opacity: 1;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}

.read-more-text,
.read-more-icon {
  position: relative;
  z-index: 1;
}

.read-more-icon {
  transition: transform 0.3s ease;
  font-size: 0.85rem;
}

.read-more-btn:hover .read-more-icon {
  transform: translateY(3px);
}


.about-right p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.5rem;
  opacity: 0.85;
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(6, 182, 212, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(6, 182, 212, 0.1);
  max-width: 100%;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 12px;
}

.feature-item:hover {
  background: rgba(6, 182, 212, 0.05);
  transform: translateX(5px);
}

.feature-item i {
  width: 28px;
  height: 28px;
  background: var(--gradient-1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  max-width: 100%;
}


.cta-button.primary,
.cta-button.secondary {
  padding: clamp(0.9rem, 2.5vw, 1.2rem) clamp(1.5rem, 5vw, 2.5rem);
  border-radius: 50px;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 0;
}


.cta-button.primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
  border: 2px solid transparent;
}

.cta-button.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.cta-button.primary:hover::before {
  left: 100%;
}

.cta-button.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.5);
}

.cta-button.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-button.secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

/* Responsive Design for About Section */


/* ===========================================
   END OF RESPONSIVE STYLES
   =========================================== */

/* Additional Modern Enhancements */

/* Smooth fade-in animation for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse animation for important elements */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Gradient animation for backgrounds */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Shine effect for cards */
@keyframes shine {
  0% {
    left: -100%;
  }
  20%, 100% {
    left: 100%;
  }
}

/* Enhanced card styles with shine effect */
.achievement-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.7s;
  pointer-events: none;
}

.achievement-card:hover::after {
  left: 100%;
}

/* Improved testimonial cards */
.testimonial-item {
  position: relative;
  overflow: hidden;
}

.testimonial-item::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.testimonial-item:hover::before {
  opacity: 1;
}

/* Enhanced scroll progress bar */
#scroll-progress {
  background: linear-gradient(90deg, #0891b2 0%, #06b6d4 50%, #f59e0b 100%);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}

/* Better focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Smooth transitions for theme switching */
body,
.horizontal-navbar,
.card-bg,
section {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Improved back to top button */
.back-to-top {
  background: var(--gradient-1);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.6);
}

/* Enhanced form inputs */
input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Smooth hover effects for all interactive elements */
a, button, .portfolio-item, .service-item, .achievement-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass morphism effect for modern cards */
.stat-item,
.achievement-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(6, 182, 212, 0.15);
}

/* Better loading states */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Enhanced typography for better readability */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

p {
  font-weight: 400;
  line-height: 1.7;
}

/* Improved contrast in dark mode */
[data-theme="dark"] .brand-name,
[data-theme="dark"] .achievement-card h3,
[data-theme="dark"] .service-item h3 {
  color: var(--secondary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Performance optimization */
.portfolio-item,
.service-item,
.achievement-card {
  will-change: transform;
}

.portfolio-item:hover,
.service-item:hover,
.achievement-card:hover {
  will-change: auto;
}


/* ================================================================
   RESPONSIVE DESIGN - CONSOLIDATED MEDIA QUERIES
   ================================================================ */

/* (MAX-WIDTH: 1200PX) */
@media (max-width: 1200px) {
.about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* (MAX-WIDTH: 1024PX) AND (MIN-WIDTH: 769PX) */
@media (max-width: 1024px) and (min-width: 769px) {
/* Keep navbar horizontal but adjust sizing */
  .horizontal-navbar {
    padding: 0 2rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
}

/* (MAX-WIDTH: 1024PX) */
@media (max-width: 1024px) {
/* Keep navbar horizontal but adjust sizing */
  .horizontal-navbar {
    padding: 0 2rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
/* Keep navbar horizontal but adjust sizing */
  .horizontal-navbar {
    padding: 0 2rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
  }

  .hero-content p {
    font-size: 1.3rem;
  }

  .sidebar-nav {
    width: 70px;
    padding: 1.5rem 0;
  }

  .sidebar-nav a {
    font-size: 1.1rem;
    margin: 1.2rem 0;
  }

  .about h2,
  .services h2,
  .stats h2,
  .case-studies h2,
  .portfolio h2,
  .testimonials h2,
  .schedule h2,
  .blog h2,
  .faq h2,
  .contact h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .about-content {
    gap: 2rem;
    padding: 0;
    width: 100%;
  }
  
  .about-grid {
    gap: 2rem;
    padding: 0;
  }

  .case-study-item {
    flex-direction: column;
    gap: 1.5rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .contact-info {
    gap: 2rem;
  }
.hero,
  .about,
  .skills-section,
  .tools-section,
  .services,
  .process,
  .stats,
  .achievements,
  .case-studies,
  .portfolio,
  .testimonials,
  .schedule,
  .blog,
  .faq,
  .contact {
    padding: 6rem 2rem;
  }
.about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-left {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* (MAX-WIDTH: 968PX) */
@media (max-width: 968px) {
.hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
.hero-left {
    align-items: center;
  }
.hero-description {
    max-width: 100%;
  }
.hero-buttons {
    justify-content: center;
  }
.hero-right {
    order: -1;
  }
}

/* (MAX-WIDTH: 900PX) */
@media (max-width: 900px) {
.contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* (MAX-WIDTH: 768PX) */
@media (max-width: 768px) {
body {
    padding-top: 70px;
  }
.sidebar-nav, .horizontal-navbar {
    height: 70px;
    padding: 0 1rem;
  }
.nav-actions {
    gap: 0.5rem;
  }
.mobile-menu-toggle {
    font-size: 1.3rem;
    display: flex !important;
    width: 35px;
    height: 35px;
  }
.hero-image-wrapper {
    max-width: 400px;
  }
.hero-image-border {
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
  }
.services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
.service-item {
    padding: 1.75rem 1.5rem;
  }
.stats {
    background-attachment: scroll;
  }
.case-study-item {
    padding: 1.75rem 1.5rem;
    gap: 1.5rem;
  }
.portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
.testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
.testimonial-item {
    padding: 1.75rem 1.5rem;
  }
.blog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
.blog-item {
    padding: 1.75rem 1.5rem;
  }
.faq-item {
    padding: 1.5rem;
    margin: 0.75rem auto;
  }
.contact-card {
    padding: 1.5rem;
  }
.contact-form {
    padding: 2rem 1.5rem;
  }
.form-group input,
  .form-group textarea {
    padding: 0.9rem;
    font-size: 1rem;
  }
.form-submit {
    padding: 1rem;
    font-size: 1rem;
  }
/* Prevent horizontal overflow on tablets/mobile */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  body {
    padding-top: 70px;
  }

  .sidebar-nav, .horizontal-navbar {
    height: 70px;
    padding: 0 0.75rem;
    box-sizing: border-box;
  }

  .sidebar-nav .logo, .horizontal-navbar .logo {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
  }

  .mobile-menu-toggle {
    display: flex !important;
    z-index: 10002;
    position: relative;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 70px);
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    justify-content: flex-start;
    align-items: stretch;
  }

  [data-theme="dark"] .nav-links {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
    justify-content: flex-start;
    display: flex !important;
    text-align: left;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .nav-links a::after {
    display: none;
  }

  .theme-toggle {
    width: 35px;
    height: 35px;
    font-size: 0.95rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .hero {
    padding: 3rem 1.25rem 2rem;
    min-height: 80vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    padding: 0;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    margin-bottom: 1.75rem;
    line-height: 1.6;
    padding: 0 0.5rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    display: inline-block;
    width: auto;
    max-width: 100%;
  }

  .about,
  .services,
  .stats,
  .case-studies,
  .portfolio,
  .testimonials,
  .schedule,
  .blog,
  .faq,
  .contact {
    padding: 4rem 1.25rem;
  }

  .about h2,
  .services h2,
  .stats h2,
  .case-studies h2,
  .portfolio h2,
  .testimonials h2,
  .schedule h2,
  .blog h2,
  .faq h2,
  .contact h2 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }

  .about h2::after,
  .services h2::after,
  .stats h2::after,
  .case-studies h2::after,
  .portfolio h2::after,
  .testimonials h2::after,
  .schedule h2::after,
  .blog h2::after,
  .faq h2::after,
  .contact h2::after {
    width: 80px;
    height: 4px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-left {
    max-width: 100%;
    margin: 0 auto;
  }

  .about-right {
    text-align: left;
  }

  .about-right h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .lead-text {
    font-size: 1.15rem;
  }

  .about-right p {
    text-align: left;
  }

  .running-border {
    width: min(260px, 80vw);
    height: min(260px, 80vw);
  }

  .profile-image {
    width: min(240px, 75vw);
    height: min(240px, 75vw);
  }

  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    min-width: 0;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .stat-content h3 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    line-height: 1;
  }

  .stat-content p {
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    line-height: 1.3;
  }

  .features-list {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .feature-item {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .feature-item i {
    flex-shrink: 0;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding: 0;
  }

  .cta-button.primary,
  .cta-button.secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 1rem 2rem;
    margin: 0;
  }

  .services-grid,
  .skills-container,
  .achievements-grid,
  .testimonials-grid,
  .blog-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0;
    width: 100%;
  }

  .skills-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0;
  }
  
  .stat-item {
    padding: 1.25rem 1rem;
    text-align: center;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .achievement-card {
    padding: 1.5rem 1.25rem;
    text-align: center;
  }
  
  .achievement-card h3 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.3rem;
  }

  .testimonials-grid,
  .blog-grid,
  .portfolio-grid,
  .facts-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0;
  }

  .service-item,
  .testimonial-item,
  .blog-item {
    padding: 1.5rem 1.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .service-item h3,
  .testimonial-item h4,
  .blog-item h3 {
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }
  
  .service-item p,
  .testimonial-item p,
  .blog-item p {
    line-height: 1.6;
    margin-bottom: 0;
  }

  .case-study-image img {
    height: 200px;
  }

  .portfolio-item {
    margin: 0;
    overflow: hidden;
  }
  
  .portfolio-item img {
    height: 220px;
    width: 100%;
    object-fit: cover;
  }
  
  .portfolio-overlay {
    padding: 1.5rem 1.25rem;
  }
  
  .portfolio-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
  }

  .portfolio-filters {
    gap: 0.8rem;
  }

  .filter-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-form {
    padding: 1.5rem 1.25rem;
    margin: 0;
  }
  
  .contact-form .form-group {
    margin-bottom: 1rem;
  }
  
  .contact-item {
    padding: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .form-submit,
  .schedule-button {
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
  }

  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
  }
  
  .service-item,
  .testimonial-item,
  .blog-item,
  .achievement-card,
  .portfolio-overlay,
  .skill-category,
  .stat-card {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
.skills-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
.skill-category {
    padding: 1.75rem 1.5rem;
  }
.process {
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 3vw, 1.5rem);
  }
.process h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 0.75rem;
    padding-bottom: 1.5rem;
  }
.process-intro {
    font-size: 1.1rem;
    margin: 1.5rem auto 3rem;
    padding: 0 1rem;
  }
  .process h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
.achievements-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
.achievement-card {
    padding: 1.75rem 1.5rem;
  }
.expertise-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
.expertise-card {
    padding: 2rem 1.5rem;
  }
.skills-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .achievements-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .achievement-card {
    padding: 2rem 1.5rem;
  }

  .achievement-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
.tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .tool-item {
    padding: 1.5rem 0.8rem;
  }

  .tool-item i {
    font-size: 2.5rem;
  }

  .tool-item span {
    font-size: 0.9rem;
  }
.facts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

.about-grid {
    gap: 2rem;
  }
.description-preview,
  .description-full p {
    text-align: left;
  }
  
  .read-more-btn {
    width: 100%;
    justify-content: center;
  }
.about-right p {
    text-align: left;
  }
.about-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
  
  .profile-image {
    height: 400px;
  }
  
  .about-stats-cards {
    grid-template-columns: 1fr;
  }
  
  .about-content h3 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .about-cta {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    text-align: center;
    justify-content: center;
  }
}

/* (MAX-WIDTH: 600PX) */
@media (max-width: 600px) {
.stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
.filter-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
.schedule-button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    display: block;
    max-width: 300px;
    margin: 0 auto;
  }
.cta-buttons {
    flex-direction: column;
    width: 100%;
  }
.cta-button.primary,
  .cta-button.secondary {
    width: 100%;
  }
}

/* (MAX-WIDTH: 480PX) */
@media (max-width: 480px) {
.mobile-menu-toggle {
    font-size: 1.2rem;
    padding: 0.4rem;
    width: 32px;
    height: 32px;
  }
  
  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .nav-actions {
    gap: 0.4rem;
  }
.hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
.btn-hire {
    width: 100%;
    text-align: center;
  }
.btn-projects {
    width: 100%;
    text-align: center;
  }
.hero-image-wrapper {
    max-width: 320px;
  }
.services-grid {
    gap: 1rem;
  }
.service-item {
    padding: 1.5rem 1.25rem;
  }
.case-study-item {
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
  }
.filter-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }
.portfolio-grid {
    gap: 1rem;
  }
.testimonials-grid {
    gap: 1rem;
  }
.testimonial-item {
    padding: 1.5rem 1.25rem;
  }
.schedule-button {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }
.blog-grid {
    gap: 1rem;
  }
.blog-item {
    padding: 1.5rem 1.25rem;
  }
.faq-item {
    padding: 1.25rem 1rem;
    margin: 0.5rem auto;
  }
.contact-container {
    gap: 2rem;
  }
.contact-card {
    padding: 1.25rem 1rem;
  }
.contact-form {
    padding: 1.5rem 1rem;
  }
.form-group input,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
.form-submit {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
body {
    padding-top: 70px;
  }

  .hero {
    padding: 2rem 1rem 1.5rem;
    min-height: 70vh;
    height: auto;
  }

  .hero-content h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .hero-content p {
    font-size: clamp(0.875rem, 3.5vw, 1rem);
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
  }

  .cta-button {
    padding: 0.85rem 1.75rem;
    font-size: 0.875rem;
    width: auto;
    max-width: 100%;
  }

  .sidebar-nav {
    width: 50px;
  }

  .sidebar-nav .logo {
    font-size: 1.1rem;
  }

  .sidebar-nav a {
    font-size: 0.9rem;
    margin: 0.8rem 0;
  }

  .theme-toggle {
    font-size: 1.1rem;
  }

  .about,
  .services,
  .stats,
  .case-studies,
  .portfolio,
  .testimonials,
  .schedule,
  .blog,
  .faq,
  .contact {
    padding: 2.5rem 1rem;
    overflow-x: hidden;
  }

  .about h2,
  .services h2,
  .stats h2,
  .case-studies h2,
  .portfolio h2,
  .testimonials h2,
  .schedule h2,
  .blog h2,
  .faq h2,
  .contact h2 {
    font-size: clamp(1.5rem, 5.5vw, 1.8rem);
    margin-bottom: 1.5rem;
  }

  .about h2::after,
  .services h2::after,
  .stats h2::after,
  .case-studies h2::after,
  .portfolio h2::after,
  .testimonials h2::after,
  .schedule h2::after,
  .blog h2::after,
  .faq h2::after,
  .contact h2::after {
    width: 60px;
    height: 3px;
  }

  .about-text p,
  .service-item p,
  .testimonial-item p,
  .blog-item p,
  .case-study-content p,
  .portfolio-overlay p {
    font-size: 0.9rem;
  }

  .running-border {
    width: min(200px, 70vw);
    height: min(200px, 70vw);
  }

  .profile-image {
    width: min(180px, 65vw);
    height: min(180px, 65vw);
  }

  .service-item h3,
  .case-study-content h3,
  .blog-item h3,
  .portfolio-overlay h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  .stat-item h3 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .stat-item p {
    font-size: 1rem;
  }

  .faq-item summary {
    font-size: 1.1rem;
  }

  .faq-item p {
    font-size: 0.9rem;
  }

  .contact-item h3 {
    font-size: 1.2rem;
  }

  .contact-item a,
  .contact-item p {
    font-size: 1rem;
  }
  
  .service-item,
  .testimonial-item,
  .blog-item,
  .achievement-card {
    padding: 1.25rem 0.875rem;
  }
  
  .stat-card {
    padding: 0.875rem 0.625rem;
    gap: 0.5rem;
  }
  
  .skill-category {
    padding: 1.25rem 0.875rem;
  }

  .stat-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .stat-content h3 {
    font-size: clamp(1.3rem, 4vw, 1.5rem);
  }

  .stat-content p {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
  }

  .portfolio-item img {
    height: auto;
    min-height: 180px;
    max-height: 250px;
  }

  .case-study-image img {
    height: auto;
    min-height: 160px;
    max-height: 220px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  footer p,
  .copyright-text,
  .footer-tagline {
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .brand-name {
    font-size: 1rem;
  }
  
  .footer-content {
    gap: 0.5rem;
  }
/* Force viewport constraint on all elements */
  html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
  }
  
  section {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .container,
  .about-container,
  .services-grid,
  .portfolio-grid,
  .testimonials-grid,
  .blog-grid,
  .skills-container,
  .achievements-grid,
  .about-grid,
  .about-left,
  .about-right,
  .profile-wrapper,
  .profile-image-container,
  .stats-cards,
  .features-list,
  .cta-buttons,
  .hero,
  .hero-content,
  .about,
  .services,
  .portfolio,
  .contact,
  .testimonials,
  .skills-section,
  .process,
  .achievements,
  .blog,
  .stats,
  .case-studies,
  .faq,
  .schedule,
  footer {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  h1, h2, h3, h4, h5, h6, p, a, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Force all sections to respect viewport */
  * {
    max-width: 100vw;
  }
  
  img, video, iframe {
    max-width: 100% !important;
    height: auto;
  }
  
  /* Ensure navigation doesn't cause overflow */
  .sidebar-nav,
  .horizontal-navbar {
    padding: 0 0.5rem;
  }
  
  .nav-links {
    max-width: 100vw;
  }
.skills-container {
    gap: 1.5rem;
  }
.skill-category {
    padding: 1.5rem 1.25rem;
  }
.process {
    padding: clamp(2rem, 5vw, 3rem) 1rem;
  }
.process-intro {
    font-size: 1rem;
    margin: 1rem auto 2.5rem;
  }
.achievements-grid {
    gap: 1.25rem;
  }
.achievement-card {
    padding: 1.5rem 1.25rem;
  }
.expertise-grid {
    gap: 1.5rem;
  }
.expertise-card {
    padding: 1.75rem 1.25rem;
  }
.expertise-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }
.skill-category {
    padding: 2rem 1.5rem;
  }

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

  .achievement-card {
    padding: 2rem 1.5rem;
  }
.tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .tool-item {
    padding: 1rem 0.5rem;
  }

  .tool-item i {
    font-size: 1.75rem;
  }

  .tool-item span {
    font-size: 0.8rem;
  }

  .achievement-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .achievement-card h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }
.fun-facts {
    padding: 4rem 1.5rem;
  }

  .fun-facts h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .fact-item {
    padding: 1.5rem;
  }

}

/* (MAX-WIDTH: 400PX) */
@media (max-width: 400px) {
.stats-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
}

/* Final visual polish */
.horizontal-navbar {
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-item,
.skill-category,
.tool-item,
.stat-item,
.achievement-card,
.expertise-card,
.case-study-item,
.portfolio-item,
.testimonial-item,
.blog-item,
.faq-item,
.contact-card,
.contact-form {
  border-radius: 8px;
}

.service-item,
.skill-category,
.tool-item,
.achievement-card,
.expertise-card,
.testimonial-item,
.blog-item,
.faq-item,
.contact-card,
.contact-form {
  border: 1px solid rgba(6, 182, 212, 0.14);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .service-item,
[data-theme="dark"] .skill-category,
[data-theme="dark"] .tool-item,
[data-theme="dark"] .achievement-card,
[data-theme="dark"] .expertise-card,
[data-theme="dark"] .testimonial-item,
[data-theme="dark"] .blog-item,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .contact-form {
  border-color: rgba(34, 211, 238, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.service-item:hover,
.skill-category:hover,
.tool-item:hover,
.achievement-card:hover,
.expertise-card:hover,
.testimonial-item:hover,
.blog-item:hover,
.faq-item:hover,
.contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.34);
}

.portfolio-item {
  isolation: isolate;
}

.portfolio-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.42));
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.portfolio-item:hover::after {
  opacity: 0;
}

.portfolio-overlay {
  z-index: 2;
}

.filter-btn,
.btn-hire,
.btn-projects,
.cta-button,
.schedule-button,
.form-submit,
.read-more-btn {
  border-radius: 8px;
}

.hero-title {
  font-size: clamp(2.35rem, 4.7vw, 3.9rem);
  letter-spacing: 0;
}

.hero-image-wrapper {
  filter: drop-shadow(0 30px 50px rgba(6, 182, 212, 0.14));
}

.hero-image {
  animation: portraitDrift 7s ease-in-out infinite;
}

@keyframes portraitDrift {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.01);
  }
}

.hero-image:hover {
  transform: translateY(-6px) scale(1.03);
}

@media (max-width: 968px) {
  .hero-container {
    gap: 2.25rem;
  }

  .hero-right {
    order: 0;
  }

  .hero-left {
    text-align: center;
  }

  .hero-highlights {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 76px;
  }

  .hero {
    min-height: auto;
    padding: 3rem 1rem 3.5rem;
  }

  .hero-title {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
    line-height: 1.08;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-highlights span {
    flex: 1 1 145px;
    justify-content: center;
  }

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

  .hero-buttons {
    width: 100%;
    flex-direction: row;
    gap: 0.85rem;
  }

  .btn-hire,
  .btn-projects {
    flex: 1 1 150px;
    min-height: 56px;
    text-align: center;
    padding: 0.95rem 1.2rem;
  }
}

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

/* ============================================================
   AI-POWERED UPDATES — Brand polish, AI tools highlight, badges
   ============================================================ */

.logo-accent {
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #8b5cf6;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-right: 10px;
  text-transform: uppercase;
  vertical-align: middle;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.25);
}

.skill-category-ai {
  position: relative;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 16px;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 182, 212, 0.05));
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-category-ai:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.18);
}
.skill-category-ai h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-category-ai h3 i {
  color: #8b5cf6;
}

.ai-badge {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  letter-spacing: 1px;
  vertical-align: middle;
  animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(139, 92, 246, 0); }
}

.tool-item.tool-ai {
  position: relative;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.35);
  overflow: hidden;
}
.tool-item.tool-ai::before {
  content: "AI";
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  color: #fff;
}
.tool-item.tool-ai i {
  color: #8b5cf6;
}
.tool-item.tool-ai:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25);
  border-color: #8b5cf6;
}

.tools-intro {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin: -0.5rem auto 2rem;
  font-size: 0.98rem;
}
body.light-mode .tools-intro {
  color: rgba(0, 0, 0, 0.6);
}

.service-item.service-featured {
  position: relative;
  overflow: visible;
  border: 1.5px solid rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.08));
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.18);
  margin-top: 14px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease;
}
/* Override the amber/yellow animated border that bleeds in from
   the global .service-item::after rule on hover. The featured card
   uses the AI purple → cyan gradient instead. */
.service-item.service-featured::after {
  background: linear-gradient(
    45deg,
    #8b5cf6,
    #06b6d4,
    #8b5cf6,
    #06b6d4
  ) !important;
}
.service-item.service-featured:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: #8b5cf6;
  box-shadow:
    0 28px 60px rgba(139, 92, 246, 0.32),
    0 0 40px rgba(6, 182, 212, 0.15);
}
.service-tag {
  position: absolute;
  top: -14px;
  left: 24px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.8px;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
  white-space: nowrap;
}

.expertise-card.expertise-featured {
  border: 1.5px solid rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.08));
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.18);
}
.expertise-card.expertise-featured .expertise-icon {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
}

.hero-floating-card.card-top i { color: #8b5cf6; }
.hero-floating-card.card-bottom i { color: #06b6d4; }

.about-description strong {
  color: #06b6d4;
  font-weight: 600;
}
body.light-mode .about-description strong { color: #0e7490; }

.hero-description strong {
  color: #8b5cf6;
  font-weight: 700;
}
body.light-mode .hero-description strong { color: #6d28d9; }

/* ---------------------------------------------------------
   Font Awesome safeguards — guarantee icons render correctly
   --------------------------------------------------------- */
.fa, .fas, .far, .fal, .fad, .fab, .fa-solid, .fa-regular, .fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome";
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  display: inline-block;
}
.fab, .fa-brands {
  font-family: "Font Awesome 6 Brands", "FontAwesome";
  font-weight: 400;
}
.fas, .fa-solid {
  font-weight: 900;
}

/* Make sure tool-item icons are visible even before hover */
.tool-item i {
  min-height: 3rem;
  line-height: 1;
}
.tool-item.tool-ai i {
  min-height: 3rem;
}

/* ---------------------------------------------------------
   Skill experience labels — used on Backend (1 year)
   --------------------------------------------------------- */
.skill-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.skill-exp {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
  vertical-align: middle;
}
body.light-mode .skill-exp {
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
}

/* ---------------------------------------------------------
   Responsive polish — tablet & mobile breakpoints
   --------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-badge {
    display: block;
    margin: 0 0 8px 0;
    width: max-content;
    font-size: 0.72rem;
  }
  .service-item.service-featured {
    margin-top: 22px;
  }
  .service-tag {
    top: -12px;
    left: 18px;
    font-size: 0.66rem;
    padding: 5px 11px;
  }
  .skill-category-ai {
    padding: 1rem;
  }
  .ai-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
  }
  .tool-item.tool-ai::before {
    font-size: 0.5rem;
    padding: 1px 5px;
  }
  .tools-intro {
    font-size: 0.88rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.68rem;
    padding: 3px 10px;
  }
  .service-tag {
    left: 14px;
    font-size: 0.62rem;
    letter-spacing: 0.4px;
  }
  .skill-exp {
    font-size: 0.6rem;
    padding: 1px 5px;
  }
}

/* ---------------------------------------------------------
   About → Features list V2 — polished, colored, animated
   --------------------------------------------------------- */
.features-list--v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2.25rem 0;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.04), rgba(139, 92, 246, 0.04));
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.features-list--v2 .feature-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease,
              background 0.35s ease;
  overflow: hidden;
}
body.light-mode .features-list--v2 .feature-item {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.06);
}
.features-list--v2 .feature-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-from, #06b6d4), var(--accent-to, #8b5cf6));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.features-list--v2 .feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-from, #06b6d4);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18),
              0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.features-list--v2 .feature-item:hover::before { opacity: 0.06; }

.features-list--v2 .feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-from, #06b6d4), var(--accent-to, #8b5cf6));
  box-shadow: 0 8px 22px var(--accent-shadow, rgba(6, 182, 212, 0.35));
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.features-list--v2 .feature-item:hover .feature-icon {
  transform: rotate(-6deg) scale(1.06);
}
.features-list--v2 .feature-text { display: flex; flex-direction: column; min-width: 0; }
.features-list--v2 .feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #f1f5f9);
  line-height: 1.25;
}
.features-list--v2 .feature-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(241, 245, 249, 0.6);
  margin-top: 2px;
  letter-spacing: 0.2px;
}
body.light-mode .features-list--v2 .feature-title { color: #0f172a; }
body.light-mode .features-list--v2 .feature-sub { color: rgba(15, 23, 42, 0.62); }

/* Per-feature accent colors */
.features-list--v2 [data-accent="violet"] {
  --accent-from: #8b5cf6;
  --accent-to: #6d28d9;
  --accent-shadow: rgba(139, 92, 246, 0.35);
}
.features-list--v2 [data-accent="cyan"] {
  --accent-from: #06b6d4;
  --accent-to: #0891b2;
  --accent-shadow: rgba(6, 182, 212, 0.35);
}
.features-list--v2 [data-accent="emerald"] {
  --accent-from: #10b981;
  --accent-to: #059669;
  --accent-shadow: rgba(16, 185, 129, 0.35);
}
.features-list--v2 [data-accent="amber"] {
  --accent-from: #f59e0b;
  --accent-to: #d97706;
  --accent-shadow: rgba(245, 158, 11, 0.35);
}

/* ---------------------------------------------------------
   About → CTA buttons V2 — gradient AI-themed primary
   --------------------------------------------------------- */
.cta-buttons--v2 { gap: 1.25rem; align-items: stretch; }
.cta-buttons--v2 .cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  isolation: isolate;
}
.cta-buttons--v2 .cta-button i { font-size: 0.9rem; transition: transform 0.35s ease; }
.cta-buttons--v2 .cta-button .cta-arrow { font-size: 0.78rem; opacity: 0.85; }

.cta-buttons--v2 .cta-button.primary {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  border: none;
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.cta-buttons--v2 .cta-button.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
              transparent 0%,
              rgba(255, 255, 255, 0.28) 50%,
              transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.cta-buttons--v2 .cta-button.primary > * { position: relative; z-index: 1; }
.cta-buttons--v2 .cta-button.primary:hover {
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: 0 18px 42px rgba(139, 92, 246, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.cta-buttons--v2 .cta-button.primary:hover::before { transform: translateX(120%); }
.cta-buttons--v2 .cta-button.primary:hover .cta-arrow { transform: translateX(4px); }

.cta-buttons--v2 .cta-button.secondary {
  color: var(--primary, #06b6d4);
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(6, 182, 212, 0.5);
  backdrop-filter: blur(8px);
}
body.light-mode .cta-buttons--v2 .cta-button.secondary {
  background: rgba(6, 182, 212, 0.06);
}
.cta-buttons--v2 .cta-button.secondary:hover {
  transform: translateY(-3px);
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(6, 182, 212, 0.45);
}
.cta-buttons--v2 .cta-button.secondary:hover i { transform: scale(1.1); }

@media (max-width: 480px) {
  .features-list--v2 { padding: 0.9rem; gap: 0.75rem; }
  .features-list--v2 .feature-item { padding: 0.75rem 0.85rem; gap: 0.75rem; }
  .features-list--v2 .feature-icon { width: 38px; height: 38px; font-size: 0.95rem; }
  .features-list--v2 .feature-title { font-size: 0.92rem; }
  .features-list--v2 .feature-sub { font-size: 0.72rem; }
  .cta-buttons--v2 .cta-button { padding: 0.85rem 1.3rem; font-size: 0.92rem; }
}

/* ---------------------------------------------------------
   Fun Facts V2 — dark on-brand, color-accented stat cards
   --------------------------------------------------------- */
.fun-facts--v2 {
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.16), transparent 50%),
    linear-gradient(135deg, #0b1426 0%, #0f172a 100%);
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}
body.light-mode .fun-facts--v2 {
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.12), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.10), transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.fun-facts--v2 .fun-facts__head {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}
.fun-facts--v2 h2 {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.75rem;
}
.fun-facts--v2 h2::after { display: none; }
.fun-facts--v2 .fun-facts__sub {
  color: rgba(241, 245, 249, 0.7);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}
body.light-mode .fun-facts--v2 .fun-facts__sub { color: rgba(15, 23, 42, 0.7); }

.facts-grid--v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.facts-grid--v2 .fact-item {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease;
}
body.light-mode .facts-grid--v2 .fact-item {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
}

/* Per-fact gradient halo */
.facts-grid--v2 .fact-item::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -40%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-from, #8b5cf6) 0%, transparent 70%);
  opacity: 0.18;
  filter: blur(20px);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.facts-grid--v2 .fact-item:hover::before { opacity: 0.32; }

.facts-grid--v2 .fact-item:hover {
  transform: translateY(-6px);
  border-color: var(--accent-from, #8b5cf6);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.facts-grid--v2 .fact-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-from, #8b5cf6), var(--accent-to, #6d28d9));
  box-shadow: 0 10px 24px var(--accent-shadow, rgba(139, 92, 246, 0.4));
  margin-bottom: 1.1rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: none;
}
.facts-grid--v2 .fact-item:hover .fact-item__icon {
  transform: rotate(-8deg) scale(1.06);
  animation: none;
}

.facts-grid--v2 .fact-item__value {
  font-size: clamp(2.2rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-from, #8b5cf6), var(--accent-to, #6d28d9));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: baseline;
}
.facts-grid--v2 .fact-item__suffix {
  font-size: 0.7em;
  font-weight: 700;
  margin-left: 2px;
}
.facts-grid--v2 .fact-item__label {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(241, 245, 249, 0.78);
  line-height: 1.4;
  letter-spacing: 0.1px;
}
body.light-mode .facts-grid--v2 .fact-item__label { color: rgba(15, 23, 42, 0.75); }

/* Per-fact accent variables */
.facts-grid--v2 [data-accent="violet"]  { --accent-from: #8b5cf6; --accent-to: #6d28d9; --accent-shadow: rgba(139, 92, 246, 0.4); }
.facts-grid--v2 [data-accent="cyan"]    { --accent-from: #06b6d4; --accent-to: #0891b2; --accent-shadow: rgba(6, 182, 212, 0.4); }
.facts-grid--v2 [data-accent="amber"]   { --accent-from: #f59e0b; --accent-to: #d97706; --accent-shadow: rgba(245, 158, 11, 0.4); }
.facts-grid--v2 [data-accent="emerald"] { --accent-from: #10b981; --accent-to: #059669; --accent-shadow: rgba(16, 185, 129, 0.4); }
.facts-grid--v2 [data-accent="indigo"]  { --accent-from: #6366f1; --accent-to: #4f46e5; --accent-shadow: rgba(99, 102, 241, 0.4); }
.facts-grid--v2 [data-accent="pink"]    { --accent-from: #ec4899; --accent-to: #db2777; --accent-shadow: rgba(236, 72, 153, 0.4); }

@media (max-width: 900px) {
  .facts-grid--v2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .fun-facts--v2 { padding: 4rem 1rem; }
  .facts-grid--v2 { grid-template-columns: 1fr; gap: 1rem; }
  .facts-grid--v2 .fact-item { padding: 1.4rem 1.25rem; }
  .facts-grid--v2 .fact-item__icon { width: 42px; height: 42px; font-size: 1rem; }
}

/* ---------------------------------------------------------
   Process / Workflow stepper V2 — connected horizontal timeline
   --------------------------------------------------------- */
.process--v2 {
  padding: 6rem 1.5rem;
}
.process--v2 h2 { text-align: center; }
.process--v2 .process-intro {
  text-align: center;
  max-width: 620px;
  margin: 0.75rem auto 3.5rem;
  color: rgba(241, 245, 249, 0.7);
  font-size: 1rem;
}
body.light-mode .process--v2 .process-intro { color: rgba(15, 23, 42, 0.65); }

.process-stepper {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}

/* Horizontal connecting timeline behind nodes */
.process-stepper::before {
  content: "";
  position: absolute;
  top: 38px;
  left: calc(10% + 30px);
  right: calc(10% + 30px);
  height: 2px;
  background: linear-gradient(
    90deg,
    #8b5cf6 0%,
    #06b6d4 25%,
    #6366f1 50%,
    #10b981 75%,
    #f59e0b 100%
  );
  opacity: 0.35;
  z-index: 0;
  border-radius: 2px;
}

.process-stepper__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.process-stepper__node {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-from, #8b5cf6), var(--accent-to, #06b6d4));
  box-shadow: 0 16px 40px var(--accent-shadow, rgba(139, 92, 246, 0.4)),
              0 0 0 6px rgba(15, 23, 42, 0.9);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1.25rem;
}
body.light-mode .process-stepper__node {
  box-shadow: 0 16px 40px var(--accent-shadow, rgba(139, 92, 246, 0.4)),
              0 0 0 6px #ffffff;
}
.process-stepper__icon {
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}
.process-stepper__icon i { display: inline-block; }

/* Step number floating top-right */
.process-stepper__num {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent-from, #8b5cf6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
body.light-mode .process-stepper__num {
  background: #ffffff;
  color: #0f172a;
}

.process-stepper__body {
  max-width: 220px;
}
.process-stepper__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  background: linear-gradient(135deg, var(--accent-from, #8b5cf6), var(--accent-to, #06b6d4));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.process-stepper__body p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.72);
  margin: 0;
}
body.light-mode .process-stepper__body p { color: rgba(15, 23, 42, 0.7); }

/* Hover */
.process-stepper__item:hover .process-stepper__node {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 22px 50px var(--accent-shadow, rgba(139, 92, 246, 0.55)),
              0 0 0 6px rgba(15, 23, 42, 0.9);
}
body.light-mode .process-stepper__item:hover .process-stepper__node {
  box-shadow: 0 22px 50px var(--accent-shadow, rgba(139, 92, 246, 0.55)),
              0 0 0 6px #ffffff;
}

/* Per-step color accents */
.process-stepper [data-accent="violet"]  { --accent-from: #8b5cf6; --accent-to: #7c3aed; --accent-shadow: rgba(139, 92, 246, 0.45); }
.process-stepper [data-accent="cyan"]    { --accent-from: #06b6d4; --accent-to: #0891b2; --accent-shadow: rgba(6, 182, 212, 0.45); }
.process-stepper [data-accent="indigo"]  { --accent-from: #6366f1; --accent-to: #4f46e5; --accent-shadow: rgba(99, 102, 241, 0.45); }
.process-stepper [data-accent="emerald"] { --accent-from: #10b981; --accent-to: #059669; --accent-shadow: rgba(16, 185, 129, 0.45); }
.process-stepper [data-accent="amber"]   { --accent-from: #f59e0b; --accent-to: #d97706; --accent-shadow: rgba(245, 158, 11, 0.45); }

/* Tablet — switch to 2 columns, hide horizontal line */
@media (max-width: 1024px) {
  .process-stepper {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
    max-width: 720px;
  }
  .process-stepper::before { display: none; }
  .process-stepper__item:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 320px;
  }
}

/* Mobile — vertical timeline */
@media (max-width: 640px) {
  .process--v2 { padding: 4rem 1rem; }
  .process-stepper {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 1.25rem;
    position: relative;
  }
  .process-stepper::before {
    display: block;
    top: 38px;
    bottom: 38px;
    left: 46px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(
      180deg,
      #8b5cf6 0%,
      #06b6d4 25%,
      #6366f1 50%,
      #10b981 75%,
      #f59e0b 100%
    );
    opacity: 0.4;
  }
  .process-stepper__item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem;
  }
  .process-stepper__item:last-child {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
  }
  .process-stepper__node {
    width: 64px;
    height: 64px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .process-stepper__icon { font-size: 1.15rem; }
  .process-stepper__body { max-width: none; padding-top: 0.35rem; }
}

/* ---------------------------------------------------------
   Scroll-reveal smoothing — prevents pre-animation flash
   and gives GSAP-revealed cards a clean starting state
   --------------------------------------------------------- */
.skill-category,
.tool-item,
.service-item,
.process-stepper__item,
.stat-item,
.achievement-card,
.expertise-card,
.case-study-item,
.portfolio-item,
.testimonial-item,
.blog-item,
.faq-item,
.contact-card,
.contact-form,
.fact-item {
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  .skill-category,
  .tool-item,
  .service-item,
  .process-stepper__item,
  .stat-item,
  .achievement-card,
  .expertise-card,
  .case-study-item,
  .portfolio-item,
  .testimonial-item,
  .blog-item,
  .faq-item,
  .contact-card,
  .contact-form,
  .fact-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   MOBILE UX POLISH — Touch targets, sticky-hover fix,
   iOS form-zoom fix, filter scroll, sticky CTA, copy-email
   ============================================================ */

/* 1. Stop hover transforms from getting "stuck" after a tap on
      touch devices. Keep all the rich hover effects on real cursors. */
@media (hover: none), (pointer: coarse) {
  .filter-btn:hover,
  .filter-btn.active,
  .portfolio-item:hover,
  .service-item:hover,
  .skill-category:hover,
  .tool-item:hover,
  .achievement-card:hover,
  .expertise-card:hover,
  .testimonial-item:hover,
  .blog-item:hover,
  .faq-item:hover,
  .contact-card:hover,
  .contact-card:hover::before,
  .stat-card:hover,
  .fact-item:hover,
  .btn-hire:hover,
  .btn-projects:hover,
  .cta-button:hover,
  .cta-button.primary:hover,
  .cta-button.secondary:hover,
  .schedule-button:hover,
  .form-submit:hover,
  .read-more-btn:hover,
  .back-to-top:hover {
    transform: none;
  }
  /* The filter-btn :hover rule sets a strong shadow/gradient — keep
     that only for the .active state, not casual taps. */
  .filter-btn:hover:not(.active) {
    background: var(--card-bg);
    color: var(--text);
    box-shadow: var(--shadow);
    border-color: rgba(99, 102, 241, 0.1);
  }
  .portfolio-item:hover {
    animation: none;
  }
}

/* 2. iOS Safari zooms inputs when font-size < 16px. Force 16px on
      every form field at mobile widths so the viewport never jumps. */
@media (max-width: 768px) {
  .form-group input,
  .form-group textarea,
  .contact-form input,
  .contact-form textarea {
    font-size: 16px !important;
  }
}

/* 3. Touch-target minimums (WCAG 2.5.5 ≥ 44×44 CSS px).
      Old rules shrank these to 32-40px on small phones — fix. */
@media (max-width: 768px) {
  .mobile-menu-toggle,
  .theme-toggle {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.1rem !important;
    border-radius: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .back-to-top {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
  }
  /* Make sure raw <a>/<button> in nav-links and lists never go below
     comfortable thumb-tap height. */
  .nav-links a,
  .faq-item summary,
  .filter-btn,
  .read-more-btn,
  .form-submit,
  .schedule-button,
  .btn-hire,
  .btn-projects {
    min-height: 44px;
  }
}

/* 4. Hero buttons row — at 768px the existing rule tries 2 columns
      with flex 1 1 150px which wraps awkwardly on phones < 380px.
      Stack into a clean column on small phones with consistent height. */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .btn-hire,
  .btn-projects {
    width: 100%;
    flex: none;
    padding: 0.95rem 1.25rem;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.98rem;
  }
}

/* 5. Portfolio filter buttons — at 4–5 buttons + small screen they
      either overflow or wrap into an awkward stack. Make them a clean
      horizontally-scrollable rail with snap. */
@media (max-width: 600px) {
  .portfolio-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 0.25rem 1rem 0.75rem;
    margin-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 14px,
      #000 calc(100% - 14px),
      transparent 100%
    );
  }
  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0.65rem 1.1rem;
    font-size: 0.88rem;
    border-radius: 999px;
  }
}

/* 6. CTA Buttons V2 — guarantee they stack neatly on mobile
      (old rule kept them inline-flex which clipped icons). */
@media (max-width: 600px) {
  .cta-buttons--v2 {
    flex-direction: column;
    gap: 0.75rem;
  }
  .cta-buttons--v2 .cta-button {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    min-height: 50px;
  }
}

/* 7. Form status — replaces the alert() popup with inline feedback */
.form-status {
  margin-top: 1rem;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 1.4em;
  color: var(--text);
  text-align: left;
  transition: color 0.2s ease;
}
.form-status.is-error {
  color: #ef4444;
}
.form-status.is-success {
  color: #10b981;
}
.form-status.is-loading {
  color: var(--primary);
}

/* 8. Copy-email button on the email contact card */
.contact-card {
  /* Allow absolute positioning for the copy button */
  position: relative;
}
.copy-email-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 2;
  line-height: 1;
}
.copy-email-btn i {
  /* Override the gradient/clip styling that .contact-card i applies. */
  font-size: 0.8rem !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: var(--primary) !important;
  background-clip: initial !important;
  margin: 0 !important;
  color: var(--primary);
}
.copy-email-btn:hover {
  background: var(--primary);
  color: #fff;
}
.copy-email-btn:hover i {
  -webkit-text-fill-color: #fff !important;
  color: #fff;
}
.copy-email-btn.is-copied {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}
.copy-email-btn.is-copied i {
  -webkit-text-fill-color: #fff !important;
  color: #fff;
}
@media (max-width: 480px) {
  .copy-email-btn {
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    font-size: 0.7rem;
  }
}

/* 9. Sticky mobile CTA bar — only visible on phones, hides itself
      when the contact section is on-screen (handled in JS). */
.mobile-cta-bar {
  display: none;
}
@media (max-width: 768px) {
  .mobile-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 0.5rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.55rem 0.75rem;
    padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(34, 211, 238, 0.18);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.28);
    z-index: 9998;
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
  }
  body.light-mode .mobile-cta-bar {
    background: rgba(255, 255, 255, 0.94);
    border-top-color: rgba(6, 182, 212, 0.2);
  }
  .mobile-cta-bar.is-hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
  }
  .mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.1px;
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  }
  body.light-mode .mobile-cta-btn {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
  }
  .mobile-cta-btn i {
    font-size: 0.95rem;
  }
  .mobile-cta-btn:active {
    transform: scale(0.97);
  }
  .mobile-cta-call {
    color: #06b6d4;
  }
  .mobile-cta-wa {
    color: #22c55e;
  }
  .mobile-cta-hire {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
  }
  /* Push the back-to-top above the sticky bar so they don't overlap */
  .back-to-top {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
  }
  /* Footer needs extra bottom padding so its content isn't hidden
     under the sticky CTA bar */
  footer {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 90px) !important;
  }
}

/* Smaller phones — make labels shorter / icon-led */
@media (max-width: 380px) {
  .mobile-cta-bar {
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 0.4rem;
    padding: 0.5rem 0.5rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }
  .mobile-cta-btn {
    font-size: 0.78rem;
    padding: 0 0.35rem;
  }
}

/* 10. Mobile menu overlay — make the open menu cover full-width
       on landscape phones too, with safe scrolling. */
@media (max-width: 768px) {
  .nav-links.active {
    max-height: calc(100dvh - 70px);
  }
  /* Slightly larger tap-area for menu items */
  .nav-links a {
    min-height: 48px;
    align-items: center;
  }
}
