/* ===== 1. VARIABLES & RESET ===== */
:root {
  /* Color Palette - Modern Dark Theme (Default) */
  --bg-primary: #0a0a0a;
  --bg-primary-rgb: 10, 10, 10;
  --bg-secondary: #121212;
  --bg-secondary-rgb: 18, 18, 18;
  --bg-tertiary: #1a1a1a;
  --bg-card: #1e1e1e;
  --bg-hover: #2a2a2a;

  --text-gradient: linear-gradient(to bottom, #ffffff, #8d8d8d);
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #888888;

  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #ec4899;

  --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --gradient-secondary: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));

  --border-color: #333333;
  --border-color-rgb: 51, 51, 51;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 24px;

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Variables */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-primary-rgb: 255, 255, 255;
  --bg-secondary: #f8fafc;
  --bg-secondary-rgb: 248, 250, 252;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-hover: #e2e8f0;

  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  --border-color: #e2e8f0;
  --border-color-rgb: 226, 232, 240;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== 2. ANIMATIONS & KEYFRAMES ===== */
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Enhanced one-by-one fade-in and slide-up animation for home section elements */
@keyframes fadeInSlideUp {
  0% {
    opacity: 0;
    transform: translateY(60px) translateX(-20px) scale(0.9) rotateX(10deg);
    filter: blur(8px) brightness(0.8);
    box-shadow: 0 0 0 rgba(99, 102, 241, 0);
  }
  50% {
    opacity: 0.7;
    transform: translateY(20px) translateX(-5px) scale(0.95) rotateX(2deg);
    filter: blur(3px) brightness(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1) rotateX(0deg);
    filter: blur(0) brightness(1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
  }
}

/* Enhanced bounce effect with glow */
@keyframes bounceUp {
  0%, 100% {
    transform: translateY(0) scale(1) rotateX(0deg);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
  }
  50% {
    transform: translateY(-8px) scale(1.03) rotateX(-2deg);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
  }
}

/* Staggered entrance animation */
@keyframes staggeredFadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Enhanced social links animation */
@keyframes socialSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-30px) scale(0.8) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
  }
}

/* Hero image enhanced animation */
@keyframes heroImageReveal {
  0% {
    opacity: 0;
    transform: scale(0.8) rotateY(20deg);
    filter: blur(10px) brightness(0.7);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9) rotateY(10deg);
    filter: blur(5px) brightness(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    filter: blur(0) brightness(1);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(60px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cubicIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cubicOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(30px);
  }
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(99, 102, 241, 0);
  }
  50% {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  }
}

@keyframes gradientFlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes gradientShift {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes slideUpIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionFadeIn {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes bellRing {
  0%, 50%, 100% {
    transform: rotate(0deg);
  }
  5%, 15%, 25% {
    transform: rotate(-15deg);
  }
  10%, 20%, 30% {
    transform: rotate(15deg);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-25px);
  }
}

@keyframes floatUpSmall {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes dotPulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes slideDownIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes successPulse {
  0%, 50%, 100% {
    transform: scale(1);
  }
  25%, 75% {
    transform: scale(1.1);
  }
}

@keyframes errorShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdropFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(6px) saturate(1.1);
  }
}
@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes socialPulse {
  0% {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  }
  70% {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }
  100% {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

@keyframes heartbeat {
  0%, 50%, 100% {
    transform: scale(1);
  }
  25%, 75% {
    transform: scale(1.1);
  }
}

@keyframes magneticFloat {
  0%, 100% {
    transform: translateY(-3px) scale(1.05) rotateX(5deg);
  }
  50% {
    transform: translateY(-8px) scale(1.06) rotateX(8deg);
  }
}

@keyframes gradientPulse {
  0%, 100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.2) saturate(1.3);
  }
}

@keyframes bounceGlow {
  0%, 100% {
    transform: translateY(-5px) scale(1.05) rotate(-2deg);
    box-shadow:
      0 20px 60px rgba(var(--accent-primary-rgb), 0.3),
      0 0 0 2px rgba(var(--accent-primary-rgb), 0.2);
  }
  50% {
    transform: translateY(-10px) scale(1.08) rotate(1deg);
    box-shadow:
      0 25px 70px rgba(var(--accent-primary-rgb), 0.4),
      0 0 0 3px rgba(var(--accent-primary-rgb), 0.3);
  }
}

  @keyframes rotateIn {
            to {
                opacity: 1;
                transform: rotate(0deg) scale(1);
            }
        }

@keyframes slideUpGlow {
  0%, 100% {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
      0 20px 40px rgba(99, 102, 241, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  50% {
    transform: translateY(-6px) scale(1.08);
    box-shadow:
      0 30px 60px rgba(99, 102, 241, 0.5),
      0 0 0 2px rgba(255, 255, 255, 0.2);
  }
}

/* Enhanced particle float animation for background */
@keyframes particleFloat {
  0% {
    background-position: 0% 100%, 100% 0%, 50% 50%, 0% 0%, 100% 100%;
    opacity: 0.4;
    filter: blur(0px) brightness(1);
  }
  25% {
    background-position: 25% 75%, 75% 25%, 60% 40%, 20% 30%, 80% 70%;
    opacity: 0.6;
    filter: blur(0.5px) brightness(1.1);
  }
  50% {
    background-position: 50% 50%, 50% 50%, 70% 30%, 40% 60%, 60% 40%;
    opacity: 0.8;
    filter: blur(1px) brightness(1.2);
  }
  75% {
    background-position: 75% 25%, 25% 75%, 60% 40%, 60% 30%, 40% 70%;
    opacity: 0.6;
    filter: blur(0.5px) brightness(1.1);
  }
  100% {
    background-position: 100% 0%, 0% 100%, 50% 50%, 80% 0%, 20% 100%;
    opacity: 0.4;
    filter: blur(0px) brightness(1);
  }
}

/* Glowing pulse animation */
@keyframes glowPulseNew {
  0%, 100% {
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3), 0 0 20px rgba(139, 92, 246, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6), 0 0 50px rgba(139, 92, 246, 0.3);
  }
}

/* Floating up and down smoothly */
@keyframes smoothFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Rotating glow effect */
@keyframes rotatingGlow {
  0% {
    background: conic-gradient(from 0deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.5), rgba(99, 102, 241, 0.5));
    transform: rotate(0deg);
  }
  100% {
    background: conic-gradient(from 360deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.5), rgba(99, 102, 241, 0.5));
    transform: rotate(360deg);
  }
}

/* Morphing shape animation */
@keyframes morphShape {
  0%, 100% {
    border-radius: 50%;
  }
  25% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  50% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }
  75% {
    border-radius: 30% 70% 70% 30% / 70% 40% 60% 30%;
  }
}

/* Shimmering wave animation */
@keyframes shimmerWave {
  0%, 100% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Pulsing scale with glow */
@keyframes pulseScale {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Rotating orbit animation */
@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(50px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(50px) rotate(-360deg);
  }
}

/* Flickering effect */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.5;
  }
}

