
/* ============================================================
   SHAH SAWAR — PORTFOLIO CSS
   Dark Tech Aesthetic | Cyan/Violet Accents | Glass Morphism
   ============================================================ */

/* ─── FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* ─── CSS VARIABLES ─── */
:root {
  /* Colors */
  --bg-primary:       #080c14;
  --bg-secondary:     #0d1220;
  --bg-card:          rgba(15, 20, 35, 0.85);
  --bg-glass:         rgba(255, 255, 255, 0.04);
  --bg-glass-hover:   rgba(255, 255, 255, 0.07);

  --accent-cyan:      #00e5ff;
  --accent-violet:    #7c3aed;
  --accent-violet-lt: #a855f7;
  --accent-green:     #10b981;
  --accent-orange:    #f59e0b;

  --text-primary:     #f0f4ff;
  --text-secondary:   #8b9dc3;
  --text-muted:       #4a5880;

  --border:           rgba(0, 229, 255, 0.12);
  --border-hover:     rgba(0, 229, 255, 0.35);
  --glow-cyan:        0 0 40px rgba(0, 229, 255, 0.18);
  --glow-violet:      0 0 40px rgba(124, 58, 237, 0.25);

  /* Typography */
  --font-display:     'Space Grotesk', sans-serif;
  --font-body:        'Inter', sans-serif;
  --font-mono:        'Fira Code', monospace;

  /* Spacing */
  --section-pad:      clamp(60px, 8vw, 120px);
  --container-max:    1200px;
  --radius-sm:        8px;
  --radius-md:        16px;
  --radius-lg:        24px;
  --radius-xl:        32px;

  /* Transitions */
  --ease:             cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --trans-fast:       0.2s var(--ease);
  --trans-med:        0.35s var(--ease);
  --trans-slow:       0.6s var(--ease);
}

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

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

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

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar            { width: 6px; }
::-webkit-scrollbar-track      { background: var(--bg-primary); }
::-webkit-scrollbar-thumb      { background: var(--accent-violet); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover{ background: var(--accent-cyan); }

/* ─── SELECTION ─── */
::selection { background: rgba(0,229,255,0.2); color: var(--accent-cyan); }

/* ─── CONTAINER ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ─── SECTION HEADER (shared) ─── */
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 5px 14px;
  border: 1px solid var(--border-hover);
  border-radius: 99px;
  margin-bottom: 18px;
  background: rgba(0,229,255,0.06);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.title-line    { color: var(--text-primary); }
.title-highlight {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  border-radius: 99px;
  margin: 16px auto 20px;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: var(--trans-med);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: var(--trans-fast);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  color: #fff;
  box-shadow: 0 0 24px rgba(0,229,255,0.25);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0,229,255,0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: var(--bg-glass-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}
.btn-outline:hover {
  background: rgba(0,229,255,0.08);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.btn-outline-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 15px 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  transition: var(--trans-med);
}
.btn-outline-large:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--trans-med);
  box-shadow: 0 0 24px rgba(0,229,255,0.2);
  position: relative;
  overflow: hidden;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,229,255,0.4);
}
.btn-loader { display: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--trans-med);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8, 12, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand a {
  display: flex;
  align-items: center;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--trans-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 99px;
  transition: var(--trans-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 20px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 99px;
  transition: var(--trans-fast);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
}

/* Background layers */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(124,58,237,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 70%, rgba(0,229,255,0.08) 0%, transparent 60%),
    linear-gradient(160deg, #080c14 0%, #0d1220 50%, #080c14 100%);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.neural-network {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 48px;
  width: 100%;
}

/* Profile Image */
.profile-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  flex-shrink: 0;
}

.profile-wrapper::after {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 229, 255, 0.45);
  animation: spin 20s linear infinite reverse;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.profile-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-cyan), var(--accent-violet), var(--accent-cyan));
  animation: spin 5s linear infinite;
  opacity: 0.7;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

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

.profile-image {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 3px solid var(--bg-primary);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 680px;
}

.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.greeting-icon { font-size: 1.2rem; }

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.title-prefix  { color: var(--text-secondary); }
.title-highlight {
  color: var(--accent-cyan);
  background: none;
  -webkit-text-fill-color: var(--accent-cyan);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent-violet-lt);
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.cursor {
  display: inline-block;
  animation: blink 0.9s step-end infinite;
  color: var(--accent-cyan);
}

@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

/* Social links */
.hero-social {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 8px;
}

.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--trans-fast);
  background: var(--bg-glass);
}

.social-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}

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

.scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--border-hover);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 99px;
  animation: scroll-anim 1.5s ease-in-out infinite;
}

@keyframes scroll-anim {
  0%  { transform: translateY(0); opacity:1; }
  100%{ transform: translateY(10px); opacity:0; }
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Floating shapes */
.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: var(--radius-sm);
  animation: float linear infinite;
}

