/* ═══════════════════════════════════════════
   SUHRID MARWAH — PORTFOLIO
   Color Palette & Design System
   ═══════════════════════════════════════════ */

:root {
  --bg-primary: #0a192f;
  --bg-secondary: #112240;
  --bg-tertiary: #1d3461;
  --accent: #64ffda;
  --accent-dim: rgba(100, 255, 218, 0.1);
  --accent-glow: rgba(100, 255, 218, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #b6c2e3;
  --text-bright: #ffffff;
  --white: #ffffff;
  --card-bg: rgba(17, 34, 64, 0.6);
  --card-border: rgba(100, 255, 218, 0.08);
  --glass-bg: rgba(10, 25, 47, 0.85);
  --glass-border: rgba(100, 255, 218, 0.12);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-elegant: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}

/* ═══════ RESET ═══════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}
a:hover { color: var(--text-bright); }

::selection {
  background: var(--accent-dim);
  color: var(--accent);
}

img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

/* ═══════ PRELOADER ═══════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-elegant), visibility 0.8s var(--ease-elegant);
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}
.preloader-ring:nth-child(2) {
  width: 60px; height: 60px;
  border-top-color: var(--text-secondary);
  animation-duration: 1.8s;
  animation-direction: reverse;
}
.preloader-ring:nth-child(3) {
  width: 40px; height: 40px;
  border-top-color: var(--accent);
  animation-duration: 0.9s;
}
.preloader-text {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  z-index: 1;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════ THREE.JS CANVAS ═══════ */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ═══════ CURSOR GLOW ═══════ */
#cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 1;
  will-change: transform;
}
@media (max-width: 768px) {
  #cursor-glow { display: none; }
}

/* ═══════ NAVBAR ═══════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  transition: transform 0.5s var(--ease-elegant), box-shadow 0.5s ease;
}
#navbar.scrolled {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
#navbar.hidden-nav {
  transform: translateY(-100%);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  transition: transform 0.3s var(--ease-spring);
}
.nav-logo:hover {
  transform: scale(1.05);
  color: var(--accent);
}
.logo-dot {
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
  transition: color 0.4s var(--ease-smooth);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s var(--ease-elegant);
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.4s var(--ease-elegant);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 25, 47, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-elegant);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-link {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--text-primary);
  transition: color 0.3s ease, transform 0.3s var(--ease-spring);
}
.mobile-link:hover {
  color: var(--accent);
  transform: translateX(8px);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  #navbar { padding: 0 20px; }
}

/* ═══════ SECTION HEADER ═══════ */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 60px;
}
.section-number {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  font-weight: 500;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-bright);
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--card-border), transparent);
}

