/* Font Awesome: loaded as a separate file (assets/css/fontawesome.min.css).
  Loading it separately allows independent caching of the library and webfonts.
  Keep `assets/css/icons-backup.css` in the repo as a backup of the original file.
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Futuristic Animated Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -3;
  background: 
    /* Deep space gradient base */ linear-gradient(
      135deg,
      #0a0a1a 0%,
      #1a0b3d 25%,
      #2d1b69 50%,
      #4c1d95 75%,
      #7c3aed 100%
    ),
    /* Glowing nebula effects */
      radial-gradient(
        ellipse at 20% 30%,
        rgba(139, 92, 246, 0.4) 0%,
        transparent 60%
      ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(236, 72, 153, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 40% 80%,
      rgba(59, 130, 246, 0.3) 0%,
      transparent 60%
    ),
    /* Neon purple accents */
      radial-gradient(
        ellipse at 60% 50%,
        rgba(168, 85, 247, 0.2) 0%,
        transparent 40%
      ),
    /* Deep violet core */
      radial-gradient(
        ellipse at 50% 50%,
        rgba(88, 28, 135, 0.4) 0%,
        transparent 70%
      );
  animation: backgroundShift 25s ease-in-out infinite;
  filter: contrast(1.1) brightness(0.9);
  transition: background 0.3s ease, filter 0.3s ease;
}

/* Floating geometric shapes */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

/* Light streaks */
.light-streaks {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.light-streak {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.6),
    transparent
  );
  height: 1px;
  width: 100px;
  animation: lightStreak 8s linear infinite;
  opacity: 0;
}

.light-streak:nth-child(1) {
  top: 20%;
  left: -100px;
  animation-delay: 0s;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(236, 72, 153, 0.8),
    transparent
  );
}

.light-streak:nth-child(2) {
  top: 40%;
  left: -100px;
  animation-delay: 2s;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.7),
    transparent
  );
}

.light-streak:nth-child(3) {
  top: 60%;
  left: -100px;
  animation-delay: 4s;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 85, 247, 0.6),
    transparent
  );
}

.light-streak:nth-child(4) {
  top: 80%;
  left: -100px;
  animation-delay: 6s;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.5),
    transparent
  );
}

/* Tech circuits */
.tech-circuits {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.1;
}

.circuit {
  position: absolute;
  background: rgba(139, 92, 246, 0.3);
  border-radius: 2px;
}

.circuit:nth-child(1) {
  top: 10%;
  left: 10%;
  width: 80px;
  height: 2px;
  animation: circuitPulse 4s ease-in-out infinite;
}

.circuit:nth-child(2) {
  top: 10%;
  left: 10%;
  width: 2px;
  height: 60px;
  animation: circuitPulse 4s ease-in-out infinite 1s;
}

.circuit:nth-child(3) {
  top: 70%;
  right: 15%;
  width: 60px;
  height: 2px;
  animation: circuitPulse 4s ease-in-out infinite 2s;
}

.circuit:nth-child(4) {
  top: 70%;
  right: 15%;
  width: 2px;
  height: 40px;
  animation: circuitPulse 4s ease-in-out infinite 3s;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float-shapes 15s infinite linear;
}

.shape:nth-child(1) {
  top: 20%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #8b5cf6, #06b6d4);
  transform: rotate(45deg);
  animation-delay: -5s;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.shape:nth-child(2) {
  top: 60%;
  right: 10%;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ec4899, #f97316);
  border-radius: 50%;
  animation-delay: -10s;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.shape:nth-child(3) {
  bottom: 20%;
  left: 20%;
  width: 120px;
  height: 60px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: -15s;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.shape:nth-child(4) {
  top: 30%;
  right: 30%;
  width: 90px;
  height: 90px;
  background: linear-gradient(180deg, #8b5cf6, #a855f7);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation-delay: -20s;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Particle system */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.8) 0%,
    rgba(139, 92, 246, 0.2) 70%,
    transparent 100%
  );
  border-radius: 50%;
  animation: particleFloat 8s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.particle:nth-child(3n) {
  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.8) 0%,
    rgba(236, 72, 153, 0.2) 70%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.particle:nth-child(3n + 1) {
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.8) 0%,
    rgba(59, 130, 246, 0.2) 70%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Grid overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.05;
  background-image: linear-gradient(
      rgba(139, 92, 246, 0.2) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(139, 92, 246, 0.2) 1px, transparent 1px),
    linear-gradient(rgba(236, 72, 153, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 72, 153, 0.1) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 100px 100px, 100px 100px;
  animation: gridPulse 6s ease-in-out infinite;
  filter: blur(0.5px);
}

@keyframes backgroundShift {
  0%,
  100% {
    filter: hue-rotate(0deg) brightness(0.9) contrast(1.1);
  }
  25% {
    filter: hue-rotate(15deg) brightness(1) contrast(1.2);
  }
  50% {
    filter: hue-rotate(30deg) brightness(0.8) contrast(1.1);
  }
  75% {
    filter: hue-rotate(-15deg) brightness(0.95) contrast(1.15);
  }
}

@keyframes lightStreak {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw + 100px));
    opacity: 0;
  }
}

@keyframes circuitPulse {
  0%,
  100% {
    opacity: 0.3;
    box-shadow: 0 0 5px rgba(139, 92, 246, 0.3);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
  }
}

@keyframes float-shapes {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg);
  }
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.2;
  }
  25% {
    transform: translateY(-100px) translateX(20px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-200px) translateX(-10px);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-100px) translateX(-20px);
    opacity: 0.8;
  }
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.05;
  }
  50% {
    opacity: 0.12;
  }
}