.shape-1 { width:80px; height:80px; top:15%; left:6%;  animation-duration:18s; animation-delay:0s;  background: rgba(0,229,255,0.03); transform: rotate(20deg); }
.shape-2 { width:50px; height:50px; top:60%; left:88%; animation-duration:22s; animation-delay:-4s; background: rgba(124,58,237,0.04); transform: rotate(-10deg); }
.shape-3 { width:100px;height:100px;top:75%; left:5%;  animation-duration:26s; animation-delay:-8s; background: rgba(0,229,255,0.02); border-radius: 50%; }
.shape-4 { width:60px; height:60px; top:20%; left:90%; animation-duration:20s; animation-delay:-2s; background: rgba(168,85,247,0.04); transform: rotate(35deg); }

@keyframes float {
  0%   { transform: translateY(0)   rotate(0deg); }
  50%  { transform: translateY(-28px) rotate(5deg); }
  100% { transform: translateY(0)   rotate(0deg); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  padding: var(--section-pad) 0;
  position: relative;
}

.about-content {
  max-width: 1100px;
  margin: 0 auto;
}

/* Glass Card */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color var(--trans-med);
}

.about-card:hover {
  border-color: var(--border-hover);
}

.card-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(124,58,237,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.about-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.about-heading i { color: var(--accent-cyan); }

.about-paragraph {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 14px;
}

.about-paragraph strong { color: var(--accent-cyan); font-weight: 600; }

/* Stats */
.about-stats {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  flex: 1;
  min-width: 110px;
  transition: var(--trans-fast);
}

.stat-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(124,58,237,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1rem;
  flex-shrink: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Highlights */
.highlights-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.highlights-heading i { color: var(--accent-violet-lt); }

.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: var(--trans-fast);
}

.highlight-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
  transform: translateX(4px);
}

.highlight-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(124,58,237,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.highlight-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.highlight-description {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, transparent, rgba(13,18,32,0.6), transparent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--trans-med);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  opacity: 0;
  transition: var(--trans-med);
}

.skill-category:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), var(--glow-cyan);
}

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

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.category-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ai-icon      { background: linear-gradient(135deg,rgba(0,229,255,0.2),rgba(124,58,237,0.2)); color: var(--accent-cyan); }
.frontend-icon{ background: linear-gradient(135deg,rgba(16,185,129,0.2),rgba(0,229,255,0.2)); color: var(--accent-green); }
.backend-icon { background: linear-gradient(135deg,rgba(124,58,237,0.2),rgba(168,85,247,0.2)); color: var(--accent-violet-lt); }
.mobile-icon  { background: linear-gradient(135deg,rgba(245,158,11,0.2),rgba(239,68,68,0.2)); color: var(--accent-orange); }
.devops-icon  { background: linear-gradient(135deg,rgba(0,229,255,0.15),rgba(16,185,129,0.15)); color: var(--accent-cyan); }

.category-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-item {}

.skill-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 4px;
  padding: 2px 7px;
}

.skill-progress {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  border-radius: 99px;
  width: 0%;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-section {
  padding: var(--section-pad) 0;
}

/* Filter buttons */
.project-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-glass);
  transition: var(--trans-fast);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0,229,255,0.08);
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* Project card */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans-med);
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), var(--glow-cyan);
}

/* Featured card spans 2 columns */
.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.project-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  padding: 5px 12px;
  border-radius: 99px;
}

.project-image {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, rgba(0,229,255,0.06), rgba(124,58,237,0.12));
  overflow: hidden;
  flex-shrink: 0;
}

.featured .project-image {
  height: 100%;
  min-height: 320px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--trans-slow);
  opacity: 0.85;
}

.project-card:hover .project-image img {
  opacity: 1.0;
  transform: scale(1.04);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,12,20,0.8) 0%, transparent 60%);
  z-index: 1;
}

.project-preview-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 3rem;
  color: rgba(0,229,255,0.35);
  z-index: 0;
}

.project-content {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-category-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.category-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
}

.ai-tag        { background: rgba(0,229,255,0.1);  color: var(--accent-cyan);      border: 1px solid rgba(0,229,255,0.2); }
.fullstack-tag { background: rgba(124,58,237,0.1); color: var(--accent-violet-lt); border: 1px solid rgba(124,58,237,0.2); }
.mobile-tag    { background: rgba(16,185,129,0.1); color: var(--accent-green);     border: 1px solid rgba(16,185,129,0.2); }

.project-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -8px;
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.project-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.feature-item i { color: var(--accent-green); font-size: 0.75rem; flex-shrink: 0; }

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-violet-lt);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 4px;
  padding: 3px 9px;
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--trans-fast);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-glass);
}