/* ═══════ HERO ═══════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 720px;
}
.hero-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
}
.greeting-line {
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.greeting-text {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 1px;
}
.hero-name {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text-bright);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(30px);
  letter-spacing: -2px;
}
.name-accent {
  background: linear-gradient(135deg, var(--accent), #38bdf8, #818cf8);
  background-size: 200% 200%;
  animation: gradientFlow 4s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-role {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 28px;
  opacity: 0;
  transform: translateY(20px);
}
.role-prefix {
  color: var(--accent);
  font-weight: 600;
}
.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-tagline {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-elegant);
  border: none;
  will-change: transform, box-shadow;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px var(--accent-glow), 0 0 80px rgba(100, 255, 218, 0.15);
  color: var(--bg-primary);
}
.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(100, 255, 218, 0.12);
  color: var(--accent);
}
.btn-outline:active {
  transform: translateY(-1px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 16px;
  border-radius: var(--radius);
}

.hero-socials {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
}
.social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.4s var(--ease-elegant);
  background: var(--card-bg);
  will-change: transform;
}
.social-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-spring);
}
.social-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.social-icon:hover svg {
  transform: scale(1.15);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
}
.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ═══════ ABOUT ═══════ */
.about-section {
  position: relative;
  z-index: 2;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
}
.about-intro {
  font-size: 18px !important;
  color: var(--text-primary) !important;
}
.highlight {
  color: var(--accent);
  font-weight: 500;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.tag {
  padding: 6px 16px;
  border: 1px solid var(--card-border);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  transition: all 0.4s var(--ease-elegant);
  cursor: default;
}
.tag:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.5s var(--ease-elegant);
  will-change: transform;
}
.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(100, 255, 218, 0.1);
}
.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  display: inline;
  font-family: var(--font-main);
}
.stat-plus {
  font-size: 28px;
  color: var(--accent);
  font-weight: 700;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════ EXPERIENCE TIMELINE ═══════ */
.experience-section {
  position: relative;
  z-index: 2;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-glow), var(--accent), var(--accent-glow), transparent);
  transform: translateX(-50%);
  z-index: 0;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 50px;
  z-index: 1;
}
.timeline-item[data-side="left"] {
  left: 0;
  padding-right: 50px;
  text-align: right;
}
.timeline-item[data-side="right"] {
  left: 50%;
  padding-left: 50px;
  text-align: left;
}
.timeline-dot {
  position: absolute;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  z-index: 2;
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(100, 255, 218, 0.1);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}
.timeline-item[data-side="left"] .timeline-dot {
  right: -8px;
}
.timeline-item[data-side="right"] .timeline-dot {
  left: -8px;
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.4);
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(100, 255, 218, 0.2);
}
.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: all 0.5s var(--ease-elegant);
  position: relative;
  overflow: hidden;
}
.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.timeline-item:hover .timeline-card {
  border-color: var(--accent-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25), 0 0 30px var(--accent-dim);
}
.timeline-item:hover .timeline-card::before {
  opacity: 1;
}

.timeline-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.timeline-badge.gsoc {
  background: rgba(66, 133, 244, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(66, 133, 244, 0.25);
}
.timeline-badge.lfx {
  background: rgba(0, 145, 200, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(0, 145, 200, 0.25);
}
.timeline-badge.esoc {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.timeline-badge.oss {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.timeline-org {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
  transition: color 0.3s ease;
}
.timeline-item:hover .timeline-org {
  color: var(--accent);
}
.timeline-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}
.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-item[data-side="left"] .timeline-tech {
  justify-content: flex-end;
}
.timeline-tech span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--accent-dim);
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-item,
  .timeline-item[data-side="left"],
  .timeline-item[data-side="right"] {
    width: 100%;
    left: 0;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
  }
  .timeline-item[data-side="left"] .timeline-dot,
  .timeline-item[data-side="right"] .timeline-dot {
    left: 12px;
    right: auto;
  }
  .timeline-item[data-side="left"] .timeline-tech {
    justify-content: flex-start;
  }
}

/* ═══════ PROJECTS ═══════ */
.projects-section {
  position: relative;
  z-index: 2;
}
.projects-note {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-family: var(--font-mono);
}
.projects-note a {
  font-weight: 600;
  transition: all 0.3s ease;
}
.projects-note a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}
.project-card-inner {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  transition: all 0.5s var(--ease-elegant);
  position: relative;
  overflow: hidden;
}
.project-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.project-card:hover .project-card-inner {
  border-color: var(--accent-glow);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3), 0 0 50px var(--accent-dim);
}
.project-card:hover .project-card-inner::before {
  opacity: 1;
}
.project-icon {
  font-size: 32px;
  margin-bottom: 20px;
  transition: transform 0.5s var(--ease-spring);
}
.project-card:hover .project-icon {
  transform: scale(1.2) rotate(-5deg);
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.project-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  transition: color 0.4s ease;
}
.project-card:hover .project-name {
  color: var(--accent);
}
.project-links { display: flex; gap: 12px; }
.project-link-icon {
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-spring);
  display: flex;
  align-items: center;
}
.project-link-icon svg { width: 20px; height: 20px; }
.project-link-icon:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}
.project-highlights {
  margin-bottom: 20px;
  padding-left: 0;
}
.project-highlights li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 0 3px 20px;
  position: relative;
  line-height: 1.6;
}
.project-highlights li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 14px;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.project-tech span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--accent-dim);
  white-space: nowrap;
  transition: all 0.3s ease;
}
.project-tech span:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

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

