/* ----------------------------------
   ROOT THEME VARIABLES (LIGHT MODE)
---------------------------------- */
:root {
  --bg: #ffffff;
  --text: #111;
  --card: #ffffff;
  --border: #ddd;
  --accent: #000;

  --button-bg: #000000;
  --button-text: #ffffff;

  --panel-width: 360px;

  /* LIGHT MODE TEXTURES */
  --texture1: rgba(0,0,0,0.04);
  --texture2: rgba(0,0,0,0.02);

  /* FOOTER */
  --footer-bg: #eaeaea;
  --footer-text: #111;
  --footer-muted: #555;
  --footer-border: #ccc;

  /* LEFT PANEL (INVERTED) */
  --left-bg: #111111;
  --left-text: #ffffff;
  --left-border: #333;
}

/* ----------------------------------
   DARK MODE VARIABLES
---------------------------------- */
body.dark {
  --bg: #0d0d0d;
  --text: #f5f5f5;
  --card: #111111;
  --border: #333;
  --accent: #fff;

  --button-bg: #ffffff;
  --button-text: #000000;

  --texture1: rgba(255,255,255,0.05);
  --texture2: rgba(255,255,255,0.03);

  --footer-bg: #111;
  --footer-text: #f2f2f2;
  --footer-muted: #aaa;
  --footer-border: #444;

  /* LEFT PANEL (INVERTED) */
  --left-bg: #f5f5f5;
  --left-text: #111111;
  --left-border: #ccc;
}

/* Initial state for all sections */
.section-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease-out;
}

/* Animate into view */
.section-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------
   HEADER
---------------------------------- */
.header {
    padding: 18px 0;
    border-bottom: 2px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.container {
    width: 92%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* NAVBAR */
nav a {
    margin-left: 25px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 4px;
    transition: 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 10px;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}


/* Knob & track */
.theme-toggle {
    margin-left: 25px;
    width: 52px;
    height: 28px;
    border-radius: 30px;
    background: #000; /* 🔥 light mode = black track */
    border: 1px solid #000000;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Knob */
.theme-toggle > .toggle-knob {
    position: absolute;
    top: 3px;
    left: 4px; /* light = left */
    width: 22px;
    height: 22px;
    border-radius: 50%;
    transition: left 0.3s ease, background 0.3s ease;
    background: transparent; /* knob transparent */
}

/* Move knob for dark */
body.dark .theme-toggle > .toggle-knob {
    left: 26px;
}

/* Track color for dark mode */
body.dark .theme-toggle {
    background: #fff;  /* 🔥 dark mode = white track */
    border-color: #444;
}

/* Icons inside knob */
.toggle-knob svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;  /* bigger solid icon */
    height: 18px;
    transform: translate(-50%, -50%);
    transition: fill 0.3s ease;
}

/* LIGHT MODE: fully solid icons */
.moon-icon {
    fill: #000;   /* black moon */
}
.sun-icon {
    fill: #fff;   /* white sun */
}

/* DARK MODE: fully solid icons */
body.dark .moon-icon {
    fill: #fff;   /* white moon */
}
body.dark .sun-icon {
    fill: #000;   /* black sun */
}


/* ----------------------------------
   GLOBAL BODY
---------------------------------- */
body {
  margin: 0;
  padding: 0;
  font-family: Poppins, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: 0.35s ease-in-out;

  background-image:
    linear-gradient(to right, var(--texture1) 1px, transparent 1px),
    linear-gradient(to bottom, var(--texture1) 1px, transparent 1px),
    radial-gradient(circle at top, var(--texture2), transparent);
  background-size: 45px 45px, 45px 45px, 100% 260px;
}

/* ----------------------------------
   RESUME LAYOUT
---------------------------------- */
.resume-page {
  padding: 100px 20px;
  display: flex;
  justify-content: center;
}

.resume-card {
  display: flex;
  max-width: 1100px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
}

/* ----------------------------------
   LEFT PANEL (INVERTED COLORS)
---------------------------------- */
.resume-left {
  width: 35%;
  padding: 30px;
  background: var(--left-bg);
  color: var(--left-text);
  border-right: 1px solid var(--left-border);
}

.resume-left h1,
.resume-left h2,
.resume-left h3,
.resume-left h4,
.resume-left p,
.resume-left span,
.resume-left li {
  color: var(--left-text);
}

.resume-left h3 {
  margin-top: 25px;
}

/* ----------------------------------
   RIGHT PANEL
---------------------------------- */
.resume-right {
  width: 65%;
  padding: 30px;
}

/* ----------------------------------
   TIMELINE
---------------------------------- */
.timeline {
  position: relative;
  margin-top: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 30px;
}

.dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
}

.box {
  border: 1px solid var(--border);
  padding: 15px;
  background: var(--bg);
}

/* ----------------------------------
   ANIMATION
---------------------------------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollable project list inside experience */
.project-scroll {
  max-height: 120px;       /* adjust height as you like */
  overflow-y: auto;
  padding-right: 6px;
}

/* Optional: smooth scrollbar */
.project-scroll::-webkit-scrollbar {
  width: 5px;
}

.project-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.project-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.project-scroll ul li {
  font-size: 0.9rem;
  line-height: 1.5;
}
.project-scroll {
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}


/* ----------------------------------
   MOBILE
---------------------------------- */
@media (max-width: 768px) {
  .resume-card {
    flex-direction: column;
  }

  .resume-left,
  .resume-right {
    width: 100%;
  }

  .resume-left {
    border-right: none;
    border-bottom: 1px solid var(--left-border);
  }
}