/* Sliding in from edges */
@keyframes slideEdge {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* Expand and fade */
@keyframes expandFade {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Apply enhanced animation classes */
.home-modern-left > * {
  opacity: 0;
  transform: translateY(60px) translateX(-20px) scale(0.9) rotateX(10deg);
  filter: blur(8px) brightness(0.8);
  animation-fill-mode: forwards;
  will-change: transform, opacity, filter;
}

.home-modern-left > *.fade-in-slide-up {
  animation-name: fadeInSlideUp;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.home-modern-left > *.bounce-up {
  animation-name: bounceUp;
  animation-duration: 0.4s;
  animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

.home-modern-socials a {
  opacity: 0;
  transform: translateX(-30px) scale(0.8) rotate(-10deg);
  animation: socialSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.home-modern-right .home-modern-image-wrapper {
  opacity: 0;
  transform: scale(0.8) rotateY(20deg);
  filter: blur(10px) brightness(0.7);
  animation: heroImageReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1.5s;
}

/* Unified slide-up animation classes */
.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Apply cubic animations to sections */
.section-animate {
  animation: cubicIn 0.6s ease-in-out forwards;
}

.section-leave {
  animation: cubicOut 0.6s ease-in-out forwards;
}

/* Section animation styles */
section {
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

section.section-animated {
  animation: sectionFadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Staggered child animations */
.section-animated .card-modern,
.section-animated [class*="card-modern"],
.section-animated .item-modern {
  animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ===== 3. TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  font-family: 'Syne', sans-serif;
}

h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ===== 4. LAYOUT & CONTAINERS ===== */
.container-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== 5. NAVIGATION ===== */
.nav-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #0000001b;
  border-radius: 100px;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1350px;
  margin: 1rem auto;
  box-sizing: border-box;
  box-shadow: none;
  z-index: 1000;
  transition: var(--transition);
  will-change: transform, backdrop-filter, background;
}

.nav-main.scrolled {
  padding: 0.5rem 2rem;
  background: rgba(var(--bg-primary-rgb), 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0;
  animation: logoEntrance 1s ease-out forwards;
}

.logo:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.logo i {
  color: var(--accent-primary);
  font-size: 1.5rem;
  animation: iconPulse 2s infinite;
}

.logo .text {
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  letter-spacing: 1px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.logo:hover .text {
  letter-spacing: 1.5px;
}

/* ===== NAVIGATION LINKS ===== */
.menu-links {
    display: flex;
    gap: 1.2rem;
    font-size: 1rem;
    list-style: none;
    transition: var(--transition);
    margin-left: 85%;
    margin-right: 50%;
    justify-content: center;
  align-items: center;
}

.menu-links .link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0 0;
  background: none;
}

.menu-links .link:hover,
.menu-links .link.active {
  color: var(--text-primary);
}

.menu-links .link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.menu-links .link:hover::after,
.menu-links .link.active::after {
  width: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: var(--transition);  
  border-radius: 2px;
}

/* Mobile menu active state */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Blur Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Light mode overlay adjustment */
[data-theme="light"] .mobile-menu-overlay {
  background: rgba(255, 255, 255, 0.7);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: flex;
  align-items: center;
}

.theme-toggle-btn {
  width: 50px;
  height: 50px;
  background: #00000000;
  border: 1px solid #00000000;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.theme-toggle-btn:hover {
  background:#00000000;
  
  transform: scale(1.05);
  box-shadow: #00000000;
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

/* Theme toggle icon adjustments */
[data-theme="light"] .theme-toggle-btn i.fa-moon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn i.fa-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn i.fa-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle-btn i.fa-moon {
  display: block;
}

/* ===== 6. HOME SECTION ===== */
.home-modern {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.home-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.home-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    /* Floating particles effect */
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.2) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.12) 2px, transparent 2px),
    radial-gradient(circle at 60% 90%, rgba(99, 102, 241, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 90% 60%, rgba(139, 92, 246, 0.08) 2px, transparent 2px);
  background-size: 200px 200px, 180px 180px, 150px 150px, 220px 220px, 160px 160px;
  z-index: -1;
  animation: particleFloat 30s ease-in-out infinite;
  filter: blur(1px);
}

.home-modern-container {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.home-modern-left {
  position: relative;
  text-align: left;
}

 .home-modern-socials {
  display: flex;
  gap: 2.5rem;
  justify-content: left;
  flex-wrap: wrap;
  margin-top: 30px;
}
.home-modern-socials a {
  display: flex;
  align-items: center;
  justify-content: left;
  border-radius: 50%;
  margin-bottom: 1rem;
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.8rem;
  opacity: 0;
  transform: rotate(-180deg) scale(0.5);
  animation: rotateIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        .home-modern-socials a:nth-child(1) { animation-delay: 0.1s; }
        .home-modern-socials a:nth-child(2) { animation-delay: 0.3s; }
        .home-modern-socials a:nth-child(3) { animation-delay: 0.5s; }
        .home-modern-socials a:nth-child(4) { animation-delay: 0.7s; }
        .home-modern-socials a:nth-child(5) { animation-delay: 0.9s; }

.home-modern-socials a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
}

.home-modern-socials a:hover::before {
  left: 100%;
}

 /* Zoom effect on hover */
.home-modern-socials a:hover {
  transform: scale(1.4);
 }

/* Light mode adjustments for social links */
[data-theme="light"] .home-modern-socials a {
  color: var(--accent-primary);
}

[data-theme="light"] .home-modern-socials a:hover {
  color: var(--accent-primary);
}

.home-modern-info {
  position: relative;
}

.home-modern-info h1 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientFlow 3s ease-in-out infinite;
}

.home-modern-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.home-modern-highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.home-modern-info h1:hover .home-modern-highlight::after {
  transform: scaleX(1);
}

.home-modern-info h2 {
  font-size: 1.6rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-weight: 700;
  line-height: 0.5;
  font-family: 'Syne', sans-serif;
  animation: fadeInLeft 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.home-modern-info p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 90%;
  animation: fadeInLeft 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.home-modern-contact {
  background: var(--bg-card); 
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
}

.home-modern-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.home-modern-contact::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
  border-radius: calc(var(--border-radius-lg) + 2px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.home-modern-contact:hover::before {
  left: 100%;
}

.home-modern-contact:hover {
  transform: translateY(-3px) scale(1.05) rotateX(5deg);
  box-shadow:
    0 20px 40px rgba(99, 102, 241, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.home-modern-contact:active {
  transform: translateY(-1px) scale(1.02) rotateX(2deg);
  transition: all 0.1s ease;
}

.home-modern-contact {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #0a0a0a;
  position: relative;
  z-index: 2;
}

.home-modern-contact span {
  background: linear-gradient(135deg, #0a0a0a, #2a2a2a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.2s ease-in-out;
  font-weight: 700;
}

.home-modern-contact:hover span {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.02);
}

.home-modern-contact i {
  color: #0a0a0a;
  font-weight: 900;
  position: relative;
  font-weight: 700;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.home-modern-contact:hover i {
  color: #ffffff;
  transform: translateX(5px) rotate(15deg) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.home-modern-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-modern-image {
  width: 450px;
  height: 600px;
  object-fit: cover;
  transition: all 0.6s ease;
  border-radius: 10px;
  filter: grayscale(0.2) contrast(1.1);
  animation: floatUpDown 4s ease-in-out infinite;
}

.home-modern-image-wrapper:hover .home-modern-image {
  transform: scale(1.05);
}

.home-modern-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.08;
  z-index: 1;
  mix-blend-mode: overlay;
  transition: opacity 0.6s ease;
}

.home-modern-image-wrapper:hover .home-modern-image-bg {
  opacity: 0.12;
}

/* ===== HOME NOTIFICATION ===== */
.home-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: slideUpIn 0.6s ease-out;
  max-width: 90%;
  width: max-content;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.notification-content i {
  font-size: 1.2rem;
  animation: bellRing 2s ease-in-out infinite;
}

.notification-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.notification-close:active {
  transform: scale(0.95);
}

/* ===== 7. ABOUT SECTION ===== */
.about-section-modern {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-section-modern.in-view {
  opacity: 1;
  transform: translateY(0);
}

.about-section-modern.animate-elements .all-main-title {
  animation: none;
}

.about-section-modern.animate-elements .about-card-modern {
  animation: none;
}

.about-section-modern.animate-elements .about-card-modern:nth-child(1) {
  animation-delay: 2s;
}

.about-section-modern.animate-elements .about-card-modern:nth-child(2) {
  animation-delay: 4s;
}

.about-section-modern.animate-elements .about-card-modern:nth-child(3) {
  animation-delay: 6s;
}

.about-section-modern.animate-elements .about-image-card-modern {
  animation: none;
  animation-delay: 0.3s;
}

.about-section-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.all-main-title {
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

.section-subtitle {
  margin: 0 auto;
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.6;
}

.all-main-title h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out, gradientFlow 4s ease-in-out infinite;
  letter-spacing: -0.5px;
}

.all-main-title h2:hover {
  transform: scale(1.05);
  letter-spacing: 1px;
}

.all-main-title h2 i {
  font-size: 3.5rem;
  animation: iconPulse 2s ease-in-out infinite;
}

.all-main-title h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 0;
  animation: slideInUp 0.8s ease-out 0.3s forwards;
}

.all-main-title h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.all-main-title h2:hover::after {
  width: 100px;
}

/* Light mode gradients for title classes */
[data-theme="light"] .all-main-title h2 {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-card-modern {
  padding: 2rem;
  border: 2px solid rgba(99, 102, 241, 0.1);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.02));
  border-radius: var(--border-radius-lg);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out backwards;
}

.about-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.about-card-modern:hover::before {
  left: 100%;
} 

.about-card-modern:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
}

.about-icon-modern {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  transition: all 0.4s ease;
}

.about-card-modern:hover .about-icon-modern {
  transform: scale(1.15);
  border-color: var(--accent-primary);
}

.about-info-modern h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.about-tagline {
  display: block;
  font-size: 1rem;
  color: var(--accent-secondary);
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--border-radius-md);
  transition: all 0.3s ease;
}

.highlight-item i {
  color: var(--accent-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.highlight-item span {
  color: var(--text-secondary);
  font-weight: 500;
}

.highlight-item:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(5px);
}

/* reveal state for highlight items (animated via JS) */
.highlight-item {
  opacity: 0;
  transform: translateY(12px);
}

.highlight-item.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-stats-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  animation: fadeInUp 0.9s ease-out backwards;
}

.stat-item-modern {
  text-align: center;
  padding: 1rem;
}

.stat-number-modern {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.2,0.9,0.3,1);
}

.stat-number-modern.animated {
  transform: none;
  transition: transform 0.4s cubic-bezier(0.2,0.9,0.3,1);
}

.stat-number-modern.count-finished {
  transform: scale(1.14);
  text-shadow: 0 6px 18px rgba(99,102,241,0.12);
  transition: transform 0.35s cubic-bezier(0.2,0.9,0.3,1);
}

.stat-label-modern {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.about-btn-modern {
  font-family: 'Syne', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.about-btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.about-btn-modern:hover::before {
  left: 100%;
}

.about-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.about-btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.about-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.about-btn-primary:active {
  transform: translateY(-1px);
}

.about-btn-modern i {
  font-size: 1.1rem;
  transition: all 0.3s ease;
}



.about-image-card-modern {
  position: relative;
  animation: floatUpSmall 4s ease-in-out infinite;
}

.about-image-wrapper-modern {
  margin-top: 2.5rem;
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-modern {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-image-wrapper-modern:hover .about-image-modern {
  transform: scale(1.08) ;
  filter: brightness(1.1);
}

.about-image-wrapper-modern:hover .about-image-overlay-modern {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.about-image-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.22);
  animation: slideInUp 0.6s ease-out;
}

.about-image-badge::before {
  content: '\f121';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 0.6rem;
  display: inline-block;
  transform: translateY(-1px);
}

.about-qualities-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.quality-item-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: var(--transition);
}

.quality-item-modern:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.quality-item-modern i {
  color: var(--accent-primary);
  font-size: 1.2rem;
}

/* ===== 8. EDUCATION SECTION ===== */
.education-section-modern {
  padding: 4rem 0;
  position: relative;
}

.education-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  perspective: 1000px;
}

@media (max-width: 1024px) {
  .education-section-modern {
    padding: 3.5rem 0;
  }
  
  .education-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
  }
  
  .education-card-modern {
    padding: 2rem;
    gap: 1.5rem;
  }
  
  .edu-icon-modern {
    width: 65px;
    height: 65px;
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .education-section-modern {
    padding: 1rem 0;
  }
  
  .education-grid-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .education-card-modern {
    padding: 1.75rem;
    align-items: center;
    gap: 1.2rem;
  }
  
  .edu-icon-modern {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  
  .education-card-modern h4 {
    font-size: 1.1rem;
  }
  
  .education-card-modern p {
    font-size: 0.95rem;
  }
  
  .edu-badge-modern {
    font-size: 0.7rem;
    padding: 0.35rem 1rem;
  }
}

@media (max-width: 480px) {
  .education-section-modern {
    padding: 2.5rem 0;
  }
  
  .education-grid-modern {
    gap: 1.2rem;
  }
  
  .education-card-modern {
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .edu-icon-modern {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
  
  .education-card-modern h4 {
    font-size: 1rem;
  }
  
  .education-card-modern p {
    font-size: 0.9rem;
  }
  
  .edu-badge-modern {
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
  }
}

.education-card-modern {
  padding: 1.2rem 1.2rem;
  border-radius: var(--border-radius-lg);
  border: 2px solid rgba(99, 102, 241, 0.15);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: start;
  gap: 1.8rem;
  animation: fadeInUp 0.8s ease-out backwards;
  position: relative;
  overflow: hidden; 
}

.education-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.7s ease;
}

.education-card-modern:hover::before {
  left: 100%;
}

.education-card-modern:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
}

.edu-icon-modern {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 2.2rem;
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.education-card-modern:hover .edu-icon-modern {
  transform: scale(1.1) ;
}

.edu-badge-modern {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.8rem;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== 9. SKILL SECTION ===== */
.skills-section-modern {
  padding: 4rem 0;
  position: relative;
}

.skills-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2rem;
  perspective: 1000px;
}

@media (max-width: 1024px) {
  .skills-section-modern {
    padding: 3.5rem 0;
  }
  
  .skills-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
  }
  
  .skill-card-modern {
    padding: 1.75rem;
    gap: 1.5rem;
  }
  
  .skill-icon-modern {
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }
  
  .skill-info-modern span {
    font-size: 1rem;
  }
  
  .skill-bar-modern {
    height: 9px;
  }
}

@media (max-width: 768px) {
  .skills-section-modern {
    padding: 3rem 0;
  }
  
  .skills-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .skill-card-modern {
    padding: 1.5rem;
    gap: 1.2rem;
    align-items: center;
  
  }
  
  .skill-icon-modern {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
  
  .skill-info-modern {
    width: 100%;
  }
  
  .skill-info-modern span {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }
  
  .skill-bar-modern {
    height: 8px;
    margin-bottom: 0.4rem;
  }
  
  .skill-percent-modern {
    font-size: 0.9rem;
    text-align: center;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .skills-section-modern {
    padding: 2.5rem 0;
  }
  
  .skills-grid-modern {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .skill-card-modern {
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .skill-icon-modern {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }
  
  .skill-info-modern span {
    font-size: 0.9rem;
  }
  
  .skill-bar-modern {
    height: 7px;
  }
  
  .skill-percent-modern {
    font-size: 0.85rem;
  }
}

.skill-card-modern {
  padding: 1.1rem;
  border-radius: var(--border-radius-lg);
  border: 2px solid rgba(99, 102, 241, 0.12);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.04));
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  gap: 1.8rem;
  position: relative;
  overflow: hidden;
}

.skill-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-card-modern:hover::before {
  left: 100%;
}

.skill-card-modern:hover {
  transform: translateY(-12px) scale(1.04);
  border-color: var(--accent-secondary);
  box-shadow: 0 20px 45px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.skill-icon-modern {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 2.2rem;
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-card-modern:hover .skill-icon-modern {
  transform: scale(1.1);
}

.skill-info-modern {
  flex: 1;
}

.skill-info-modern span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.skill-bar-modern {
  width: 100%;
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.5rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.skill-level-modern {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  width: 0;
  overflow: hidden;
  box-shadow: inset 0 -4px 10px rgba(0,0,0,0.12);
}

.skill-level-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02), rgba(255,255,255,0.12));
  transform: skewX(-20deg);
  animation: shimmerSkill 1.8s linear infinite;
}

.skill-percent-modern {
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 48px;
  text-align: right;
  font-size: 0.95rem;
}

@keyframes shimmer {
  0% { left: -40%; }
  100% { left: 120%; }
}

.skill-level-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

.skill-level-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.skill-percent-modern {
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 0.9rem;
}

.skill-card-modern:hover .skill-icon-modern {
  transform: scale(1.1);
}

/* ===== 10. CERTIFICATES SECTION ===== */
.certificate-section-modern {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .certificate-section-modern {
    padding: 3.5rem 0;
  }
  
  .certificate-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
  }
  
  .certificate-card-modern {
    padding: 2rem;
    gap: 1.5rem;
  }
  
  .cert-icon-modern {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  
  .cert-content-modern h4 {
    font-size: 1.2rem;
  }
  
  .cert-content-modern p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .certificate-section-modern {
    padding: 3rem 0;
  }
  
  .certificate-grid-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-right: 0;
    margin-left: 0;
  }
  
  .certificate-card-modern {
    padding: 1.75rem;
    align-items: center;
    gap: 1.2rem;
  }
  
  .cert-icon-modern {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
  }
  
  .cert-content-modern {
    width: 100%;
  }
  
  .cert-content-modern h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .cert-content-modern p {
    font-size: 0.9rem;
  }
  
  .cert-badge-modern {
    font-size: 0.7rem;
    padding: 0.3rem 0.9rem;
  }
  
  .cert-details-modern {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cert-actions-modern {
    flex-direction: row;
    width: 100%;
  }
  
  .certificate-btn-modern {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .certificate-section-modern {
    padding: 2.5rem 0;
  }
  
  .certificate-grid-modern {
    gap: 1.2rem;
  }
  
  .certificate-card-modern {
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .cert-icon-modern {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }
  
  .cert-content-modern h4 {
    font-size: 1rem;
  }
  
  .cert-content-modern p {
    font-size: 0.85rem;
  }
  
  .cert-badge-modern {
    font-size: 0.65rem;
    padding: 0.25rem 0.75rem;
  }
  
  .cert-platform,
  .cert-duration {
    font-size: 0.8rem;
  }
  
  .certificate-btn-modern {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

.certificate-section-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.certificate-section-modern .cubic-animation-container {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 150px;
  height: 150px;
  z-index: 1;
}

.certificate-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-right: 1rem;
  margin-left: 1rem;
  perspective: 1000px;
}

.certificate-card-modern {
  padding: 1.2rem;
  border-radius: var(--border-radius-lg);
  border: 2px solid rgba(99,102,241,0.15);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  gap: 1.8rem;
  position: relative;
  overflow: hidden;
}

.certificate-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.certificate-card-modern:hover::before {
  left: 100%;
}

.certificate-card-modern:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0px 10px 20px rgba(99,102,241,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  border-color: var(--accent-primary);
}

.cert-icon-modern {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 2rem;
  flex-shrink: 0;
}

.cert-content-modern {
  flex: 1;
}

.cert-badge-modern {
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

.cert-details-modern {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.cert-platform,
.cert-duration {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cert-actions-modern {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.certificate-btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  transition: var(--transition);
}

.certificate-btn-modern:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
}

.cert-icon-modern{
   width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 2rem;
  flex-shrink: 0; 
  transition: all 0.4s ease;  
}

.certificate-card-modern:hover .cert-icon-modern {
  transform: scale(1.2) ;
}
/* ===== 11. EXPERIENCE SECTION ===== */
.experience-section-modern {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.experience-section-modern.in-view {
  opacity: 1;
  transform: translateY(0);
}

.experience-section-modern.animate-elements .experience-card-modern {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.experience-section-modern.animate-elements .experience-card-modern:nth-child(1) {
  animation-delay: 0.2s;
}

.experience-section-modern.animate-elements .experience-card-modern:nth-child(2) {
  animation-delay: 0.4s;
}

.experience-section-modern.animate-elements .experience-card-modern:nth-child(3) {
  animation-delay: 0.6s;
}

.experience-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
  perspective: 1000px;
}

.experience-card-modern {
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  border: 2px solid rgba(99, 102, 241, 0.15);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out backwards;
  box-shadow: 0 10px 35px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.experience-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.experience-card-modern:hover::before {
  left: 100%;
}

.experience-card-modern:hover {
  transform: translateY(-14px) scale(1.04);
   box-shadow: 0px 10px 40px rgba(99,102,241,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  border-color: var(--accent-primary);
}

.exp-icon-modern {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color:var(--accent-primary);
  font-size: 2.3rem;
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.experience-card-modern:hover .exp-icon-modern {
  transform: scale(1.1);
}

.exp-content-modern {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exp-header-modern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-header-modern h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.exp-company {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.exp-duration {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.exp-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

.exp-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tech-tag-exp {
  color: var(--accent-primary);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(99,102,241,0.12);
  background: linear-gradient(90deg, rgba(99,102,241,0.02), transparent);
  transition: all 0.28s cubic-bezier(0.25,0.46,0.45,0.94);
}

.tech-tag-exp:hover {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  transform: translateY(-3px) scale(1.02);
}

/* ===== 12. WHAT I DO SECTION ===== */
.services-section-modern {
  padding: 6rem 0;
  
}
.services-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.service-card-modern {
  border-radius: var(--border-radius-lg);
  border: 2px solid rgba(99, 102, 241, 0.1);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.02));
  padding: 1.2rem 1.2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out backwards;
}
.service-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card-modern:hover::before {
  left: 100%;
}
.service-card-modern:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25);
  border-color: var(--accent-primary);
}
.service-icon-modern {
  width: 80px;
  height: 80px;
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.service-card-modern:hover .service-icon-modern {
  transform: scale(1.2);
}

.service-card-modern h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.service-card-modern p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Service features list */
.service-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
}

.service-features li::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Service actions container */
.service-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  width: 50%;
  flex-direction: column;
}

.service-more-btn {
  background: rgba(255, 255, 255, 0);
  font-family: 'Syne', sans-serif;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;  
  color: var(--accent-primary);
  width: 80%;
  position: relative;
  overflow: hidden;
}

.service-more-btn i {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  transform: translateX(0) scale(1);
  opacity: 0.9;
}

.service-more-btn:hover {
  transform: translateY(-3px);
  color: var(--accent-secondary);
  gap: 0.7rem;
  letter-spacing: 0.3px;
}

.service-more-btn:hover i {
  transform: translateX(6px) scale(1.2);
  opacity: 1;
  color: var(--accent-secondary);
}

.service-more-btn:active {
  transform: translateY(-1px);
  gap: 0.6rem;
}

.service-more-btn:active i {
  transform: translateX(4px) scale(1.1);
}

/* Light mode hover effects */
[data-theme="light"] .service-more-btn:hover {
  color: #7c3aed;
}

[data-theme="light"] .service-more-btn:hover i {
  color: #7c3aed;
}

/* Service modal styles */
.service-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.5);
  backdrop-filter: blur(4px) saturate(1);
  -webkit-backdrop-filter: blur(4px) saturate(1);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2200;
  padding: 2rem;
  opacity: 0;
  transition: opacity 300ms ease, backdrop-filter 300ms ease, background 300ms ease;
}
.service-modal-backdrop.active {
  display: flex;
  opacity: 1;
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  background: rgba(2,6,23,0.7);
}

/* Light mode backdrop */
[data-theme="light"] .service-modal-backdrop {
  background: rgba(226, 232, 240, 0.4);
}
[data-theme="light"] .service-modal-backdrop.active {
  background: rgba(148, 163, 184, 0.5);
  backdrop-filter: blur(8px) saturate(1.2);
}

.service-modal {
  width: 100%;
  max-width: 820px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border-radius: 20px;
  padding: 2rem 2.25rem;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  transform: translateY(30px) scale(0.93);
  opacity: 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

/* Light mode modal */
[data-theme="light"] .service-modal {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.service-modal-backdrop.active .service-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.service-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Light mode header border */
[data-theme="light"] .service-modal-header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.service-modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.service-modal-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.5rem;
}

/* Light mode icon */
[data-theme="light"] .service-modal-icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
  color: #6366f1;
}
.service-modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}
.service-modal-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.service-modal-body .left {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}
.service-modal-body .right {
  padding-left: 0.5rem;
}
.service-modal-desc {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}
.service-modal-section {
  margin-bottom: 1.5rem;
}
.service-modal-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}
.service-modal-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-modal-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.service-modal-benefits li {
  padding: 0.7rem 0.9rem;
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--accent-primary);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

/* Light mode benefits */
[data-theme="light"] .service-modal-benefits li {
  background: rgba(99, 102, 241, 0.06);
  border-left: 3px solid var(--accent-primary);
  color: #475569;
}
[data-theme="light"] .service-modal-benefits li:hover {
  background: rgba(99, 102, 241, 0.12);
}

.service-modal-benefits li:hover {
  background: rgba(99, 102, 241, 0.15);
  transform: translateX(4px);
}
.service-modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.service-tech-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Light mode tech tags */
[data-theme="light"] .service-tech-tag {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #7c3aed;
}
[data-theme="light"] .service-tech-tag:hover {
  background: rgba(139, 92, 246, 0.15);
}

.service-tech-tag:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
}
.service-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Light mode actions border */
[data-theme="light"] .service-modal-actions {
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}
.service-modal .btn {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.96rem;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}
.service-modal .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.service-modal .btn:hover::before {
  width: 300px;
  height: 300px;
}
.service-modal .btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}
/* Light mode primary button */
[data-theme="light"] .service-modal .btn-primary {
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}
.service-modal .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}
/* Light mode primary button hover */
[data-theme="light"] .service-modal .btn-primary:hover {
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
}
.service-modal .btn-primary:active {
  transform: translateY(-1px);
}
.service-modal .btn-secondary {
  background: rgba(139, 92, 246, 0.08);
  color: var(--accent-secondary);
  border: 2px solid var(--accent-secondary);
  box-shadow: inset 0 1px 2px rgba(139, 92, 246, 0.1), 0 2px 8px rgba(139, 92, 246, 0.12);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.service-modal .btn-secondary:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.12));
  border-color: var(--accent-secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.3), inset 0 1px 2px rgba(139, 92, 246, 0.15);
}
.service-modal .btn-secondary:active {
  transform: translateY(-1px);
}
.service-modal-close {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.8rem;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  position: relative;
}

.service-modal-close:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.15);
  transform: rotate(90deg) scale(1.15);
}

/* Light mode close button */
[data-theme="light"] .service-modal-close:hover {
  color: #1e293b;
  background: rgba(99, 102, 241, 0.1);
}

.service-modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

/* Service Modal Responsive Styles */
@media (max-width: 900px) {
  .service-modal {
    max-width: 95%;
    padding: 1.75rem;
  }
}

@media (max-width: 768px) {
  .service-modal-body { 
    grid-template-columns: 1fr; 
  }
  .service-modal { 
    padding: 1.5rem; 
    max-width: 90%;
  }
  .service-modal-backdrop { 
    padding: 1rem; 
  }
  .service-modal-actions { 
    flex-direction: column; 
    gap: 0.5rem;
  }
  .service-modal-header { 
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .service-modal-header h3 {
    font-size: 1.3rem;
  }
  .service-modal-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .service-modal-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .service-modal { 
    padding: 1.25rem; 
    max-width: 95%;
    border-radius: 16px;
  }
  .service-modal-backdrop { 
    padding: 0.5rem; 
  }
  .service-modal-icon { 
    width: 40px; 
    height: 40px; 
    font-size: 1.2rem; 
  }
  .service-modal-header h3 { 
    font-size: 1.15rem; 
  }
  .service-modal-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }
  .service-tech-tag { 
    font-size: 0.8rem; 
    padding: 0.4rem 0.8rem; 
  }
  .service-modal-benefits li { 
    font-size: 0.9rem; 
    padding: 0.6rem 0.8rem;
  }
  .service-modal-section {
    margin-bottom: 1.25rem;
  }
  .service-modal-section h4 {
    font-size: 0.9rem;
  }
  .service-modal .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  .service-modal-actions {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }
}

@media (max-width: 480px) {
  .service-modal { 
    padding: 1rem; 
    max-width: 100%;
    border-radius: 12px;
  }
  .service-modal-backdrop { 
    padding: 0.5rem; 
  }
  .service-modal-icon { 
    width: 36px; 
    height: 36px; 
    font-size: 1.1rem; 
  }
  .service-modal-header h3 { 
    font-size: 1.05rem; 
  }
  .service-modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
  .service-modal-desc {
    font-size: 0.9rem;
  }
  .service-tech-tag { 
    font-size: 0.75rem; 
    padding: 0.35rem 0.7rem; 
  }
  .service-modal-benefits li { 
    font-size: 0.85rem; 
    padding: 0.5rem 0.7rem;
  }
  .service-modal .btn {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
  }
}
.service-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.service-modal .btn {
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-weight: 600;
}
.service-modal-close {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
}
@media (max-width: 820px) {
  .service-modal-body { grid-template-columns: 1fr; }
  .service-modal { padding: 1rem; }
  .service-modal-backdrop { padding: 1rem; }
}

/* ===== 13. PROJECT SECTION ===== */
.projects-section-modern {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.projects-page-section {
  padding-top: 8rem;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Ensure content is above background animations */
.projects-page-section .container-modern {
  position: relative;
  z-index: 1;
}

.projects-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  perspective: 1000px;
  animation: fadeInUp 0.8s ease-out backwards;
}

/* Hide project cards that are marked as not visible initially */
.project-card-modern[data-visible="false"] {
  display: none !important;
}

.project-card-modern {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.03));
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 2px solid rgba(99, 102, 241, 0.12);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card-modern:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
}

.project-img-modern {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.project-img-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card-modern:hover .project-img-modern img {
  transform: scale(1.15) ;
}

.project-overlay-modern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(139, 92, 246, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-direction: column;
  gap: 1.5rem;
  backdrop-filter: blur(8px);
}

.project-card-modern:hover .project-overlay-modern {
  opacity: 1;
}

/* Project name overlay for image hover */
.project-name-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding-bottom: 1rem;
}

.project-card-modern:hover .project-name-overlay {
  opacity: 1;
}

.project-name-text {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
}

.project-card-modern:hover .project-name-text {
  transform: translateY(0);
}

/* Hide text content section - show only images */
.project-info-modern {
  display: none;
}

/* ===== LIGHT MODE: PROJECTS SECTION ===== */
[data-theme="light"] .projects-grid-modern {
  background: transparent;
}

[data-theme="light"] .project-card-modern {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 10px 30px rgba(2,6,23,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
}

[data-theme="light"] .project-card-modern:hover {
  box-shadow: 0 30px 60px rgba(16,24,40,0.08), inset 0 1px 0 rgba(255,255,255,0.7);
  border-color: rgba(99,102,241,0.12);
}

[data-theme="light"] .project-overlay-modern {
  background: linear-gradient(135deg, rgba(99,102,241,0.9), rgba(139,92,246,0.85));
}

[data-theme="light"] .project-name-text {
  color: var(--accent-primary);
  text-shadow: none;
}

[data-theme="light"] .project-img-modern {
  background: linear-gradient(135deg, rgba(248,250,252,0.9), rgba(241,245,249,0.9));
}

.view-more-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0 1.5rem;
    gap: 0.8rem;
}

.experience-view-more {
    padding-top: 5rem;
}

.view-more-btn {
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 1rem 2rem;
    margin-top: 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Syne', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;  
    gap: 0.75rem;
    min-width: 180px;
    justify-content: center;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    border-color: var(--accent-secondary);
    color: #ffffff;
}

.view-more-btn:hover::before {
    left: 0;
}

.view-more-btn:active {
    transform: translateY(0);
}

.view-more-btn:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-text {
    position: relative;
    z-index: 1;
    font-weight: 600;
    color: inherit;
    transition: color 0.3s ease;
}

.view-more-btn:hover .btn-text {
    color: #ffffff;
}

.btn-icon {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-more-btn:hover .btn-icon {
    transform: translateX(4px);
    color: #ffffff;
}

/* Light mode view more button */
[data-theme="light"] .view-more-btn {
    background: #ffffff;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .view-more-btn:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

/* ===== ENHANCED PROJECT FILTER STYLES ===== */
.projects-filter-modern {
    margin-bottom: 3.5rem;
    position: relative;
}

.filter-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInDown 0.8s ease-out backwards;
}

.filter-search-modern {
    flex: 1;
    min-width: 320px;
    position: relative;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 0.9rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.02));
}

.search-input-group:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    background: rgba(var(--bg-card-rgb), 0.98);
}

.search-input-group i.fa-magnifying-glass {
    color: var(--text-secondary);
    font-size: 1.3rem;
    margin-right: 1.2rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-input-group:focus-within i.fa-magnifying-glass {
    color: var(--accent-primary);
    transform: scale(1.15) rotate(15deg);
}

.search-input-group input {
    font-family: 'Syne', sans-serif;
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 0;
    outline: none;
    font-weight: 500;
}

.search-input-group input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-clear {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: scale(0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.search-clear.visible {
    opacity: 1;
    transform: scale(1);
}

.search-clear:hover {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.15);
    transform: scale(1.15) rotate(90deg);
}

.filter-controls-modern {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.filter-counter-modern {
    color: var(--text-secondary);
    padding: 0.9rem 1.5rem;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(99, 102, 241, 0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.02));
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

.filter-counter-modern:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

.filter-counter-modern .filter-count {
    color: var(--accent-primary);
    font-weight: 800;
    font-size: 1.4rem;
    margin-right: 0.3rem;
}

.filter-categories-modern {
    font-family: 'Syne', sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.filter-categories-modern button {
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.5px;
}

.category-button {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    color: var(--text-primary);
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--border-radius-xl);
    padding: 1.1rem 2.2rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-width: 130px;
    text-align: center;
    letter-spacing: 0.6px;
    text-transform: capitalize;
}

.category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.7s ease;
}

.category-button:hover::before {
    left: 100%;
}

.category-button:hover {
    transform: translateY(-6px) scale(1.05);
    border-color: var(--accent-secondary);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
}

.category-button.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.category-button:hover::before {
    left: 100%;
}

.category-button:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
    color: var(--accent-primary);
}

.category-button.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(99, 102, 241, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1);
}

.category-button.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.category-button.active:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.15);
}

/* Filter loading state */
.filter-loading {
    position: relative;
    overflow: hidden;
}

.filter-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

.no-results-modern {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 3rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    margin: 3rem 0;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.no-results-modern.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.no-results-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.no-results-modern h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-results-modern p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Enhanced project card filter animations */
.project-card-modern {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.project-card-modern.filtered-out {
    opacity: 0;
    transform: scale(0.9) translateY(30px) rotate(2deg);
    pointer-events: none;
    filter: blur(4px);
}

.project-card-modern.filtered-in {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0);
    filter: blur(0);
}

/* Filter transition overlay */
.filter-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--bg-primary-rgb), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.filter-transition-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* ===== 14. CONTACT ME SECTION ===== */
.contact-section-modern {
  padding: 6rem 0;
  position: relative;
}

.contact-intro-modern {
  text-align: center;
  margin-bottom: 3.5rem;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s backwards;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.contact-intro-modern p {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.8;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, var(--text-secondary), var(--text-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-content-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .contact-section-modern {
    padding: 5rem 0;
  }
  
  .contact-intro-modern {
    margin-bottom: 3rem;
    padding: 0 1.5rem;
  }
  
  .contact-intro-modern p {
    font-size: 1.1rem;
  }
  
  .contact-content-modern {
    gap: 2.5rem;
  }
  
  .contact-card-modern {
    padding: 1.75rem;
  }
  
  .contact-icon-modern {
    width: 65px;
    height: 65px;
    font-size: 1.7rem;
    margin-right: 1.25rem;
  }
  
  .contact-details-modern h4 {
    font-size: 1.15rem;
  }
  
  .contact-details-modern p,
  .contact-link {
    font-size: 0.95rem;
  }
}

/* Responsive adjustments: stack grids on smaller screens */
@media (max-width: 900px) {
  .about-grid-modern,
  .contact-content-modern,
  .skills-grid-modern,
  .education-grid-modern,
  .certificate-grid-modern,
  .services-grid-modern {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .all-main-title h2 {
    font-size: 2.2rem;
  }

  .home-modern-right,
  .about-image-card-modern,
  .contact-form-modern {
    margin-top: 1.2rem;
  }

  .skill-card-modern {
    grid-template-columns: 1fr;
  }
}

/* ===== Accessibility & Focus styles ===== */
:focus {
  outline: none;
}

/* Use a clear focus ring for keyboard users */
a:focus-visible,
button:focus-visible,
.submit-btn-modern:focus-visible,
.about-btn-modern:focus-visible,
.social-link-contact:focus-visible,
.contact-link:focus-visible,
.service-card-modern:focus-visible,
.experience-card-modern:focus-visible,
.certificate-card-modern:focus-visible,
.education-card-modern:focus-visible,
.input-group-modern input:focus-visible,
.textarea-group-modern textarea:focus-visible,
.category-button:focus-visible,
.service-more-btn:focus-visible,
.view-more-btn:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 8px 24px rgba(99, 102, 241, 0.15);
  border-radius: var(--border-radius-md);
}

/* Enhanced touch targets for mobile devices */
@media (max-width: 768px) {
  button,
  a.button,
  .btn,
  .category-button,
  .service-more-btn,
  .view-more-btn,
  .about-btn-modern,
  .submit-btn-modern,
  .home-modern-contact {
    min-height: 48px;
    min-width: 48px;
    padding: 0.875rem 1.5rem;
  }
  
  /* Better spacing for touch interactions */
  .service-card-modern,
  .experience-card-modern,
  .certificate-card-modern,
  .project-card-modern {
    margin-bottom: 1.5rem;
  }
}

/* Improved color contrast for better readability */
.service-modal-benefits li,
.service-tech-tag,
.category-button {
  color: var(--text-primary);
}

[data-theme="light"] .service-modal-benefits li {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .service-tech-tag {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.1);
}

/* Enhanced button hover states for better feedback */
button:hover,
.btn:hover,
a.button:hover {
  transform: translateY(-2px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active,
.btn:active,
a.button:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

/* Improved spacing consistency */
.container-modern,
section {
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 768px) {
  .container-modern,
  section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container-modern,
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Better visual hierarchy with improved typography */
.all-main-title h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Improved loading states */
.view-more-btn.loading,
.submit-btn-modern.loading {
  cursor: wait;
  opacity: 0.7;
  pointer-events: none;
}

/* Enhanced form input focus states */
.input-group-modern input:focus,
.textarea-group-modern textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Better scroll behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Improve contrast for gradient text in light theme by providing a fallback solid color for small screens and high-contrast situations */
[data-theme="light"] .all-main-title h2,
[data-theme="light"] .form-title-modern,
[data-theme="light"] .contact-title-modern h2,
[data-theme="light"] .about-info-modern h3 {
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (prefers-contrast: more) {
  .all-main-title h2,
  .form-title-modern,
  .contact-title-modern h2,
  .about-info-modern h3 {
    background: none !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
  }
}

/* Make focusable cards clearly visible when focused (keyboard) */
.card-focusable:focus {
  box-shadow: 0 18px 36px rgba(99,102,241,0.14);
  transform: translateY(-6px);
}

/* Inputs accessibility: larger focus ring and reduced transition for clarity */
.input-group-modern input:focus-visible,
.textarea-group-modern textarea:focus-visible {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

/* Reduce motion option: respect user preference */
@media (prefers-reduced-motion: reduce) {
  .skill-level-modern::after,
  .floating-shape,
  .gradient-orb,
  .mesh-pattern,
  .about-image-badge,
  .floating-elements * {
    animation: none !important;
    transition: none !important;
  }
}

.contact-info-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInLeft 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.contact-card-modern {
  display: flex;
  align-items: center;
  padding: 2rem;
  border: 2px solid rgba(99, 102, 241, 0.1);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.02));
  border-radius: var(--border-radius-lg);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backface-visibility: hidden;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out backwards;
}

.contact-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.contact-card-modern:hover::before {
  left: 100%;
}

.contact-card-modern:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
}

.contact-icon-modern {
  font-size: 1.8rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 1.5rem;
  flex-shrink: 0;
  backface-visibility: hidden;
  transition: all 0.4s ease;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  position: relative;
}

.contact-card-modern:hover .contact-icon-modern {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.contact-details-modern h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-details-modern p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

/* Contact link & socials styling */
.contact-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.contact-link:hover::after {
  width: 100%;
}

.contact-link:hover {
  color: var(--accent-secondary);
}

.contact-socials-modern {
  margin-top: 2rem;
  animation: fadeInUp 0.8s ease-out 0.25s backwards;
}

.contact-socials-modern h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-links-modern {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.social-link-contact {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  border: 2px solid rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  font-size: 1.1rem;
  transition: all 0.28s cubic-bezier(0.25,0.46,0.45,0.94);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-link-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  transition: left 0.45s ease;
}

.social-link-contact:hover::before {
  left: 100%;
}

.social-link-contact:hover {
  transform: translateY(-6px) scale(1.12) rotate(-8deg);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.2);
}

.contact-title-modern {
  margin-bottom: 3rem;
}

.contact-title-modern h2 {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: 'Syne', sans-serif;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientFlow 3s ease-in-out infinite;
  margin-bottom: 1.5rem;
}

.contact-title-modern p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 400;
  max-width: 90%;
}

.contact-methods-modern {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backface-visibility: hidden;
}

.contact-method-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.contact-method-item:hover::before {
  left: 100%;
}

.contact-method-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-primary);
  background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
}

.contact-method-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.contact-method-item:hover .contact-method-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-lg);
}

.contact-method-info h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  font-family: 'Syne', sans-serif;
}

.contact-method-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== MODERN CONTACT FORM STYLING ===== */
.contact-form-modern {
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow:
    0 25px 60px rgba(99, 102, 241, 0.15),
    0 0 0 1px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeInRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s backwards;
}

/* Keyboard focus visible helper for better contrast when focused */
.card-focusable:focus-visible {
  outline: 3px solid rgba(99,102,241,0.28);
  outline-offset: 4px;
}

.contact-form-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  z-index: 0;
}

