/* ===================================================
   TOMMASO BOCALON - Portfolio
   style.css
   =================================================== */

/* ===== Reset & Variables ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #050508;
  --bg-gray: #0a0a10;
  --bg-card: #0e0e16;
  --text-white: #f0f0f5;
  --text-gray: #8a8a9a;
  --text-light: #b8b8c8;
  --accent-cyan: #00d9ff;
  --accent-cyan-dark: #00a8cc;
  --accent-purple: #7b61ff;
  --accent-pink: #ff2d7b;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-hover: rgba(0, 217, 255, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-glow: 0 0 80px rgba(0, 217, 255, 0.06);
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "JetBrains Mono", monospace;
  background: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  /* cursor: none; */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 217, 255, 0.25);
  color: var(--text-white);
}

/* ===== Custom Cursor ===== */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
}
.cursor.hover {
  transform: scale(2);
  background: rgba(0, 217, 255, 0.1);
  border-color: var(--accent-pink);
}

/* ===== Particle Canvas ===== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Noise overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ===== Splash Screen ===== */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition:
    opacity 1s cubic-bezier(0.77, 0, 0.175, 1),
    visibility 1s cubic-bezier(0.77, 0, 0.175, 1);
}
#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#splash h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(50px, 12vw, 160px);
  font-weight: 900;
  letter-spacing: 15px;
  background: linear-gradient(
    135deg,
    var(--text-white) 0%,
    var(--accent-cyan) 50%,
    var(--accent-purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInScale 1.2s ease-out;
}
#splash p {
  font-family: "Space Mono", monospace;
  font-size: clamp(11px, 1.8vw, 16px);
  letter-spacing: 8px;
  color: var(--text-gray);
  margin-top: 20px;
  animation: fadeIn 1.5s ease-out 0.5s both;
}
.splash-line {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  margin-top: 30px;
  animation: expandWidth 1s ease-out 0.8s both;
  border-radius: 2px;
}
.splash-progress {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin-top: 40px;
  overflow: hidden;
}
.splash-progress-bar {
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  animation: loadProgress 2.2s ease-in-out forwards;
}
@keyframes loadProgress {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 120px;
  }
}

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 22px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(5, 5, 8, 0.5);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid transparent;
  transition:
    padding 0.4s ease,
    background 0.4s ease,
    border-color 0.4s ease;
}
nav.scrolled {
  padding: 14px 60px;
  background: rgba(5, 5, 8, 0.92);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.logo {
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--text-white), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.3s ease;
}
.logo:hover {
  opacity: 0.8;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-links a:hover {
  color: var(--accent-cyan);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--accent-cyan);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}
.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--text-white);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 35px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mobile-menu.active {
  display: flex;
  opacity: 1;
}
.mobile-menu a {
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  color: var(--text-gray);
  text-decoration: none;
  transition:
    color 0.3s ease,
    transform 0.3s ease,
    letter-spacing 0.3s ease;
  letter-spacing: 3px;
}
.mobile-menu a:hover {
  color: var(--accent-cyan);
  transform: translateX(10px);
  letter-spacing: 6px;
}

