/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

:root {
  --primary: #00f5ff;
  --primary-dark: #00d4e6;
  --secondary: #ff006e;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #10b981;
  --orange: #f97316;
  --yellow: #fbbf24;
  --foreground: #ffffff;
  --foreground-light: #e5e7eb;
  --foreground-lighter: #f3f4f6;
  --background: #0a0a0f;
  --background-light: #1a1a2e;
  --border: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #0a0a0f;
  background-color: #0a0a0f;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background: linear-gradient(-45deg, #0a0a0f, #1a1a2e, #16213e, #0f1419);
  background-size: 200% 200%;
  background-attachment: fixed;
  background-color: #0a0a0f;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  position: relative;
  will-change: auto;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Backend Warning */
.backend-warning {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.backend-warning p {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.backend-warning small {
  opacity: 0.9;
  font-size: 0.85rem;
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.02);
  }
}

/* Form Validation States */
.contact-form input.valid,
.contact-form textarea.valid {
  border-color: #10B981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Ensure all sections are above background */
section {
  position: relative;
  z-index: 1;
  background-color: transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

nav {
  position: relative;
  z-index: 1000;
}

/* Typography */
h1 {
  font-size: 3.75rem;
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight {
  color: var(--primary);
}

.highlight-purple {
  color: var(--foreground);
}

.highlight-pink {
  color: var(--primary-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--purple));
  color: var(--white);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 15px -3px rgba(23, 3, 3, 0.1);
  border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(to right, var(--primary), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.nav-link {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.nav-link span {
  position: relative;
  z-index: 1;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.nav-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link:hover svg {
  opacity: 1;
  transform: scale(1.1) rotate(5deg);
  color: var(--primary);
}

/* Active state for current section */
.nav-link.active {
  color: var(--primary);
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.15),
    rgba(139, 92, 246, 0.15)
  );
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  border-radius: 2px;
  animation: activeGlow 2s ease-in-out infinite;
}

.nav-link.active svg {
  opacity: 1;
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.6));
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes activeGlow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(0, 245, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.8);
  }
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.btn-contact {
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: var(--white);
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.btn-contact svg {
  width: 16px;
  height: 16px;
}

.btn-contact:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 245, 255, 0.5);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 1.5rem;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    var(--indigo),
    var(--gray-800),
    var(--gray-900)
  );
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.3;
}

.blob-1 {
  top: 5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: linear-gradient(
    to bottom right,
    rgba(79, 70, 229, 0.3),
    rgba(124, 58, 237, 0.3)
  );
  animation: float 10s ease-in-out infinite;
}

.blob-2 {
  bottom: 5rem;
  right: 2.5rem;
  width: 24rem;
  height: 24rem;
  background: linear-gradient(
    to bottom right,
    rgba(167, 139, 250, 0.3),
    rgba(236, 72, 153, 0.3)
  );
  animation: float 12s ease-in-out infinite reverse;
}

.blob-3 {
  top: 50%;
  right: 25%;
  width: 16rem;
  height: 16rem;
  background: linear-gradient(
    to bottom right,
    rgba(147, 197, 253, 0.2),
    rgba(129, 140, 248, 0.2)
  );
  animation: rotate 15s linear infinite;
}

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

@keyframes rotate {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.3);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--foreground);
  box-shadow: 0 0 10px var(--foreground);
  border-radius: 50%;
  animation: particle-float 5s ease-in-out infinite;
}

@keyframes particle-float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-30px);
    opacity: 0.5;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  padding: 0 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(79, 70, 229, 0.2);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  animation: part 5s ease-in-out infinite;
}

