/* =========================================================
   BHAGYA NAVODYANI PORTFOLIO — MAIN STYLESHEET
   Author: Generated for Bhagya Navodyani
   Design: Glassmorphism · Dark/Light Mode · Syne + DM Sans
   ========================================================= */

/* ── CSS CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  --font-display: 'Poppins', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Gradient accent */
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --grad-glow: linear-gradient(135deg, rgba(99,102,241,.4) 0%, rgba(168,85,247,.4) 100%);

  /* Timing */
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── DARK THEME (default) ───────────────────────────────── */
[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-2: #111118;
  --surface: rgba(255,255,255,0.05);
  --surface-hover: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.15);
  --text-primary: #f0f0f8;
  --text-secondary: #9090b0;
  --text-muted: #5c5c7a;
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --glow: 0 0 60px rgba(99,102,241,0.15);
  --education-card-bg: #1e293b;
  --education-card-text: #f8fafc;
  --education-card-border: #374151;
}

/* ── LIGHT THEME ─────────────────────────────────────────── */
[data-theme="light"] {
  --bg: #f5f5fa;
  --bg-2: #ebebf5;
  --surface: rgba(255,255,255,0.7);
  --surface-hover: rgba(255,255,255,0.9);
  --border: rgba(0,0,0,0.07);
  --border-bright: rgba(0,0,0,0.14);
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
  --glow: 0 0 60px rgba(99,102,241,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

/* ── UTILITY ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  transition: background var(--transition), border var(--transition);
}

.glass:hover {
  background: var(--surface-hover);
  border-color: var(--border-bright);
}

/* ── GRADIENT TEXT ───────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #c471f5 75%, #667eea 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
  animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section-header {
  margin-bottom: 60px;
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 6px 16px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 50px;
  white-space: nowrap;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 68px;
  background: rgba(10,10,15,0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="light"] .navbar {
  background: rgba(245,245,250,0.7);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--surface);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  position: relative;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.theme-icon {
  font-size: 1.2rem;
  line-height: 1;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.theme-icon.sun {
  color: #FFD700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.theme-icon.moon {
  color: #E0E7FF;
  text-shadow: 0 0 8px rgba(224, 231, 255, 0.5);
}

/* Light mode theme toggle */
[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .theme-icon.sun {
  color: #FF8C00;
  text-shadow: 0 0 8px rgba(255, 140, 0, 0.5);
}

[data-theme="light"] .theme-icon.moon {
  color: #4A5568;
  text-shadow: 0 0 8px rgba(74, 85, 104, 0.5);
}

.theme-icon.sun { opacity: 0; transform: translateY(10px); }
.theme-icon.moon { opacity: 1; transform: translateY(0); }
[data-theme="light"] .theme-icon.sun { opacity: 1; transform: translateY(0); }
[data-theme="light"] .theme-icon.moon { opacity: 0; transform: translateY(-10px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}
.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-link {
  padding: 14px 32px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
/* ── UPDATED HERO LAYOUT ───────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 80px;
}

.hero-content {
  flex: 1;
  text-align: left;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: -200px; left: -100px;
  animation: float 8s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #a855f7, transparent);
  bottom: -100px; right: -100px;
  animation: float 10s ease-in-out infinite reverse;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 7px 16px;
  background: linear-gradient(135deg, rgba(34,197,94,0.15) 0%, rgba(34,197,94,0.25) 100%);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 50px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(34,197,94,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.hero-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shine 3s ease-in-out infinite;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 4px #22c55e; }
  50% { box-shadow: 0 0 12px #22c55e, 0 0 20px rgba(34,197,94,0.3); }
}
@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── NEW PROFILE CIRCLE STYLES ─────────────────────────── */
.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end; /* Aligns to the right */
}

.profile-circle {
  width: 320px; /* Size of the circle */
  height: 320px;
  border-radius: 50%;
  padding: 8px; /* Space for the glowing border */
  background: var(--grad-primary); /* This creates a gradient border */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
  animation: float 6s ease-in-out infinite; /* Floating effect */
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--bg); /* Separates image from the gradient border */
}

.typewriter {
  color: var(--accent);
  border-right: 3px solid var(--accent);
  animation: blink 0.8s step-end infinite;
  white-space: nowrap;
}
@keyframes blink {
  0%, 100% { border-color: var(--accent); }
  50% { border-color: transparent; }
}

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

/* ── ABOUT SECTION STYLES ───────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.2;
  word-wrap: break-word;
}

.about-text p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 100%;
  word-wrap: break-word;
}

.about-info {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1.5vw, 0.95rem);
  word-wrap: break-word;
}

.info-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

.highlight-text {
  font-weight: 700;
  color: var(--accent);
}

/* ── NEW EDUCATION TIMELINE ──────────────────────────── */
.edu-timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Vertical Line with Gradient */
.edu-line {
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #00d2ff, #ffd700, #ff007b, #43e97b);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.edu-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.edu-card-item {
  position: relative;
  padding-left: 80px; /* Space for line and dots */
  display: flex;
  align-items: center;
}

/* Glowing Dot on Line */
.edu-dot {
  position: absolute;
  left: 21px;
  width: 22px;
  height: 22px;
  background: var(--bg);
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 15px var(--accent-color);
}

/* Glassmorphism Card with Neon Border */
.edu-card.glass {
  width: 100%;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--accent-color); /* Neon Highlight */
  border-radius: 16px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Light mode specific card styling */
[data-theme="light"] .edu-card.glass {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--accent-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.edu-card.glass:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 
              inset 0 0 20px rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .edu-card.glass:hover {
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 
              inset 0 0 20px rgba(0, 0, 0, 0.02);
}

/* Inner Text Styles */
.edu-year {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.edu-degree {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
}

.edu-school {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .edu-line { left: 15px; }
  .edu-dot { left: 6px; }
  .edu-card-item { padding-left: 50px; }
  .edu-degree { font-size: 1.1rem; }
}




/* ── SKILLS FULL GRID ─────────────────────────────── */
.skills-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.skill-category {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.skill-cat-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-item-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.skill-item-name span:first-child {
  font-weight: 500;
}

.skill-item-name span:last-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
}

.skill-bar {
  height: 6px;
  background: var(--bg-2);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #764ba2);
  border-radius: 3px;
  width: var(--skill-pct);
  transition: width 1s ease-out;
  position: relative;
  overflow: hidden;
}

/* Pink shine animation for skill bars */
.skill-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 182, 193, 0.6) 30%,
    rgba(255, 105, 180, 0.8) 50%, 
    rgba(255, 182, 193, 0.6) 70%,
    transparent 100%);
  animation: shine 2.5s ease-in-out infinite;
  filter: blur(1px);
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: -100%;
  }
}

.skill-fill[data-skill="100"] {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}

.skill-fill[data-skill="95"] {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}

.skill-fill[data-skill="92"] {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}

.skill-fill[data-skill="90"] {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}

.skill-fill[data-skill="85"] {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}

.skill-fill[data-skill="80"] {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}

.skill-fill[data-skill="75"] {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}

.skill-fill[data-skill="70"] {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}

.skill-fill[data-skill="65"] {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}

.skill-fill[data-skill="60"] {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}

.skill-fill[data-skill="55"] {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}

.skill-fill[data-skill="50"] {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}

/* ── MOBILE RESPONSIVENESS ────────────────────────────── */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .skills-full-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 120px;
  }
  
  .hero-image-wrapper {
    justify-content: center;
    margin-bottom: 20px;
  }

  .profile-circle {
    width: 220px;
    height: 220px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-bright);
}

