/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* CSS Variables */
:root {
  --bg-1: #040915;
  --bg-2: #0a1324;
  --bg-3: #0f1b33;
  --text-1: #e6f1ff;
  --text-2: #a5b4c9;
  --text-3: #6b7280;
  --primary: #38bdf8; /* cyan-400 */
  --primary-2: #60a5fa; /* blue-400 */
  --accent: #a78bfa; /* violet-400 */
  --accent-2: #06b6d4; /* cyan-500 */
  --warn: #f59e0b; /* amber-500 for signals */
  --glass: rgba(255,255,255,0.06);
  --glass-strong: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.18);
  --glass-hover: rgba(255,255,255,0.08);
  --blur: 18px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --ring: 0 0 0 1px rgba(56,189,248,.35);
  --shadow: 0 12px 40px rgba(2,132,199,.18);
  --shadow-lg: 0 20px 60px rgba(2,132,199,.25);
  --gradient-1: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-2: linear-gradient(90deg, var(--primary), var(--primary-2));
  --gradient-3: linear-gradient(45deg, var(--primary), var(--accent));
}

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(56,189,248,.08), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(96,165,250,.08), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 40%, var(--bg-3));
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Glass Utilities */
.glass {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
  background: var(--glass-hover);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--shadow-lg);
  transform: translateY(-4px);
}

.glass-strong {
  background: var(--glass-strong);
  backdrop-filter: blur(calc(var(--blur) * 1.2)) saturate(150%);
  -webkit-backdrop-filter: blur(calc(var(--blur) * 1.2)) saturate(150%);
}

.glow {
  box-shadow: var(--ring), 0 8px 32px rgba(56,189,248,.15);
}

.border-gradient {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    var(--gradient-1) border-box;
  border-radius: var(--radius);
}

.gradient-text {
  background: var(--gradient-3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.neon-underline {
  position: relative;
}

.neon-underline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--gradient-2);
  filter: drop-shadow(0 0 8px rgba(56,189,248,.6));
  border-radius: 2px;
}

.icon-orbit {
  filter: drop-shadow(0 0 12px rgba(56,189,248,.45))
    drop-shadow(0 0 24px rgba(96,165,250,.25));
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, .section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
  text-align: center;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-2);
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: clamp(60px, 10vh, 100px) 0;
}

/* Navigation */
.navbar {
  background: rgba(6,12,24,.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  align-items: right;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(6,12,24,.8);
  border-bottom-color: rgba(56,189,248,.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 900;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(56,189,248,.5));
  flex-shrink: 0;
  z-index: 1002;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  color: var(--text-1);
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 24px;
  transition: all 0.25s ease;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-link i {
  margin-right: 0.5rem;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(56,189,248,.08);
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1002;
  padding: 0.5rem;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--primary);
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section - consolidated and dark glassy */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, rgba(0, 6, 18, 0.95), rgba(0, 12, 28, 0.9));
  overflow: hidden;
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(56,189,248,.06), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(167,139,250,.06), transparent 60%),
    repeating-linear-gradient(to right, rgba(255,255,255,.03) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.02) 0 1px, transparent 1px 120px);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  z-index: 0;
  pointer-events: none;
}
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 8, 20, 0.45), rgba(0, 8, 20, 0.55));
  z-index: 1;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: 2rem 1rem; width: 100%; }
.hero-particles { position: absolute; width: 100%; height: 100%; background: none; filter: blur(2px) saturate(120%); animation: float 20s linear infinite; z-index: 0; }

/* Hero avatar glass card */
.hero-avatar { width: clamp(140px, 18vw, 220px); height: clamp(140px, 18vw, 220px); margin: 1.25rem auto 1.75rem; border-radius: 24px; padding: 8px; display: grid; place-items: center; }
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 12px 40px rgba(2,132,199,.25); }


/* Typewriter Effect */
#typewriter {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.5rem);
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-right: 4px solid var(--primary);
  animation: blink-caret 1s step-end infinite;
  min-height: 1.2em;
  line-height: 1.1;
}

@media (max-width: 480px) {
  #typewriter {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
}