.contact-form-modern::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
  z-index: 0;
}

.form-modern {
  position: relative;
}

.form-header-modern {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s backwards;
}

.form-title-modern {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gradient-secondary);
  font-size: 2.5rem;
  font-weight: 800;
  background-clip: text;
  background-size: 200% 200%;
  margin-bottom: 0.5rem;
  animation: gradientFlow 4s ease-in-out infinite;
}

.form-subtitle-modern {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 400;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s backwards;
}

.form-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s backwards;
}

.input-group-modern,
.textarea-group-modern {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-group-modern {
  grid-column: span 1;
}

.textarea-group-modern {
  grid-column: span 2;
}

.input-group-modern label,
.textarea-group-modern label {
  position: absolute;
  top: 50%;
  left: 1.2rem;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: left top;
  background: linear-gradient(to right, var(--bg-primary) 0%, var(--bg-primary) 90%, transparent);
  padding: 0 0.5rem;
  z-index: 2;
}

.input-group-modern input,
.textarea-group-modern textarea {
  width: 100%;
  padding: 1.2rem 1.2rem 0.75rem;
  background: rgba(var(--bg-tertiary-rgb, 26, 26, 26), 0.5);
  border: 2px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 1;
}

.floating-label-group {
  position: relative;
}

/* Animated underline for inputs */
.input-underline {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 0.9rem;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 320ms ease;
  z-index: 0;
  opacity: 0.95;
}

/* Trigger underline on focus or when label is active */
.input-group-modern.focused .input-underline,
.textarea-group-modern.focused .input-underline,
.input-group-modern input:focus + label ~ .input-underline,
.textarea-group-modern textarea:focus + label ~ .input-underline,
.input-group-modern input:not(:placeholder-shown) + label ~ .input-underline,
.textarea-group-modern textarea:not(:placeholder-shown) + label ~ .input-underline {
  transform: scaleX(1);
}

/* Floating label improve visuals */
.floating-label {
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1),
              color 260ms ease,
              top 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
  pointer-events: none;
}