/* ===== Hero Section ===== */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 60px 60px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}
#home::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(0, 217, 255, 0.06) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(123, 97, 255, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 60% 80%,
      rgba(255, 45, 123, 0.03) 0%,
      transparent 40%
    );
  pointer-events: none;
  animation: auraPulse 8s ease-in-out infinite alternate;
}
@keyframes auraPulse {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-2%, -2%) rotate(3deg);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
  width: 100%;
}
.hero-content {
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1s ease-out 2.8s forwards;
}
@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-greeting {
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  text-transform: uppercase;
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 30px;
  background: rgba(0, 217, 255, 0.04);
}
.hero-name {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 20px;
  line-height: 1.1;
  background: linear-gradient(
    135deg,
    var(--text-white) 0%,
    var(--accent-cyan) 60%,
    var(--accent-purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title {
  font-size: clamp(17px, 2.2vw, 28px);
  margin-bottom: 28px;
  min-height: 45px;
  color: var(--text-gray);
  font-weight: 400;
}
.hero-title span {
  color: var(--accent-cyan);
  border-right: 3px solid var(--accent-cyan);
  padding-right: 5px;
  animation: blink 0.7s infinite;
}
@keyframes blink {
  0%,
  50% {
    border-color: var(--accent-cyan);
  }
  51%,
  100% {
    border-color: transparent;
  }
}
.hero-description {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-gray);
  margin-bottom: 40px;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  padding: 16px 36px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.5s ease;
}
.btn:hover::before {
  left: 100%;
}
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-cyan-dark)
  );
  color: var(--bg-dark);
  border-radius: var(--radius-sm);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 15px 40px rgba(0, 217, 255, 0.3),
    0 0 60px rgba(0, 217, 255, 0.1);
}
.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 217, 255, 0.08);
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1s ease-out 3s forwards;
}
.hero-image-wrapper img {
  width: 100%;
  max-width: 520px;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  margin: 0 auto;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 217, 255, 0.06);
}
.hero-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.08),
    rgba(123, 97, 255, 0.08)
  );
  pointer-events: none;
}
.floating-badge {
  position: absolute;
  padding: 12px 20px;
  background: rgba(10, 10, 18, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(15px);
  font-size: 13px;
  color: var(--text-white);
  animation: floatBadge 3s ease-in-out infinite;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.floating-badge.badge-1 {
  top: 20px;
  right: -20px;
  animation-delay: 0s;
}
.floating-badge.badge-2 {
  bottom: 40px;
  left: -30px;
  animation-delay: 1s;
}
.floating-badge.badge-3 {
  top: 50%;
  right: -40px;
  animation-delay: 2s;
}
.floating-badge .badge-icon {
  font-size: 20px;
  margin-right: 8px;
}
@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s var(--transition-smooth),
    transform 0.8s var(--transition-smooth);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ===== Sections ===== */
section {
  min-height: 100vh;
  padding: 120px 60px 80px;
  position: relative;
  z-index: 2;
}
.section-container {
  max-width: 1400px;
  margin: 0 auto;
}
.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 15px;
  text-align: center;
}
.section-title span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 70px;
  letter-spacing: 2px;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  margin: 20px auto 40px;
  border-radius: 3px;
}
.glow-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-cyan),
    var(--accent-purple),
    transparent
  );
  opacity: 0.15;
  position: relative;
  z-index: 2;
}

#services {
  min-height: auto;
}

/* Alternating section backgrounds */
#about,
#skills,
#contact {
  background: var(--bg-gray);
}
#home,
#projects,
#services,
#experience {
  background: var(--bg-dark);
}

/* ===== About Section ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-text p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-gray);
  margin-bottom: 18px;
}
.about-image-container {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.about-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.about-image-container:hover img {
  transform: scale(1.03);
}
.about-image-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.1),
    rgba(123, 97, 255, 0.1)
  );
  pointer-events: none;
}
.about-image-container::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--accent-cyan),
    transparent,
    var(--accent-purple),
    transparent
  );
  animation: rotateBorder 8s linear infinite;
  opacity: 0.08;
  z-index: 0;
}
@keyframes rotateBorder {
  to {
    transform: rotate(360deg);
  }
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.stat {
  text-align: center;
  padding: 22px 16px;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}
.stat:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}
.stat-number {
  font-family: "Orbitron", sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: var(--accent-cyan);
  display: block;
}
.stat-label {
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ===== Tech Marquee ===== */
.marquee-section {
  padding: 45px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-gray);
  white-space: nowrap;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}
.marquee-item:hover {
  color: var(--accent-cyan);
}
.marquee-item span {
  font-size: 26px;
}
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.marquee-section::before,
.marquee-section::after {
  content: "";
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 2;
}
.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-dark), transparent);
}
.marquee-section::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-dark), transparent);
}