@keyframes part {
  from {
    background: linear-gradient(
      to right,
      rgba(72, 177, 19, 0.2),
      rgba(129, 140, 248, 0.2)
    );
    border: 2px solid var(--foreground);
  }
  to {
    /* transform: rotate(360deg); */
    background: linear-gradient(
      to right,
      rgba(253, 196, 147, 0.2),
      rgba(129, 248, 210, 0.2)
    );
    border: 2px solid var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
}

.badge svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.badge span {
  color: var(--foreground-light);
  font-weight: 600;
}

.hero-badges-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.availability-badge {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(5, 150, 105, 0.1)
  );
  border-color: rgba(16, 185, 129, 0.3);
  animation: pulse-glow-green 2s ease-in-out infinite;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

@keyframes pulse-glow-green {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
  }
}

.response-badge {
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  border-color: rgba(0, 245, 255, 0.3);
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 245, 255, 0.3);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.05),
    rgba(139, 92, 246, 0.05)
  );
  border-radius: 20px;
  border: 1px solid rgba(0, 245, 255, 0.2);
  backdrop-filter: blur(10px);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 245, 255, 0.5),
    transparent
  );
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--foreground-light);
  margin-bottom: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  color: var(--foreground-lighter);
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1) translateY(-2px);
  background: linear-gradient(to bottom right, var(--primary), var(--purple));
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.social-icon:hover svg {
  color: var(--white);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

.scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(23, 16, 165, 0.92);
  border-radius: 9999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem;
}

.scroll-wheel {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--primary);
  border-radius: 50%;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

/* Stats Section */
.stats-section {
  padding: 5rem 0;
  background: transparent;
  position: relative;
}

.stats-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(238, 242, 255, 0.3), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 10;
}

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

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(
    to bottom right,
    rgba(79, 70, 229, 1),
    rgba(124, 58, 237, 1)
  );
  border-radius: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.stat-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--white);
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--foreground-lighter);
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--foreground-light);
  max-width: 42rem;
  margin: 0 auto;
}

