/* ==========================================================================
   Suraj Goture — Portfolio Core Design System & Styling
   ========================================================================== */

/* ── Fonts Import ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Custom Theme Tokens ── */
:root {
  /* Dark Mode variables (Default Theme) */
  --bg-base: #080b11;
  --bg-card: rgba(17, 24, 39, 0.55);
  --bg-card-hover: rgba(23, 33, 53, 0.75);
  --bg-sidebar: rgba(13, 18, 30, 0.85);
  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(59, 130, 246, 0.4);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent: #3b82f6; /* Cyan-blue */
  --accent-secondary: #8b5cf6; /* Violet */
  --accent-rgb: 59, 130, 246;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
  --accent-light: rgba(59, 130, 246, 0.1);
  --accent-light-border: rgba(59, 130, 246, 0.2);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --card-glow: 0 8px 32px rgba(59, 130, 246, 0.04);
  
  --scrollbar-track: #090d16;
  --scrollbar-thumb: #1d283c;
  --scrollbar-thumb-hover: #3b82f6;
}

[data-theme="light"] {
  /* Light Mode variables */
  --bg-base: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-sidebar: rgba(255, 255, 255, 0.9);
  --border-color: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(37, 99, 235, 0.3);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent: #2563eb;
  --accent-secondary: #7c3aed;
  --accent-rgb: 37, 99, 235;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #0ea5e9 100%);
  --accent-light: rgba(37, 99, 235, 0.08);
  --accent-light-border: rgba(37, 99, 235, 0.18);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --card-glow: 0 8px 32px rgba(37, 99, 235, 0.03);
  
  --scrollbar-track: #f1f5f9;
  --scrollbar-thumb: #cbd5e1;
  --scrollbar-thumb-hover: #94a3b8;
}

/* ── Reset & Core Styles ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* ── Ambient Glowing Shapes ── */
.ambient-glow {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(140px);
  opacity: 0.15;
  transition: opacity 0.5s ease;
}

[data-theme="light"] .ambient-glow {
  opacity: 0.07;
}

.glow-1 {
  top: -10vw;
  right: -10vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation: float-glow-1 25s infinite alternate ease-in-out;
}

.glow-2 {
  bottom: -10vw;
  left: -10vw;
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  animation: float-glow-2 25s infinite alternate ease-in-out;
}

@keyframes float-glow-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vw, 5vw) scale(1.1); }
  100% { transform: translate(5vw, -5vw) scale(0.9); }
}

@keyframes float-glow-2 {
  0% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(5vw, -5vw) scale(1.15); }
  100% { transform: translate(-5vw, 5vw) scale(1); }
}

/* ── Grid Layout ── */
.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ── Sidebar (Left Column) ── */
.sidebar {
  width: 320px;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem 2rem;
  overflow-y: auto;
  z-index: 100;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.sidebar-photo-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.sidebar-photo {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.sidebar-photo-fallback {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--accent);
  box-shadow: var(--shadow-md);
}

.sidebar-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.3px;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.sidebar-typed {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  min-height: 1.3rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-divider {
  width: 100%;
  height: 1px;
  background: var(--border-color);
  margin-bottom: 1.5rem;
}

.sidebar-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.info-row i {
  color: var(--accent);
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.info-row span {
  font-weight: 500;
  color: var(--text-primary);
}

.sidebar-nav {
  width: 100%;
  list-style: none;
  margin-bottom: 1.75rem;
}

.sidebar-nav li {
  margin-bottom: 0.4rem;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.sidebar-nav li a i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
}

.sidebar-nav li a:hover {
  color: var(--accent);
  background: var(--accent-light);
  border-color: var(--accent-light-border);
}

.sidebar-nav li a:hover i {
  color: var(--accent);
  transform: translateX(2px);
}

.sidebar-nav li a.active {
  background: var(--accent-gradient);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.sidebar-nav li a.active i {
  color: white;
}

.sidebar-footer {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-resume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.sidebar-resume:hover {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.sidebar-socials {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.sidebar-socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-sm);
}

/* ── Theme Toggle Button ── */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ── Main Container (Right Column) ── */
.main {
  margin-left: 320px;
  flex: 1;
  min-width: 0;
  padding: 2.5rem 4vw 4rem;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  position: relative;
  z-index: 10;
}

/* ── Mobile Navigation ── */
.top-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  z-index: 200;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.top-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.top-brand span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 6vw;
  z-index: 199;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu li {
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu li:last-child {
  border-bottom: none;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

.mobile-menu a i {
  color: var(--text-muted);
}

.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--accent);
}

/* ── Section Structure ── */
.section {
  scroll-margin-top: 5rem;
}

.sec-head {
  margin-bottom: 2.25rem;
}

.sec-head h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: inline-block;
  position: relative;
}

.sec-head h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* ── About Me ── */
.about-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 800px;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Technical Skills ── */
.skills-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.9rem;
  max-width: 900px;
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

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

.skill-chip:hover {
  border-color: var(--border-hover);
  color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--card-glow);
}

.skill-chip:hover i {
  transform: rotate(8deg) scale(1.15);
}

/* ── Projects Cards ── */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 850px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-gradient);
  transition: height 0.3s ease;
}

.project-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-card:hover::before {
  height: 100%;
}

.project-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: var(--accent-light);
  border: 1px solid var(--accent-light-border);
  color: var(--accent);
}

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--accent-light-border);
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s, color 0.3s;
}

