/* ============================================
   DESIGN SYSTEM — Samuel Olamijulo Portfolio
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --clr-bg: #0a0a0f;
  --clr-bg-alt: #111118;
  --clr-surface: #16161f;
  --clr-surface-hover: #1e1e2a;
  --clr-border: rgba(255, 255, 255, 0.06);
  --clr-border-active: rgba(108, 99, 255, 0.35);

  --clr-text: #e4e4ec;
  --clr-text-muted: #8888a0;
  --clr-text-dim: #5a5a70;

  --clr-accent: #6c63ff;
  --clr-accent-hover: #7f78ff;
  --clr-accent-2: #3b82f6;
  --clr-accent-glow: rgba(108, 99, 255, 0.2);

  --gradient-accent: linear-gradient(135deg, #6c63ff, #3b82f6);
  --gradient-hero: linear-gradient(
    160deg,
    #0a0a1a 0%,
    #121228 40%,
    #0f0f20 100%
  );

  --ff-heading: "Outfit", sans-serif;
  --ff-body: "Inter", sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.5rem;
  --fs-5xl: 4.5rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.15);

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-height: 72px;
  --container-max: 1200px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.nav-logo {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-text);
  transition: var(--transition);
}

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

.logo-dot {
  color: var(--clr-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--clr-text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-text);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.nav-link--cta {
  background: var(--gradient-accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-link--cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text-muted);
  font-size: var(--fs-base);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-gradient::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 30% 40%,
      rgba(108, 99, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(59, 130, 246, 0.06) 0%,
      transparent 50%
    );
  animation: heroOrb 15s ease-in-out infinite alternate;
}

@keyframes heroOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -20px) scale(1.1);
  }
  100% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-greeting {
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--clr-accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--ff-heading);
  font-size: var(--fs-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--clr-text);
}

.hero-name--accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--clr-text-muted);
  margin-bottom: 24px;
}

.hero-title--divider {
  color: var(--clr-accent);
  margin: 0 4px;
}

.hero-description {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(108, 99, 255, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--clr-accent);
  border: 1px solid var(--clr-accent);
}

.btn--outline:hover {
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.hero-stat {
  text-align: center;
}

.hero-stat__number {
  font-family: var(--ff-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat__plus {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--clr-text-dim);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition);
}

.scroll-indicator:hover {
  color: var(--clr-accent);
}

.scroll-indicator__line {
  width: 1px;
  height: 40px;
  background: var(--gradient-accent);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.5);
    opacity: 0.3;
  }
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--clr-text);
}

.section-title__number {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--clr-accent);
  margin-right: 12px;
  font-family: var(--ff-body);
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--clr-text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-text strong {
  color: var(--clr-text);
}

.about-skills__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--clr-text);
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-category__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text-muted);
  margin-bottom: 10px;
}

.skill-category__title i {
  color: var(--clr-accent);
  margin-right: 8px;
  width: 16px;
}

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

.skill-tag {
  padding: 6px 14px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: var(--transition);
}

.skill-tag:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: rgba(108, 99, 255, 0.05);
}

/* ============================================
   EXPERIENCE (Timeline)
   ============================================ */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--clr-accent),
    var(--clr-accent-2),
    transparent
  );
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -33px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clr-accent);
  border: 3px solid var(--clr-bg);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.25);
  z-index: 1;
}

.timeline-content {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--clr-border-active);
  box-shadow: var(--shadow-glow);
  transform: none;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-text);
}

.timeline-company {
  font-size: var(--fs-sm);
  color: var(--clr-accent);
  margin-top: 4px;
}

.timeline-company i {
  margin-right: 6px;
}

.timeline-date {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--clr-text-dim);
  white-space: nowrap;
  background: var(--clr-bg-alt);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--clr-border);
}

.timeline-highlights {
  list-style: none;
  margin-bottom: 16px;
}

.timeline-highlights li {
  position: relative;
  padding-left: 20px;
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: 8px;
  line-height: 1.6;
}

.timeline-highlights li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-size: var(--fs-sm);
}

.timeline-highlights li strong {
  color: var(--clr-text);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tags span {
  padding: 4px 10px;
  background: rgba(108, 99, 255, 0.08);
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--clr-accent);
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  background: transparent;
  color: var(--clr-text-muted);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

.filter-btn.active {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #fff;
}

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

.portfolio-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--clr-border-active);
  box-shadow: var(--shadow-glow);
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.portfolio-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 15, 0.9) 0%,
    transparent 60%
  );
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  border: none;
  color: #fff;
  font-size: var(--fs-lg);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card__btn:hover {
  transform: scale(1.1);
}

.portfolio-card__info {
  padding: 20px;
}

.portfolio-card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 4px;
}

.portfolio-card__subtitle {
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
  margin-bottom: 12px;
}

.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-card__tags span {
  padding: 3px 10px;
  background: rgba(108, 99, 255, 0.08);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--clr-accent);
}

/* ============================================
   EDUCATION
   ============================================ */
.education-grid {
  display: grid;
  gap: 24px;
  max-width: 700px;
}

.education-card {
  display: flex;
  gap: 24px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.education-card:hover {
  border-color: var(--clr-border-active);
  box-shadow: var(--shadow-glow);
}

.education-card__icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  color: #fff;
}

.education-card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 4px;
}

