/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1a2230;
  --bg-card-hover: #1e2a3a;
  --border: #21262d;
  --border-glow: #00ff9d33;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  --accent: #00ff9d;
  --accent-dim: #00cc7e;
  --accent-glow: #00ff9d55;
  --blue: #58a6ff;
  --yellow: #e3b341;
  --red: #f85149;
  --purple: #bc8cff;
  --orange: #ff7b72;
  --tag-bg: #0d1117;
  --tag-border: #30363d;
  --nav-bg: rgba(13, 17, 23, 0.92);
  --shadow-glow: 0 0 20px #00ff9d22;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* LIGHT MODE */
body.light-mode {
  --bg-primary: #f5f5f0;
  --bg-secondary: #ebebе5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8f3;
  --border: #d4d4cc;
  --border-glow: #00cc7e33;
  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-muted: #9a9a9a;
  --accent: #008a56;
  --accent-dim: #006640;
  --accent-glow: #00cc7e44;
  --blue: #0969da;
  --tag-bg: #f0f0ea;
  --tag-border: #c8c8c0;
  --nav-bg: rgba(245, 245, 240, 0.92);
  --shadow-glow: 0 0 20px #00cc7e22;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 4px; transition: background 0.2s ease; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-corner { background: var(--bg-primary); }

/* ===== CURSOR BLINK ===== */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor {
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  border-radius: 1px;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-logo .prompt { color: var(--accent); }
.nav-logo .dot { color: var(--text-secondary); }

.nav-name {
  background: linear-gradient(45deg, var(--accent), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover {
  color: var(--accent);
  background: var(--border-glow);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--accent);
  background: var(--border-glow);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.time-section-mobile {
  display: none;
  padding: 0.5rem 1.5rem;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

/* Time display */
.time-display {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.time-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  text-align: center;
  min-width: 105px;
}
.time-label {
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  display: block;
}

.time-value {
  font-size: 0.75rem;
  display: block;
  color: var(--text-primary);
}

/* Theme toggle */
.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--transition);
  flex-shrink: 0;
  position: relative;
  z-index: 1001;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: rotate(15deg);
}

/* Mobile menu */
.hamburger {
  display: flex;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
}

/* ===== MAIN CONTENT ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 1.5rem 4rem;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header .prompt-prefix {
  color: var(--text-muted);
  font-size: 0.9em;
  font-weight: 400;
}

/* ===== HERO SECTION ===== */
#hero {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.hero-path {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .dollar {
  color: var(--accent);
  margin-right: 0.5rem;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-text {
  flex: 1;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.image-loader {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.skeleton {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-secondary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.social-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.cv-button {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none !important;
  border: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: scale(1.04);
}

.btn-primary {
  background: #1877f2;
  color: #fff;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: #1464d8;
  box-shadow: 0 0 20px #1877f244;
  transform: scale(1.04);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}
.btn-accent:hover {
  background: var(--accent-dim);
  box-shadow: var(--shadow-glow);
  transform: scale(1.04);
}

.btn-download {
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-family: 'JetBrains Mono', monospace;
}
.btn-download:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 25px var(--accent-glow);
  transform: scale(1.05);
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
}
.scroll-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: scrollPulse 1.5s ease-in-out infinite;
}
.scroll-dot:nth-child(2) { animation-delay: 0.3s; opacity: 0.6; }
.scroll-dot:nth-child(3) { animation-delay: 0.6s; opacity: 0.3; }

.scroll-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  animation: scrollPulse 1.5s ease-in-out infinite;
  animation-delay: 0.9s;
  margin-top: 8px;
}

@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ===== TECH STACK ===== */
#tech-stack { padding: 2rem 0 4rem; }

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stack-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: default;
  transition: all var(--transition);
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  background-repeat: no-repeat;
  background-position: left 6px center;
  background-size: 16px;
  padding-left: 28px;
}
.stack-tag:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tag-html    { background-image: url('https://cdn.simpleicons.org/html5'); }
.tag-css     { background-image: url('https://cdn.simpleicons.org/css3'); }
.tag-js      { background-image: url('https://cdn.simpleicons.org/javascript'); }
.tag-python  { background-image: url('https://cdn.simpleicons.org/python'); }
.tag-django  { background-image: url('https://cdn.simpleicons.org/django'); }
.tag-mysql   { background-image: url('https://cdn.simpleicons.org/mysql'); }
.tag-postgres{ background-image: url('https://cdn.simpleicons.org/postgresql'); }
.tag-mongo   { background-image: url('https://cdn.simpleicons.org/mongodb'); }
.tag-redis   { background-image: url('https://cdn.simpleicons.org/redis'); }
.tag-docker  { background-image: url('https://cdn.simpleicons.org/docker'); }
.tag-aws     { background-image: url('https://cdn.simpleicons.org/amazonaws'); }
.tag-github  { background-image: url('https://cdn.simpleicons.org/github'); }
.tag-git     { background-image: url('https://cdn.simpleicons.org/git'); }
.tag-rest    { background-image: url('https://cdn.simpleicons.org/rest'); }
.tag-graphql { background-image: url('https://cdn.simpleicons.org/graphql'); }
.tag-node    { background-image: url('https://cdn.simpleicons.org/nodedotjs'); }
.tag-selenium{ background-image: url('https://cdn.simpleicons.org/selenium'); }
.tag-kafka   { background-image: url('https://cdn.simpleicons.org/apachekafka'); }
.tag-solana  { background-image: url('https://cdn.simpleicons.org/solana'); }
.tag-fastapi { background-image: url('https://cdn.simpleicons.org/fastapi'); }

/* ===== PROJECTS ===== */
#projects { padding: 2rem 0 4rem; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: default;
}
.project-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 1px var(--accent)22, 0 8px 24px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.project-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-link {
  font-size: 0.75rem;
  color: var(--accent);
  padding: 3px 10px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none !important;
  flex-shrink: 0;
}
.project-link:hover {
  background: var(--accent);
  color: #0d1117;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.project-tag {
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--tag-border);
  background: var(--tag-bg);
  padding: 3px 10px;
  border-radius: 4px;
}

