/* ==========================================================================
   MUHAMMAD ABUBAKAR |
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CORE DESIGN SYSTEM & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Deep Obsidian & Futuristic Neon Glows */
  --bg-dark: #030712;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-surface: rgba(255, 255, 255, 0.03);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);

  /* Primary Gradient Accents */
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;

  --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-emerald: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  --gradient-accent-text: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 100%);

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Borders & Glass Dividers */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.4);
  --border-glow: rgba(99, 102, 241, 0.5);

  /* Shadows & Glow Effects */
  --glow-cyan: 0 0 35px rgba(56, 189, 248, 0.25);
  --glow-indigo: 0 0 35px rgba(99, 102, 241, 0.3);
  --glow-purple: 0 0 35px rgba(139, 92, 246, 0.3);
  --glow-box: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.1);

  /* Typography Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions & Timing */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Standardized Typographic Scale System (8 tokens) */
  --fs-xs: 0.75rem;    /* 12px - Badges, timestamps, captions */
  --fs-sm: 0.875rem;   /* 14px - Chips, metadata, secondary text */
  --fs-base: 1rem;     /* 16px - Body text, buttons, inputs, links */
  --fs-md: 1.125rem;   /* 18px - Lead text, subheaders, category titles */
  --fs-lg: 1.25rem;    /* 20px - Card titles, modal headers */
  --fs-xl: 1.5rem;     /* 24px - Large section sub-titles, icons */
  --fs-2xl: 2.25rem;   /* 36px - Section titles */
  --fs-3xl: 3.5rem;    /* 56px - Hero headline */

  /* Standardized Border Radius System (5 tokens) */
  --radius-xs: 4px;    /* Badges, tags, scrollbars */
  --radius-sm: 8px;    /* Inputs, small cards, channel links */
  --radius-md: 16px;   /* Cards, chat windows, modals */
  --radius-lg: 24px;   /* Large panels */
  --radius-full: 9999px; /* Pills & circles */

  /* Layout Spacing */
  --container-max-width: 1240px;
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  overflow-x: hidden;
}

/* Custom Selection */
::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #ffffff;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #030712;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  border: 2px solid #030712;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo);
}

/* Container Utility */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.scroll-to-top {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: white;
  box-shadow: var(--glow-cyan);
  cursor: pointer;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.scroll-to-top:hover {
  box-shadow: var(--glow-purple);
  transform: translateX(-50%) translateY(-2px);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   3. MAGNETIC CURSOR & AMBIENT BACKDROP
   -------------------------------------------------------------------------- */
#magnetic-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  backdrop-filter: blur(1px);
}

#magnetic-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 12px var(--accent-cyan);
}

#magnetic-cursor.visible,
#magnetic-cursor-dot.visible {
  opacity: 1;
}

#magnetic-cursor.cursor-magnetic-hover {
  width: 55px;
  height: 55px;
  background-color: rgba(56, 189, 248, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

@media (hover: none), (pointer: coarse) {
  #magnetic-cursor,
  #magnetic-cursor-dot {
    display: none !important;
  }

  a,
  button,
  .btn,
  .nav-link,
  .skills-category-card,
  .project-card,
  .highlight-card,
  .timeline-card,
  .channel-link,
  .skill-chip,
  .avatar-frame {
    -webkit-tap-highlight-color: transparent;
  }

  .btn:hover,
  .nav-link:hover,
  .avatar-frame:hover,
  .skills-category-card:hover,
  .project-card:hover,
  .highlight-card:hover,
  .timeline-card:hover,
  .channel-link:hover,
  .skill-chip:hover,
  .project-view-btn:hover {
    transform: none;
    box-shadow: none;
  }

  .skills-category-card:hover::before,
  .project-card:hover::before,
  .highlight-card:hover::before {
    opacity: 0;
  }
}

/* Ambient Glow Orbs */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: pulseGlow 12s ease-in-out infinite alternate;
}

.bg-glow-1 {
  top: -100px;
  left: 15%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(99, 102, 241, 0.2) 60%, transparent 100%);
}

.bg-glow-2 {
  top: 35%;
  right: -5%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(236, 72, 153, 0.15) 60%, transparent 100%);
  animation-delay: -6s;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.15) translate(30px, -20px);
    opacity: 0.55;
  }
  100% {
    transform: scale(0.95) translate(-20px, 30px);
    opacity: 0.35;
  }
}

/* Grid Backdrop Pattern */
.grid-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION BAR (GLASSMORPHISM NAVBAR)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.logo-accent {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseLogo 2s infinite alternate;
}

@keyframes pulseLogo {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --------------------------------------------------------------------------
   5. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.5), var(--glow-cyan);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION & 3D CSS HOLOGRAM
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  background: var(--gradient-accent-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Futuristic 3D Hologram Avatar Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  animation: floatGlow 6s ease-in-out infinite alternate;
}

.avatar-frame {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  padding: 5px;
  background: var(--gradient-primary);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
  z-index: 2;
  transition: transform var(--transition-slow);
}