/* ===== Services Section ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--glass-bg);
  padding: 45px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.3s ease,
    background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover {
  transform: translateY(-8px);
  background: var(--glass-bg-hover);
  box-shadow: 0 25px 60px rgba(0, 217, 255, 0.06);
  border-color: var(--glass-border-hover);
}
.service-icon {
  font-size: 48px;
  margin-bottom: 22px;
  display: block;
  filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.2));
}
.service-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--text-white);
  letter-spacing: 0.5px;
}
.service-card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-gray);
}

/* ===== Projects Section ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.project-card {
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.4s var(--transition-smooth),
    box-shadow 0.4s ease;
  border: 1px solid var(--glass-border);
  position: relative;
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-cyan),
    var(--accent-purple),
    var(--accent-pink)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}
.project-card:hover::before {
  opacity: 1;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 25px 60px rgba(0, 217, 255, 0.08),
    0 0 40px rgba(123, 97, 255, 0.04);
}

.project-image {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.project-card:hover .project-image img {
  transform: scale(1.06);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-overlay-btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.project-overlay-btn.primary {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}
.project-overlay-btn.secondary {
  border: 1px solid var(--text-white);
  color: var(--text-white);
}
.project-overlay-btn:hover {
  transform: translateY(-2px);
}

.project-info {
  padding: 26px;
}
.project-info h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-white);
}
.project-info p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 18px;
}
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  padding: 5px 14px;
  background: rgba(0, 217, 255, 0.05);
  color: var(--accent-cyan);
  border-radius: 20px;
  font-size: 11px;
  border: 1px solid rgba(0, 217, 255, 0.12);
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
}
.tag:hover {
  background: rgba(0, 217, 255, 0.1);
}

/* ===== Experience Timeline ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--accent-cyan),
    var(--accent-purple),
    transparent
  );
}
.timeline-item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 40px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -33px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
  z-index: 1;
  transition: box-shadow 0.3s ease;
}
.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.6);
}
.timeline-date {
  font-size: 12px;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.timeline-content {
  background: var(--glass-bg);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}
.timeline-content:hover {
  border-color: var(--glass-border-hover);
  transform: translateX(5px);
}
.timeline-content h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-white);
}
.timeline-content h4 {
  font-size: 13px;
  color: var(--accent-purple);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.timeline-content p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-gray);
}

/* ===== Experience Card ===== */
.experience-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
.experience-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.experience-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
}
.experience-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.experience-date {
  font-size: 13px;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.experience-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--accent-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.experience-title {
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
  color: var(--text-white);
  margin-bottom: 8px;
}
.experience-company {
  font-size: 13px;
  color: var(--accent-purple);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.experience-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-gray);
}

/* ===== Skills Section ===== */
/* ===== Skills Icons Grid ===== */

@keyframes skillPop {
  from { opacity: 0; transform: scale(0.3); }
  20%  { opacity: 1; }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmerBg {
  0%, 100% { background-position: 220% 0, 0 0; }
  50%       { background-position: -80% 0, 0 0; }
}

@keyframes iconGlow {
  0%, 100% { filter: brightness(1); }
  50%       { filter: brightness(1.5) drop-shadow(0 0 10px currentColor); }
}


@keyframes pulseRing {
  0%   { box-shadow: 0 16px 40px rgba(0,217,255,0.18), 0 0 0 0   rgba(0,217,255,0.30); }
  70%  { box-shadow: 0 16px 40px rgba(0,217,255,0.18), 0 0 0 12px rgba(0,217,255,0);   }
  100% { box-shadow: 0 16px 40px rgba(0,217,255,0.18), 0 0 0 0   rgba(0,217,255,0);   }
}

.skills-icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.skill-icon-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 16px 24px;
  background:
    linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.05) 50%, transparent 62%),
    rgba(255, 255, 255, 0.03);
  background-size: 300% 100%, 100% 100%;
  background-position: 220% 0, 0 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  cursor: default;
  overflow: hidden;
  opacity: 0;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

/* Pop-in + shimmer sweep, staggered per card */
.skills-icons-grid.visible .skill-icon-card {
  opacity: 1;
  animation:
    skillPop  0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both        calc(var(--i) * 75ms),
    shimmerBg 7s   ease-in-out                         infinite    calc(var(--i) * 0.5s + 0.3s);
}