.input-group-modern input:focus + label,
.textarea-group-modern textarea:focus + label,
.input-group-modern input:not(:placeholder-shown) + label,
.textarea-group-modern textarea:not(:placeholder-shown) + label,
.input-group-modern label.active,
.textarea-group-modern label.active {
  color: var(--accent-primary);
  transform: translateY(-42%) scale(0.92);
  top: -0.85rem;
  left: 1rem;
  font-size: 0.86rem;
  background: linear-gradient(to right, var(--bg-primary) 0%, var(--bg-primary) 92%, transparent);
  padding: 0 0.45rem;
  z-index: 2;
}

/* Character counter small placement */
.character-counter {
  position: absolute;
  right: 0.9rem;
  bottom: -1.4rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Form success / error visual cues */
.form-modern.form-success {
  box-shadow: 0 28px 70px rgba(34,197,94,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(34,197,94,0.03));
}

.form-modern.form-success .submit-btn-modern {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 18px 50px rgba(16,185,129,0.18);
}

.form-modern.form-error {
  box-shadow: 0 28px 70px rgba(239,68,68,0.08), inset 0 1px 0 rgba(255,255,255,0.02);
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, rgba(239,68,68,0.04), rgba(239,68,68,0.02));
}

.form-modern.form-error .submit-btn-modern {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 18px 50px rgba(239,68,68,0.18);
}