.avatar-frame:hover {
  transform: scale(1.04) rotate(2deg);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: contrast(1.05) brightness(1.02);
}

/* Orbiting Rings */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.35);
  pointer-events: none;
}

.ring-1 {
  width: 310px;
  height: 310px;
  border-color: rgba(56, 189, 248, 0.4);
  animation: rotateOrbit 20s linear infinite;
}

.ring-2 {
  width: 360px;
  height: 360px;
  border-color: rgba(139, 92, 246, 0.3);
  animation: rotateOrbitReverse 25s linear infinite;
}

.ring-1::before, .ring-2::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

@keyframes rotateOrbit {
  0% { transform: rotate(0deg) rotateX(25deg); }
  100% { transform: rotate(360deg) rotateX(25deg); }
}

@keyframes rotateOrbitReverse {
  0% { transform: rotate(360deg) rotateX(-25deg); }
  100% { transform: rotate(0deg) rotateX(-25deg); }
}

@keyframes floatGlow {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-15px) scale(1.08); }
}

/* --------------------------------------------------------------------------
   7. SECTION HEADERS & GENERAL SECTION LAYOUT
   -------------------------------------------------------------------------- */
section {
  padding: 3.5rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  display: inline-block;
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 15px var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   8. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.about-text {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--glow-box);
  position: relative;
}

.lead-text {
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.highlight-card:hover {
  border-color: var(--border-active);
  transform: translateY(-5px);
  box-shadow: var(--glow-box);
}

.highlight-icon {
  width: 55px;
  height: 55px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.highlight-info h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.highlight-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. SKILLS SECTION (TECHNICAL MATRIX SPOTLIGHT CARDS)
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.skills-category-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
  overflow: hidden;
}

/* Spotlight Effect via CSS Variables */
.skills-category-card::before,
.project-card::before,
.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(56, 189, 248, 0.12),
    transparent 40%
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.skills-category-card:hover::before,
.project-card:hover::before,
.highlight-card:hover::before {
  opacity: 1;
}

.skills-category-card:hover {
  border-color: var(--border-active);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5), var(--glow-cyan);
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.category-title i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.skill-chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.skill-chip:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* --------------------------------------------------------------------------
   10. PROJECTS SECTION (3D SPOTLIGHT GRID CARDS)
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--glow-box), 0 0 25px rgba(99, 102, 241, 0.25);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-xs);
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.project-card-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1 1 auto;
  position: relative;
  z-index: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.project-card-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.project-view-btn {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.project-view-btn i {
  transition: transform var(--transition-fast);
}

.project-view-btn:hover {
  color: #ffffff;
}

.project-view-btn:hover i {
  transform: translateX(4px);
}

.project-tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   11. TIMELINE (EXPERIENCE & EDUCATION SECTIONS)
   -------------------------------------------------------------------------- */
.timeline-container {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-indigo) 50%, rgba(255, 255, 255, 0.05) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 2;
  transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-cyan);
  transform: scale(1.25);
  box-shadow: 0 0 20px var(--accent-cyan);
}

.timeline-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-cyan);
}

.timeline-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  border-color: var(--border-active);
  transform: translateX(8px);
  box-shadow: var(--glow-box);
}

.institute-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.timeline-org {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.timeline-org a {
  color: var(--accent-indigo);
  transition: color var(--transition-fast);
}

.timeline-org a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   12. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.contact-info p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.channel-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(16px);
  transition: all var(--transition-fast);
}

.channel-link:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: var(--glow-box);
}

.channel-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;

  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);

  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

/* Make all logos/icons standard size */
.channel-icon svg,
.channel-icon img,
.channel-icon i {
  width: 20px;
  height: 20px;
  font-size: 20px;
  display: block;
  object-fit: contain;
}

.channel-link-linkedin .channel-icon {
  background: rgba(10, 102, 194, 0.15);
  border-color: rgba(10, 102, 194, 0.4);
  color: #0a66c2;
}

.channel-link-github .channel-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.channel-details {
  display: flex;
  flex-direction: column;
}

.channel-lbl {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.channel-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Contact Form Card */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--glow-box);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
}