/* Hover state — no animation override to avoid skillPop restarting on mouse leave */
.skills-icons-grid .skill-icon-card:hover {
  opacity: 1;
  border-color: rgba(0, 217, 255, 0.45);
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 217, 255, 0.18), 0 0 20px rgba(0, 217, 255, 0.15);
}

/* Gradient overlay on hover */
.skill-icon-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,217,255,0.07), rgba(123,97,255,0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: inherit;
  pointer-events: none;
}
.skill-icon-card:hover::before { opacity: 1; }

/* Bottom gradient bar on hover */
.skill-icon-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.skill-icon-card:hover::after { transform: scaleX(1); }

/* Icon: idle glow pulse (staggered, stops on hover) */
.skills-icons-grid.visible .skill-icon-card:not(:hover) i {
  animation: iconGlow 3.5s ease-in-out calc(var(--i) * 0.3s + 1s) infinite;
}

.skill-icon-card i {
  font-size: 50px;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Icon: scale up on hover */
.skill-icon-card:hover i {
  transform: scale(1.4);
}

.skill-icon-card img.skill-custom-icon {
  width: 50px;
  height: 50px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.skill-icon-card:hover img.skill-custom-icon {
  transform: scale(1.4);
}
.skills-icons-grid.visible .skill-icon-card:not(:hover) img.skill-custom-icon {
  animation: iconGlow 3.5s ease-in-out calc(var(--i) * 0.3s + 1s) infinite;
}

.skill-icon-card span:not(.skill-api-icon) {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-gray);
  letter-spacing: 0.5px;
  text-align: center;
  transition: color 0.3s ease;
}
.skill-icon-card:hover span:not(.skill-api-icon) { color: var(--text-white); }

.skill-api-icon {
  font-family: "JetBrains Mono", monospace;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.skill-icon-card:hover .skill-api-icon {
  transform: scale(1.4);
}

.devicon-github-original { color: var(--text-white); }

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-group {
  position: relative;
}
.form-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-gray);
  margin-bottom: 8px;
  display: block;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.08);
  background: rgba(0, 217, 255, 0.02);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(138, 138, 154, 0.4);
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
}
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease;
  text-decoration: none;
  color: var(--text-white);
}
.contact-info-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateX(5px);
  background: var(--glass-bg-hover);
}
.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.08),
    rgba(123, 97, 255, 0.08)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.contact-info-card .info-text h4 {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-white);
  letter-spacing: 0.5px;
}
.contact-info-card .info-text p {
  font-size: 12px;
  color: var(--text-gray);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.social-link {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-link:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 217, 255, 0.25);
}
.social-link svg {
  width: 18px;
  height: 18px;
}

/* ===== Footer ===== */
footer {
  padding: 60px 60px 30px;
  text-align: center;
  background: var(--bg-dark);
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
}
.footer-content {
  max-width: 600px;
  margin: 0 auto;
}
.footer-logo {
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--text-white), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
footer p {
  color: var(--text-gray);
  font-size: 12px;
  letter-spacing: 1px;
}
footer .footer-sub {
  margin-top: 18px;
  font-size: 11px;
  opacity: 0.4;
}
.footer-cv-btn {
  display: inline-block;
  margin-top: 28px;
}

