/* ============================================
   EHTISHAM ASHRAF — PORTFOLIO DESIGN SYSTEM
   v2.0 — Enhanced with 2026 Trends
   Mobile-First | Responsive | Ultra-Premium
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=Orbitron:wght@500;700;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --cyan: #00f0ff;
  --cyan-rgb: 0, 240, 255;
  --purple: #a855f7;
  --purple-rgb: 168, 85, 247;
  --pink: #f43f5e;
  --pink-rgb: 244, 63, 94;
  --blue: #3b82f6;
  --blue-rgb: 59, 130, 246;
  --emerald: #34d399;
  --emerald-rgb: 52, 211, 153;
  --bg-primary: #030712;
  --bg-secondary: #0a0f1a;
  --bg-tertiary: #111827;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-glass: rgba(15, 23, 42, 0.5);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 240, 255, 0.3);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-tech: 'Orbitron', monospace;
  --nav-height: 72px;
  --section-pad: 5.5rem;
  --radius-sm: 0.625rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

/* ---------- Custom Cursor (Desktop) ---------- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: transform;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  border-radius: 10px;
}

/* ---------- Skip to Content ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background: var(--cyan);
  color: var(--bg-primary);
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Loading Screen ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 99999;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-tech);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.loader-bar-track {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 3px;
  animation: loader-fill 1.2s var(--ease-out) forwards;
}

@keyframes loader-fill {
  to {
    width: 100%;
  }
}

/* ---------- Particle Canvas ---------- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(var(--cyan-rgb), 0.06);
  border: 1px solid rgba(var(--cyan-rgb), 0.12);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 3px;
  margin: 1rem auto 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ---------- Glass 2.0 — Enhanced Glassmorphism ---------- */
.glass {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.5), rgba(3, 7, 18, 0.8));
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  transition: all 0.5s var(--ease-out);
  overflow: hidden;
}

/* Animated gradient border on hover */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
      rgba(var(--cyan-rgb), 0),
      rgba(var(--cyan-rgb), 0),
      rgba(var(--purple-rgb), 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.5s var(--ease-out);
  pointer-events: none;
}

.glass-card:hover::before {
  background: linear-gradient(135deg,
      rgba(var(--cyan-rgb), 0.6),
      rgba(var(--purple-rgb), 0.4),
      rgba(var(--pink-rgb), 0.3));
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 50px -12px rgba(var(--cyan-rgb), 0.1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  padding: 0.85rem 1.85rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-size: 0.95rem;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px -8px rgba(var(--cyan-rgb), 0.4);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary span,
.btn-primary i {
  position: relative;
  z-index: 1;
}

.btn-outline {
  padding: 0.85rem 1.85rem;
  border: 1.5px solid rgba(var(--cyan-rgb), 0.35);
  color: var(--cyan);
  font-size: 0.95rem;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(var(--cyan-rgb), 0.08);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 20px -5px rgba(var(--cyan-rgb), 0.2);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-tech);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.logo-dot {
  color: var(--cyan);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: all 0.3s var(--ease-out);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  padding: 4px 0;
  cursor: pointer;
  z-index: 1002;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.4s var(--ease-out);
  transform-origin: center;
}

.hamburger span:nth-child(2) {
  width: 70%;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
  background: var(--cyan);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
  background: var(--cyan);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.98);
  backdrop-filter: blur(40px);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s, transform 0.5s var(--ease-out), opacity 0.5s;
  transform: translateY(30px);
  opacity: 0;
}

.mobile-menu.open a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.open a:nth-child(1) {
  transition-delay: 0.08s;
}

.mobile-menu.open a:nth-child(2) {
  transition-delay: 0.12s;
}

.mobile-menu.open a:nth-child(3) {
  transition-delay: 0.16s;
}

.mobile-menu.open a:nth-child(4) {
  transition-delay: 0.2s;
}

.mobile-menu.open a:nth-child(5) {
  transition-delay: 0.24s;
}

.mobile-menu.open a:nth-child(6) {
  transition-delay: 0.28s;
}

.mobile-menu.open a:nth-child(7) {
  transition-delay: 0.32s;
}

.mobile-menu a:hover {
  color: var(--cyan);
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 60% 10%, rgba(var(--cyan-rgb), 0.08), transparent),
    radial-gradient(ellipse 40% 50% at 10% 60%, rgba(var(--purple-rgb), 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 80% 80%, rgba(var(--pink-rgb), 0.04), transparent);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--cyan-rgb), 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--cyan-rgb), 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(var(--emerald-rgb), 0.06);
  border: 1px solid rgba(var(--emerald-rgb), 0.15);
  margin-bottom: 1.75rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(var(--emerald-rgb), 0.5);
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(var(--emerald-rgb), 0.5);
  }

  50% {
    opacity: 0.4;
    box-shadow: 0 0 2px rgba(var(--emerald-rgb), 0.2);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  min-height: 1.8em;
}