/* Profile Card */
.hero-visual {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}
.profile-card {
  width: 320px;
  height: auto;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow), var(--glow);
  transition: transform var(--transition);
  pointer-events: auto;
}
.profile-card:hover { transform: translateY(-8px); }

.profile-image-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 32px rgba(99,102,241,0.3);
}
.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.profile-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.c-kw { color: #c792ea; }
.c-cls { color: #82aaff; }
.c-str { color: #c3e88d; }
.c-comment { color: #546e7a; }

/* ═══════════════════════════════════════════════════════════
   EXPERIENCE SECTION
═══════════════════════════════════════════════════════════ */
.experience-section { background: var(--bg-2); }

.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #6366f1, #a855f7, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-dot {
  position: absolute;
  left: -35px; top: 24px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.3);
}
.timeline-dot.pulse {
  animation: dot-pulse 2.5s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(99,102,241,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(99,102,241,0.1); }
}

.timeline-content {
  padding: 32px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.exp-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 8px;
}
/* ── EXPERIENCE CARD REDESIGN ────────────────────────── */
.exp-card.glass {
  padding: 0; /* Removing default padding to control internal spacing */
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-card-header {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.exp-info-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.exp-logo-wrap {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

/* Font Resizing for Title */
.exp-role-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.4rem); /* Responsive sizing */
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.exp-company-name {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Toggle Button Styling */
.exp-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.toggle-icon {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent);
  display: inline-block;
  transform: rotate(180deg); /* Points down initially */
  transition: transform 0.4s ease;
}

/* Collapsible Content Logic */
.exp-collapsible-content {
  max-height: 0;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-inner-padding {
  padding: 0 32px 32px 102px; /* Aligned with text, not logo */
}

/* Active State (When Opened) */
.exp-card.active .exp-collapsible-content {
  max-height: 880px; /* Increased from 800px for larger card */
  opacity: 1;
}

.exp-card.active .toggle-icon {
  transform: rotate(0deg); /* Points up when open */
}

.exp-card.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .exp-inner-padding { padding: 0 24px 24px 24px; }
  .exp-info-main { gap: 12px; }
}
/* ── INTRA-LINK SPOTLIGHT STYLES ────────────────────── */
.project-name-highlight {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

.project-context-box {
  background: rgba(99, 102, 241, 0.05);
  border-left: 3px solid var(--accent);
  padding: 16px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Feature Spotlight Grid */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Increased min-width for better look with 3 items */
  gap: 20px;
  margin-top: 12px;
}

.spotlight-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  transition: transform 0.3s ease;
}

.spotlight-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.spotlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.spotlight-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* High-End Tech Pills */
.tech-stack-spotlight {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tech-pill {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}

.tech-pill.react { color: #61dafb; border-color: #61dafb33; }
.tech-pill.java { color: #f89b29; border-color: #f89b2933; }
.tech-pill.spring { color: #6db33f; border-color: #6db33f33; }
.tech-pill.postgres { color: #336791; border-color: #33679133; }
.tech-pill.websocket { color: #a855f7; border-color: #a855f733; }

/* ── FINAL FULL-IMAGE SLIDER FIX ────────────────── */
.browser-frame {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0f111a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    width: 100%;
}

/* Browser Top Bar - Updated Design */
.browser-top-bar {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: space-between;
}

.window-dots { 
    display: flex; 
    gap: 8px; 
}

.dot { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
}
.dot.r { background: #ff5f56; }
.dot.y { background: #ffbd2e; }
.dot.g { background: #27c93f; }

.browser-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.image-scroller-main {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 800px; /* Increased from 700px to accommodate larger card size */
    overflow: hidden;
    background: transparent;
}

.scroller-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    pointer-events: none;
    z-index: 40;
}

.nav-arrow {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: var(--grad-primary);
    transform: scale(1.1);
    border-color: white;
}

.project-highlight {
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.project-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.key-features h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.check {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid;
}
.tech-badge.react { color: #61dafb; border-color: rgba(97,218,251,.3); background: rgba(97,218,251,.08); }
.tech-badge.java { color: #f89b29; border-color: rgba(248,155,41,.3); background: rgba(248,155,41,.08); }
.tech-badge.spring { color: #6db33f; border-color: rgba(109,179,63,.3); background: rgba(109,179,63,.08); }
.tech-badge.pg { color: #336791; border-color: rgba(51,103,145,.3); background: rgba(51,103,145,.1); }
.tech-badge.ws { color: #a855f7; border-color: rgba(168,85,247,.3); background: rgba(168,85,247,.08); }
.tech-badge.jwt { color: #818cf8; border-color: rgba(129,140,248,.3); background: rgba(129,140,248,.08); }

/* ═══════════════════════════════════════════════════════════
   SKILLS HOME
═══════════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.skill-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.skill-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.skill-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.skills-cta { text-align: center; }

/* ═══════════════════════════════════════════════════════════
   PROJECTS PREVIEW
═══════════════════════════════════════════════════════════ */
.projects-preview { background: var(--bg-2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

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

.project-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all var(--transition);
  color: var(--text-primary);
  border-radius: 16px;
  overflow: hidden;
  height: 450px;
  width: 100%;
}

.project-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow), var(--glow); 
}

.project-card-image {
  width: 100%;
  height: 200px;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.project-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid;
}
.project-tag.android { color: #3ddc84; border-color: rgba(61,220,132,.3); background: rgba(61,220,132,.08); }
.project-tag.web { color: #60a5fa; border-color: rgba(96,165,250,.3); background: rgba(96,165,250,.08); }
.project-tag.mern { color: #a855f7; border-color: rgba(168,85,247,.3); background: rgba(168,85,247,.08); }
.project-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.project-card:hover .project-arrow { color: var(--accent); transform: translate(3px,-3px); }
.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.project-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.project-techs span {
  font-size: 0.72rem;
  font-weight: 500;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 10px;
  border-radius: 50px;
}

html[data-theme="light"] .project-techs span {
  color: #166534;
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(22, 163, 74, 0.45);
}

/* GitHub Icon Container */
.github-icon-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* GitHub Icon Styling in Project Cards */
.github-icon-container .github-card-link {
  color: var(--text-secondary);
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
}

.github-icon-container .github-card-link:hover {
  color: var(--gradient-text);
  transform: translateY(-2px);
}

/* Card Layout Fixes */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensures all cards in a row have equal height */
  background: var(--glass-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1; /* This is crucial: it makes the content area fill the card */
}

/* Header Alignment */
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.header-flex h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: 'Syne', sans-serif;
  color: var(--text-primary);
  flex: 1;
}

/* GitHub Icon Styling */
.github-link {
  color: var(--text-secondary);
  margin-left: 10px;
  transition: color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
}

.github-link:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Description Fix */
.project-card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  flex-grow: 1; /* This pushes the card-footer to the absolute bottom */
}

/* Tech Tags Footer */
.card-footer {
  margin-top: auto; /* Double protection to stay at the bottom */
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tags span {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: rgba(67, 233, 123, 0.1);
  border: 1px solid rgba(67, 233, 123, 0.2);
  color: #43e97b;
  border-radius: 50px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 260px;
}
.footer-links {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-bright);
  transform: translateY(-3px);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Page-specific active nav */
.page-about .nav-link[href*="about"],
.page-projects .nav-link[href*="projects"],
.page-contact .nav-link[href*="contact"] {
  color: var(--text-primary);
  background: var(--surface);
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════════════════════ */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-info { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.info-item svg { color: var(--accent); flex-shrink: 0; }

.education-cards { display: flex; flex-direction: column; gap: 16px; }
.edu-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-primary);
  border-radius: 0 0 0 20px;
}
.edu-year {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.edu-degree {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.edu-school {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Full Skills Page */
.skills-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.skill-category {
  padding: 28px;
}
.skill-cat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.skill-items { display: flex; flex-direction: column; gap: 14px; }
.skill-item { display: flex; flex-direction: column; gap: 6px; }
.skill-item-name {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.skill-bar {
  height: 5px;
  background: var(--surface-hover);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--grad-primary);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1) 0.3s;
}
.skill-bar.animated .skill-fill { width: var(--skill-pct); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.cert-card {
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all var(--transition);
}
.cert-card:hover { transform: translateY(-4px); }
.cert-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.cert-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cert-issuer {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS PAGE
═══════════════════════════════════════════════════════════ */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-tab {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.filter-tab:hover, .filter-tab.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
}

.projects-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

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

.proj-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
  color: var(--text-primary);
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow), var(--glow); }

.proj-card-image {
  width: 100%;
  height: 250px;
  border-radius: 0;
  overflow: hidden;
  order: -1;
}

.proj-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.proj-card:hover .proj-card-image img {
  transform: scale(1.05);
}

/* Project card content padding */
.proj-card > *:not(.proj-card-image) {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.proj-card-top { display: flex; justify-content: space-between; align-items: center; }
.proj-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.proj-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
.proj-features { margin-top: 4px; }
.proj-features li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
}
.proj-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.project-detail-wrap {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.project-back:hover { color: var(--text-primary); }

.project-detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 900px) {
  .project-detail-hero {
    grid-template-columns: 1fr;
  }
}

.project-cover {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.project-cover img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.project-detail-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.3rem;
  line-height: 1.05;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.project-detail-desc {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.95rem;
}

.project-meta {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.40);
  color: #86efac;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.08);
}

.tech-pill:hover {
  background: rgba(34, 197, 94, 0.20);
  border-color: rgba(34, 197, 94, 0.55);
}

html[data-theme="light"] .tech-pill {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(22, 163, 74, 0.45);
  color: #166534;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.12);
}

html[data-theme="light"] .tech-pill:hover {
  background: rgba(34, 197, 94, 0.24);
  border-color: rgba(22, 163, 74, 0.60);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  transition: all var(--transition);
}

.btn-small.primary {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
}

.btn-small:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.project-section {
  margin-top: 26px;
}

.project-section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

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

.feature-box {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.feature-list {
  margin: 0;
  padding-left: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.92rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.media-tile {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  min-height: 160px;
}

.media-tile .media-placeholder {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-socials { display: flex; gap: 12px; margin-top: 32px; }

.contact-form-wrap { padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  background: var(--surface-hover);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.45);
}
.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  color: #22c55e;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 60px;
    gap: 56px;
  }
  .hero-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .hero-profile-image {
    position: static;
    transform: none;
    right: auto;
    top: auto;
    margin: 16px auto 24px;
    display: flex;
    justify-content: center;
  }
  .hero-circle-img {
    width: 100px;
    height: 100px;
  }
  .hero-visual {
    position: static;
    transform: none;
    right: auto;
    top: auto;
    pointer-events: auto;
  }
  .profile-card {
    width: 320px;
    margin: 0 auto;
  }
  .hero-sub, .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .features-list { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(4, 1fr); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 72px 0; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 20px; }
  .exp-header { flex-direction: column; }
  .features-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; gap: 24px; text-align: center; }
}

/* Learning & Certifications Section */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Light mode glass effect */
[data-theme="light"] .cert-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Glass shine effect */
.cert-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--gradient-start);
}

.cert-card:hover::before {
  opacity: 1;
}

.cert-card:hover::after {
  opacity: 1;
}

.cert-pdf-link {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.10);
  border: 1px solid rgba(96, 165, 250, 0.25);
  transition: all 0.25s ease;
}

.cert-pdf-link:hover {
  transform: translateY(-2px);
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.40);
  box-shadow: 0 10px 24px rgba(96, 165, 250, 0.18);
}

html[data-theme="light"] .cert-pdf-link {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.20);
}

html[data-theme="light"] .cert-pdf-link:hover {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.30);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

.cert-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.cert-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.cert-institution {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Special Golden Styling for AAT Certificate */
.cert-card.golden {
  border: 2px solid #FFD700;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.1) 0%, 
    rgba(255, 223, 0, 0.05) 50%, 
    rgba(255, 215, 0, 0.1) 100%);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
  position: relative;
}

.cert-card.golden::before {
  background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
  opacity: 1;
  height: 4px;
}

.cert-card.golden::after {
  content: '⭐';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.2rem;
  color: #FFD700;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.cert-card.golden:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255, 215, 0, 0.3);
  border-color: #FFA500;
}

.cert-card.golden .cert-icon {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  animation: golden-pulse 2s ease-in-out infinite;
}

.cert-card.golden .cert-content h3 {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  font-weight: 700;
}

/* Light mode override for AAT certificate title */
[data-theme="light"] .cert-card.golden .cert-content h3 {
  color: #000000;
  text-shadow: none;
}

.cert-card.golden .cert-institution {
  color: #FFA500;
  font-weight: 500;
}

@keyframes golden-pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
  }
}

/* Responsive adjustments for certifications */
@media (max-width: 768px) {
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }
  
  .cert-card {
    padding: 20px;
    gap: 12px;
  }
  
  .cert-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }
  
  .cert-content h3 {
    font-size: 1rem;
  }
  
  .cert-institution {
    font-size: 0.85rem;
  }
}

/* Certifications CTA Button */
.certifications-cta {
  text-align: center;
  margin-top: 32px;
}

.certifications-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.certifications-cta .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.certifications-cta .btn:hover::before {
  left: 100%;
}

.certifications-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
}

/* Contact Navigation Section */
.contact-nav-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.contact-nav-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.contact-nav-wrapper {
  text-align: center;
}

.contact-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.contact-nav-btn:hover::before {
  opacity: 1;
}

.btn-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.btn-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Responsive for contact nav */
@media (max-width: 768px) {
  .contact-nav-section {
    padding: 30px 0;
  }
  
  .contact-nav-btn {
    padding: 14px 32px;
    font-size: 1rem;
  }
  
  .btn-icon {
    font-size: 1.2rem;
  }
}