/* ===== Submit Button ===== */
.btn-submit {
  width: 100%;
  text-align: center;
  border-radius: 10px;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: rgba(10, 10, 18, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 18px;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  text-decoration: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

/* =============================================================
   RESPONSIVE DESIGN
   Desktop (>1200) → Tablet landscape (1024-1200) →
   Tablet portrait (768-1024) → Mobile (480-768) → Small (≤480)
   ============================================================= */

/* --- Large Desktop (>1440px) --- */
@media (min-width: 1441px) {
  .section-container {
    max-width: 1500px;
  }
  .hero-container {
    max-width: 1500px;
    gap: 100px;
  }
  section {
    padding: 140px 80px 100px;
  }
  nav {
    padding: 24px 80px;
  }
  nav.scrolled {
    padding: 16px 80px;
  }
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Desktop standard (1201-1440px) --- default styles apply */

/* --- Tablet Landscape / Small Desktop (1024-1200px) --- */
@media (max-width: 1200px) {
  nav {
    padding: 20px 40px;
  }
  nav.scrolled {
    padding: 14px 40px;
  }
  .nav-links {
    gap: 24px;
  }
  section {
    padding: 100px 40px 70px;
  }
  footer {
    padding: 50px 40px 25px;
  }

  .hero-container {
    gap: 50px;
  }
  .hero-image-wrapper img {
    max-width: 460px;
    height: 420px;
  }

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

  .contact-grid {
    gap: 40px;
  }
}

/* --- Tablet Portrait (768-1024px) --- */
@media (max-width: 1024px) {
  nav {
    padding: 18px 30px;
  }
  nav.scrolled {
    padding: 12px 30px;
  }
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 10px;
  }
  section {
    padding: 90px 30px 60px;
  }

  /* Hero: stack vertically */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-image-wrapper {
    order: -1;
  }
  .hero-image-wrapper img {
    max-width: 400px;
    height: 350px;
    margin: 0 auto;
  }
  .hero-content {
    max-width: 600px;
    margin: 0 auto;
  }
  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-greeting {
    margin-bottom: 20px;
  }

  /* About: stack vertically */
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image-container {
    height: 350px;
    max-width: 600px;
    margin: 0 auto;
  }
  .about-text {
    text-align: center;
  }
  .about-text h3 {
    text-align: center;
  }

  /* Contact: stack vertically */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 600px;
  }

  /* Services: 2 columns */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .service-card {
    padding: 35px 25px;
  }

  /* Projects: 2 columns */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Skills: stack on tablet portrait */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
  }

  /* Timeline */
  .timeline {
    max-width: 100%;
  }

  /* Footer */
  footer {
    padding: 40px 30px 25px;
  }
}