.typing-wrapper {
  display: inline;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
  border-radius: 1px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-description {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Profile */
.hero-image {
  display: flex;
  justify-content: center;
}

.profile-container {
  position: relative;
  width: 250px;
  height: 250px;
}

.profile-glow {
  position: absolute;
  inset: -24px;
  background: conic-gradient(from 0deg, var(--cyan), var(--purple), var(--pink), var(--cyan));
  border-radius: 50%;
  animation: rotate 8s linear infinite;
  filter: blur(40px);
  opacity: 0.4;
}

.profile-ring {
  position: absolute;
  inset: -12px;
  border: 1.5px solid rgba(var(--cyan-rgb), 0.3);
  border-radius: 50%;
  opacity: 0;
  animation: pulse-ring 3s ease-out infinite;
}

.profile-ring:nth-child(2) {
  animation-delay: 0.8s;
}

.profile-ring:nth-child(3) {
  animation-delay: 1.6s;
}

.profile-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid rgba(var(--cyan-rgb), 0.2);
  z-index: 1;
}

.profile-float {
  animation: float 6s ease-in-out infinite;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.scroll-dot {
  width: 3px;
  height: 8px;
  background: var(--cyan);
  border-radius: 3px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(8px);
    opacity: 0.2;
  }
}

/* ---------- MARQUEE (Tech Scroll) ---------- */
.marquee-section {
  position: relative;
  z-index: 10;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  background: rgba(var(--cyan-rgb), 0.01);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.marquee-item i {
  font-size: 1.1rem;
  opacity: 0.7;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  background: rgba(var(--cyan-rgb), 0.3);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---------- STATS BAR ---------- */
.stats-bar {
  position: relative;
  z-index: 10;
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.stat-item {
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius-lg);
  background: rgba(var(--cyan-rgb), 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s, background 0.3s;
}

.stat-item:hover {
  border-color: rgba(var(--cyan-rgb), 0.1);
  background: rgba(var(--cyan-rgb), 0.04);
}

.stat-item .stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-item .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- ABOUT SECTION ---------- */
.about {
  position: relative;
  z-index: 10;
  padding: var(--section-pad) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(var(--cyan-rgb), 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  transition: border-color 0.3s;
}

.highlight-item:hover {
  border-color: rgba(var(--cyan-rgb), 0.15);
}

.highlight-item i {
  color: var(--cyan);
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
}

.highlight-item span {
  font-size: 0.85rem;
  font-weight: 500;
}

.about-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.info-card {
  text-align: center;
  padding: 1.5rem 0.75rem;
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease-out);
}

.info-card:hover {
  transform: translateY(-4px);
}

.info-card i {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.info-card .info-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.info-card .info-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* ---------- SKILLS SECTION ---------- */
.skills {
  position: relative;
  z-index: 10;
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.skill-card {
  padding: 1.75rem;
}

.skill-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  border: 1px solid;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.glass-card:hover .skill-icon {
  transform: scale(1.08) rotate(-3deg);
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tech-tag:hover {
  transform: translateY(-1px);
}

/* ---------- EXPERIENCE TIMELINE ---------- */
.experience {
  position: relative;
  z-index: 10;
  padding: var(--section-pad) 0;
}

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), var(--pink), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -1rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  border: 3px solid var(--bg-primary);
  z-index: 2;
  box-shadow: 0 0 12px rgba(var(--cyan-rgb), 0.4);
}

.timeline-content {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-left: 1rem;
  transition: all 0.4s var(--ease-out);
}

.timeline-date {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(var(--cyan-rgb), 0.08);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.timeline-content h4 {
  font-size: 0.85rem;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.timeline-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- PROJECTS SECTION ---------- */
.projects {
  position: relative;
  z-index: 10;
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.project-card {
  overflow: hidden;
}

.project-visual {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(3, 7, 18, 0.95) 100%);
  pointer-events: none;
}

.project-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border: 1px solid;
  transition: transform 0.4s var(--ease-spring);
}

.project-card:hover .project-icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
}

.project-icon-wrapper i {
  font-size: 1.75rem;
}

.project-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid;
  z-index: 2;
  letter-spacing: 0.08em;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.project-card:hover .project-info h3 {
  color: var(--cyan);
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.project-tag {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: gap 0.3s;
}

.project-link:hover {
  gap: 0.8rem;
}

/* ---------- SERVICES SECTION ---------- */
.services {
  position: relative;
  z-index: 10;
  padding: var(--section-pad) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.service-icon-box {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(var(--cyan-rgb), 0.08), rgba(var(--purple-rgb), 0.08));
  border: 1px solid rgba(var(--cyan-rgb), 0.12);
  transition: all 0.4s var(--ease-spring);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 30px rgba(var(--cyan-rgb), 0.1);
  border-color: rgba(var(--cyan-rgb), 0.3);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ---------- CONTACT SECTION ---------- */
.contact {
  position: relative;
  z-index: 10;
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.contact-info>p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  transition: background 0.3s;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.02);
}

.contact-link-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-link-text small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
  font-weight: 500;
}

.contact-link-text p {
  font-weight: 500;
  color: #fff;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.15rem;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
}

.social-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(var(--cyan-rgb), 0.2);
  background: rgba(var(--cyan-rgb), 0.05);
}

.contact-location {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

/* Contact Form */
.contact-form {
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.contact-form .form-group {
  margin-bottom: 1.15rem;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-out);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(var(--cyan-rgb), 0.5);
  background: rgba(var(--cyan-rgb), 0.02);
  box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), 0.06);
}

.contact-form textarea {
  resize: none;
  min-height: 110px;
}

.contact-form .btn-submit {
  width: 100%;
  padding: 0.95rem;
  font-size: 0.95rem;
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  z-index: 10;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.4s var(--ease-out);
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  z-index: -1;
  opacity: 0.35;
  animation: wa-pulse 2.5s ease-out infinite;
}

/* ---------- SCROLL TO TOP ---------- */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 4.5rem;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--cyan-rgb), 0.1);
  border: 1px solid rgba(var(--cyan-rgb), 0.15);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  background: rgba(var(--cyan-rgb), 0.15);
  box-shadow: 0 6px 18px rgba(var(--cyan-rgb), 0.2);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-25px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(25px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Animations ---------- */
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.35;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

@media (min-width: 360px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-info-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .profile-container {
    width: 270px;
    height: 270px;
  }

  .contact-form {
    padding: 2.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .stats-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .profile-container {
    width: 290px;
    height: 290px;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero-image {
    justify-content: flex-end;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .profile-container {
    width: 310px;
    height: 310px;
  }

  .scroll-indicator {
    display: flex;
  }

  .whatsapp-float {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    bottom: 2rem;
    right: 2rem;
  }

  .scroll-top {
    right: 5.5rem;
    bottom: 2rem;
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 1280px) {
  :root {
    --section-pad: 7rem;
  }
}

/* ---------- Mobile Perf ---------- */
@media (max-width: 768px) {

  .glass,
  .glass-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(15, 23, 42, 0.95);
  }

  .glass-card::before {
    display: none;
  }

  .profile-glow {
    animation: none;
    background: radial-gradient(circle, var(--cyan), var(--purple) 50%, transparent 70%);
    filter: blur(45px);
    opacity: 0.3;
  }

  .profile-float {
    animation: none;
  }

  .profile-ring {
    display: none;
  }

  .whatsapp-float::before {
    animation: none;
    opacity: 0;
  }

  .glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
  }

  .scroll-indicator {
    display: none;
  }

  .cursor-glow {
    display: none;
  }

  #particles-canvas {
    opacity: 0.2;
  }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-track {
    animation: none;
  }
}