.education-card__subtitle {
  font-size: var(--fs-sm);
  color: var(--clr-accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.education-card__institution,
.education-card__location {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-bottom: 4px;
}

.education-card__institution i,
.education-card__location i {
  width: 16px;
  color: var(--clr-text-dim);
  margin-right: 8px;
}

.education-card__date {
  display: inline-block;
  margin-top: 8px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--clr-text-dim);
  background: var(--clr-bg-alt);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--clr-border);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-text p {
  color: var(--clr-text-muted);
  font-size: var(--fs-md);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-method:hover {
  border-color: var(--clr-border-active);
  background: var(--clr-surface-hover);
  transform: translateX(4px);
}

.contact-method__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  font-size: var(--fs-lg);
}

.contact-method h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 2px;
}

.contact-method p {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-group label {
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  pointer-events: none;
  transition: var(--transition);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  font-size: var(--fs-xs);
  color: var(--clr-accent);
  background: var(--clr-surface);
  padding: 0 6px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--clr-border);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  font-size: var(--fs-lg);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lightbox-close:hover {
  background: #ff4757;
  border-color: transparent;
}

.lightbox-header {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}

.lightbox-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.lightbox-description {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.lightbox-gallery {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
}

.lightbox-image-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 55vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

.lightbox-counter {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 12px;
  border-radius: 100px;
}

.lightbox-nav {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: var(--gradient-accent);
  border-color: transparent;
}

.lightbox-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 8px;
  max-width: 100%;
}

.lightbox-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
  background: var(--clr-accent);
  border-radius: 4px;
}

.lightbox-thumb {
  width: 60px;
  height: 45px;
  min-width: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: var(--transition);
}

.lightbox-thumb.active {
  border-color: var(--clr-accent);
  opacity: 1;
}

.lightbox-thumb:hover {
  opacity: 0.8;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   RESPONSIVE — TABLET (768px)
   ============================================ */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: 80px 0;
  }

  /* Nav Mobile */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--clr-bg-alt);
    border-left: 1px solid var(--clr-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right 0.4s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    font-size: var(--fs-base);
    padding: 12px 16px;
  }

  .nav-link--cta {
    margin-top: 12px;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  /* Hero */
  .hero-name {
    font-size: var(--fs-3xl);
  }

  .hero-title {
    font-size: var(--fs-lg);
  }

  .hero-description {
    font-size: var(--fs-sm);
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat__number {
    font-size: var(--fs-2xl);
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Section Title */
  .section-title {
    font-size: var(--fs-2xl);
    margin-bottom: 40px;
  }

  /* Timeline */
  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-marker {
    left: -26px;
    width: 10px;
    height: 10px;
  }

  .timeline-content {
    padding: 20px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-role {
    font-size: var(--fs-base);
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: var(--fs-xs);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Education */
  .education-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  /* Lightbox */
  .lightbox-content {
    width: 95%;
  }

  .lightbox-title {
    font-size: var(--fs-xl);
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .lightbox-image {
    max-height: 45vh;
  }

  .lightbox-close {
    top: 0;
    right: 0;
  }

  /* Prevent mobile scroll distortion */
  .section {
    overflow-x: clip;
  }

  .contact-method:hover {
    transform: none;
  }

  .portfolio-card:hover {
    transform: none;
  }

  .footer-socials a:hover {
    transform: none;
  }

  .btn--primary:hover,
  .btn--outline:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: var(--fs-2xl);
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hero-stat__label {
    margin-top: 0;
  }
}

/* ============================================
   LIGHT MODE
   ============================================ */
[data-theme="light"] {
  --clr-bg: #f5f5fa;
  --clr-bg-alt: #eeeef4;
  --clr-surface: #ffffff;
  --clr-surface-hover: #f0f0f8;
  --clr-border: rgba(0, 0, 0, 0.08);
  --clr-border-active: rgba(108, 99, 255, 0.3);

  --clr-text: #1a1a2e;
  --clr-text-muted: #555570;
  --clr-text-dim: #8888a0;

  --clr-accent-glow: rgba(108, 99, 255, 0.12);

  --gradient-hero: linear-gradient(160deg, #eeeef8 0%, #e0e0f0 40%, #f0f0fa 100%);

  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.1);
}

[data-theme="light"] .navbar {
  background: rgba(245, 245, 250, 0.85);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(245, 245, 250, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-gradient::before {
  background: radial-gradient(circle at 30% 40%, rgba(108, 99, 255, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .hamburger-line {
  background: var(--clr-text);
}

[data-theme="light"] .nav-links {
  background: var(--clr-bg-alt);
}

[data-theme="light"] .lightbox-backdrop {
  background: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .lightbox-title {
  color: var(--clr-text);
}

[data-theme="light"] .lightbox-description {
  color: var(--clr-text-muted);
}

[data-theme="light"] .lightbox-counter {
  color: var(--clr-text-dim);
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .lightbox-nav {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--clr-text);
}

[data-theme="light"] .lightbox-close {
  background: var(--clr-surface);
  border-color: var(--clr-border);
  color: var(--clr-text);
}

[data-theme="light"] .portfolio-card__overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, transparent 60%);
}

[data-theme="light"] .form-group input:focus + label,
[data-theme="light"] .form-group input:not(:placeholder-shown) + label,
[data-theme="light"] .form-group textarea:focus + label,
[data-theme="light"] .form-group textarea:not(:placeholder-shown) + label {
  background: var(--clr-surface);
}

[data-theme="light"] .timeline-tags span {
  background: rgba(108, 99, 255, 0.06);
}

[data-theme="light"] .portfolio-card__tags span {
  background: rgba(108, 99, 255, 0.06);
}

[data-theme="light"] .skill-tag:hover {
  background: rgba(108, 99, 255, 0.04);
}