@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* Remove caret after typing is complete */
#typewriter.typing-complete {
    border-right: none;
    animation: none;
}

/* Enhanced hero title styling */
.hero-title {
    margin-bottom: 1rem;
    font-weight: 900;
    color: var(--text-1);
    min-height: clamp(3rem, 10vw, 6rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(56,189,248,.07), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(167,139,250,.07), transparent 60%),
    repeating-linear-gradient(to right, rgba(255,255,255,.04) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 120px);
  mask: linear-gradient(#000, transparent 80%);
  -webkit-mask: linear-gradient(#000, transparent 80%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: none;
  filter: blur(1px) saturate(140%);
  animation: float 20s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 2rem 1rem;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 1rem;
  font-weight: 900;
  color: var(--text-1);
}

.highlight {
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--text-2);
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.hero-university {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 500;
}
/* 1) Gradient ring around avatar */
.hero-avatar {
  position: relative;
  isolation: isolate;
}
.hero-avatar::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  background: conic-gradient(from 0deg,
    rgba(56,189,248,.0) 0%,
    rgba(56,189,248,.85) 20%,
    rgba(167,139,250,.85) 40%,
    rgba(6,182,212,.85) 60%,
    rgba(56,189,248,.85) 80%,
    rgba(56,189,248,.0) 100%);
  filter: blur(10px) saturate(140%);
  animation: orbit 6s linear infinite;
  z-index: -1;
  opacity: .55;
}
@keyframes orbit { to { transform: rotate(360deg); } }

/* 2) Soft film grain for depth (very light) */
#hero::after {
  background:
    linear-gradient(180deg, rgba(0, 8, 20, 0.45), rgba(0, 8, 20, 0.55)),
    url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"120\" height=\"120\" viewBox=\"0 0 120 120\"><filter id=\"n\"><feTurbulence baseFrequency=\"0.8\" numOctaves=\"2\" stitchTiles=\"stitch\"/></filter><rect width=\"120\" height=\"120\" filter=\"url(%23n)\" opacity=\"0.03\"/></svg>') repeat;
  background-size: auto, 160px 160px;
  mix-blend-mode: overlay;
}

/* 3) Slow moving accent lines */
.hero-accent-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mask: linear-gradient(#000, transparent 85%);
  -webkit-mask: linear-gradient(#000, transparent 85%);
}
.hero-accent-lines::before,
.hero-accent-lines::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 2px;
  left: -20%;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.55), rgba(167,139,250,.55), transparent);
  filter: drop-shadow(0 0 12px rgba(56,189,248,.35));
  animation: slideLine 12s linear infinite;
}
.hero-accent-lines::after { top: 30%; animation-delay: -6s; opacity: .6; }
.hero-accent-lines::before { top: 65%; opacity: .35; }
@keyframes slideLine { 0% { transform: translateX(-10%);} 100%{ transform: translateX(10%);} }

/* 4) Typewriter glow pulse */
#typewriter {
  text-shadow:
    0 0 10px rgba(56,189,248,.25),
    0 0 22px rgba(96,165,250,.18);
  position: relative;
}
#typewriter::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: clamp(120px, 36vw, 360px);
  height: 3px;
  background: linear-gradient(90deg, rgba(56,189,248,.0), rgba(56,189,248,.85), rgba(167,139,250,.85), rgba(56,189,248,.0));
  border-radius: 2px;
  filter: drop-shadow(0 0 10px rgba(56,189,248,.5));
  opacity: .75;
  animation: glowLine 2.4s ease-in-out infinite;
}
@keyframes glowLine { 0%,100%{opacity:.25} 50%{opacity:.85} }

/* 5) Compact quick badges row */
.hero-badges {
  display: inline-flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: .75rem auto 0;
}
.hero-badge {
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.35);
  color: var(--text-1);
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.hero-badge:hover {
  transform: translateY(-2px);
  background: rgba(56,189,248,.14);
  box-shadow: 0 8px 20px rgba(56,189,248,.15);
}