:root {
  --primary-bg: rgba(10, 10, 26, 0.95);
  --secondary-bg: rgba(26, 11, 61, 0.8);
  --accent-color: #8b5cf6;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --border-color: rgba(139, 92, 246, 0.2);
  --gradient-1: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  --gradient-2: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
  --gradient-3: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --card-bg: rgba(255, 255, 255, 0.05);
  --backdrop-blur: blur(20px);
}

[data-theme="light"] {
  --primary-bg: rgba(255, 255, 255, 0.95);
  --secondary-bg: rgba(248, 250, 252, 0.9);
  --accent-color: #6366f1;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: rgba(226, 232, 240, 0.5);
  --card-bg: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] body::before {
  background: linear-gradient(
      135deg,
      #faf5ff 0%,
      #f3e8ff 25%,
      #e9d5ff 50%,
      #d8b4fe 75%,
      #c084fc 100%
    ),
    radial-gradient(
      ellipse at 20% 30%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(236, 72, 153, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 40% 80%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 60%
    );
}

body {
  font-family: "Inter", sans-serif;
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  backdrop-filter: var(--backdrop-blur);
  position: relative;
  z-index: 0;
}

/* Paragraph defaults for readability on dark backgrounds */
p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.74);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  background: transparent;
  pointer-events: none;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.nav-shell {
  width: 100%;
  max-width: 1050px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: radial-gradient(
      circle at top left,
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.9)
    )
    border-box;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9), 0 0 0 1px rgba(15, 23, 42, 0.6),
    0 0 40px rgba(129, 140, 248, 0.35);
  backdrop-filter: blur(22px);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  font-size: 1.45rem;
  font-weight: 700;
  font-family: "Clash Display", "Helvetica Neue", Arial, sans-serif;
  background: var(--gradient-1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 30px rgba(249,0,0,0.06);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(226, 232, 240, 0.65);
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
  position: relative;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.nav-links a:hover {
  color: #f8fafc;
  background: rgba(129, 140, 248, 0.18);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.45),
    0 10px 25px rgba(15, 23, 42, 0.8);
  transform: translateY(-1px);
}

.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    color 0.3s ease, transform 0.3s ease;
  color: var(--text-primary);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* Theme dropdown menu */
.theme-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  min-width: 160px;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 50;
}

.theme-menu.open .theme-dropdown {
  display: block;
}

.theme-option {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-option:hover {
  background: rgba(148, 163, 184, 0.15);
}

.theme-option.active {
  background: rgba(148, 163, 184, 0.25);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.hero-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  animation: fadeInUp 1s ease-out;
  z-index: 10;
  position: relative;
  margin: 0 auto;
}

.hero-tagline {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #94a3b8; /* desaturated blue-gray */
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: "Clash Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600; /* semi-bold for prefix */
  line-height: 1.06;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.hero-highlight {
  display: inline-block;
  font-weight: 700; /* bolder for name */
  /* gradient: cyan -> electric blue -> soft violet */
  background: linear-gradient(90deg, #22d3ee 0%, #1fb6ff 48%, #9b8cff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* aura-style glow: reduced blur, slightly more spread, ~30% opacity */
  text-shadow: 0 6px 14px rgba(31,182,255,0.30), 0 0 12px rgba(155,140,255,0.30);
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.74);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  /* slightly brighter than name glow */
  background: linear-gradient(90deg, #34dfff 0%, #1fb6ff 100%);
  color: #021029;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  box-shadow: 0 22px 40px rgba(2,16,41,0.55), 0 0 28px rgba(31,182,255,0.12);
  position: relative;
  overflow: hidden;
}

.cta-button i {
  font-size: 0.9rem;
}

.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.06);
  box-shadow: 0 28px 60px rgba(2,16,41,0.65), 0 0 40px rgba(31,182,255,0.16);
}

.cta-button:hover::before {
  transform: translateX(120%);
}

.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.06);
  color: #cbd5e1; /* muted */
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  box-shadow: none;
  transition: all 0.22s ease;
}