.project-link.primary-link {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  border-color: transparent;
  color: #fff;
}

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

.project-link.primary-link:hover {
  box-shadow: 0 0 20px rgba(0,229,255,0.35);
}

/* Projects CTA */
.projects-cta {
  text-align: center;
}

/* Hidden cards (filter) */
.project-card.hidden {
  display: none;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  padding: var(--section-pad) 0;
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(13,18,32,0.5));
}

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

#starfieldCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Contact info panel */
.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(12px);
}

.contact-info-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.contact-info-heading i { color: var(--accent-cyan); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(124,58,237,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 3px;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--trans-fast);
}

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

.social-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-orb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--trans-fast);
}

.social-orb:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px) scale(1.08);
  box-shadow: var(--glow-cyan);
}

/* Contact form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(12px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-label i { color: var(--accent-cyan); font-size: 0.8rem; }

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--trans-fast);
  outline: none;
  resize: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(0,229,255,0.03);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}

/* Form messages */
.form-message {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.success-message {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--accent-green);
}

.error-message {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

.form-message.show { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden;
}

.footer-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-violet), transparent);
}

.footer .container {
  padding-top: 60px;
  padding-bottom: 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-nav a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.tech-icons {
  display: flex;
  gap: 14px;
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tech-icons i { transition: var(--trans-fast); }
.tech-icons i:hover { color: var(--accent-cyan); transform: translateY(-3px); }

.footer-tech-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.footer-bottom {
  padding-top: 0;
}

.footer-copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-made-with {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
}

.footer-made-with i { color: #ef4444; font-size: 0.8rem; }

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,229,255,0.35);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--trans-med);
  pointer-events: none;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,229,255,0.5);
}

/* ─── AI Chat Widget ─── */
.ai-chat-widget {
  position: fixed;
  bottom: 88px;
  right: 28px;
  z-index: 900;
}

.chat-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
  transition: var(--trans-med);
}

.chat-toggle:hover {
  transform: scale(1.08) rotate(10deg);
  box-shadow: 0 8px 32px rgba(124,58,237,0.55);
}

.chat-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), var(--glow-violet);
  display: none;
  flex-direction: column;
}

.chat-panel.open { display: flex; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(124,58,237,0.1));
  border-bottom: 1px solid var(--border);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-header-info i { color: var(--accent-cyan); }

.chat-close {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--trans-fast);
  padding: 4px;
}

.chat-close:hover { color: var(--text-primary); }

.chat-messages {
  flex: 1;
  padding: 16px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.message-content {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 10px 14px;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.chat-message.user-message {
  flex-direction: row-reverse;
}

.chat-message.user-message .message-avatar {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
}

.chat-message.user-message .message-content {
  border-radius: var(--radius-md) 0 var(--radius-md) var(--radius-md);
  background: rgba(0,229,255,0.06);
  border-color: rgba(0,229,255,0.15);
}

.chat-input-wrapper {
  display: flex;
  padding: 12px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

.chat-input {
  flex: 1;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--trans-fast);
}

.chat-input::placeholder { color: var(--text-muted); }

.chat-input:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.07);
}

.chat-send {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--trans-fast);
}

.chat-send:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(0,229,255,0.35);
}

/* ============================================================
   ANIMATIONS — ENTRANCE
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Tablet */
@media (max-width: 900px) {
  .hero-container  { flex-direction: column; text-align: center; gap: 36px; }
  .hero-content    { align-items: center; }
  .hero-cta        { justify-content: center; }
  .hero-social     { justify-content: center; }
  .profile-wrapper { width: 200px; height: 200px; }
  .profile-wrapper::after { inset: -14px; }

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

  .project-card.featured {
    grid-template-columns: 1fr;
  }
  .featured .project-image { min-height: 220px; height: 220px; }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: rgba(8,12,20,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    border-left: 1px solid var(--border);
    transition: right var(--trans-med);
    z-index: 999;
  }

  .nav-menu.open { right: 0; }
  .nav-link { font-size: 1.1rem; padding: 12px 0; }
  .nav-toggle { display: flex; z-index: 1000; }

  .hero-cta { flex-direction: column; align-items: center; }

  .skills-grid      { grid-template-columns: 1fr; }
  .projects-grid    { grid-template-columns: 1fr; }
  .footer-content   { grid-template-columns: 1fr; }
  .about-stats      { flex-direction: column; }
  .profile-wrapper  { width: 120px; height: 120px; }
  .profile-wrapper::after { inset: -8px; }

  .chat-panel { width: 290px; }
  .scroll-to-top { bottom: 20px; right: 20px; }
  .ai-chat-widget { bottom: 80px; right: 20px; }

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

/* ─── Hamburger → X animation ─── */
.nav-toggle.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