/* Notification inside form - position and smaller size */
.contact-form-modern .home-notification {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 20;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Improve mobile spacing for the form */
@media (max-width: 520px) {
  .form-grid-modern { grid-template-columns: 1fr !important; }
  .submit-btn-modern { min-width: 100%; padding: 1rem 1.2rem; }
}

.input-group-modern input:focus,
.textarea-group-modern textarea:focus {
  outline: none;
  background: rgba(var(--bg-tertiary-rgb, 26, 26, 26), 0.8);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), inset 0 0 0 1px rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
}

.input-group-modern input:focus + label,
.textarea-group-modern textarea:focus + label,
.input-group-modern input:not(:placeholder-shown) + label,
.textarea-group-modern textarea:not(:placeholder-shown) + label {
  top: -0.85rem;
  left: 1rem;
  font-size: 0.85rem;
  color: var(--accent-primary);
  background: linear-gradient(to right, var(--bg-primary) 0%, var(--bg-primary) 90%, transparent);
  padding: 0 0.5rem;
}.input-group-modern i,
.textarea-group-modern i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
  z-index: 1;
  transition: all 0.3s ease;
}

.input-group-modern input:focus ~ i,
.textarea-group-modern textarea:focus ~ i {
  color: var(--accent-primary);
}

.textarea-group-modern i {
  top: 1.2rem;
  transform: none;
}

.textarea-group-modern textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}

.form-actions-modern {
  text-align: center;
  margin-top: 2rem;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s backwards;
}

.submit-btn-modern {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  padding: 1.3rem 3rem;
  border-radius: var(--border-radius-lg);
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 220px;
  justify-content: center;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.submit-btn-modern::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 ease;
}

.submit-btn-modern:hover::before {
  left: 100%;
}

.submit-btn-modern:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 25px 50px rgba(99, 102, 241, 0.4),
    0 0 0 2px rgba(99, 102, 241, 0.2);
}

.submit-btn-modern:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.submit-btn-modern:focus {
  outline: none;
  box-shadow: 
    0 25px 50px rgba(99, 102, 241, 0.4),
    0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: opacity 0.3s ease;
}

.btn-text {
  font-weight: 700;
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.submit-btn-modern:hover .btn-icon {
  transform: translateX(5px);
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loader-dots {
  display: flex;
  gap: 0.3rem;
}

.loader-dots span {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite both;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.submit-btn-modern.loading {
  cursor: not-allowed;
}

.submit-btn-modern.loading .btn-content {
  opacity: 0;
}

.submit-btn-modern.loading .btn-loader {
  opacity: 1;
}

/* Form validation styles */
.error-message {
    color: #ff0000;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
    display: block;
    min-height: 1.25rem;
}

.input-group-modern.error,
.textarea-group-modern.error {
    border-color: #ef4444;
}

.input-group-modern.error input,
.textarea-group-modern.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-group-modern.error i,
.textarea-group-modern.error i {
    color: #ef4444;
}

/* Light mode error colors */
[data-theme="light"] .error-message {
    color: #dc2626;
}

[data-theme="light"] .input-group-modern.error,
[data-theme="light"] .textarea-group-modern.error {
    border-color: #dc2626;
}

[data-theme="light"] .input-group-modern.error input,
[data-theme="light"] .textarea-group-modern.error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ===== LIGHT MODE: CONTACT FORM ===== */
[data-theme="light"] .contact-form-modern {
    border: 2px solid rgba(99, 102, 241, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(99, 102, 241, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .contact-form-modern::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent);
}

[data-theme="light"] .contact-form-modern::after {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05), transparent);
}

[data-theme="light"] .form-title-modern {
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .form-subtitle-modern {
    color: #64748b;
}

[data-theme="light"] .contact-intro-modern p {
    background: linear-gradient(135deg, #64748b, #1e293b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #475569;
}

[data-theme="light"] .input-group-modern label,
[data-theme="light"] .textarea-group-modern label {
    background: linear-gradient(to right, #ffffff 0%, #ffffff 90%, transparent);
    color: #64748b;
}

[data-theme="light"] .input-group-modern input,
[data-theme="light"] .textarea-group-modern textarea {
    background: rgba(241, 245, 249, 0.7);
    border: 2px solid rgba(99, 102, 241, 0.12);
    color: #1e293b;
}

[data-theme="light"] .input-group-modern input::placeholder,
[data-theme="light"] .textarea-group-modern textarea::placeholder {
    color: #cbd5e1;
}

[data-theme="light"] .input-group-modern input:focus,
[data-theme="light"] .textarea-group-modern textarea:focus {
    background: rgba(248, 250, 252, 0.9);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08), inset 0 0 0 1px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .input-group-modern input:focus + label,
[data-theme="light"] .textarea-group-modern textarea:focus + label,
[data-theme="light"] .input-group-modern input:not(:placeholder-shown) + label,
[data-theme="light"] .textarea-group-modern textarea:not(:placeholder-shown) + label {
    color: var(--accent-primary);
    background: linear-gradient(to right, #ffffff 0%, #ffffff 92%, transparent);
}

[data-theme="light"] .input-group-modern i,
[data-theme="light"] .textarea-group-modern i {
    color: #94a3b8;
}

[data-theme="light"] .input-group-modern input:focus ~ i,
[data-theme="light"] .textarea-group-modern textarea:focus ~ i {
    color: var(--accent-primary);
}

[data-theme="light"] .input-underline {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.9;
}

[data-theme="light"] .character-counter {
    color: #94a3b8;
}

[data-theme="light"] .submit-btn-modern {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    color: white;
}

[data-theme="light"] .submit-btn-modern:hover {
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25),
                0 0 0 2px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .submit-btn-modern:focus {
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25),
                0 0 0 3px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .form-modern.form-success {
    box-shadow: 0 28px 70px rgba(34, 197, 94, 0.1), inset 0 1px 0 rgba(34, 197, 94, 0.2);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.05));
    border: 2px solid rgba(34, 197, 94, 0.3);
}

[data-theme="light"] .form-modern.form-error {
    box-shadow: 0 28px 70px rgba(220, 38, 38, 0.08), inset 0 1px 0 rgba(220, 38, 38, 0.1);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.06), rgba(239, 68, 68, 0.04));
    border: 2px solid rgba(220, 38, 38, 0.2);
}

[data-theme="light"] .home-notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .home-notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
}

/* ===== LIGHT MODE: EDUCATION SECTION ===== */
[data-theme="light"] .education-card-modern {
    border: 2px solid rgba(99, 102, 241, 0.12);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.9));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .education-card-modern:hover {
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
}