.hero-secondary-btn:hover {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.09);
  box-shadow: 0 10px 20px rgba(2,16,41,0.5);
}

@keyframes textGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.55))
      drop-shadow(0 0 24px rgba(99, 102, 241, 0.35));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.8))
      drop-shadow(0 0 34px rgba(56, 189, 248, 0.45));
  }
}

@keyframes subtlePulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.45);
  }
}

/* Hero ambient glow and particles (cyberpunk) */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  background: radial-gradient(20rem 10rem at 50% 35%, rgba(31,182,255,0.06), transparent 60%),
    radial-gradient(
      60rem 30rem at 50% 10%,
      rgba(99, 102, 241, 0.14),
      transparent 60%
    ),
    radial-gradient(
      40rem 20rem at 10% 80%,
      rgba(6, 182, 212, 0.10),
      transparent 60%
    ),
    radial-gradient(
      35rem 18rem at 90% 75%,
      rgba(236, 72, 153, 0.06),
      transparent 60%
    );
  filter: blur(1.6px);
  animation: heroGlowSweep 18s ease-in-out infinite alternate;
}

.hero::after {
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(59, 130, 246, 0.25) 0.5px,
      transparent 2px
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(6, 182, 212, 0.25) 0.5px,
      transparent 2px
    );
  background-size: 120px 120px, 160px 160px;
  opacity: 0.25;
  animation: particleDrift 30s linear infinite;
}


@keyframes heroGlowSweep {
  0% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(-2%) translateX(2%) scale(1.02);
  }
  100% {
    transform: translateY(1%) translateX(-1%) scale(1.01);
  }
}

@keyframes particleDrift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-60px);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  opacity: 0;
  animation: fadeInScroll 1s ease-out 1s forwards;
}

.scroll-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.scroll-arrow {
  color: var(--primary-color);
  font-size: 1.2rem;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.scroll-indicator {
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(-5px);
}

.scroll-indicator:hover .scroll-arrow {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Thanks Box Wrapper - Integrated in Contact Section */
.thanks-box-wrapper {
  margin-top: 4rem;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.thanks-label {
  font-size: 1.2rem;
  color: #a78bfa;
  font-weight: 600;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  font-family: "Inter", sans-serif;
}

.thanks-label::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a78bfa, transparent);
}

.thanks-box {
  position: relative;
  border: 2px dashed rgba(167, 139, 250, 0.6);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  margin: 0 auto;
  background: rgba(99, 102, 241, 0.05);
  backdrop-filter: blur(10px);
  max-width: 600px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.thanks-box:hover {
  border-color: rgba(167, 139, 250, 0.9);
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.2);
  transform: translateY(-5px);
}

.thanks-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #a78bfa;
  border-radius: 2px;
  z-index: 10;
}

.thanks-handle-top-left {
  top: -6px;
  left: -6px;
}

.thanks-handle-top-right {
  top: -6px;
  right: -6px;
}

.thanks-handle-bottom-left {
  bottom: -6px;
  left: -6px;
}

.thanks-handle-bottom-right {
  bottom: -6px;
  right: -6px;
}