.form-status.success {
  color: var(--accent-emerald);
  padding: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   14. ANIMATIONS & SCROLL REVEAL UTILITIES
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in-up {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE DESIGN (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

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

@media (max-width: 768px) {
  .ambient-glow,
  .grid-backdrop {
    display: none;
  }

  section {
    padding: 3rem 0;
  }

  .hero-section {
    min-height: auto;
    padding: 6.5rem 0 3rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero-subtitle {
    font-size: clamp(1.2rem, 6vw, 1.7rem);
  }

  .hero-desc {
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem;
    border-radius: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: right var(--transition-normal);
  }

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

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

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

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

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

  .contact-info,
  .contact-form-card,
  .contact-channels {
    min-width: 0;
    width: 100%;
  }

  .contact-channels {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }

  .channel-link {
    width: auto;
    display: inline-flex;
    align-items: center;
  }

  .channel-details {
    min-width: 0;
    flex: 1 1 0;
  }

  .channel-val {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline::before {
    left: 9px;
  }

  .timeline-dot {
    left: -1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .avatar-wrapper {
    width: 260px;
    height: 260px;
  }

  .avatar-frame {
    width: 200px;
    height: 200px;
  }

  .ring-1 { width: 250px; height: 250px; }
  .ring-2 { width: 290px; height: 290px; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .navbar {
    padding: 1rem 0;
  }

  .nav-logo {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .nav-links {
    width: 88vw;
    max-width: none;
    padding: 2.75rem 1.5rem;
  }

  .hero-section {
    padding-top: 6rem;
  }

  .hero-actions {
    gap: 0.9rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }

  .timeline-card {
    flex-direction: column;
    align-items: flex-start;
  }

 .contact-form-card,
.project-card,
.skills-category-card,
.highlight-card,
.timeline-card {
  padding: 1.25rem;
}

  .contact-info h4,
  .contact-info p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .project-card-header {
    align-items: flex-start;
  }

  .project-view-btn {
    white-space: nowrap;
  }

  .avatar-wrapper {
    width: 220px;
    height: 220px;
  }

  .avatar-frame {
    width: 170px;
    height: 170px;
  }

  .ring-1 { width: 220px; height: 220px; }
  .ring-2 { width: 250px; height: 250px; }
}

/* --------------------------------------------------------------------------
   17. NAVBAR & HERO SPECIAL ACTION BUTTONS
   -------------------------------------------------------------------------- */
.nav-pdf-btn {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0.04));
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  color: #38bdf8 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.nav-pdf-btn i {
  font-size: 0.85rem;
  color: #38bdf8;
  transition: transform var(--transition-fast);
}

.nav-pdf-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(56, 189, 248, 0.12));
  border-color: #38bdf8;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.nav-pdf-btn:hover i {
  color: #ffffff;
  transform: scale(1.15);
}

.btn-pdf {
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.btn-pdf:hover {
  background: rgba(56, 189, 248, 0.15);
  box-shadow: var(--glow-cyan);
}

.btn-import {
  border-color: rgba(139, 92, 246, 0.4);
  color: #c084fc;
}

.btn-import:hover {
  background: rgba(139, 92, 246, 0.15);
  box-shadow: var(--glow-purple);
}

/* --------------------------------------------------------------------------
   18. PROFILE & RESUME HUB MODAL STYLES
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 650px;
  max-height: min(85vh, 720px);
  margin: auto;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), var(--glow-cyan);
  overflow: hidden;
  transform: scale(0.94);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-icon {
  font-size: 1.25rem;
  color: var(--accent-cyan);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.modal-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.modal-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.modal-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.modal-tab.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.modal-tab-content {
  display: none;
}

.modal-tab-content.active {
  display: block;
  animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Drag & Drop Zone */
.drop-zone {
  border: 2px dashed rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  background: rgba(56, 189, 248, 0.02);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-normal);
  margin-bottom: 1.25rem;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: var(--glow-cyan);
}

.drop-icon {
  font-size: 2.2rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  transition: transform var(--transition-fast);
}

.drop-zone:hover .drop-icon {
  transform: translateY(-4px);
}

.drop-text {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.drop-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.modal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 700;
}

.modal-divider::before, .modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.modal-divider span {
  padding: 0 0.75rem;
}

.json-textarea-wrapper textarea {
  width: 100%;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-fast);
}

.json-textarea-wrapper textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.btn-danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Export Cards */
.export-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.export-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.export-card:hover {
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.05);
}

.export-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.export-card-info {
  flex: 1;
}

.export-card-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.export-card-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.modal-toast {
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  display: none;
  border-top: 1px solid transparent;
}

.modal-toast.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.modal-toast.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* PDF Export Template (Rendered cleanly for HTML2PDF) */
#pdf-export-container {
  display: none;
  width: 794px; /* A4 standard width at 96 DPI */
  background: #ffffff;
  color: #0f172a;
  font-family: 'Inter', sans-serif;
  padding: 36px 42px;
  box-sizing: border-box;
}

.pdf-header {
  border-bottom: 2px solid #38bdf8;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.pdf-name {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}

.pdf-title {
  font-size: 16px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 8px;
}

.pdf-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: #475569;
}

.pdf-section {
  margin-bottom: 18px;
}

.pdf-section-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.pdf-text {
  font-size: 11px;
  line-height: 1.5;
  color: #334155;
}

.pdf-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pdf-skill-cat {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

.pdf-skill-tags {
  font-size: 10.5px;
  color: #475569;
}

.pdf-item {
  margin-bottom: 10px;
}

.pdf-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.pdf-item-sub {
  font-size: 11px;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 3px;
}

/* Print CSS setup */
@media print {
  body * {
    visibility: hidden;
  }
  #pdf-export-container, #pdf-export-container * {
    visibility: visible;
  }
  #pdf-export-container {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