/* ===== RESUME ===== */
#resume { padding: 2rem 0 4rem; }

.resume-container {
  max-width: 1500px;
}

.resume-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  max-height: 800px;
  transition: border-color var(--transition);
  margin-bottom: 1.25rem;
}

.resume-preview:hover {
  border-color: var(--accent-glow);
}

.resume-window-header {
  background: var(--bg-secondary);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

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

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.window-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: inherit;
  opacity: 0.8;
}

.resume-preview iframe {
  width: 100%;
  height: 700px;
  border: none;
  filter: grayscale(0.1) contrast(1.1);
}

.resume-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
}

.resume-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.resume-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.resume-cmd {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}
.resume-cmd span { color: var(--accent); }

/* ===== TERMINAL PLAYGROUND ===== */
#terminal-playground { padding: 2rem 0 4rem; }

.terminal-container {
  max-width: 800px;
  margin: 0 auto;
}

.terminal-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.terminal-header {
  background: var(--bg-secondary);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.terminal-body {
  background: #0d1117;
  color: #00ff9d;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  padding: 1rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.terminal-output {
  flex: 1;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  line-height: 1.4;
  overflow-y: auto;
  max-height: 400px;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.terminal-prompt {
  color: var(--accent);
  margin-right: 0.5rem;
}

.terminal-input {
  background: transparent;
  border: none;
  color: #00ff9d;
  font-family: inherit;
  font-size: inherit;
  flex: 1;
  outline: none;
}

.terminal-input::placeholder {
  color: #666;
}

/* ===== AI/ML LAB ===== */
#ai-lab { padding: 2rem 0 4rem; }

.sprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.sprint-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
}

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

.sprint-status {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
}

.sprint-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.sprint-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* Progress Bar Styling */
.progress-container {
  background: rgba(255, 255, 255, 0.05);
  height: 8px;
  border-radius: 10px;
  position: relative;
  overflow: visible;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: 10px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.progress-text {
  position: absolute;
  right: 0;
  top: -20px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ===== CONTACT ===== */
#contact { padding: 2rem 0 4rem; }

.contact-form {
  max-width: 1500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.form-label::after { content: ':'; }

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-textarea { height: 130px; }

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ===== COMMAND CENTER ===== */
#command-center {
  padding: 2rem 0 4rem;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.command-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

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

.command-card.primary-cta {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, rgba(0,255,157,0.05) 0%, transparent 100%);
}

.cmd-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

.cmd-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cmd-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cmd-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-copy .dollar { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.footer-link:hover {
  transform: scale(1.1) rotate(-5deg);
  text-decoration: none;
}
.footer-link.github:hover { color: #fff; border-color: #333; background: #333; }
.footer-link.linkedin:hover { color: #fff; border-color: #0a66c2; background: #0a66c2; }
.footer-link.email:hover { color: #fff; border-color: var(--accent); background: var(--accent-dim); }

/* ===== DIVIDER ===== */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0 3rem;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.85rem;
  color: var(--accent);
  z-index: 9998;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== MODE INDICATOR ===== */
.mode-indicator {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  main{
    padding: 1px 1.5rem 4rem;  }
  /* Hide the desktop clock */
  .nav-right .time-display { 
    display: none !important; 
  }
  .resume-preview {
        height: 560px; /* Shorter height for mobile to allow easier scrolling */
    }

  /* Show the mobile clock section */
  .time-section-mobile { 
    display: block !important; 
    margin-top: 60px; /* Pushes it below the fixed nav */
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
  }

  .time-section-mobile .time-display { 
    display: flex !important; /* Forces visibility */
    justify-content: center;
    gap: 0.75rem; 
  }

  .time-box {
    min-width: 120px; /* Slightly wider for better spacing */
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 16px; }

  .hamburger { display: flex; }

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

  .hero-title { font-size: 2rem; }
.hero-name{
  text-align: center;
}
  .hero-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-photo img {
    width: 200px;
    height: 200px;
  }

  .image-loader .skeleton {
    width: 96px;
    height: 96px;
  }

  .social-buttons {
    gap: 0.75rem;
  }

  .cv-button {
    margin-top: 0.75rem;
  }

  .btn {
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 0.875rem;
  }
}

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

  .hero-content { flex-direction: column; }
  .hero-photo { order: -1; }
  .hero-photo img { width: 200px; height: 200px; }

/* REMOVE 'display: none' from .time-display here */
  .hero-buttons { flex-direction: column; }
  .btn { justify-content: center; }
  
  /* Ensure the mobile time section stays visible */
  .time-section-mobile { 
    display: block !important; 
  }
  .time-section-mobile .time-display { 
    display: flex !important; 
  }
}

@media (min-width: 769px) {
  .hamburger { display: none; }
}