/* About Section */
.about-section {
  padding: 8rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.about-shape-1 {
  position: absolute;
  top: 5rem;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: linear-gradient(
    to bottom right,
    rgba(79, 70, 229, 0.05),
    rgba(124, 58, 237, 0.05)
  );
  border-radius: 50%;
  filter: blur(64px);
}

.about-shape-2 {
  position: absolute;
  bottom: 5rem;
  left: 0;
  width: 20rem;
  height: 20rem;
  background: linear-gradient(
    to bottom right,
    rgba(167, 139, 250, 0.1),
    rgba(236, 72, 153, 0.1)
  );
  border-radius: 50%;
  filter: blur(64px);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

.about-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.about-image img {
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 8px solid var(--white);
}

.image-glow {
  position: absolute;
  inset: -2rem;
  background: linear-gradient(
    to right,
    rgba(29, 20, 191, 0.2),
    rgba(124, 58, 237, 0.2),
    rgba(236, 72, 153, 0.2)
  );
  border-radius: 50%;
  filter: blur(32px);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

.image-ring-1 {
  position: absolute;
  inset: -1.5rem;
  border: 2px dashed rgba(79, 70, 229, 0.3);
  border-radius: 50%;
  animation: spin-slow 20s linear infinite;
}

.image-ring-2 {
  position: absolute;
  inset: -3rem;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 50%;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--foreground-light);
  line-height: 1.75;
}

.highlight-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(
    to bottom right,
    var(--gray-900),
    var(--gray-900)
  );
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: rgba(79, 70, 229, 0.3);
}

.highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(
    to bottom right,
    rgba(79, 70, 229, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.highlight-content h3 {
  margin-bottom: 0.5rem;
}

.highlight-content p {
  font-size: 1rem;
  color: var(--foreground-light);
}

/* Skills Section */
.skills-section {
  padding: 8rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.skills-shape {
  position: absolute;
  top: 0;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: linear-gradient(
    to bottom right,
    rgba(167, 139, 250, 0.2),
    transparent
  );
  border-radius: 50%;
  filter: blur(64px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.skill-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.5s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-color: rgba(79, 70, 229, 0.3);
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(
    to bottom right,
    rgba(79, 70, 229, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.skill-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
}

.skill-card h3 {
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.skill-tag {
  padding: 0.5rem 0.75rem;
  background: linear-gradient(to right, var(--gray-50), var(--gray-100));
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  border-color: rgba(79, 70, 229, 0.3);
}

/* Projects Section */
.projects-section {
  padding: 8rem 0;
  background: transparent;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--gray-900);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.project-image {
  position: relative;
  height: 14rem;
  overflow: hidden;
  background: linear-gradient(
    to bottom right,
    var(--gray-100),
    var(--gray-200)
  );
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--foreground-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  padding: 0.25rem 0.75rem;
  background: linear-gradient(
    to right,
    rgba(79, 70, 229, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
}

.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gray-900);
  color: var(--foreground);
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.project-link svg {
  width: 1rem;
  height: 1rem;
}

.project-link:hover {
  background: linear-gradient(to right, var(--primary), var(--purple));
  color: var(--white);
}

/* Testimonials Section */
.testimonials-section {
  padding: 8rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.testimonials-shape {
  position: absolute;
  top: 5rem;
  right: 5rem;
  width: 16rem;
  height: 16rem;
  background: linear-gradient(
    to bottom right,
    rgba(79, 70, 229, 0.1),
    transparent
  );
  border-radius: 50%;
  filter: blur(64px);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.testimonial-card {
  padding: 2rem;
  background: var(--gray-900);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #fbbf24;
}

.testimonial-content {
  color: var(--foreground-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-100);
}

.author-name {
  color: var(--foreground);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-role {
  color: var(--foreground-lighter);
  font-size: 0.875rem;
}

/* Contact Section */
.contact-section {
  padding: 8rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.contact-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24rem;
  height: 24rem;
  background: linear-gradient(
    to bottom right,
    rgba(79, 70, 229, 0.1),
    transparent
  );
  border-radius: 50%;
  filter: blur(64px);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 72rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.contact-form-container {
  background: rgba(12, 1, 1, 0.8);
  backdrop-filter: blur(8px);
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(10, 1, 1, 0.25);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(13, 12, 12, 0.7);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  color: var(--foreground);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.form-group textarea {
  resize: none;
}

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

.contact-text {
  font-size: 1.125rem;
  color: var(--foreground-light);
  margin-bottom: 2rem;
  line-height: 1.75;
}

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

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(4, 1, 1, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-detail:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(
    to bottom right,
    rgba(79, 70, 229, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.detail-label {
  color: var(--foreground-lighter);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.detail-value {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.detail-value:hover {
  text-decoration: underline;
}

.social-label {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--foreground-light);
}

.contact-social {
  display: flex;
  gap: 1rem;
}

.contact-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-social-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.contact-social-icon:hover {
  transform: scale(1.1) translateY(-3px);
  background: linear-gradient(to bottom right, var(--primary), var(--purple));
  box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.3);
}

.contact-social-icon:hover svg {
  color: var(--white);
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.cta-bg-1,
.cta-bg-2 {
  position: absolute;
  width: 24rem;
  height: 24rem;
  background: var(--foreground);
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.1;
}

.cta-bg-1 {
  top: 0;
  left: 0;
}

.cta-bg-2 {
  bottom: 0;
  right: 0;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 10;
}

.cta-content h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

/* Footer */
.footer {
  padding: 3rem 0;
  background: linear-gradient(
    to bottom right,
    var(--indigo),
    var(--gray-800),
    var(--gray-900)
  );
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.05;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  color: #fff;
  text-align: center;
  padding: 15px 20px;
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0.5px;

  overflow: hidden;
  position: relative;
}

.footer-bottom .animate-text {
  display: inline-block;
  position: relative;
  cursor: default;
  animation: floatText 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

/* Floating animation */
@keyframes floatText {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-5px);
    opacity: 0.8;
  }
}

/* Glowing underline effect */
.footer-bottom .animate-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: #ff6600;
  box-shadow: 0 0 10px #ff6600, 0 0 20px #ff6600;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-bottom .animate-text:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================
   Enhanced Animations & Effects
   ========================== */

/* Glowing text effect */
.glowing-text {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(79, 70, 229, 0.5),
      0 0 20px rgba(79, 70, 229, 0.3), 0 0 30px rgba(124, 58, 237, 0.2);
  }
  to {
    text-shadow: 0 0 20px rgba(79, 70, 229, 0.8),
      0 0 30px rgba(124, 58, 237, 0.5), 0 0 40px rgba(236, 72, 153, 0.3);
  }
}

/* Shimmer effect for cards */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::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 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Pulse glow effect */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.8);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(79, 70, 229, 0.1);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  border: 2px solid #10b981;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.5);
}

.toast.error {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: white;
  border: 2px solid #ef4444;
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.5);
}

.toast-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: white;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.loading-overlay .spinner {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: white;
}

.loading-overlay p {
  color: white;
}

/* Form button loading state */
button.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Card entrance animations */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add shimmer to stat cards */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 70, 229, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

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

/* Enhanced skill tag */
.skill-tag {
  position: relative;
  overflow: hidden;
}

.skill-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--primary), var(--purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.skill-tag:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ==========================
   Enhanced toast & confetti
   ========================== */

/* confetti pieces */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 14px;
  background: red;
  opacity: 0.95;
  z-index: 19999;
  pointer-events: none;
  transform-origin: center;
}

/* ==========================
   Services Section
   ========================== */
.services-section {
  padding: 6rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.services-shape {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(124, 58, 237, 0.1),
    transparent 50%
  );
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.1),
    rgba(255, 106, 182, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-features {
  list-style: none;
  position: relative;
  z-index: 1;
}

.service-features li {
  color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ==========================
   Education Section
   ========================== */
.education-section {
  padding: 6rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.education-shape {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 50%;
  background: radial-gradient(
    circle at 100% 100%,
    rgba(255, 106, 182, 0.1),
    transparent 70%
  );
  pointer-events: none;
}

.timeline {
  max-width: 900px;
  margin: 3rem auto 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--pink));
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  padding-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 22px;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: 3px solid #0a0a0f;
  z-index: 2;
}

.timeline-content {
  display: flex;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(10px);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
}

.timeline-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-icon svg {
  width: 25px;
  height: 25px;
  color: white;
}

.timeline-details {
  flex: 1;
}

.timeline-date {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(124, 58, 237, 0.2);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline-details h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.timeline-institution {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.timeline-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.highlight-badge {
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================
   Blog Section
   ========================== */
.blog-section {
  padding: 6rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.blog-shape {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 40%;
  height: 60%;
  background: radial-gradient(
    circle at 0% 50%,
    rgba(124, 58, 237, 0.1),
    transparent 70%
  );
  pointer-events: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
}

.blog-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-date svg {
  width: 14px;
  height: 14px;
}

.blog-title {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-excerpt {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.3s ease;
}

.blog-link:hover {
  gap: 0.75rem;
}

.blog-link svg {
  width: 16px;
  height: 16px;
}

/* ==========================
   Download CV Button
   ========================== */
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ==========================
   Color changing text
   ========================== */
@keyframes colorChange {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.blog-category {
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Enhanced timeline */
.timeline-marker {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.timeline-icon {
  background: linear-gradient(
    135deg,
    var(--purple),
    var(--pink),
    var(--orange)
  );
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.stat-value {
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--blue));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorChange 3s ease infinite;
}

/* Enhanced CTA section */
.cta-section {
  background: transparent;
}

/* ==========================
   Theme Toggle Button
   ========================== */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.1);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.theme-toggle:hover {
  background: rgba(0, 245, 255, 0.2);
  border-color: var(--primary);
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Theme variations - Change accent colors AND animated background */
/* Default dark theme (no class) uses colors from :root */

/* Ocean Blue Theme */
body.blue {
  --primary: #0ea5e9;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --purple: #6366f1;
  --pink: #8b5cf6;
  --foreground: #ffffff;
  --foreground-light: #e0f2fe;
  --foreground-lighter: #bae6fd;
  --background: #0c4a6e;
  --background-light: #075985;
  --border: rgba(255, 255, 255, 0.15);
  background: linear-gradient(-45deg, #0c4a6e, #075985, #0369a1, #0284c7);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #ffffff;
}

body.blue::before {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(14, 165, 233, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(6, 182, 212, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 50%
    );
}

body.blue::after {
  background-image: linear-gradient(
      rgba(14, 165, 233, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
}

/* Dark Theme (Black) */
body.black {
  --foreground: #ffffff;
  --foreground-light: #e5e7eb;
  --foreground-lighter: #f3f4f6;
  --background: #000000;
  --background-light: #0a0a0a;
  --border: rgba(255, 255, 255, 0.1);
  background: linear-gradient(-45deg, #000000, #0a0a0a, #050505, #0f0f0f);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #ffffff;
}

body.black::before {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(0, 245, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(236, 72, 153, 0.06) 0%,
      transparent 50%
    );
}

body.theme-purple {
  --primary: #a855f7;
  --cyan: #c084fc;
  --blue: #8b5cf6;
  --purple: #a855f7;
  --pink: #d946ef;
  background: linear-gradient(-45deg, #1a0a2e, #2d1b4e, #3d2663, #1a0a2e);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

body.theme-purple::before {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(168, 85, 247, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(192, 132, 252, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(217, 70, 239, 0.04) 0%,
      transparent 50%
    );
}

body.theme-green {
  --primary: #10b981;
  --cyan: #34d399;
  --blue: #059669;
  --purple: #10b981;
  --pink: #22c55e;
  background: linear-gradient(-45deg, #0a2e1a, #1b4e2d, #26633d, #0a2e1a);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

body.theme-green::before {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(16, 185, 129, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(52, 211, 153, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(34, 197, 94, 0.04) 0%,
      transparent 50%
    );
}

body.theme-orange {
  --primary: #f97316;
  --cyan: #fb923c;
  --blue: #ea580c;
  --purple: #f97316;
  --pink: #fb923c;
  background: linear-gradient(-45deg, #2e1a0a, #4e2d1b, #633d26, #2e1a0a);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

body.theme-orange::before {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(249, 115, 22, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(251, 146, 60, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(234, 88, 12, 0.04) 0%,
      transparent 50%
    );
}

body.theme-pink {
  --primary: #ec4899;
  --cyan: #f472b6;
  --blue: #db2777;
  --purple: #ec4899;
  --pink: #f472b6;
  background: linear-gradient(-45deg, #2e0a1a, #4e1b2d, #63263d, #2e0a1a);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

body.theme-pink::before {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(236, 72, 153, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(244, 114, 182, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(219, 39, 119, 0.04) 0%,
      transparent 50%
    );
}

/* ==========================
   Blog Toggle Button
   ========================== */
.blog-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.blog-toggle:hover {
  background: var(--primary);
  color: var(--background);
  box-shadow: 0 4px 15px rgba(0, 245, 255, 0.4);
  transform: translateY(-2px);
}

.blog-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.blog-toggle.expanded svg {
  transform: rotate(90deg);
}

.blog-full-content {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 245, 255, 0.2);
}

/* ==========================
   Enhanced Particle Animation
   ========================== */
@keyframes particleFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-20px, -60px) scale(0.9);
    opacity: 0.2;
  }
  75% {
    transform: translate(-40px, -30px) scale(1.05);
    opacity: 0.35;
  }
}

/* Different particle variations */
.particle:nth-child(2n) {
  background: radial-gradient(circle, var(--purple), transparent);
  animation-duration: 30s;
  animation-delay: -5s;
}

.particle:nth-child(3n) {
  background: radial-gradient(circle, var(--pink), transparent);
  animation-duration: 35s;
  animation-delay: -10s;
}

.particle:nth-child(4n) {
  background: radial-gradient(circle, var(--cyan), transparent);
  animation-duration: 28s;
  animation-delay: -15s;
}

.particle:nth-child(5n) {
  background: radial-gradient(circle, var(--blue), transparent);
  animation-duration: 32s;
  animation-delay: -20s;
}

/* ==========================
   Skills Icons Grid - Clean & Simple
   ========================== */
.skills-category {
  margin-bottom: 5rem;
  padding: 2.5rem;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.03),
    rgba(139, 92, 246, 0.03)
  );
  border-radius: 24px;
  border: 1px solid rgba(0, 245, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skills-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 245, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.skills-category:hover::before {
  left: 100%;
}

.skills-category:hover {
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 245, 255, 0.15);
  transform: translateY(-5px);
}

.skills-category-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--purple),
    var(--pink)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 3s ease infinite;
  position: relative;
  padding-bottom: 1rem;
}

.skills-category-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.skills-category:hover .skills-category-title::after {
  width: 120px;
}

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

.skills-icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.skill-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  position: relative;
}

.skill-icon-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--purple),
    var(--pink)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-icon-item:hover::before {
  opacity: 1;
}

.skill-icon-item svg {
  width: 85px;
  height: 85px;
  color: var(--primary);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 20px rgba(0, 245, 255, 0.4));
}

.skill-icon-item span {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.skill-icon-item:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.08),
    rgba(139, 92, 246, 0.08)
  );
  transform: translateY(-12px);
  box-shadow: 0 12px 40px rgba(0, 245, 255, 0.2);
}

.skill-icon-item:hover svg {
  transform: scale(1.15) rotate(8deg);
  color: var(--cyan);
  filter: drop-shadow(0 8px 30px rgba(0, 245, 255, 0.7))
    drop-shadow(0 0 15px var(--purple));
}

.skill-icon-item:hover span {
  color: var(--primary);
  transform: translateY(-3px);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* ==========================
   Project Filter Buttons
   ========================== */
.bt-n {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.5rem;
}

.bt-n:hover {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white;
  box-shadow: 0 4px 15px rgba(0, 245, 255, 0.4);
  transform: translateY(-2px);
}

/* Different color schemes for each category */
.skills-category:nth-child(1) {
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.04),
    rgba(59, 130, 246, 0.04)
  );
}

.skills-category:nth-child(2) {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.04),
    rgba(236, 72, 153, 0.04)
  );
}

.skills-category:nth-child(3) {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.04),
    rgba(249, 115, 22, 0.04)
  );
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.skill-icon-item:nth-child(1) svg {
  animation: iconFloat 3s ease-in-out infinite;
  animation-delay: 0s;
}

.skill-icon-item:nth-child(2) svg {
  animation: iconFloat 3s ease-in-out infinite;
  animation-delay: 0.3s;
}

.skill-icon-item:nth-child(3) svg {
  animation: iconFloat 3s ease-in-out infinite;
  animation-delay: 0.6s;
}

.skill-icon-item:nth-child(4) svg {
  animation: iconFloat 3s ease-in-out infinite;
  animation-delay: 0.9s;
}

.skill-icon-item:nth-child(5) svg {
  animation: iconFloat 3s ease-in-out infinite;
  animation-delay: 1.2s;
}

.skill-icon-item:nth-child(6) svg {
  animation: iconFloat 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

.skill-icon-item:nth-child(7) svg {
  animation: iconFloat 3s ease-in-out infinite;
  animation-delay: 1.8s;
}

.skill-icon-item:nth-child(8) svg {
  animation: iconFloat 3s ease-in-out infinite;
  animation-delay: 2.1s;
}

/* ==========================
   Modal System
   ========================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  display: none;
}

.modal.active {
  display: flex;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #6B7280;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #374151;
  transform: rotate(90deg);
}

/* Contact Modal Close Button */
.contact-modal .modal-close {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.contact-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Blog Modal Page */
.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.blog-modal.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.blog-modal-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 3rem;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 15, 0.95),
    rgba(26, 26, 46, 0.95)
  );
  border-radius: 20px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  box-shadow: 0 20px 80px rgba(0, 245, 255, 0.3);
  position: relative;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.blog-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 245, 255, 0.1);
  border: 2px solid rgba(0, 245, 255, 0.3);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.blog-modal-close:hover {
  background: var(--primary);
  color: var(--background);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
}

.blog-modal-header {
  margin-bottom: 2rem;
}

.blog-modal-category {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-modal-title {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--purple),
    var(--pink)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-modal-meta {
  display: flex;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

.blog-modal-body {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 1.1rem;
}

.blog-modal-body p {
  margin-bottom: 1.5rem;
}

.blog-modal-body h3 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.blog-modal-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 2rem;
  border: 2px solid rgba(0, 245, 255, 0.2);
}

/* Make modal visible when active */
.modal.active {
  opacity: 1;
  visibility: visible;
}

/* Center image */
.blog-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
  transition: transform 0.3s ease;
}

.modal img:hover {
  transform: scale(1.02);
}

/* Close button */
.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 245, 255, 0.1);
  border: 2px solid rgba(0, 245, 255, 0.3);
  color: var(--primary, #00f5ff);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close:hover {
  background: var(--primary, #00f5ff);
  color: var(--background, #000);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
}

/* ==========================
   Social Share Section
   ========================== */
.social-share-section {
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.05),
    rgba(139, 92, 246, 0.05)
  );
  border-radius: 20px;
  border: 1px solid rgba(0, 245, 255, 0.2);
}

.share-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-btn svg {
  width: 20px;
  height: 20px;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.share-twitter {
  background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.share-twitter:hover {
  background: linear-gradient(135deg, #0d8bd9, #1da1f2);
}

.share-linkedin {
  background: linear-gradient(135deg, #0077b5, #005885);
}

.share-linkedin:hover {
  background: linear-gradient(135deg, #005885, #0077b5);
}

.share-facebook {
  background: linear-gradient(135deg, #1877f2, #0d5dbf);
}

.share-facebook:hover {
  background: linear-gradient(135deg, #0d5dbf, #1877f2);
}

.share-telegram {
  background: linear-gradient(135deg, #0088cc, #006699);
}

.share-telegram:hover {
  background: linear-gradient(135deg, #006699, #0088cc);
}

.share-copy {
  background: linear-gradient(135deg, var(--primary), var(--purple));
}

.share-copy:hover {
  background: linear-gradient(135deg, var(--purple), var(--primary));
}

/* ==========================
   Floating "Let's Talk" CTA
   ========================== */
.floating-cta {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  color: var(--white);
  padding: 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.18);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
}

.floating-cta svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: inherit;
}

.floating-cta:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.12);
}

.floating-cta.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
}

.floating-cta.pulse-glow {
  animation: pulse-glow 1.1s ease-in-out;
}

/* Floating CTA Animation */
.floating-cta.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.8), 0 0 60px rgba(79, 70, 229, 0.4);
  }
}

/* ==========================
   Contact modal styles
   ========================== */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.contact-modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.contact-modal {
  width: 320px;
  max-width: calc(100% - 48px);
  background: white;
  color: var(--foreground-dark, #111);
  border-radius: 12px;
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.contact-modal h3 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--primary-dark);
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7f7fb, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.contact-actions a,
.contact-actions button {
  flex: 1 1 0;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.contact-actions a.call {
  background: linear-gradient(90deg, var(--primary), var(--purple));
  color: white;
}

.contact-actions a.tg {
  background: #0088cc;
  color: white;
}

.contact-actions button.copy {
  background: #eef2ff;
  color: var(--primary-dark);
}

.contact-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* ==========================
   Shimmer Effect for Cards
   ========================== */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Loading Spinner Enhancement */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(79, 70, 229, 0.1);
  border-radius: 50%;
  border-top-color: #4F46E5;
  animation: spin 1s ease-in-out infinite;
}

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

/* Particle Optimization */
.particle {
  position: absolute;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.6), rgba(124, 58, 237, 0.3));
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: float linear infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(-40px) translateX(0);
  }
  75% {
    transform: translateY(-20px) translateX(-10px);
  }
}

/* ==========================
   Responsive Design
   ========================== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  /* Hero responsive */
  .hero-badges-container {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .stat-divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(0, 245, 255, 0.5),
      transparent
    );
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
    border-top: 1px solid rgba(0, 245, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    gap: 0.5rem;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem;
  }

  .btn-contact {
    width: 100%;
    justify-content: center;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  .about-image img {
    width: 16rem;
    height: 16rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  /* Backend Warning */
  .backend-warning {
    margin: 1rem;
    font-size: 0.9rem;
  }
  
  .modal-close {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
  }
  
  .floating-cta {
    width: 50px;
    height: 50px;
  }

  /* Services & Blog Grid */
  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-marker {
    left: 7px;
  }

  .timeline-content {
    flex-direction: column;
  }

  /* Blog Modal */
  .blog-modal-content {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .blog-modal-title {
    font-size: 1.8rem;
  }

  .blog-modal-image {
    height: 250px;
  }

  /* Skills Icons Grid */
  .skills-category {
    padding: 1.5rem;
    margin-bottom: 3rem;
  }

  .bt-n {
    margin: 0.5rem 0;
  }

  .skills-category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .skills-icons-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
  }

  .skill-icon-item {
    padding: 1rem;
  }

  .skill-icon-item svg {
    width: 65px;
    height: 65px;
  }

  .skill-icon-item span {
    font-size: 0.85rem;
  }

  /* Share Buttons */
  .share-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .share-btn {
    width: 100%;
    justify-content: center;
  }

  /* Contact Modal */
  .contact-modal {
    width: 90%;
  }
  .contact-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .hero-description,
  .section-description {
    font-size: 1rem;
  }

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

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

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

  .floating-cta {
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================
   Print Styles
   ========================== */
@media print {
  .floating-cta,
  .modal,
  .modal-overlay,
  .loading-overlay,
  .toast {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
}

/* ==========================
   High Contrast Mode Support
   ========================== */
@media (prefers-contrast: high) {
  .btn, .card, .modal {
    border: 2px solid currentColor;
  }
  
  .shimmer::before {
    display: none;
  }
}

/* ==========================
   Reduced Motion Preference
   ========================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .shimmer::before,
  .floating-cta.pulse-glow,
  .particle {
    display: none !important;
  }
}

/* ==========================
   Accessibility Improvements
   ========================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard navigation */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px;
  z-index: 1001;
  text-decoration: none;
}

.skip-to-main:focus {
  top: 0;
}

/* ==========================
   Performance Optimizations
   ========================== */
@media (max-width: 768px) {
  .image-glow,
  .blob,
  .skills-shape,
  .testimonials-shape,
  .contact-shape {
    display: none;
  }
  
  .hero-bg {
    background: #0a0a0f;
  }
}
/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 20px;
  gap: 5px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  background: var(--primary-color);
  color: white;
  font-weight: 500;
}

.lang-separator {
  color: var(--text-muted);
  font-size: 14px;
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* Update navigation for RTL */
[dir="rtl"] .nav-menu {
  margin-right: auto;
  margin-left: 0;
}

[dir="rtl"] .nav-container {
  flex-direction: row-reverse;
}

/* Update hero section for RTL */
[dir="rtl"] .hero-content {
  text-align: right;
}

/* Update about section for RTL */
[dir="rtl"] .about-content {
  direction: rtl;
}

/* Update skills section for RTL */
[dir="rtl"] .skills-category {
  direction: rtl;
}

/* Update projects section for RTL */
[dir="rtl"] .project-card {
  direction: rtl;
  text-align: right;
}

/* Update contact form for RTL */
[dir="rtl"] .form-group {
  direction: rtl;
  text-align: right;
}

/* Update footer for RTL */
[dir="rtl"] .footer-content {
  direction: rtl;
  text-align: right;
}