.proj-link i:first-child {
  font-size: 1rem;
}

.proj-link:hover {
  gap: 0.65rem;
  color: var(--accent-secondary);
}

/* ── Timeline Styles (Education & Experience) ── */
.timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7.5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
}

.timeline-node {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 3px solid var(--border-color);
  z-index: 5;
  transition: all 0.3s ease;
}

.timeline-node.active {
  border-color: #10b981; /* Green */
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.timeline-node.done {
  border-color: var(--accent);
  background: var(--bg-base);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-card {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.timeline-item:hover .timeline-node {
  border-color: var(--accent);
  transform: scale(1.15);
}

.timeline-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-top-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
}

.badge.done {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-light-border);
}

.badge.active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.timeline-details {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.timeline-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.timeline-period i {
  font-size: 0.75rem;
}

.timeline-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.timeline-points li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.6rem;
}

.timeline-points li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

.edu-link {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.edu-link i {
  color: var(--accent);
}

.edu-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

/* ── Contact Section ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  max-width: 850px;
}

.contact-left p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.c-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.c-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.c-item i {
  color: var(--accent);
  font-size: 1.05rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.c-item:hover {
  border-color: var(--border-hover);
  color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
}

.contact-form-wrap h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.field input, .field textarea {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}

.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
  background: var(--bg-card-hover);
}

.field input::placeholder, .field textarea::placeholder {
  color: var(--text-muted);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-send:disabled {
  background: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ── Footer ── */
footer {
  padding: 2rem 4vw;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--accent-secondary);
}

/* ── Fade Scroll Entrance ── */
.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Marks Card Subpage Enhancements ── */
.topbar {
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  padding: 0 6vw;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 150;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.back-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateX(-2px);
}

.page-header {
  padding: 4rem 6vw 2.5rem;
  max-width: 1000px;
  margin: auto;
}

.page-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.8px;
  margin-bottom: 0.5rem;
}

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

.degree-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent-light);
  border: 1px solid var(--accent-light-border);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-top: 1rem;
  line-height: 1.4;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 0 6vw 5rem;
  max-width: 1000px;
  margin: auto;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  background: var(--bg-base);
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--scrollbar-track) 100%);
  color: var(--accent);
}

.card-placeholder i {
  font-size: 2.2rem;
  opacity: 0.75;
}

.card-placeholder span {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(59, 130, 246, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(2px);
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-body {
  padding: 1rem 1.25rem;
}

.card-sem {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

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

.pursuing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-top: 0.45rem;
}

.pursuing::before {
  content: '●';
  animation: blink 1.5s infinite;
}

/* ── Lightbox for PDF & Images ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 17, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
}

.lb-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: lbIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lbIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.lb-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lb-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.lb-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.lb-close:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.lb-img-wrap {
  flex: 1;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  min-height: 250px;
}

.lb-img-wrap img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.lb-img-wrap iframe {
  width: 100%;
  height: 65vh;
  border: none;
}

.lb-no-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 4rem 2rem;
  color: var(--text-secondary);
  text-align: center;
}

.lb-no-img i {
  font-size: 3rem;
  color: var(--text-muted);
}

.lb-no-img p {
  font-size: 0.9rem;
  font-weight: 600;
}

.lb-no-img small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.lb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  gap: 1rem;
}

.lb-nav {
  display: flex;
  gap: 0.5rem;
}

.lb-nav button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-base);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.lb-nav button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.lb-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lb-counter {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   ── Media Queries (Responsive Design Breakpoints) ──
   ========================================================================== */

@media (max-width: 992px) {
  .sidebar {
    display: none;
  }
  .main {
    margin-left: 0;
    padding-top: 6.5rem;
    gap: 3.5rem;
  }
  .top-nav {
    display: flex;
  }
  .section {
    padding-top: 1rem;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .skills-wrap {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
  .page-header {
    padding-top: 3rem;
  }
  .page-header h1 {
    font-size: 1.8rem;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 4vw 3rem;
  }
  .card-img-wrap {
    height: 120px;
  }
}

@media (max-width: 576px) {
  .skills-wrap {
    grid-template-columns: 1fr;
  }
  .timeline {
    padding-left: 1.5rem;
  }
  .timeline::before {
    left: 4.5px;
  }
  .timeline-node {
    left: -1.5rem;
    width: 11px;
    height: 11px;
    top: 9px;
  }
  .timeline-card {
    padding: 1.25rem;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .card-img-wrap {
    height: 150px;
  }
}

/* ── Blink Animation (Pursuing badge indicator) ── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ── Staggered Card Entry Animations (Subpages) ── */
.card:nth-child(1) { animation-delay: 0.04s; }
.card:nth-child(2) { animation-delay: 0.09s; }
.card:nth-child(3) { animation-delay: 0.14s; }
.card:nth-child(4) { animation-delay: 0.19s; }
.card:nth-child(5) { animation-delay: 0.24s; }
.card:nth-child(6) { animation-delay: 0.29s; }
.card:nth-child(7) { animation-delay: 0.34s; }
.card:nth-child(8) { animation-delay: 0.39s; }