/* --- Mobile (481-768px) --- */
@media (max-width: 768px) {
  /* Nav: hamburger menu */
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  nav {
    padding: 16px 24px;
  }
  nav.scrolled {
    padding: 12px 24px;
  }

  /* Hide custom cursor on touch devices */
  .cursor,
  .cursor-dot {
    display: none;
  }
  body {
    cursor: auto;
  }

  /* Sections */
  section {
    padding: 80px 24px 50px;
  }
  .section-title {
    font-size: clamp(26px, 7vw, 40px);
  }
  .section-subtitle {
    font-size: 13px;
    margin-bottom: 50px;
  }
  .section-divider {
    margin: 16px auto 30px;
  }

  /* Hero */
  #home {
    padding: 100px 24px 40px;
    min-height: auto;
  }
  .hero-name {
    font-size: clamp(30px, 9vw, 48px);
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: clamp(16px, 4vw, 22px);
    margin-bottom: 20px;
  }
  .hero-description {
    font-size: 14px;
    margin-bottom: 30px;
  }
  .hero-greeting {
    font-size: 11px;
    letter-spacing: 3px;
    padding: 6px 16px;
  }
  .hero-image-wrapper img {
    max-width: 100%;
    height: 280px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .btn {
    width: 100%;
    text-align: center;
    padding: 15px 30px;
    font-size: 12px;
  }
  .floating-badge {
    display: none;
  }

  /* About */
  .about-text h3 {
    font-size: 24px;
  }
  .about-text p {
    font-size: 13px;
  }
  .about-image-container {
    height: 280px;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .stat {
    padding: 18px 10px;
  }
  .stat-number {
    font-size: 24px;
  }
  .stat-label {
    font-size: 10px;
  }

  /* Services: single column */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-card {
    padding: 30px 24px;
  }
  .service-icon {
    font-size: 40px;
    margin-bottom: 16px;
  }
  .service-card h3 {
    font-size: 16px;
  }
  .service-card p {
    font-size: 12px;
  }

  /* Projects: single column */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-image {
    height: 200px;
  }
  .project-info {
    padding: 22px;
  }
  .project-info h3 {
    font-size: 16px;
  }
  .project-info p {
    font-size: 12px;
  }
  .tag {
    font-size: 10px;
    padding: 4px 12px;
  }
  /* Show overlay buttons always on touch */
  .project-overlay {
    opacity: 1;
    background: rgba(5, 5, 8, 0.6);
  }

  /* Experience */
  .timeline {
    padding-left: 28px;
  }
  .timeline-item {
    padding-left: 28px;
    margin-bottom: 35px;
  }
  .timeline-dot {
    left: -21px;
    width: 12px;
    height: 12px;
  }
  .timeline-content {
    padding: 22px;
  }
  .timeline-content h3 {
    font-size: 16px;
  }
  .timeline-content h4 {
    font-size: 12px;
  }
  .timeline-content p {
    font-size: 12px;
  }
  .timeline-date {
    font-size: 11px;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .skill-category {
    padding: 28px;
  }
  .skill-category h3 {
    font-size: 18px;
    margin-bottom: 22px;
  }
  .skill-header {
    font-size: 12px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .form-group input,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 13px;
  }
  .form-group label {
    font-size: 10px;
  }
  .contact-info-card {
    padding: 20px;
    gap: 16px;
  }
  .contact-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .contact-info-card .info-text h4 {
    font-size: 12px;
  }
  .contact-info-card .info-text p {
    font-size: 11px;
  }
  .social-links {
    justify-content: center;
  }
  .social-link {
    width: 44px;
    height: 44px;
  }

  /* Footer */
  footer {
    padding: 30px 24px 20px;
  }
  .footer-logo {
    font-size: 20px;
  }
  footer p {
    font-size: 11px;
  }

  /* Back to top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  /* Marquee */
  .marquee-section {
    padding: 30px 0;
  }
  .marquee-item {
    font-size: 13px;
  }
  .marquee-item span {
    font-size: 22px;
  }
  .marquee-track {
    gap: 40px;
  }
}

/* --- Small Mobile (≤480px) --- */
@media (max-width: 480px) {
  nav {
    padding: 14px 16px;
  }
  nav.scrolled {
    padding: 10px 16px;
  }
  .logo {
    font-size: 24px;
  }

  section {
    padding: 70px 16px 40px;
  }
  .section-title {
    font-size: clamp(22px, 8vw, 34px);
  }
  .section-subtitle {
    font-size: 12px;
    margin-bottom: 40px;
    letter-spacing: 1px;
  }

  #home {
    padding: 85px 16px 30px;
  }
  .hero-name {
    font-size: clamp(26px, 10vw, 38px);
    letter-spacing: 1px;
  }
  .hero-title {
    font-size: clamp(14px, 4.5vw, 18px);
    min-height: 35px;
  }
  .hero-description {
    font-size: 13px;
    line-height: 1.7;
  }
  .hero-greeting {
    font-size: 10px;
    letter-spacing: 2px;
    padding: 5px 14px;
  }
  .hero-image-wrapper img {
    height: 220px;
    border-radius: var(--radius-md);
  }
  .btn {
    padding: 14px 24px;
    font-size: 11px;
  }

  .about-text h3 {
    font-size: 20px;
  }
  .about-text p {
    font-size: 12px;
    line-height: 1.8;
  }
  .about-image-container {
    height: 220px;
  }
  .about-stats {
    gap: 8px;
  }
  .stat {
    padding: 14px 6px;
    border-radius: var(--radius-sm);
  }
  .stat-number {
    font-size: 20px;
  }
  .stat-label {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .service-card {
    padding: 25px 20px;
  }
  .service-icon {
    font-size: 36px;
  }
  .service-card h3 {
    font-size: 15px;
  }
  .service-card p {
    font-size: 12px;
  }

  .project-image {
    height: 180px;
  }
  .project-info {
    padding: 18px;
  }
  .project-info h3 {
    font-size: 15px;
  }

  .timeline {
    padding-left: 22px;
  }
  .timeline-item {
    padding-left: 22px;
    margin-bottom: 28px;
  }
  .timeline-dot {
    left: -17px;
    width: 10px;
    height: 10px;
  }
  .timeline-content {
    padding: 18px;
  }
  .timeline-content h3 {
    font-size: 15px;
  }
  .timeline-content p {
    font-size: 11px;
  }

  .skill-category {
    padding: 22px;
  }
  .skill-category h3 {
    font-size: 16px;
    margin-bottom: 18px;
  }
  .skill-header {
    font-size: 11px;
  }
  .skill-item {
    margin-bottom: 16px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 12px;
  }
  .form-group textarea {
    min-height: 110px;
  }
  .contact-info-card {
    padding: 16px;
  }
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 8px;
  }

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

  footer {
    padding: 25px 16px 16px;
  }
  .footer-logo {
    font-size: 18px;
    margin-bottom: 10px;
  }
  footer p {
    font-size: 10px;
  }
  footer .footer-sub {
    font-size: 10px;
    margin-top: 12px;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .marquee-section {
    padding: 24px 0;
  }
  .marquee-item {
    font-size: 12px;
  }
  .marquee-item span {
    font-size: 18px;
  }
  .marquee-track {
    gap: 30px;
  }

  /* Splash */
  #splash h1 {
    letter-spacing: 8px;
  }
  #splash p {
    letter-spacing: 4px;
    font-size: clamp(9px, 2.5vw, 13px);
  }
  .splash-progress {
    width: 150px;
  }
}