/* 6) CTA hover lift + ripple sheen */
.btn-primary, .btn-secondary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after, .btn-secondary::after {
  content: "";
  position: absolute;
  inset: 0% -120% 0% -120%;
  background: radial-gradient(120px 60px at var(--mx, -20%) 50%, rgba(255,255,255,.35), transparent 60%);
  transform: translateX(-100%);
  transition: transform .6s ease;
  opacity: .25;
  pointer-events: none;
}
.btn-primary:hover::after, .btn-secondary:hover::after {
  transform: translateX(0%);
}

/* 7) Subtle parallax lift on scroll */
@media (min-width: 768px) {
  .hero-content { transform: translateY(0); transition: transform .5s ease; }
  body.scrolled-hero .hero-content { transform: translateY(-6px); }
}

.hero-description {
  margin-bottom: 2rem;
}

.hero-description p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 0.5rem;
  color: var(--text-2);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin: 3rem 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--primary);
  font-family: 'Orbitron', sans-serif;
  filter: drop-shadow(0 0 8px rgba(56,189,248,.4));
}

.stat-label {
  display: block;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  color: var(--text-2);
  margin-top: 0.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 48px;
  min-width: 200px;
}

.btn-primary {
  background: var(--gradient-2);
  color: #001018;
  border: none;
  box-shadow: 0 10px 30px rgba(56,189,248,.35);
}

.btn-secondary {
  background: rgba(56,189,248,.05);
  color: var(--text-1);
  border: 1px solid rgba(56,189,248,.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(56,189,248,.5);
}

.btn-secondary:hover {
  background: rgba(56,189,248,.1);
  transform: translateY(-3px);
}

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

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

.about-intro {
  margin-bottom: 2rem;
}

.about-intro p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-2);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-highlights h3 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.highlight-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: var(--glass-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.highlight-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(56,189,248,.4));
}

.highlight-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--text-1);
}

.highlight-item p {
  font-size: 0.9rem;
  color: var(--text-2);
}

.about-sidebar {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.quick-facts h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.fact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
}

.fact-item i {
  color: var(--primary);
  font-size: 1.2rem;
  width: 20px;
}

/* Projects Section */
.featured-project {
  margin-bottom: 4rem;
}

.project-card {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--gradient-2);
  transition: left 0.5s ease;
}

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

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(56,189,248,.5);
}

.project-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, rgba(56,189,248,.08), rgba(167,139,250,.06));
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: #001018;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.project-icon {
  font-size: 2rem;
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(56,189,248,.4));
}

.project-title-section h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--text-1);
}

