@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  /* 
   * DARK THEME (Matte Black) 
   * Base: #1e1f23
   */
  --bg-color: #1e1f23;
  --bg-gradient: none;
  --bg-size: auto;

  --text-primary: #ececf0;
  --text-secondary: #a0aec0;
  --text-bold: #ffffff;

  /* Single Muted Slate Accent */
  --accent: #94a3b8;
  /* Slate 400 */
  --accent-glow: rgba(148, 163, 184, 0.3);

  /* 
   * Soft Neumorphism (Dark) 
   * Formula: Blur = ~2.5x Offset for "Pillowy" look
   */
  --neu-convex:
    6px 6px 15px rgba(0, 0, 0, 0.6),
    -6px -6px 15px rgba(255, 255, 255, 0.04);

  --neu-concave:
    inset 6px 6px 15px rgba(0, 0, 0, 0.6),
    inset -6px -6px 15px rgba(255, 255, 255, 0.04);

  /* Navigation Bar Colors */
  --nav-bg: #1e1f23;
  --nav-text: #a0aec0;
  --nav-text-active: #ffffff;
  /* White text on Slate Capsule */
  --nav-capsule-bg: #94a3b8;
  --nav-capsule-shadow: 0 4px 12px rgba(148, 163, 184, 0.3);

  /* Fonts */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
}