[data-theme="light"] .edu-icon-modern {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .education-card-modern:hover .edu-icon-modern {
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .edu-badge-modern {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* ===== LIGHT MODE: SKILLS SECTION ===== */
[data-theme="light"] .skill-card-modern {
    border: 2px solid rgba(99, 102, 241, 0.1);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.9));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .skill-card-modern:hover {
    box-shadow: 0 20px 45px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(99, 102, 241, 0.12);
}

[data-theme="light"] .skill-icon-modern {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .skill-card-modern:hover .skill-icon-modern {
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .skill-bar-modern {
    background: #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .skill-info-modern span {
    color: #1e293b;
}

/* ===== LIGHT MODE: CERTIFICATE SECTION ===== */
[data-theme="light"] .certificate-card-modern {
    border: 2px solid rgba(99, 102, 241, 0.12);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.9));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .certificate-card-modern:hover {
    box-shadow: 0 25px 55px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
}

[data-theme="light"] .cert-icon-modern {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

[data-theme="light"] .certificate-card-modern:hover .cert-icon-modern {
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .cert-badge-modern {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .cert-platform,
[data-theme="light"] .cert-duration {
    color: #64748b;
}

[data-theme="light"] .certificate-btn-modern {
    color: var(--text-primary);
}

[data-theme="light"] .certificate-btn-modern:hover {
    color: white;
}

/* ===== LIGHT MODE: EXPERIENCE SECTION ===== */
[data-theme="light"] .experience-card-modern {
    border: 2px solid rgba(99, 102, 241, 0.12);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.9));
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .experience-card-modern:hover {
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
}

[data-theme="light"] .exp-icon-modern {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.1));
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.12);
    color: var(--accent-primary);
}

[data-theme="light"] .experience-card-modern:hover .exp-icon-modern {
    box-shadow: 0 18px 40px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .exp-header-modern h3 {
    color: #1e293b;
}

[data-theme="light"] .exp-company {
    color: var(--accent-primary);
}

[data-theme="light"] .exp-duration {
    color: #64748b;
}

[data-theme="light"] .exp-description {
    color: #475569;
}

[data-theme="light"] .tech-tag-exp {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Form notification styles */
.home-notification {
  position: relative;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideDownIn 0.4s ease-out;
  box-shadow: var(--shadow-md);
}

.home-notification.success {
  background: linear-gradient(135deg, #00ff15, #00ff26);
  color: white;
}

.home-notification.error {
  background: linear-gradient(135deg, #ff0000, #ff0000);
  color: white;
}

.home-notification i {
  font-size: 1.2rem;
  animation: bellRing 2s ease-in-out infinite;
}

/* ===== 15. FOOTER ===== */
.footer-modern {
  padding: 1.5rem 0 1rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.footer-cta {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.08), rgba(var(--accent-secondary-rgb), 0.08));
  align-items: center;
}

.footer-cta-text h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.5rem;
}

.footer-cta-text p {
  margin: 0;
  color: var(--text-secondary);
}

.footer-cta-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-cta .eyebrow {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-primary), transparent 75%);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin: 0 0 0.4rem;
}

.footer-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.8s;
}

.footer-logo i {
  color: var(--accent-primary);
  font-size: 2rem;
}

.footer-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight:700;
  font-size: 1.8rem;
  letter-spacing: 1px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 300px;
  animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1.2s;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
  animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1.4s;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-icon:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  font-size: 1.2rem;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  padding: 0.3rem 0;
  position: relative;
}

.footer-link::before {
  content: '';
  position: absolute;
  left: -5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-primary);
  transform: translateX(0.5rem);
}