.project-date {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.project-status {
  margin-left: auto;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

.project-description {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-highlights {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.highlight-tag {
  background: linear-gradient(90deg, rgba(56,189,248,.85), rgba(96,165,250,.85)) !important;
  color: #001018 !important;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(56,189,248,.6) !important;
  text-shadow: none !important;
}

.project-role {
  margin: 1.5rem 0;
}

.project-role h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.project-role ul {
  padding-left: 1.5rem;
}

.project-role li {
  margin-bottom: 0.8rem;
  color: var(--text-2);
  line-height: 1.6;
}

.tech-stack h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  background: linear-gradient(90deg, rgba(56,189,248,.85), rgba(96,165,250,.85)) !important;
  color: #001018 !important;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(56,189,248,.6) !important;
  text-shadow: none !important;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-project, .btn-project-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: 44px;
}

.btn-project {
  background: var(--primary);
  color: #001018;
}

.btn-project-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

/* Timeline */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background: var(--gradient-2);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
  box-shadow: 0 0 10px rgba(56,189,248,.5);
}

.timeline-item {
  padding: 2rem 3rem;
  position: relative;
  background-color: transparent;
  width: 50%;
  margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  width: 25px;
  height: 25px;
  background: var(--primary);
  border: 4px solid var(--bg-1);
  border-radius: 50%;
  top: 30px;
  z-index: 2;
  box-shadow: 0 0 15px rgba(56,189,248,.5);
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -12.5px;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -12.5px;
}

.timeline-content {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.timeline-content:hover {
  background: var(--glass-hover);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

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

.timeline-date {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.timeline-status {
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

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

.timeline-content h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.timeline-content h4 {
  color: var(--text-2);
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 1rem;
}

.timeline-content p {
  color: var(--text-2);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.skills-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.skill-tag {
  background: linear-gradient(90deg, rgba(56,189,248,.85), rgba(96,165,250,.85)) !important;
  color: #001018 !important;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  border: 1px solid rgba(56,189,248,.6) !important;
  text-shadow: none !important;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.skills-category {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.skills-category h3 {
  color: var(--primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(56,189,248,.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(56,189,248,.1);
  transform: translateX(10px);
}

.skill-item i {
  font-size: 1.5rem;
  color: var(--primary);
  width: 30px;
}

.skill-name {
  flex: 1;
  font-weight: 600;
  color: var(--text-1);
}

.skill-level {
  width: 100px;
  height: 8px;
  background: rgba(56,189,248,.2);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-2);
  width: var(--progress);
  border-radius: 10px;
  animation: progressFill 2s ease forwards;
}

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

.soft-skill {
  background: linear-gradient(90deg, rgba(56,189,248,.85), rgba(96,165,250,.85)) !important;
  color: #001018 !important;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  border: 1px solid rgba(56,189,248,.6) !important;
  transition: all 0.3s ease;
  text-shadow: none !important;
}

.soft-skill:hover {
  background: linear-gradient(90deg, rgba(56,189,248,.95), rgba(96,165,250,.95)) !important;
  transform: translateY(-3px);
}

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

.achievement-card {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-2);
}

.achievement-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.achievement-card.academic::before { background: linear-gradient(90deg, #4CAF50, #8BC34A); }
.achievement-card.sports::before { background: linear-gradient(90deg, #FF5722, #FF9800); }
.achievement-card.programming::before { background: linear-gradient(90deg, #2196F3, #03DAC6); }
.achievement-card.leadership::before { background: linear-gradient(90deg, #9C27B0, #E91E63); }
.achievement-card.certifications::before { background: linear-gradient(90deg, #FF9800, #FFC107); }
.achievement-card.projects::before { background: linear-gradient(90deg, #00BCD4, #009688); }

.achievement-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(56,189,248,.4));
}

.achievement-card h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
}

.achievement-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.achievement-item {
  background: rgba(56,189,248,.05);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  color: var(--text-2);
  line-height: 1.5;
}

.achievement-item strong {
  color: var(--primary);
}

/* Education Section */
.education-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.education-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.education-item:hover {
  background: var(--glass-hover);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.education-item.current {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(56,189,248,.08), rgba(167,139,250,.06));
}

.education-year {
  background: var(--primary);
  color: #001018;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  min-width: 120px;
  height: fit-content;
}

.education-content h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.education-content h4 {
  color: var(--text-2);
  margin-bottom: 1rem;
  font-weight: 500;
}

.education-content p {
  color: var(--text-2);
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

/* FIXED: Education highlights text visibility */
.education-highlights .highlight {
  background: linear-gradient(90deg, rgba(56,189,248,.85), rgba(96,165,250,.85)) !important;
  color: #001018 !important;
  -webkit-text-fill-color: #001018 !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  padding: 0.5rem 1rem !important;
  border-radius: 15px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border: 2px solid rgba(56,189,248,.6) !important;
  text-shadow: none !important;
  box-shadow: 0 0 8px 1px rgba(56,189,248,.3) !important;
}

.education-highlights .highlight:hover {
  background: linear-gradient(90deg, rgba(56,189,248,.95), rgba(96,165,250,.95)) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56,189,248,.6) !important;
}

/* Contact Section */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  margin-bottom: 3rem;
}

.contact-text p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-2);
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  box-shadow: var(--shadow);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

.contact-card.linkedin::before { background: #0077B5; }
.contact-card.email::before { background: #EA4335; }
.contact-card.github::before { background: #333; }
.contact-card.location::before { background: #4285F4; }
.contact-card.facebook::before { background: #1877F2; }
.contact-card.instagram::before { background: linear-gradient(45deg, #E4405F, #F77737, #FCCC63, #8B3F99); }

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(56,189,248,.4));
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-info p {
  color: var(--text-2);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.contact-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  color: var(--text-3);
  font-size: 0.9rem;
}

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

.footer-social a {
  color: var(--primary);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  color: var(--accent);
  transform: translateY(-3px);
  filter: drop-shadow(0 0 8px rgba(56,189,248,.4));
}

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

@keyframes progressFill {
  0% { width: 0; }
  100% { width: var(--progress); }
}

/* Performance optimizations */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Fallbacks for no backdrop-filter support */
.no-backdrop .glass,
.no-backdrop .project-card,
.no-backdrop .achievement-card,
.no-backdrop .education-item,
.no-backdrop .skills-category,
.no-backdrop .contact-card,
.no-backdrop .navbar {
  background: rgba(17,24,39,.85);
}

/* Disable animations on mobile for better performance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* FIXED: Scroll-to-top button with bright gradient */
.scroll-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 1200;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  color: #001018;
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(34,211,238,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}

.scroll-to-top:hover {
  background: linear-gradient(90deg, #38bdf8, #2563eb);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(34,211,238,.5);
}

.scroll-to-top i {
  line-height: 1;
  pointer-events: none;
  color: inherit;
}

/* Animation helpers for JS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease;
}

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

/* Hide scrollbar flash while page is loading */
body:not(.loaded) {
  overflow-y: hidden;
}

/* RESPONSIVE DESIGN */

/* Large desktops */
@media (min-width: 1200px) {
  .nav-container {
    max-width: 1400px;
    padding: 0 2rem;
  }

  .navbar-nav {
    gap: 1rem;
  }

  .nav-link {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .container {
    padding: 0 2rem;
  }
}

/* Tablets and medium screens */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 1rem;
  }

  .navbar-nav {
    gap: 0.3rem;
  }

  .nav-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

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

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

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

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

  .achievements-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar-nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(6,12,24,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 3rem 0;
    transition: right 0.3s ease;
    gap: 1rem;
  }

  .navbar-nav.active {
    right: 0;
  }

  .nav-link {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    width: 80%;
    text-align: center;
    border: 1px solid var(--glass-border);
    margin: 0.5rem 0;
    min-height: 48px;
  }

  .nav-link:hover {
    background: rgba(56,189,248,.2);
    border-color: var(--primary);
  }

  /* Tone down transparency on small screens */
  .glass,
  .project-card,
  .achievement-card,
  .education-item,
  .skills-category,
  .contact-card,
  .navbar {
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    background: rgba(6,12,24,.65);
  }

  .hero-stats {
    gap: 1rem;
    margin: 2rem 0;
  }

  .stat-item {
    min-width: 100px;
  }

  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 1rem 1rem 1rem 60px;
  }

  .timeline-item .timeline-marker {
    left: 7.5px !important;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

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

  .skills-container {
    grid-template-columns: 1fr;
  }

  .education-item {
    flex-direction: column;
    gap: 1.5rem;
  }

  .education-year {
    align-self: flex-start;
    width: 100%;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

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

/* Small mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .nav-container {
    padding: 0 0.75rem;
  }

  .navbar-nav {
    padding: 2rem 0;
  }

  .nav-link {
    font-size: 1rem;
    padding: 1rem 1.5rem;
    width: 90%;
  }

  .section {
    padding: 60px 0;
  }

  .hero-buttons {
    gap: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 1rem 1.5rem;
    min-width: auto;
    width: 100%;
  }

  .about-content,
  .skills-container {
    gap: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

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

/* Very small screens */
@media (max-width: 320px) {
  .container {
    padding: 0 0.5rem;
  }

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

  .project-card,
  .achievement-card,
  .education-item {
    padding: 1.5rem;
  }

  .timeline-item {
    padding: 1rem 0.5rem 1rem 50px;
  }
}

/* Landscape orientation mobile */
@media (max-width: 768px) and (orientation: landscape) {
  #hero {
    min-height: 80vh;
  }

  .hero-content {
    padding: 1rem;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  .section {
    padding: 40px 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-particles,
  .hamburger,
  .scroll-to-top {
    display: none !important;
  }

  * {
    background: white !important;
    color: black !important;
  }
}
