:root {
  /* Light Theme Variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fbf9;
  --bg-card: #ffffff;

  --primary: #00b87c;
  --primary-hover: #009665;
  --primary-rgb: 0, 184, 124;

  --text-main: #141d2a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --border-color: rgba(20, 29, 42, 0.06);
  --border-color-hover: rgba(20, 29, 42, 0.12);

  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-body: "Inter", sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 30px -10px rgba(0, 184, 124, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(20, 29, 42, 0.05);
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-primary: #080c14;
  --bg-secondary: #0d121d;
  --bg-card: #0f1624;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.12);

  --shadow-md: 0 10px 30px -10px rgba(0, 184, 124, 0.15);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

/* Base resets */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* Scroll reveal & transition fixes */
.no-transition,
.no-transition * {
  transition: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.97);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Staggered reveal delays for direct children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.active > *:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.reveal-stagger.active > *:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}
.reveal-stagger.active > *:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}
.reveal-stagger.active > *:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.3s;
}

/* Slide-from-left for hero info */
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  filter: blur(4px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* Slide-from-right for hero media */
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  filter: blur(4px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.15s;
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* Dotted Accents */
.decor-dots {
  position: absolute;
  width: 100px;
  height: 140px;
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(var(--primary) 2px, transparent 2px);
  background-size: 16px 16px;
}

.dots-left {
  left: -120px;
}

.dots-right {
  right: -120px;
}

.hero-section,
.skills-section,
.resume-section,
.portfolio-section,
.contact-section {
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px) {
  .decor-dots {
    display: none !important;
  }
}

/* General Layout Containers */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(var(--bg-primary), 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: 80px;
  z-index: 1000;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  text-decoration: none;
}

.logo-img {
  height: 38px;
  width: auto;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: rotate(-10deg) scale(1.08);
}

.logo-text {
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-item {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s;
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover {
  color: var(--primary);
}

.nav-item:hover::after {
  width: 100%;
}

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

/* Theme Switcher Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.theme-toggle-btn:hover {
  border-color: var(--border-color-hover);
  background: rgba(var(--primary-rgb), 0.05);
}

.theme-icon {
  position: absolute;
  font-size: 1rem;
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
  transition: all 0.3s ease;
}

[data-theme="light"] .theme-icon[data-icon="sun"],
[data-theme="dark"] .theme-icon[data-icon="moon"] {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
  overflow: hidden;
  position: relative;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.2s;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.45);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: rgba(var(--primary-rgb), 0.05);
  transform: translateY(-2px);
}

.highlight {
  color: var(--primary);
}

/* SECTION BADGE & TITLE */
.section-badge {
  display: inline-block;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

/* HERO SECTION */
.hero-section {
  padding-top: 80px;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* HERO MEDIA OFFSET FRAME (FIGMA REDESIGN) */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-open-container {
  position: relative;
  width: 320px;
  height: 320px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg-gradient-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 95%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--primary-rgb), 0.25) 0%,
    rgba(var(--primary-rgb), 0.03) 70%,
    transparent 100%
  );
  z-index: 1;
  animation: pulse-glow 4s ease-in-out infinite alternate;
  transition: background 0.8s ease;
}

@keyframes pulse-glow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 1;
  }
}

.avatar-circle {
  width: 85%;
  height: 85%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-avatar-open {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-open-container:hover .hero-avatar-open {
  transform: scale(1.06);
}

.image-open-container:hover .bg-gradient-circle {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Vertical Social Sidebar — fixed at bottom-right of viewport */
.vertical-socials {
  position: fixed;
  right: 24px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 100;
}

.social-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  margin-bottom: 10px;
}

.line-decor {
  width: 1px;
  height: 40px;
  background: var(--border-color-hover);
}

.vertical-socials a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition:
    color 0.2s,
    transform 0.2s;
}

.vertical-socials a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Floating Dots decoration */
.floating-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  animation: float 4s ease-in-out infinite alternate;
}

.dot-blue {
  background-color: #3b82f6;
}
.dot-green {
  background-color: #10b981;
}
.dot-red {
  background-color: #ef4444;
}
.dot-yellow {
  background-color: #eab308;
}

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

/* SKILLS SECTION */
.skills-section {
  padding: 80px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.skills-header h2 {
  line-height: 1.2;
  margin-bottom: 20px;
}

.skills-header p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.skills-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  /* stagger via nth-child on .skills-cards */
  opacity: 0;
  transform: translateY(28px);
}

.skills-section.active .skill-card {
  opacity: 1;
  transform: translateY(0);
}

.skills-section.active .skill-card:nth-child(1) {
  transition-delay: 0.05s;
}
.skills-section.active .skill-card:nth-child(2) {
  transition-delay: 0.15s;
}
.skills-section.active .skill-card:nth-child(3) {
  transition-delay: 0.25s;
}
.skills-section.active .skill-card:nth-child(4) {
  transition-delay: 0.35s;
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  width: 48px;
  height: 48px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.skill-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* PORTFOLIO SECTION */
.portfolio-section {
  padding: 80px 0;
}

.portfolio-top h2 {
  margin-bottom: 40px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card-figma {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-figma:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.project-card-header {
  margin-bottom: 16px;
  padding-right: 46px;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.project-card-figma h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-main);
}

.project-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.project-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: 6px;
}

.btn-project-go {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.btn-project-go:hover {
  background: var(--primary-hover);
}

.project-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* TESTIMONIAL SECTION */
.testimonial-section {
  padding: 80px 0;
  text-align: center;
}

.testimonial-section h2 {
  margin-bottom: 40px;
}

.testimonial-container {
  max-width: 760px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.rating {
  color: #fbbf24;
  margin-bottom: 20px;
  font-size: 1rem;
}

.testimonial-card blockquote {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 30px;
  position: relative;
}

.client-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.client-info h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

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

/* Shared Section h2 heading styles */
.skills-section h2,
.portfolio-top h2,
.resume-section h2,
.contact-section h2,
.testimonial-section h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--text-main);
  letter-spacing: -1px;
}

/* CONTACT SECTION */
.contact-section {
  padding: 80px 0 120px;
}

.contact-section h2 {
  margin-bottom: 48px;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.connect-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.connect-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.connect-icon {
  width: 64px;
  height: 64px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.connect-card:hover .connect-icon {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.connect-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.connect-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  background: var(--bg-secondary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Navigation Menu Button & Drawer */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.35rem;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: 280px;
  height: 100%;
  background: var(--bg-primary);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  padding: 40px 24px;
  flex-direction: column;
  gap: 40px;
  visibility: hidden;
  transition:
    transform 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

[data-theme="dark"] .mobile-nav-drawer {
  box-shadow:
    -15px 0 40px rgba(0, 0, 0, 0.5),
    -1px 0 0 rgba(255, 255, 255, 0.06);
}

.close-drawer {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-item {
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
}

.mobile-nav-item:hover {
  color: var(--primary);
}

/* Mobile Theme Toggle Button */
.mobile-theme-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s;
  margin-top: auto; /* Push to the bottom of the drawer */
}

.mobile-theme-btn:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: var(--primary);
}

.mobile-theme-icon-container {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .mobile-theme-btn .theme-text-dark,
[data-theme="dark"] .mobile-theme-btn .theme-text-light {
  display: none;
}

[data-theme="light"] .mobile-theme-btn .theme-text-light,
[data-theme="dark"] .mobile-theme-btn .theme-text-dark {
  display: inline;
}

/* RESUME SECTION */
.resume-section {
  padding: 80px 0;
}

.resume-section h2 {
  margin-bottom: 40px;
}

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

.resume-col-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.resume-col-title i {
  color: var(--primary);
  transition: color 0.3s ease;
}

/* Resume Column Cards — wraps each division */
.resume-column-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(24px);
}

.resume-section.active .resume-column-card {
  opacity: 1;
  transform: translateY(0);
}

.resume-section.active .resume-column-card:nth-child(1) {
  transition-delay: 0.05s;
}
.resume-section.active .resume-column-card:nth-child(2) {
  transition-delay: 0.18s;
}

.resume-column-card:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: var(--shadow-md);
}

/* Timeline inside cards */
.resume-timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  padding-left: 20px;
}

.resume-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-color-hover);
}

.timeline-block {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-block:hover {
  transform: translateX(5px);
}

.timeline-block::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  z-index: 2;
  transition:
    background-color 0.3s ease,
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
}

.timeline-block:hover::before {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.timeline-block h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.timeline-block:hover h4 {
  color: var(--primary);
}

.timeline-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-grid {
    gap: 40px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .mobile-nav-drawer {
    display: flex;
  }

  .page-container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 0 16px;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-section {
    padding-top: 90px;
    padding-bottom: 24px;
    min-height: unset;
    align-items: flex-start;
  }

  /* Simplify directional reveals on mobile */
  .reveal-left,
  .reveal-right {
    transform: translateY(32px);
  }
  .reveal-left.active,
  .reveal-right.active {
    transform: translateY(0);
  }

  /* Reduce all section paddings on mobile */
  .skills-section {
    padding: 40px 0;
  }

  .portfolio-section {
    padding: 40px 0;
  }

  .resume-section {
    padding: 40px 0;
  }

  .contact-section {
    padding: 40px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

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

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-desc {
    font-size: 0.95rem;
    margin: 0 auto 16px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-media {
    order: -1; /* Image first on mobile */
  }

  .image-open-container {
    width: 220px;
    height: 220px;
  }

  .vertical-socials {
    display: none !important;
  }

  .stats-grid {
    flex-direction: column;
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

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

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

  .connect-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 0 16px;
  }

  .resume-grid,
  .research-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