/* ═══════ SKILLS ═══════ */
.skills-section {
  position: relative;
  z-index: 2;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: all 0.5s var(--ease-elegant);
  will-change: transform;
}
.skill-category:hover {
  border-color: var(--accent-glow);
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}
.skill-cat-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-cat-title svg {
  color: var(--accent);
  transition: transform 0.4s var(--ease-spring);
}
.skill-category:hover .skill-cat-title svg {
  transform: rotate(10deg) scale(1.15);
}


/* Skill Tags */
.skill-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tag {
  padding: 8px 18px;
  border: 1px solid var(--card-border);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  transition: all 0.4s var(--ease-elegant);
  cursor: default;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(100, 255, 218, 0.12);
}

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

/* ═══════ CONNECT ═══════ */
.connect-section {
  position: relative;
  z-index: 2;
}
.connect-content {
  text-align: center;
}
.connect-intro {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

.connect-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.connect-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  text-align: center;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.5s var(--ease-elegant);
  text-decoration: none;
  display: block;
  cursor: pointer;
  will-change: transform;
}
.connect-card-glow {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.connect-card:hover .connect-card-glow {
  opacity: 1;
}
.connect-card:hover {
  border-color: var(--accent);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3), 0 0 60px var(--accent-dim);
}
.connect-card:active {
  transform: translateY(-4px) scale(1.01);
}
.connect-card-content {
  position: relative;
  z-index: 1;
}
.connect-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.5s var(--ease-spring);
}
.connect-icon svg {
  width: 28px;
  height: 28px;
  transition: transform 0.4s var(--ease-spring);
}
.linkedin-icon {
  background: rgba(0, 119, 181, 0.15);
  color: #0077b5;
  border: 1px solid rgba(0, 119, 181, 0.2);
}
.connect-card:hover .linkedin-icon {
  background: rgba(0, 119, 181, 0.25);
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 10px 30px rgba(0, 119, 181, 0.3);
}
.github-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.connect-card:hover .github-icon {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}
.email-icon {
  background: rgba(100, 255, 218, 0.1);
  color: var(--accent);
  border: 1px solid rgba(100, 255, 218, 0.15);
}
.connect-card:hover .email-icon {
  background: rgba(100, 255, 218, 0.2);
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 10px 30px var(--accent-glow);
}
.connect-card:hover .connect-icon svg {
  transform: scale(1.1);
}

.connect-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
  transition: color 0.4s ease;
}
.connect-card:hover h3 {
  color: var(--accent);
}
.connect-card p {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.connect-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s var(--ease-elegant);
}
.connect-card:hover .connect-arrow {
  opacity: 1;
  transform: translateX(0);
}


@media (max-width: 768px) {
  .connect-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ═══════ FOOTER ═══════ */
.footer {
  position: relative;
  z-index: 2;
  padding: 60px 0 40px;
  border-top: 1px solid var(--card-border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-socials {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}
.footer-social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xs);
  transition: all 0.4s var(--ease-elegant);
}
.footer-social-icon svg { width: 16px; height: 16px; }
.footer-social-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.footer-text {
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-year {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  opacity: 0.7;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s var(--ease-elegant);
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 8px 30px var(--accent-glow);
  transform: translateY(-4px);
}

/* ═══════ REVEAL ANIMATIONS ═══════ */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════ REDUCED MOTION ═══════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-line { animation: none; }
  .cursor-blink { animation: none; }
  .name-accent { animation: none; }
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .hero-section { padding: 0 20px; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 22px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-name { letter-spacing: -1px; }
  .stat-number { font-size: 32px; }
}