.footer-link:hover::before {
  opacity: 1;
  left: -0.5rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-item i {
  color: var(--accent-primary);
  width: 20px;
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-watermark {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-heart {
  color: #ef4444;
}

.footer-credits {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-credits i,
.footer-heart {
  animation: heartbeat 2s infinite;
}

.footer-credits strong{
  color: var(--text-primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 16. UTILITY CLASSES ===== */
/* Enhanced glow animation */
@keyframes glowPulse {
  0%, 100% {
    opacity: 0.8;
    filter: blur(8px);
  }
  50% {
    opacity: 1;
    filter: blur(12px);
  }
}

/* UNIFIED MODERN BUTTON STYLES */
.home-modern-contact,
.about-btn-modern,
.view-more-btn,
.submit-btn-modern {
  font-family: 'Syne', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: none;
  min-width: 160px;
  text-decoration: none;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Shimmer effect for all buttons */
.home-modern-contact::before,
.about-btn-modern::before,
.view-more-btn::before,
.submit-btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

/* Hover shimmer effect */
.home-modern-contact:hover::before,
.about-btn-modern:hover::before,
.view-more-btn:hover::before,
.submit-btn-modern:hover::before {
  left: 100%;
}

/* Unique background styles */
.home-modern-contact {
  background: var(--gradient-primary);
  color: white;
}

.about-btn-modern {
  background: var(--gradient-primary);
  color: rgb(0, 0, 0);
}

.view-more-btn {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--text-primary);
}

.submit-btn-modern {
  background: var(--bg-hover);
  color: var(--accent-tertiary);
}

/* Unique hover animations */
.home-modern-contact:hover {
  transform: translateY(-3px) scale(1.05) rotateX(5deg);
  box-shadow:
    0 20px 40px rgba(99, 102, 241, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: magneticFloat 3s ease-in-out infinite;
}

.about-btn-modern:hover {
  transform: translateY(-4px) scale(1.08) rotateY(5deg);
  box-shadow:
    0 25px 50px rgba(99, 102, 241, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  animation: gradientPulse 2s ease-in-out infinite;
}

.view-more-btn:hover {
  transform: translateY(-5px) scale(1.05) ;
  box-shadow:
    0 20px 60px rgba(var(--accent-primary-rgb), 0.3),
    0 0 0 2px rgba(var(--accent-primary-rgb), 0.2);
}

.submit-btn-modern:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 20px 40px rgba(99, 102, 241, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: slideUpGlow 2.5s ease-in-out infinite;
}

/* Active states */
.home-modern-contact:active,
.about-btn-modern:active,
.view-more-btn:active,
.submit-btn-modern:active {
  transform: translateY(-1px) scale(1.02);
  transition: all 0.1s ease;
}

/* Icon styles */
.home-modern-contact i,
.about-btn-modern i,
.view-more-btn i,
.submit-btn-modern i {
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.home-modern-contact:hover i {
  transform: translateX(3px) rotate(10deg);
}

.about-btn-modern:hover i {
  transform: scale(1.2) rotate(15deg);
}

.view-more-btn:hover i {
  transform: translateX(4px) scale(1.1);
}

.submit-btn-modern:hover i {
  transform: translateY(-2px) scale(1.1);
}

/* Text content styles */
.home-modern-contact a,
.about-btn-modern,
.view-more-btn .btn-text,
.submit-btn-modern .btn-content {
  position: relative;
  z-index: 2;
  font-weight: 700;
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* ===== 17. ALL SECTION RESPONSIVE CODE ===== */
/* Responsive styles for .all-main-title and .all-main-title-cert */
@media (max-width: 1023px) {
  .all-main-title {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    gap: 0.8rem;
  }

  .all-main-title h2:hover {
    transform: translateY(-3px) scale(1.01);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
  }

  .all-main-title-cert {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    gap: 0.8rem;
  }
}

@media (max-width: 767px) {
  .all-main-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    gap: 0.6rem;
  }

  .all-main-title h2:hover {
    transform: translateY(-2px) scale(1.005);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.25));
  }

  .all-main-title-cert {
    font-size: 2rem;
    margin-bottom: 2rem;
    gap: 0.6rem;
  }
}

@media (max-width: 479px) {
  .all-main-title {
    padding-top: 5rem;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    gap: 0.5rem;
  }

  .all-main-title h2:hover {
    transform: translateY(-1px) scale(1.002);
    filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.2));
  }

  .all-main-title-cert {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
  }
}

/* Responsive About Section */
@media (max-width: 1023px) {
  .about-section-modern {
    padding: 4rem 0;
  }
  .about-grid-modern {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-card-modern,
  .about-image-card-modern {
    width: 100%;
    margin: 0 auto;
  }
  .about-image-modern {
    height: 500px;
    width: 100%;
  }
  .about-qualities-modern {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.8rem;
  }
}

@media (max-width: 767px) {
  .about-section-modern {
    padding: 2.5rem 0;
  }
  .about-card-modern {
    padding: 1.2rem;
  }
  .about-image-modern {
    height: auto;
    width: 100%;
  }
  .about-qualities-modern {
    grid-template-rows: 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  .quality-item-modern {
    font-size: 0.95rem;
    padding: 0.7rem;
  }
}

@media (max-width: 480px) {
  .about-section-modern {
    padding: 1.5rem 0;
  }
  .about-card-modern {
    padding: 0.8rem;
  }
  .about-image-modern {
    height: auto;
    width: 100%;
  }
  .about-qualities-modern {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .quality-item-modern {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
}

/* RESPONSIVE EXPERIENCE SECTION */
@media (max-width: 1024px) {
  .experience-section-modern {
    padding: 4rem 0;
  }

  .experience-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .experience-card-modern {
    padding: 2.25rem;
    gap: 1.5rem;
  }

  .exp-icon-modern {
    width: 65px;
    height: 65px;
    font-size: 1.8rem;
  }

  .exp-header-modern h3 {
    font-size: 1.3rem;
  }

  .exp-description {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  .exp-tech-stack {
    gap: 0.5rem;
  }
  
  .tech-tag-exp {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 768px) {
  .experience-section-modern {
    padding: 3rem 0;
  }

  .experience-grid-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .experience-card-modern {
    padding: 1.75rem;
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }

  .exp-icon-modern {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
    margin: 0 auto;
  }

  .exp-content-modern {
    width: 100%;
  }

  .exp-header-modern {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .exp-header-modern h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  .exp-company {
    font-size: 0.9rem;
    text-align: center;
  }

  .exp-duration {
    font-size: 0.85rem;
    text-align: center;
  }

  .exp-description {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
  }

  .exp-tech-stack {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tech-tag-exp {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }
}

@media (max-width: 480px) {
  .experience-section-modern {
    padding: 2.5rem 0;
  }

  .experience-grid-modern {
    gap: 1.2rem;
  }

  .experience-card-modern {
    padding: 1.5rem;
    gap: 1rem;
  }

  .exp-icon-modern {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }

  .exp-header-modern h3 {
    font-size: 1.1rem;
  }

  .exp-company {
    font-size: 0.85rem;
  }

  .exp-duration {
    font-size: 0.8rem;
  }

  .exp-description {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .exp-tech-stack {
    gap: 0.4rem;
  }

  .tech-tag-exp {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Services Section Responsive */
@media (max-width: 1024px) {
  .services-section-modern {
    padding: 4rem 0;
  }
  .services-grid-modern {
    gap: 1.5rem;
  }
  .service-card-modern {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .services-section-modern {
    padding: 3rem 0;
  }
  .services-grid-modern {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .service-card-modern {
    padding: 1.2rem 0.8rem;
    font-size: 0.95rem;
  }
  .service-icon-modern {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .services-grid-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-card-modern {
    padding: 1rem 0.5rem;
    font-size: 0.9rem;
  }
  .service-icon-modern {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Project Filter Responsive */
@media (max-width: 1024px) {
  .filter-header-modern {
      flex-direction: column;
      align-items: stretch;
      gap: 1.5rem;
  }
  
  .filter-search-modern {
      min-width: auto;
      width: 100%;
  }
  
  .filter-controls-modern {
      justify-content: center;
      width: 100%;
  }
}

@media (max-width: 768px) {
  .filter-categories-modern {
      gap: 0.75rem;
      justify-content: center;
  }
  
  .category-button {
      padding: 0.875rem 1.5rem;
      font-size: 0.95rem;
      min-width: 100px;
      border-radius: var(--border-radius-lg);
  }
  
  .search-input-group {
      padding: 0.625rem 1rem;
  }
  
  .search-input-group input {
      font-size: 1rem;
  }
  
  .filter-counter-modern {
      padding: 0.625rem 1rem;
      font-size: 0.9rem;
  }
  
  .filter-counter-modern .filter-count {
      font-size: 1.1rem;
  }
  
  .no-results-modern {
      padding: 3rem 2rem;
      margin: 2rem 0;
  }
  
  .no-results-icon {
      width: 80px;
      height: 80px;
      font-size: 2rem;
  }
  
  .no-results-modern h3 {
      font-size: 1.5rem;
  }
  
  .no-results-modern p {
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .filter-categories-modern {
      flex-direction: row;
      align-items: stretch;
      gap: 0.75rem;
  }
  
  .category-button {
      text-align: center;
      padding: 1rem;
      font-size: 0.9rem;
  }
  
  .filter-header-modern {
      margin-bottom: 1.5rem;
  }
  
  .search-input-group {
      padding: 0.5rem 0.875rem;
  }
  
  .search-input-group i.fa-magnifying-glass {
      font-size: 1.1rem;
      margin-right: 0.75rem;
  }
  
  .search-input-group input {
      font-size: 0.95rem;
  }
  
  .filter-counter-modern {
      padding: 0.5rem 0.875rem;
      font-size: 0.85rem;
  }
  
  .filter-counter-modern .filter-count {
      font-size: 1rem;
  }
  
  .no-results-modern {
      padding: 2rem 1.5rem;
      margin: 1.5rem 0;
  }
  
  .no-results-icon {
      width: 70px;
      height: 70px;
      font-size: 1.8rem;
  }
  
  .no-results-modern h3 {
      font-size: 1.3rem;
  }
  
  .no-results-modern p {
      font-size: 0.95rem;
  }
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-modern {
    padding: 3rem 0 1rem;
  }
  
  .footer-grid {
    grid-template-rows: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-brand {
    align-items: center;
  }
  
  .footer-description {
    max-width: none;
  }
  
  .footer-socials {
    justify-content: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-link::before {
    display: none;
  }
  
  .footer-link:hover {
    transform: none;
  }
  
  .footer-contact {
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 0 1rem;
  }
  
  .footer-logo {
    font-size: 1.5rem;
  }
  
  .footer-logo i {
    font-size: 1.8rem;
  }
  
  .footer-socials {
    gap: 0.5rem;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Additional Responsive Styles for Home Section */
@media (max-width: 1023px) {
  .home-modern-container {
    flex-direction: column-reverse;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .home-modern-left {
    text-align: center;
  }

  .home-modern-info h1 {
    font-size: 3rem;
  }

  .home-modern-info h2 {
    font-size: 1.3rem;
  }

  .home-modern-info p {
    font-size: 1.1rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .home-modern-socials {
    justify-content:space-between;
    gap: 1rem;
  }

  .home-modern-socials a {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }

  .home-modern-image {
    flex-direction: column;
    width: 350px;
    height: 525px;
    margin: 0 auto;
  }

  .home-modern-contact {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 48px;
    display: inline-flex;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .home-modern-info h1 {
    font-size: 2.5rem;
  }

  .home-modern-info h2 {
    font-size: 1.1rem;
  }

  .home-modern-info p {
    font-size: 1rem;
    max-width: 90%;
  }

  .home-modern-image {
    flex-direction: row;
    width: 280px;
    height: 420px;
  }
}

@media (max-width: 479px) {
  .home-modern-info h1 {
    font-size: 2rem;
  }

  .home-modern-info h2 {
    font-size: 1rem;
  }

  .home-modern-info p {
    font-size: 0.9rem;
    max-width: 95%;
  }

  .home-modern-socials a {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .home-modern-image {
    width: 250px;
    height: 375px;
  }

  .home-modern-contact {
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* BREAKPOINTS */
/* Desktop Large: 1200px+ */
/* Desktop: 1024px - 1199px */
/* Tablet: 768px - 1023px */
/* Mobile Large: 480px - 767px */
/* Mobile Small: 320px - 479px */

/* ===== DESKTOP LARGE (1200px+) ===== */
@media (min-width: 1200px) {
  .container-modern {
    max-width: 1400px;
  }

  .home-modern-info h1 {
    font-size: 4.5rem;
  }

  .home-modern-info h2 {
    font-size: 1.8rem;
  }

  .menu-links {
    gap: 3rem;
    font-size: 1.1rem;
  }
}

/* ===== DESKTOP (1024px - 1199px) ===== */
@media (max-width: 1199px) and (min-width: 1024px) {
  .container-modern {
    padding: 0 2rem;
  }

  .home-modern-info h1 {
    font-size: 3.8rem;
  }

  .home-modern-info h2 {
    font-size: 1.6rem;
  }

  .menu-links {
    gap: 2.5rem;
    font-size: 1rem;
  }
}

/* ===== TABLET (768px - 1023px) ===== */
@media (max-width: 1023px) and (min-width: 768px) {
  .container-modern {
    padding: 0 1.5rem;
  }

  .home-modern-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .home-modern-info h1 {
    font-size: 3.2rem;
  }

  .home-modern_info h2 {
    font-size: 1.4rem;
  }

  .home-modern-info p {
    font-size: 1.1rem;
    max-width: 80%;
  }

  .home-modern-socials {
    justify-content: center;
  }

  .home-modern-image {
    width: 400px;
    height: 600px;
  }

  .about-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats-modern {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }

  .certificate-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content-modern {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Enhanced mobile menu for tablets */
  .menu-links {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(var(--bg-primary-rgb), 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .menu-links.active {

    width: 350px;
    margin-right: 50rem;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    margin-left: 20rem;
    border-radius: var(--border-radius-md);
  }

  .menu-links .link {
    padding: 0.5rem 0;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(var(--border-color-rgb), 0.3);
    transition: all 0.3s ease;
  }

  .menu-links .link:last-child {
    border-bottom: none;
  }

  .menu-links .link:hover {
    transform: translateX(10px);
    color: var(--accent-primary);
  }

  .mobile-menu-btn {
    display: flex;
    z-index: 1100;
  }

  .nav-main {
    padding: 1rem 1.5rem;
  }
}

/* ===== MOBILE LARGE (480px - 767px) ===== */
@media (max-width: 767px) and (min-width: 480px) {
  .container-modern {
    padding: 0 1rem;
  }

  .nav-main {
    padding: 1rem 1.5rem;
  }

  .home-modern {
    padding: 5rem 0 2rem;
  }
  .home-modern-info h1 {
    font-size: 2.8rem;
    line-height: 1.2;
  }

  .home-modern-info h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .home-modern-info p {
    font-size: 1rem;
    max-width: 90%;
    line-height: 1.6;
  }

  .home-modern-socials {
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
  }

  .home-modern-socials a {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    min-width: 44px;
    min-height: 44px;
  }

  .home-modern-image {
    width: 280px;
    height: 420px;
    border-radius: var(--border-radius-lg);
    object-fit: cover;
  }

  .home-modern-contact {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 48px;
    min-width: 44px;
  }

  .about-section-modern {
    padding: 4rem 0;
  }

  .about-grid-modern {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-card-modern {
    padding: 2rem;
  }

  .about-stats-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .about-qualities-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .skills-section-modern {
    padding: 3rem 0;
  }
  .skills-grid-modern {
    grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
  }

  .certificate-section-modern {
    padding: 3rem 0;
  }
  .certificate-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .projects-section-modern {
    padding: 4rem 0;
  }
  .projects-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .contact-section-modern {
    padding: 5rem 0;
  }
  
  .contact-intro-modern {
    margin-bottom: 2.5rem;
  }
  
  .contact-intro-modern p {
    font-size: 1.05rem;
  }

  .contact-content-modern {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-info-modern {
    gap: 1.5rem;
  }
  
  .contact-card-modern {
    padding: 1.75rem;
  }
  
  .contact-icon-modern {
    width: 65px;
    height: 65px;
    font-size: 1.7rem;
  }

  .contact-form-modern {
    padding: 2rem;
  }
  
  .form-title-modern {
    font-size: 2.25rem;
  }
  
  .form-subtitle-modern {
    font-size: 1.05rem;
  }

  .form-title-modern {
    font-size: 2rem;
  }

  .form-subtitle-modern {
    font-size: 1rem;
  }

  .form-grid-modern {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .textarea-group-modern {
    grid-column: span 1;
  }

  .input-group-modern input,
  .textarea-group-modern textarea {
    padding: 1.2rem 0.8rem 0.6rem;
    font-size: 0.95rem;
  }

  .input-group-modern label,
  .textarea-group-modern label {
    font-size: 0.9rem;
    top: 0.9rem;
    left: 0.8rem;
  }

  .input-group-modern input:focus + label,
  .textarea-group-modern textarea:focus + label,
  .input-group-modern input:not(:placeholder-shown) + label,
  .textarea-group-modern textarea:not(:placeholder-shown) + label {
    top: -0.4rem;
    left: 0.6rem;
    font-size: 0.75rem;
  }

  .submit-btn-modern {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .footer-modern {
    padding: 3rem 0 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-logo {
    font-size: 1.5rem;
  }

  .footer-logo i {
    font-size: 1.8rem;
  }

  .footer-description {
    font-size: 0.9rem;
  }

  .footer-socials {
    gap: 0.6rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ===== MOBILE SMALL (320px - 479px) ===== */
@media (max-width: 479px) {
  .container-modern {
    padding: 0 0.75rem;
  }

  .nav-main {
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo i {
    font-size: 1.5rem;
  }

  .home-modern {
    padding: 4rem 0 1.5rem;
  }

  .home-modern-info h1 {
    font-size: 2.2rem;
  }

  .home-modern-info h2 {
    font-size: 1.1rem;
  }

  .home-modern-info p {
    font-size: 0.95rem;
    max-width: 95%;
  }

  .home-modern-socials {
    margin-top: -1rem;
    margin-bottom: -1rem;
    justify-content: center;
    gap: 1px;
    font: 1rem sans-serif;
  }

  .home-modern-socials a {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  .home-modern-right{
    padding-top: 3.5rem;
  }
  .home-modern-image {
    width: 250px;
    height: 300px;
  }

  .home-modern-contact {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }

  .home-modern-contact i {
    font-size: 0.9rem;
  }

  .about-section-modern {
    padding: 3rem 0;
  }

  .all-main-title h2 {
    font-size: 1.6rem;
  }

  .all-main-title i {
    font-size: 2rem;
  }

  .about-card-modern {
    padding: 1.5rem;
  }

  .about-icon-modern {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .about-stats-modern {
    grid-template-rows: 1fr;
    gap: 0.01rem;
  }
  
  .about-highlights {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item-modern {
    padding: 0.5rem;
  }

  .stat-number-modern {
    font-size: 1.8rem;
  }

  .stat-label-modern {
    font-size: 0.85rem;
  }

  .about-qualities-modern {
    grid-template-rows: 1fr;
    gap: 0.8rem;
  }

  .about-highlights {
    grid-template-rows: 1fr 1fr;;
  }

  .quality-item-modern {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .skills-section-modern {
    padding: 2.5rem 0;
  }

  .education-card-modern {
    padding: 1.5rem;
    display: flex;
  }

  .skills-grid-modern {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .skill-card-modern {
    padding: 1rem;
  }

  .skill-icon-modern {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .skill-info-modern span {
    font-size: 0.95rem;
  }

  .skill-bar-modern {
    height: 6px;
  }

  .skill-percent-modern {
    font-size: 0.85rem;
  }

  .certificate-section-modern {
    padding: 2.5rem 0;
  }

  .certificate-grid-modern {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .certificate-card-modern {
    padding: 1.5rem;
  }

  .cert-icon-modern {
    width: 55px;
    height: 55px;
    font-size: 1.9rem;
  }

  .cert-content-modern {
    gap: 0.8rem;
    align-items: flex-start;
    justify-content: center;
  }

  .cert-badge-modern {
    font-size: 0.75rem;
    padding: 0.2rem 0.8rem;
  }

  .cert-details-modern {
    gap: 0.8rem;
    margin: 0.8rem 0;
  }

  .cert-platform,
  .cert-duration {
    font-size: 0.85rem;
  }

  .cert-actions-modern {
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .certificate-btn-modern {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .projects-section-modern {
    padding: 3rem 0;
  }

  .projects-grid-modern {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card-modern {
    border-radius: var(--border-radius-md);
  }

  .project-img-modern {
    height: 200px;
  }

  .contact-section-modern {
    padding: 4rem 0;
  }
  
  .contact-intro-modern {
    margin-bottom: 2.5rem;
    padding: 0 1rem;
  }
  
  .contact-intro-modern p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .contact-content-modern {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-info-modern {
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-card-modern {
    padding: 1.5rem;
    flex-direction: row;
    align-items: center;
  }
  
  .contact-icon-modern {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
    margin-right: 1rem;
    flex-shrink: 0;
  }
  
  .contact-details-modern {
    flex: 1;
  }
  
  .contact-details-modern h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }
  
  .contact-details-modern p,
  .contact-link {
    font-size: 0.9rem;
  }

  .contact-form-modern {
    padding: 1.75rem;
  }
  
  .form-header-modern {
    margin-bottom: 1.5rem;
  }
  
  .form-title-modern {
    font-size: 1.75rem;
  }
  
  .form-subtitle-modern {
    font-size: 0.95rem;
  }
  
  .form-grid-modern {
    gap: 1rem;
  }
  
  .input-group-modern input,
  .textarea-group-modern textarea {
    padding: 1.1rem 0.9rem 0.5rem;
    font-size: 0.95rem;
  }
  
  .input-group-modern label,
  .textarea-group-modern label {
    font-size: 0.9rem;
    top: 0.85rem;
    left: 0.9rem;
  }
  
  .submit-btn-modern {
    padding: 0.95rem 1.75rem;
    font-size: 0.95rem;
  }

  .form-title-modern {
    font-size: 2rem;
  }

  .form-subtitle-modern {
    font-size: 1rem;
  }

  .form-grid-modern {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .textarea-group-modern {
    grid-column: span 1;
  }

  .input-group-modern input,
  .textarea-group-modern textarea {
    padding: 1.2rem 0.8rem 0.6rem;
    font-size: 0.95rem;
  }

  .input-group-modern label,
  .textarea-group-modern label {
    font-size: 0.9rem;
    top: 0.9rem;
    left: 0.8rem;
  }

  .input-group-modern input:focus + label,
  .textarea-group-modern textarea:focus + label,
  .input-group-modern input:not(:placeholder-shown) + label,
  .textarea-group-modern textarea:not(:placeholder-shown) + label {
    top: -0.4rem;
    left: 0.6rem;
    font-size: 0.75rem;
  }

  .submit-btn-modern {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .footer-modern {
    padding: 3rem 0 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-logo {
    font-size: 1.5rem;
  }

  .footer-logo i {
    font-size: 1.8rem;
  }

  .footer-description {
    font-size: 0.9rem;
  }

  .footer-socials {
    gap: 0.6rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ===== CONTACT SECTION MOBILE VIEW ===== */
@media (max-width: 768px) {
  .contact-section-modern {
    padding: 5rem 0;
  }
  .contact-content-modern {
    flex-direction: column !important;
    display: flex !important;
    gap: 2rem !important;
    grid-template-columns: none !important;
    margin-bottom: 1rem;
  }
  .contact-info-modern,
  .contact-form-modern {
    width: 100%;
    margin: 0 auto;
  }
  .contact-card-modern {
    padding: 1rem;
    font-size: 1rem;
  }
  .contact-icon-modern {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-right: 0.5rem;
  }
  .contact-details-modern h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  .contact-details-modern p {
    font-size: 0.95rem;
  }
  .contact-form-modern {
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
  }
  .form-title-modern {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .form-subtitle-modern {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .form-grid-modern {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .input-group-modern,
  .textarea-group-modern {
    margin-bottom: 1rem;
  }
  .input-group-modern label,
  .textarea-group-modern label {
    font-size: 0.95rem;
    top: 1rem;
    left: 1rem;
  }
  .input-group-modern input,
  .textarea-group-modern textarea {
    padding: 1rem 0.8rem 0.5rem;
    font-size: 0.95rem;
  }
  .submit-btn-modern {
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    margin-top: 1rem;
  }
}

/* Contact Section Responsive Layout */
.contact-content-modern {
  display: flex;
  flex-direction: row;
  gap: 14rem;
  align-items: flex-start;
}

/* Responsive: stack vertically on tablet/mobile */
@media (max-width: 1024px) {
  .contact-content-modern {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Enhanced Navigation for Mobile */
@media (max-width: 768px) {
    .nav-main {
        padding: 1rem;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-main.scrolled {
        padding: 0.8rem 1.5rem;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo i {
        font-size: 1.6rem;
    }

    .menu-links {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(var(--bg-primary-rgb), 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        margin-left: 2rem;
        margin-right: 2rem;
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
        padding: 2.5rem 2.5rem;
        border-top: 1px solid var(--border-color);
        z-index: 100;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 1.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 20px;
    }

    .menu-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-links .link {
        padding: 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(var(--border-color-rgb), 0.2);
        transition: all 0.3s ease;
        text-align: center;
        font-weight: 700;
    }

    .menu-links .link:last-child {
        border-bottom: none;
    }

    .menu-links .link:hover {
        transform: translateX(0) scale(1.05);
        color: var(--accent-primary);
        background: rgba(var(--accent-primary-rgb), 0.05);
        border-radius: var(--border-radius-md);
        margin: 0.25rem 0;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1100;
        padding: 0.75rem;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn:hover {
        background: rgba(var(--bg-hover-rgb), 0.5);
        transform: scale(1.1);
    }

    .mobile-menu-btn span {
        width: 24px;
        height: 3px;
        background: var(--text-primary);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Enhanced Project Cards for Tablets */
@media (max-width: 1023px) and (min-width: 769px) {
    .projects-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .project-card-modern {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .project-card-modern:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    }

    .project-img-modern {
        height: 220px;
    }

    .project-overlay-modern {
        padding: 1.5rem;
    }

    .project-overlay-modern h4 {
        font-size: 1.1rem;
    }
}

/* Enhanced Contact Form for Small Screens */
@media (max-width: 768px) {
    .contact-section-modern {
        padding: 1.5rem 0;
    }

    .contact-content-modern {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-modern {
        padding: 2.5rem 1.5rem;
        margin: 0 1rem;
        border-radius: var(--border-radius-lg);
    }

    .form-title-modern {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .form-subtitle-modern {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .form-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .textarea-group-modern {
        grid-column: span 1;
    }

    .input-group-modern input,
    .textarea-group-modern textarea {
        padding: 1.4rem 1rem 0.6rem;
        font-size: 1rem;
        border-radius: var(--border-radius-md);
    }

    .input-group-modern label,
    .textarea-group-modern label {
        font-size: 0.9rem;
        top: 1rem;
        left: 1rem;
    }

    .input-group-modern input:focus + label,
    .textarea-group-modern textarea:focus + label {
        top: -0.6rem;
        left: 0.8rem;
        font-size: 0.75rem;
    }

    .submit-btn-modern {
        width: 100%;
        padding: 1.3rem 2rem;
        font-size: 1.1rem;
        margin-top: 1rem;
    }

    .contact-method-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-method-info h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .contact-form-modern {
        padding: 1.5rem 1.5rem;
        margin: 0 0;
    }

    .form-title-modern {
        font-size: 1.8rem;
    }

    .form-subtitle-modern {
        font-size: 0.95rem;
    }

    .input-group-modern input,
    .textarea-group-modern textarea {
        padding: 1.2rem 0.8rem 0.5rem;
        font-size: 0.95rem;
    }

    .submit-btn-modern {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Enhanced Footer for Mobile */
@media (max-width: 768px) {
    .footer-modern {
        padding: 3rem 0 2rem;
    }

    .footer-content {
        padding: 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        font-size: 1.6rem;
    }

    .footer-logo i {
        font-size: 2rem;
    }

    .footer-description {
        font-size: 0.9rem;
        max-width: none;
    }

    .footer-socials {
        justify-content: center;
        gap: 0.8rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .footer-title {
        font-size: 1.1rem;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        text-align: center;
    }

    .footer-link {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .footer-link::before {
        display: none;
    }

    .footer-link:hover {
        transform: none;
        background: rgba(var(--accent-primary-rgb), 0.05);
        border-radius: var(--border-radius-md);
        margin: 0.25rem 0;
    }

    .footer-contact {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
        gap: 0.8rem;
        font-size: 0.9rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding-top: 2rem;
    }

    .footer-watermark,
    .footer-credits {
        font-size: 0.85rem;
    }
}

/* Enhanced Typography Scaling */
@media (max-width: 1200px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.3rem; }
    h3 { font-size: 1.4rem; }
}

@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.3rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.2rem; }
    p { font-size: 1rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.1rem; }
    p { font-size: 0.95rem; }
}

/* Enhanced Spacing and Padding for Mobile */
@media (max-width: 768px) {
    .container-modern {
        padding: 0 1.5rem;
    }

    .section-modern {
        padding: 4rem 0;
    }

    .about-section-modern,
    .skills-section-modern,
    .certificate-section-modern,
    .projects-section-modern {
        padding: 4rem 0;
    }

    .about-grid-modern,
    .skills-grid-modern,
    .certificate-grid-modern,
    .projects-grid-modern {
        gap: 2rem;
    }

    .about-card-modern,
    .skill-card-modern,
    .certificate-card-modern{
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container-modern {
        padding: 0 1rem;
    }

    .section-modern {
        padding: 3rem 0;
    }

    .about-section-modern,
    .skills-section-modern,
    .certificate-section-modern,
    .projects-section-modern {
        padding: 3rem 0;
    }

    .about-grid-modern,
    .skills-grid-modern,
    .certificate-grid-modern,
    .projects-grid-modern {
        gap: 1.5rem;
    }

    .about-card-modern,
    .skill-card-modern,
    .certificate-card-modern{
        padding: 1.2rem;
    }

    .project-card-modern {
        padding: 0rem;
    }
}

/* Enhanced Touch Targets for Mobile */
@media (max-width: 768px) {
    .home-modern-socials a,
    .social-icon,
    .submit-btn-modern,
    .view-more-btn,
    .category-button,
    .certificate-btn-modern,
    .about-btn-modern,
    .mobile-menu-btn,
    .theme-toggle-btn {
        min-height: 48px;
        min-width: 48px;
        padding: 0.75rem;
    }

    .menu-links .link {
        min-height: 48px;
        padding: 1rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-link {
        min-height: 44px;
        padding: 0.75rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Enhanced Performance for Mobile */
@media (max-width: 768px) {
    .project-card-modern,
    .skill-card-modern,
    .certificate-card-modern,
    .about-card-modern {
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Reduce motion for better performance */
    .home-modern-image,
    .project-card-modern,
    .skill-card-modern,
    .certificate-card-modern,
    .about-card-modern {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    /* Optimize animations */
    .section-animate {
        animation-duration: 0.4s;
    }

    /* Better touch scrolling */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* Button Responsive adjustments */
@media (max-width: 768px) {
  .home-modern-contact,
  .about-btn-modern,
  .view-more-btn,
  .submit-btn-modern {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .home-modern-contact,
  .about-btn-modern,
  .view-more-btn,
  .submit-btn-modern {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    min-width: 120px;
  }
}

/* Accessibility improvements */
.category-button:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
}

.search-input-group:focus-within {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
}

.filter-counter-modern:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .category-button,
    .search-input-group,
    .filter-counter-modern,
    .project-card-modern,
    .no-results-modern {
        transition: none !important;
        animation: none !important;
    }
    
    .category-button:hover,
    .category-button.active {
        transform: none !important;
    }
}

/* ===== HOME WELCOME BADGE ===== */
@keyframes badgeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgeSlideDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(30px);
    }
}

@keyframes badgeProgressFill {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

.home-welcome-badge {
    position: fixed;
    bottom: 40px;
    left: 40%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.home-welcome-badge.show {
    animation: badgeSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: all;
}

.home-welcome-badge.show:not(:hover) {
    animation: badgeSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
              badgeSlideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2.5s forwards;
}

.badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.badge-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6);
}

.badge-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.badge-progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Light mode support */
[data-theme="light"] .badge-content {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .badge-content:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

[data-theme="light"] .badge-progress-bar {
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer-cta {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-cta-actions {
    justify-content: center;
  }
}