.thanks-handle-top-center {
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.thanks-handle-bottom-center {
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.thanks-handle-left-center {
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
}

.thanks-handle-right-center {
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
}

.thanks-text {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  font-family: "Orbitron", sans-serif;
}

.thanks-text-part1 {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 0.5rem;
}

.thanks-text-part2 {
  color: #ffffff;
  display: block;
  background: var(--gradient-1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.thanks-footer-text {
  margin-top: 2rem;
  font-size: 1rem;
  color: #a78bfa;
  font-weight: 500;
  font-style: italic;
}

@media (max-width: 768px) {
  .thanks-box-wrapper {
    margin-top: 3rem;
  }

  .thanks-box {
    padding: 2.5rem 2rem;
    margin: 0 auto;
  }

  .thanks-text {
    font-size: 2.5rem;
  }
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  color: var(--text-secondary);
  margin: 1rem 0 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.footer-social {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.footer-social:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.footer-title {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0.8;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
  opacity: 1;
  transform: translateX(4px);
}

.footer-contact {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 0.9rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.contact-text {
  display: grid;
  gap: 2px;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-value {
  color: var(--text-primary);
  text-decoration: none;
}

.contact-value:hover {
  color: var(--accent-color);
}

/* Remove underlines for all footer links */
.footer a {
  text-decoration: none;
}
.footer a:hover {
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
  color: var(--text-secondary);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--accent-color);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes fadeInScroll {
  to {
    opacity: 1;
  }
}

@keyframes scrollBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  font-family: "Clash Display", "Helvetica Neue", Arial, sans-serif;
}

.highlight-box {
  background: #3b82f6;
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-family: sans-serif;
  display: inline-block;
  margin-left: 0.5rem;
}

.highlight-box.purple {
  background: #8b5cf6;
}

.highlight-box.orange {
  background: #f97316;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--gradient-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 0 50px rgba(240, 147, 251, 0.3);
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: conic-gradient(
    from 0deg,
    #f093fb,
    #f5576c,
    #4facfe,
    #00f2fe,
    #f093fb
  );
  border-radius: 50%;
  z-index: -1;
  animation: borderRotate 4s linear infinite;
}

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

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.values {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.value-tag {
  background: var(--card-bg);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  backdrop-filter: var(--backdrop-blur);
  transition: all 0.3s ease;
}

.value-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

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

.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  backdrop-filter: var(--backdrop-blur);
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(0, 242, 254, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.project-image {
  height: 200px;
  background: var(--gradient-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.project-image::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;
}

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

.project-content {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.tech-stack {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tech-tag {
  background: var(--accent-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

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

.project-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.3rem 0.8rem;
  border-radius: 10px;
}

.project-link:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(5px);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
  justify-items: stretch;
}

.skill-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(20, 20, 30, 0.95);
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 100%;
  height: 100%;
}

/* Glowing borders based on data attribute */
.skill-item[data-border-color="blue"] {
  border-color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-item[data-border-color="orange"] {
  border-color: #f97316;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-item[data-border-color="purple"] {
  border-color: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-item[data-border-color="green"] {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-item[data-border-color="red"] {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-item[data-border-color="cyan"] {
  border-color: #06b6d4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-item[data-border-color="yellow"] {
  border-color: #eab308;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-item[data-border-color="white"] {
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-item:hover {
  transform: translateY(-8px) scale(1.05);
}

.skill-item[data-border-color="blue"]:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.skill-item[data-border-color="orange"]:hover {
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.skill-item[data-border-color="purple"]:hover {
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.skill-item[data-border-color="green"]:hover {
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.skill-item[data-border-color="red"]:hover {
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.skill-item[data-border-color="cyan"]:hover {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.skill-item[data-border-color="yellow"]:hover {
  box-shadow: 0 0 30px rgba(234, 179, 8, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.skill-item[data-border-color="white"]:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.skill-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Icon glow effects matching brand colors */
.skill-item[data-icon-color="html5"] .skill-icon {
  filter: drop-shadow(0 0 15px rgba(227, 76, 38, 0.6));
}

.skill-item[data-icon-color="css3"] .skill-icon {
  filter: drop-shadow(0 0 15px rgba(38, 77, 228, 0.6));
}

.skill-item[data-icon-color="js"] .skill-icon {
  filter: drop-shadow(0 0 15px rgba(247, 223, 30, 0.6));
}

.skill-item[data-icon-color="react"] .skill-icon {
  filter: drop-shadow(0 0 15px rgba(97, 218, 251, 0.6));
}

.skill-item[data-icon-color="tailwind"] .skill-icon {
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.6));
}

.skill-item[data-icon-color="python"] .skill-icon {
  filter: drop-shadow(0 0 15px rgba(55, 118, 171, 0.6));
}

.skill-item[data-icon-color="git"] .skill-icon {
  filter: drop-shadow(0 0 15px rgba(240, 80, 50, 0.6));
}

/* Brand colors for icons - using actual brand colors */
.skill-item[data-icon-color="html5"] .skill-icon {
  color: #e34c26; /* HTML5 orange-red */
}

.skill-item[data-icon-color="css3"] .skill-icon {
  color: #264de4; /* CSS3 blue */
}

.skill-item[data-icon-color="js"] .skill-icon {
  color: #f7df1e; /* JavaScript yellow */
}

.skill-item[data-icon-color="react"] .skill-icon {
  color: #61dafb; /* React cyan */
}

.skill-item[data-icon-color="tailwind"] .skill-icon {
  color: #06b6d4; /* Tailwind cyan */
}

.skill-item[data-icon-color="python"] .skill-icon {
  color: #3776ab; /* Python blue */
}

.skill-item[data-icon-color="git"] .skill-icon {
  color: #f05032; /* Git orange-red */
}

.skill-name {
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 2;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
  width: 100%;
  line-height: 1.3;
  font-size: 0.95rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
}

/* Education Section */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.education-card {
  background: rgba(20, 20, 30, 0.9);
  border: 2px solid rgba(249, 115, 22, 0.6);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.3), 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.education-card:hover {
  border-color: rgba(249, 115, 22, 0.9);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.5), 0 8px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
}

.education-logo-area {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.2),
    rgba(249, 115, 22, 0.2)
  );
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.education-logo-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      90deg,
      transparent,
      rgba(168, 85, 247, 0.1),
      transparent
    ),
    linear-gradient(0deg, transparent, rgba(249, 115, 22, 0.1), transparent);
  background-size: 20px 20px;
  opacity: 0.5;
}

.education-logo {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #f97316);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 2;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 2px;
}

.education-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.education-degree {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.education-institution {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-weight: 500;
}

.education-status {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.education-status.in-progress {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.education-status.completed {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.education-duration {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.education-progress {
  margin-bottom: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #f97316);
  border-radius: 10px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.education-button {
  margin-top: auto;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #a855f7, #f97316);
  border: none;
  border-radius: 25px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.education-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(249, 115, 22, 0.4);
  background: linear-gradient(135deg, #9333ea, #ea580c);
}

@media (max-width: 768px) {
  .education-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .education-logo {
    font-size: 2rem;
  }

  .education-degree {
    font-size: 1rem;
  }

  .education-institution {
    font-size: 0.85rem;
  }
}

/* Experience Section */
.experience-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.experience-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: var(--backdrop-blur);
  transition: background-color 0.3s ease, border-color 0.3s ease,
    transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(0, 242, 254, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.15);
}

.experience-logo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.company-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.company-logo:hover {
  transform: scale(1.05);
}

.experience-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.company-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.role {
  background: var(--accent-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.experience-description {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.experience-duration {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
}

.employment-type {
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.experience-location {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.experience-image {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.experience-images {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.experience-thumbnail {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.skills-achievements {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.skills-achievements i {
  color: var(--accent-color);
  font-size: 0.8rem;
}

.certificate-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

.certificate-text {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Resume Section */
.resume-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.resume-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--gradient-2);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
  position: relative;
  overflow: hidden;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(245, 87, 108, 0.4);
}

.download-button::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;
}

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

/* Contact Section */
.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-highlight {
  color: var(--accent-color);
}

.contact-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.cta-box {
  background: var(--gradient-1);
  padding: 2rem;
  border-radius: 15px;
  color: #fff;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #fff;
}

.cta-description {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.cta-email-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-email-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.contact-info-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.info-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-color);
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.info-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.connect-section {
  margin-top: 0.5rem;
}

.connect-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

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

.social-icon-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  color: var(--accent-color);
  font-size: 1.3rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon-link:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.contact-right {
  width: 100%;
}

.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--secondary-bg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.submit-button {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--gradient-1);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
  background: var(--gradient-1);
  filter: brightness(1.1);
}

.submit-button:active {
  transform: translateY(0);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  background: rgba(129, 140, 248, 0.2);
  border-color: rgba(129, 140, 248, 0.6);
  transform: scale(1.05);
}

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

/* Mobile Menu Active State */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  .nav-links li {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-links a:active {
    background: rgba(129, 140, 248, 0.3);
    border-color: rgba(129, 140, 248, 0.7);
    transform: scale(0.98);
  }

  .nav-links a:hover {
    background: rgba(129, 140, 248, 0.25);
    border-color: rgba(129, 140, 248, 0.6);
    transform: translateX(5px);
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 10000;
    position: relative;
    min-width: 44px;
    min-height: 44px;
  }

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

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

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

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

/* ==================== RESPONSIVE DESIGN ==================== */

/* Base responsive improvements */
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Touch-friendly interactive elements */
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Improved container responsiveness */
.container {
  width: 100%;
  margin: 0 auto;
  transition: padding 0.3s ease;
}

/* Mobile-first optimizations */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  html,
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Better mobile typography */
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Optimize images for mobile */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Better mobile navigation */
  nav {
    padding: 0.75rem 0;
  }

  .nav-shell {
    padding: 0.65rem 1rem;
    gap: 0.75rem;
    max-width: calc(100% - 2rem);
    margin: 0 auto;
  }

  .logo {
    font-size: 1.2rem;
    white-space: nowrap;
  }

  /* Mobile hero optimizations */
  .hero {
    padding-top: 5.5rem;
    padding-bottom: 2rem;
    min-height: calc(100vh - 5.5rem);
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.15;
    word-spacing: -0.05em;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0;
  }

  /* Mobile buttons */
  .cta-button,
  .hero-secondary-btn {
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .hero-actions {
    width: 100%;
    gap: 0.85rem;
  }

  /* Mobile sections */
  section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.2rem);
    padding: 0 1rem;
    line-height: 1.2;
  }

  /* Mobile cards */
  .project-card,
  .experience-card,
  .education-card {
    border-radius: 16px;
    margin-bottom: 1.5rem;
  }

  .project-image {
    height: 180px;
  }

  .project-content {
    padding: 1.25rem;
  }

  /* Mobile forms */
  .contact-form {
    padding: 1.5rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 10px;
  }

  /* Mobile skills grid */
  .skills-grid {
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .skill-item {
    padding: 1.5rem 1rem;
    min-height: 130px;
  }

  /* Mobile about section */
  .about-content {
    gap: 2rem;
  }

  .about-image {
    width: 220px;
    height: 220px;
    margin: 0 auto;
  }

  /* Mobile contact */
  .contact-content {
    gap: 2rem;
  }

  .contact-info-box {
    padding: 1.25rem;
  }

  /* Mobile footer */
  .footer-grid {
    gap: 2rem;
  }

  .footer-socials {
    gap: 0.75rem;
  }

  /* Better mobile scrolling */
  .scroll-indicator {
    bottom: 1.5rem;
  }
}

/* Ultra-small devices (320px - 374px) */
@media (max-width: 374px) {
  .container {
    padding: 0 12px;
  }

  nav {
    padding: 0.75rem 0;
  }

  .nav-shell {
    padding: 0.5rem 0.8rem;
    gap: 0.75rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

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

  .hero-tagline {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .cta-button,
  .hero-secondary-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
    justify-content: center;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .about-image {
    width: 200px;
    height: 200px;
    font-size: 3rem;
  }

  .about-text h3 {
    font-size: 1.2rem;
  }

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

  .skill-item {
    padding: 1.25rem 0.5rem;
    min-height: 120px;
  }

  .skill-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .skill-name {
    font-size: 0.75rem;
    line-height: 1.2;
  }

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

  .project-image {
    height: 150px;
    font-size: 2rem;
  }

  .experience-card {
    padding: 1.5rem;
    gap: 1rem;
  }

  .experience-logo {
    width: 50px;
    height: 50px;
  }

  .company-name {
    font-size: 1.1rem;
  }

  .role {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }

  .contact-title {
    font-size: 1.6rem;
  }

  .contact-info-box {
    padding: 1rem;
  }

  .info-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

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

  .footer-title {
    font-size: 0.9rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Small phones (375px - 479px) */
@media (min-width: 375px) and (max-width: 479px) {
  .container {
    padding: 0 16px;
  }

  .nav-shell {
    padding: 0.6rem 1rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 2.5rem;
  }

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

  .hero-tagline {
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .cta-button,
  .hero-secondary-btn {
    width: 100%;
    padding: 0.9rem 1.8rem;
    font-size: 0.9rem;
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .about-image {
    width: 220px;
    height: 220px;
    font-size: 3.2rem;
  }

  .about-text h3 {
    font-size: 1.25rem;
  }

  .values {
    flex-direction: column;
    align-items: flex-start;
  }

  .value-tag {
    width: 100%;
    text-align: center;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.2rem;
  }

  .skill-icon {
    font-size: 2.2rem;
  }

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

  .project-card {
    border-radius: 15px;
  }

  .project-image {
    height: 160px;
    font-size: 2.2rem;
  }

  .project-title {
    font-size: 1.15rem;
  }

  .experience-card {
    padding: 1.5rem;
  }

  .experience-logo {
    width: 55px;
    height: 55px;
  }

  .company-name {
    font-size: 1.15rem;
  }

  .contact-title {
    font-size: 1.8rem;
  }

  .contact-subtitle {
    font-size: 0.85rem;
  }

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

  .contact-info-box {
    padding: 1.2rem;
  }

  .cta-box {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-socials {
    gap: 0.6rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
}

/* Medium phones (480px - 599px) */
@media (min-width: 480px) and (max-width: 599px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 80px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }

  section {
    padding: 4rem 0;
  }

  .about-image {
    width: 250px;
    height: 250px;
  }

  .about-text h3 {
    font-size: 1.3rem;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

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

  .project-image {
    height: 180px;
  }

  .experience-card {
    padding: 1.8rem;
  }

  .contact-title {
    font-size: 2rem;
  }

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

  .mobile-menu-toggle {
    display: block;
  }

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

/* Tablets (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 80px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.3rem;
  }

  section {
    padding: 4.5rem 0;
  }

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

  .about-image {
    width: 280px;
    height: 280px;
    margin: 0 auto;
  }

  .skills-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }

  .skill-item {
    padding: 1.2rem;
  }

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

  .project-card {
    max-width: 100%;
  }

  .experience-card {
    padding: 2rem;
    flex-direction: column;
    text-align: center;
  }

  .experience-header {
    flex-direction: column;
    align-items: center;
  }

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

  .contact-title {
    font-size: 2.2rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Standard tablets & small laptops (768px - 1023px) */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-shell {
    padding: 0.65rem 1.1rem;
    gap: 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }

  .hero-inner {
    width: 100%;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .hero-tagline {
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .cta-button,
  .hero-secondary-btn {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
  }

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

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

  .contact-title {
    font-size: clamp(1.75rem, 4vw, 2rem);
  }

  .contact-subtitle {
    font-size: 0.85rem;
  }

  .cta-box {
    padding: 1.75rem;
    border-radius: 16px;
  }

  .cta-title {
    font-size: 1.25rem;
  }

  .contact-info-box {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .contact-form {
    padding: 1.75rem;
    border-radius: 16px;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.95rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.25rem;
  }

  .skill-item {
    padding: 1.5rem 1rem;
    min-height: 140px;
  }

  .skill-icon {
    font-size: 2.5rem;
  }

  .skill-name {
    font-size: 0.85rem;
  }

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

  .project-card {
    border-radius: 20px;
  }

  .project-image {
    height: 200px;
  }

  .experience-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .experience-header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .experience-logo {
    align-self: center;
  }

  .experience-images {
    justify-content: center;
  }

  .experience-thumbnail {
    width: 100px;
    height: 70px;
  }

  .team-image {
    max-width: 250px;
  }

  .scroll-indicator {
    bottom: 1rem;
  }

  .scroll-text {
    font-size: 0.8rem;
  }

  .scroll-arrow {
    font-size: 1rem;
  }
}

/* Medium screens & laptops (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .container {
    max-width: 960px;
    padding: 0 30px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
  }

  .about-image {
    width: 320px;
    height: 320px;
  }

  .skills-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
  }

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

  .experience-card {
    padding: 2.5rem;
  }

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

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

  nav {
    padding: 1.2rem 0;
  }

  .nav-links {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }
}

/* Large screens (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .container {
    max-width: 1200px;
    padding: 0 40px;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.8rem;
  }

  section {
    padding: 6rem 0;
  }

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

  .about-image {
    width: 350px;
    height: 350px;
  }

  .skills-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 2.5rem;
  }

  .skill-item {
    padding: 2rem;
  }

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

  .project-card {
    transition: all 0.3s ease;
  }

  .experience-card {
    padding: 3rem;
    gap: 2rem;
  }

  .experience-logo {
    width: 70px;
    height: 70px;
  }

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

  .footer-grid {
    grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
    gap: 4rem;
  }
}

/* Ultra-wide screens (1920px+) */
@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
    padding: 0 60px;
  }

  .hero {
    height: 100vh;
  }

  .hero h1 {
    font-size: 5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 3rem;
  }

  section {
    padding: 7rem 0;
  }

  .about-content {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }

  .about-image {
    width: 400px;
    height: 400px;
  }

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

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

  .experience-card {
    padding: 3.5rem;
  }

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 5rem;
  }

  .project-card {
    max-height: 600px;
  }
}

/* Landscape orientation fixes for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    height: auto;
    padding: 5rem 0 2rem;
  }

  .hero-content {
    padding: 1rem 0;
  }

  .hero-tagline {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    margin-bottom: 0.5rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .cta-button,
  .hero-secondary-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }

  .scroll-indicator {
    display: none;
  }

  nav {
    padding: 0.5rem 0;
  }

  .nav-shell {
    padding: 0.5rem 1rem;
  }

  section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }

  .about-image {
    width: 180px;
    height: 180px;
  }

  .skills-grid {
    gap: 0.75rem;
  }

  .skill-item {
    padding: 1rem 0.5rem;
    min-height: 100px;
  }
}

/* Better tablet support (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

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

  .project-card {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Improved touch targets for all mobile devices */
@media (max-width: 768px) {
  /* Minimum touch target sizes (Apple HIG & Material Design) */
  button,
  a,
  input[type="submit"],
  .cta-button,
  .hero-secondary-btn,
  .project-link,
  .download-button,
  .submit-button {
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
  }

  .nav-links a {
    min-height: 52px;
    display: flex;
    align-items: center;
  }

  .theme-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 0.6rem;
  }

  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
  }

  /* Better mobile spacing */
  .project-links {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .project-link {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    text-align: center;
    justify-content: center;
  }

  /* Mobile education cards */
  .education-card {
    padding: 1.5rem;
  }

  .education-logo {
    font-size: 2rem;
  }

  .education-degree {
    font-size: 1rem;
  }

  /* Mobile experience cards */
  .experience-card {
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .experience-logo {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
  }

  .company-name {
    font-size: 1.15rem;
  }

  .role {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
  }

  /* Mobile resume section */
  .resume-content {
    padding: 0 1rem;
  }

  .download-button {
    width: 100%;
    max-width: 300px;
    padding: 1rem 1.5rem;
  }

  /* Mobile contact form improvements */
  .cta-email-button {
    width: 100%;
    padding: 1rem 1.5rem;
    justify-content: center;
  }

  .social-icon-link {
    min-width: 48px;
    min-height: 48px;
  }

  /* Better mobile text readability */
  .about-text p,
  .project-description,
  .experience-description {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* Mobile value tags */
  .values {
    gap: 0.75rem;
    justify-content: center;
  }

  .value-tag {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
  }

  /* Mobile tech stack */
  .tech-stack {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .tech-tag {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }

  /* Mobile scroll indicator */
  .scroll-indicator {
    bottom: 1.5rem;
  }

  .scroll-text {
    font-size: 0.75rem;
  }

  .scroll-arrow {
    font-size: 1.1rem;
  }

  /* Prevent text selection on buttons for better UX */
  button,
  .cta-button,
  .hero-secondary-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
  }

  /* Better mobile focus states */
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid rgba(129, 140, 248, 0.8);
    outline-offset: 2px;
  }
}

/* Print styles */
@media print {
  body::before,
  .bg-shapes,
  .light-streaks,
  .tech-circuits,
  .particles,
  .grid-overlay,
  .scroll-indicator,
  nav,
  .mobile-menu-toggle {
    display: none;
  }

  section {
    page-break-inside: avoid;
    background: none;
    border: none;
  }

  .project-card,
  .experience-card,
  .skill-item {
    page-break-inside: avoid;
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
section {
  background: rgba(255, 255, 255, 0.05);
  /* backdrop-filter: blur(5px); */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.cta-button {
  background: none;
  color: #00f0ff;
  border: 2px solid #00f0ff;
  padding: 10px 20px;
  border-radius: 30px;
  transition: 0.3s ease;
}
.cta-button:hover {
  background: #00f0ff;
  color: #0a0a0a;
  box-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff;
}

/* ==================== ADDITIONAL MOBILE OPTIMIZATIONS ==================== */

/* Extra small mobile devices (up to 360px) */
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

  .nav-shell {
    padding: 0.5rem 0.7rem;
  }

  .logo {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .skill-item {
    padding: 1rem 0.4rem;
    min-height: 110px;
  }

  .skill-icon {
    font-size: 1.75rem;
  }

  .skill-name {
    font-size: 0.7rem;
  }
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
  /* Reduce animations on mobile for better performance */
  *,
  *::before,
  *::after {
    animation-duration: 0.3s !important;
    transition-duration: 0.3s !important;
  }

  /* Optimize background effects on mobile */
  .bg-shapes,
  .light-streaks,
  .tech-circuits {
    opacity: 0.5;
  }

  /* Better mobile viewport handling */
  .hero {
    will-change: transform;
  }

  /* Smooth mobile scrolling */
  section {
    scroll-margin-top: 5rem;
  }

  /* Mobile-friendly focus states */
  a:focus,
  button:focus {
    outline: 2px solid rgba(129, 140, 248, 0.6);
    outline-offset: 3px;
    border-radius: 4px;
  }

  /* Better mobile form inputs */
  input[type="text"],
  input[type="email"],
  textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 10px;
  }

  /* Prevent iOS zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Better mobile button press feedback */
  button:active,
  .cta-button:active,
  .hero-secondary-btn:active {
    transform: scale(0.97);
  }

  /* Mobile card hover states (touch feedback) */
  .project-card:active {
    transform: scale(0.98);
  }

  /* Better mobile link spacing */
  .project-links a,
  .footer-links a {
    padding: 0.75rem 0;
    display: inline-block;
  }
}