[data-theme="light"] {
  /* 
   * LIGHT THEME (Milk White)
   * Base: #F5F5F0 (Matte Bone White)
   */
  --bg-color: #F5F5F0;
  --bg-gradient: none;

  --text-primary: #1a1a1a;
  --text-secondary: #5e6c84;
  --text-bold: #000000;

  --accent: #475569;
  /* Slate 600 */
  --accent-glow: rgba(71, 85, 105, 0.2);

  /* Soft Neumorphism (Light) */
  --neu-convex:
    9px 9px 20px #d1d9e6,
    -9px -9px 20px #ffffff;

  --neu-concave:
    inset 6px 6px 15px #d1d9e6,
    inset -6px -6px 15px #ffffff;

  /* Navigation Bar Colors */
  --nav-bg: #F5F5F0;
  --nav-text: #5e6c84;
  --nav-text-active: #ffffff;
  --nav-capsule-bg: #475569;
  --nav-capsule-shadow: 0 4px 12px rgba(71, 85, 105, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  background-image: none;
  min-height: 100vh;
  /* Matte Finish: No shine anywhere */
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Common Utility: Neumorphic Panel */
.glass-panel {
  background: var(--bg-color);
  box-shadow: var(--neu-convex);
  border-radius: 20px;
  border: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel:hover {
  transform: translateY(-4px);
  /* Higher lift */
  /* Intense Soft Shadow on Hover */
  box-shadow:
    15px 15px 30px rgba(0, 0, 0, 0.15),
    -15px -15px 30px rgba(255, 255, 255, 0.05);
  border-color: transparent;
}

/* ===== SECTIONS ===== */
section {
  min-height: 100vh;
  /* Uniform full height */
  /* ALIGN TITLE WITH NAV: Reduced top padding so Title (Left) sits alongside Nav (Center) */
  padding: 40px 8vw 80px;
  scroll-margin-top: 0px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Vertically center content */

  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== TYPOGRAPHY ===== */
h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

/* Minimalist "Label" Section Titles */
section h2 {
  display: block !important;
  text-align: left;

  /* Align with Content Width */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 60px;
  /* DECENT MARGIN */

  font-family: var(--font-heading);
  font-size: 0.9rem;
  /* Small */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  /* Yellow in Dark Mode */

  /* Reset Neumorphism */
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

/* Hide the old accent line */
section h2::after {
  display: none;
}

/* LIGHT THEME OVERRIDE */
[data-theme="light"] section h2 {
  display: block !important;
  color: var(--text-secondary);
  /* Grey in Light Mode for visibility/subtlety */
  font-weight: 700;
}

/* ===== NAV ===== */
.nav-wrapper {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav {
  display: flex;
  gap: 12px;
  /* Increased gap for buttons */
  padding: 10px;
  background: var(--nav-bg);
  border-radius: 99px;
  /* Pill */
  box-shadow: var(--neu-convex);
  transition: background 0.3s ease;
}

.nav button {
  position: relative;
  height: 44px;
  /* Slightly taller */
  padding: 0 24px;
  border: none;
  background: transparent;
  border-radius: 99px;
  /* Capsule Shape */

  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--nav-text);

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;

  /* Reset shadows */
  box-shadow: none;
}

.nav button:hover {
  color: var(--accent);
}

.nav button.active {
  /* NEUMORPHIC PRESSED BUTTON */
  background-color: transparent;
  /* No fill */
  color: var(--accent);
  box-shadow: var(--neu-concave);
  /* Pressed In */
  font-weight: 700;
}

/*
 * THEME TOGGLE (Reverted: Single Button)
 */
.theme-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;

  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-color);
  box-shadow: var(--neu-convex);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.2rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  color: var(--accent);
  /* Pop Orange */
}

.theme-toggle:active {
  box-shadow: var(--neu-concave);
  transform: translateY(0);
}

/* Responsive Nav Logic */
@media (max-width: 768px) {
  section {
    padding: 100px 5vw;
  }

  .nav-wrapper {
    width: 90%;
    justify-content: center;
  }

  .nav {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding: 6px 12px;
  }
}

/* ===== ABOUT ME ===== */
.about-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-text {
  padding: 40px;
  text-align: center;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.bio-intro {
  font-size: 1.35rem !important;
  font-weight: 600;
  color: var(--text-body) !important;
  font-family: var(--font-heading);
}

/* Highlights Grid (Unified Orange) */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.highlight-card {
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.highlight-icon {
  font-size: 2.2rem;
  margin-bottom: 4px;
  color: var(--accent);
  /* Subtly glow with new accent */
  filter: drop-shadow(0 4px 8px var(--accent-glow));
  transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-icon {
  transform: translateY(-4px) scale(1.1);
}

.highlight-card h3 {
  font-size: 2.2rem;
  /* Large Impact */
  font-weight: 800;
  margin-bottom: 0;
  /* Fallback color */
  color: var(--text-bold);
  /* No Gradients */
}

.highlight-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 500;
}

/* ===== SKILLS SECTION (Static Redesign) ===== */
.skills-section {
  margin-top: 80px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.skills-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-align: center;
  margin-bottom: 60px;
}

.skill-category {
  margin-bottom: 50px;
}

.category-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 25px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.skill-badge {
  padding: 12px 20px;
  background: var(--bg-color);
  box-shadow: var(--neu-convex);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-badge i {
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.skill-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--neu-concave);
  color: var(--accent);
}

.skill-badge:hover i {
  transform: scale(1.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .skills-grid {
    gap: 12px;
  }

  .skill-badge {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* ===== EXPERIENCE ===== */
.timeline {
  position: relative;
  width: min(1000px, 90%);
  margin: 10px auto 0;
  z-index: 1;
  padding: 10px 0;
}

/* Central Line */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(128, 128, 128, 0.1) 10%,
      var(--text-secondary) 50%,
      rgba(128, 128, 128, 0.1) 90%,
      transparent);
  transform: translateX(-50%);
  box-shadow: none;
}

/* Items */
.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 60px;
  width: 100%;
}

.timeline-item.left {
  justify-content: flex-start;
}

.timeline-item.right {
  justify-content: flex-end;
}

/* Marker (The Dot) */
.timeline-marker {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-glow), 0 0 20px var(--accent-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px var(--accent-glow), 0 0 30px var(--accent-glow);
}

/* Content Container - Glass Card */
.timeline-content {
  width: 45%;
  position: relative;
  padding: 32px;

  /* Inherit shared glass panel styles */
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

/* Hover Effect for Card */
.timeline-item:hover .timeline-content {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.3);
}

/* Directions */
.timeline-item.left .timeline-content {
  margin-right: 40px;
  text-align: right;
}

/* Connector Line for Left items */
.timeline-item.left .timeline-content::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 28px;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
}

.timeline-item.right .timeline-content {
  margin-left: 40px;
  text-align: left;
}

/* Connector Line for Right items */
.timeline-item.right .timeline-content::after {
  content: '';
  position: absolute;
  left: -40px;
  top: 28px;
  width: 40px;
  height: 1px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.1), transparent);
}


/* Typography inside Card */
.time-heading {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-item.left .time-heading {
  align-items: flex-end;
}

.timeline-item.right .time-heading {
  align-items: flex-start;
}

.company {
  font-family: var(--font-heading);
  /* Fixed: Montserrat */
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bold);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.period {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  /* Cleaner look than yellow text on yellow bg */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  background: var(--accent);
  /* Slate Badge */
  color: #fff;
  /* Contrast White Text */
  border-radius: 99px;
  display: inline-block;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.role-wrapper .role {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.role-wrapper .description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ===== REVIEWS (Carousel) ===== */
.viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* padding for shadow */
  padding: 20px 0 40px;
}

.track {
  display: flex;
  gap: 32px;
  width: max-content;
  /* Javascript will animate this */
}

/* Review Card - MATCHING TIMELINE STYLE */
.review-card {
  width: 350px;
  /* Fixed width for carousel */
  padding: 32px;
  flex-shrink: 0;

  /* Shared Glass Panel Styles */
  background: var(--bg-color);
  /* Matte */
  box-shadow: var(--neu-convex);
  border-radius: 20px;
  border: none;

  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Match transition timing of timeline */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, background 0.4s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  /* Lighten BG same as timeline-item:hover .timeline-content */
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.3);
  /* Deeper shadow */
  border-color: rgba(255, 255, 255, 0.1);
  /* Subtle highlighting border */
}

/* Force visible hover in light mode if background is white-on-white */
[data-theme="light"] .review-card:hover {
  background: rgba(0, 0, 0, 0.03) !important;
  /* Slight Darken for Light Mode */
}

.review-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
}

/* LINKS SECTION RESPONSIVE FIX (Add to bottom) */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* FIX CROPPING: Add bottom padding and remove overflow */
  padding-bottom: 40px;
  overflow: visible;
  margin: 0 auto 40px;
  /* Centered Horizontally */
  width: 100%;
  max-width: 1200px;
  /* Constraint */
}

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

.review-author {
  margin-top: auto;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .timeline {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .timeline-line {
    left: 20px;
    transform: none;
  }

  .timeline-item {
    margin-bottom: 40px;
  }

  .timeline-marker {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-content {
    width: 100%;
    margin-left: 50px !important;
    margin-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item.left .timeline-content::after,
  .timeline-item.right .timeline-content::after {
    display: none;
  }

  .timeline-item.left .time-heading {
    align-items: flex-start;
  }

  /* Adjust typography for mobile */
  .company {
    font-size: 1.25rem;
  }

  .role-wrapper .role {
    font-size: 1rem;
  }
}


/* ===== CINEMATIC QUOTES (IN CONTACT SECTION) ===== */
.quotes-container {
  width: 100%;
  margin: auto 0;
}

.quote-content {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.quote-content.visible {
  opacity: 1;
}

.quote-content.fade-out {
  opacity: 0;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-bold);
  margin-bottom: 20px;
}

.quote-author {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
}

/*Center hero*/
/* ===== HERO SECTION FIX ===== */
#home {
  min-height: 100vh;
  padding-top: 120px;
  /* REVERTED: Original Padding */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Centered */
}

/* Hero 3-Column Layout */
.hero-row.hero-with-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  /* Name - Image - Name */
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 4vw;
  gap: 40px;
  position: relative;
}

/* Left Column: First Name */
.hero-text.left-col {
  text-align: right;
  z-index: 1;
}

/* Right Column: Last Name */
.hero-text.right-col {
  text-align: left;
  z-index: 1;
}

.hero-name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 6rem);
  /* Larger */
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Role / Title - Centered Bottom */
.hero-roles-container {
  grid-column: 1 / -1;
  /* Span full width */
  text-align: center;
  margin-top: 40px;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-role {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-block;
  margin: 0 12px;
}

.hero-role+.hero-role::before {
  content: "•";
  margin-right: 24px;
  color: var(--accent);
}

/* --- HERO WRAPPER --- */
.hero {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 300 / 420;
  height: auto;
  perspective: 1600px;
  margin: 0 auto;
  justify-self: center;
  z-index: 2;
}

/* --- HERO IMAGE --- */
.hero-card {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  /* Cinematic staging */
  background: var(--bg-color);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

/* Ethereal Light Bloom Overlay */
.hero-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0%;
  height: 0%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0.8;
  filter: blur(40px);
  pointer-events: none;
  animation: bloomPulse 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.2s;
}

@keyframes bloomPulse {
  0% {
    width: 0%;
    height: 0%;
    opacity: 0.8;
  }

  40% {
    width: 150%;
    height: 150%;
    opacity: 0.4;
  }

  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  /* Heavy Cinematic Entrance */
  transform: scale(1.1);
  filter: brightness(4) blur(30px) saturate(0);
  opacity: 0;
  animation: etherealFocus 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.4s;
}

@keyframes etherealFocus {
  0% {
    opacity: 0;
    transform: scale(1.1);
    filter: brightness(4) blur(30px) saturate(0);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) blur(0) saturate(1);
  }
}

/* mobile behavior */
@media (max-width: 1200px) {
  .hero-row.hero-with-text {
    grid-template-columns: 1fr;
    /* Stack vertically */
    gap: 32px;
    text-align: center;
    justify-items: center;
  }

  /* ... */

  .hero {
    order: 2;
    /* Image in middle */
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 260 / 360;
  }

  .hero-text.left-col {
    order: 1;
    /* Name first */
    text-align: center;
  }

  .hero-text.right-col {
    order: 3;
    /* Title last */
    text-align: center;
  }

  .hero-name {
    font-size: 4rem;
  }

  .hero-role {
    font-size: 1.8rem;
  }
}

/* Unused Skills and Review styles moved to unused_styles.css */

/* ===== AVAILABILITY LABEL ===== */
.availability-label {
  position: fixed;
  top: 35px;
  /* User preferred offset */
  right: 40px;
  z-index: 1001;
  height: 44px;
  padding: 0 16px;
  background: var(--nav-bg);
  box-shadow: var(--neu-convex);
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--nav-text);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .availability-label {
  color: var(--nav-text);
}

/* Responsive Adjustments */

/* Tablets and small laptops */
@media (max-width: 1200px) {
  .availability-label {
    right: 20px;
    top: 30px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .availability-label {
    top: auto;
    bottom: 100px;
    right: 20px;
    height: 38px;
    padding: 0 12px;
    font-size: 11px;
    gap: 6px;
    box-shadow: var(--neu-convex);
  }

  .pulse-dot {
    width: 8px;
    height: 8px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .availability-label {
    bottom: 90px;
    right: 15px;
    padding: 0 10px;
  }
}

/* Pulse Dot Styles (Consolidated) */
.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #2ecc71;
  /* Emerald Green */
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #2ecc71;
  border-radius: 50%;
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* ===== PREMIUM FOOTER ===== */
.footer {
  width: 100%;
  padding: 80px 0 60px;
  /* Increased padding for premium feel */
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(128, 128, 128, 0.05);
}

.footer-content {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
}

.footer-content p {
  margin-bottom: 15px;
}

/* Elegant accent line */
.footer-content::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* ===== TIMELINE GLIMPSE & MODAL ===== */

.timeline-content {
  cursor: pointer;
  overflow: hidden;
  /* For glimpse overlay */
}

/* Glimpse Overlay */
.glimpse-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--nav-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
}

.timeline-content:hover .glimpse-overlay {
  opacity: 1;
  transform: translateY(0);
}

.glimpse-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.glimpse-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: lowercase;
  letter-spacing: 0.1em;
}

.glimpse-overlay.no-projects {
  background: var(--bg-color);
  border: 1px dashed var(--text-secondary);
  opacity: 0.95;
}

.glimpse-overlay.no-projects .glimpse-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.timeline-content.inactive {
  cursor: default;
}

.timeline-content.inactive:hover {
  transform: none;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  margin: 20px auto;
  padding: 50px 40px;
  overflow-y: auto;
  z-index: 2001;
  transform: translateY(30px);
  transition: transform 0.4s ease;
}

.modal.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--accent);
}

.modal-header {
  margin-bottom: 30px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 15px;
}

.modal-company {
  font-size: 2rem;
  color: var(--text-bold);
  margin-bottom: 5px;
}

.modal-period {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.modal-projects-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-card {
  padding: 30px;
  /* Already uses glass-panel style */
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 15px;
}

.project-name {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0;
}

.project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.project-duration {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent-glow);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.app-link:hover {
  background: var(--accent);
  color: var(--bg-color);
}

.project-role {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.project-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.project-responsibilities h4 {
  font-size: 1rem;
  color: var(--text-bold);
  margin-bottom: 10px;
}

.project-responsibilities ul {
  list-style: none;
}

.project-responsibilities li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.project-responsibilities li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Custom Scrollbar for Modal */
.modal-container::-webkit-scrollbar {
  width: 6px;
}

.modal-container::-webkit-scrollbar-track {
  background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .modal-container {
    padding: 40px 20px;
    width: 95%;
  }

  .modal-company {
    font-size: 1.5rem;
  }
}

/* CONTENT PROTECTION: Disable text selection for projects and reviews */
.timeline,
.modal-container,
.review-card {
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}