/* --- Touch device optimizations --- */
@media (hover: none) and (pointer: coarse) {
  .cursor,
  .cursor-dot {
    display: none !important;
  }
  body {
    cursor: auto !important;
  }

  /* Disable hover-dependent effects on touch */
  .service-card:hover {
    transform: none;
  }
  .project-card:hover {
    transform: none;
  }
  .skill-category:hover {
    transform: none;
  }
  .timeline-content:hover {
    transform: none;
  }
  .contact-info-card:hover {
    transform: none;
  }
  .social-link:hover {
    transform: none;
  }
  .stat:hover {
    transform: none;
  }

  /* Always show project overlay on touch */
  .project-overlay {
    opacity: 1;
    background: rgba(5, 5, 8, 0.55);
  }

  /* Larger tap targets */
  .btn {
    min-height: 48px;
  }
  .social-link {
    min-width: 48px;
    min-height: 48px;
  }
  .back-to-top {
    min-width: 48px;
    min-height: 48px;
  }
  .hamburger {
    padding: 10px;
  }
  .nav-links a {
    padding: 8px 0;
  }
  .mobile-menu a {
    padding: 12px 0;
  }
}

/* --- Landscape mobile --- */
@media (max-height: 500px) and (orientation: landscape) {
  #home {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 30px;
  }
  section {
    min-height: auto;
  }
  #splash h1 {
    font-size: clamp(30px, 8vw, 60px);
  }
  .hero-image-wrapper {
    display: none;
  }
  .hero-container {
    grid-template-columns: 1fr;
  }
}

/* --- Print styles --- */
@media print {
  body::before,
  #particles,
  .cursor,
  .cursor-dot,
  #splash,
  .back-to-top,
  .hamburger,
  .mobile-menu,
  .marquee-section {
    display: none !important;
  }
  nav {
    position: static;
    background: white;
    border-bottom: 1px solid #ccc;
  }
  body {
    background: white;
    color: #111;
    cursor: auto;
  }
  section {
    padding: 30px 20px;
    min-height: auto;
  }
  .section-title span {
    -webkit-text-fill-color: #111;
    color: #111;
  }
  a {
    color: #111;
  }
}

/* ===== Availability Badge ===== */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 255, 120, 0.08);
  border: 1px solid rgba(0, 255, 120, 0.25);
  border-radius: 100px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #00ff78;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #00ff78;
  border-radius: 50%;
  flex-shrink: 0;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 120, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(0, 255, 120, 0); }
}

