/* =========================
   Nightly-style Portfolio
   Light + Dark Theme
   ========================= */

:root {
  /* Light theme defaults */
  --bg: #f9fafb;
  --bg-alt: #e5e7eb;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --accent: #facc15;
  --accent-soft: rgba(250, 204, 21, 0.16);
  --accent-soft-alt: rgba(234, 179, 8, 0.18);
  --text: #020617;
  --text-muted: #4b5563;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.25);
  --shadow-subtle: 0 8px 24px rgba(15, 23, 42, 0.18);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

/* Dark theme overrides */
body[data-theme='dark'] {
  --bg: #020617;
  --bg-alt: #020617;
  --bg-elevated: #020617;
  --bg-card: rgba(15, 23, 42, 0.92);
  --accent: #facc15;
  --accent-soft: rgba(250, 204, 21, 0.2);
  --accent-soft-alt: rgba(250, 204, 21, 0.12);
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --shadow-subtle: 0 8px 24px rgba(15, 23, 42, 0.7);
}

/* Global */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont,
    'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body[data-theme='dark'] {
  background: radial-gradient(circle at top, #111827 0, #020617 55%),
    radial-gradient(circle at bottom, #020617 0, #020617 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Basic type */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-weight: 600;
}

p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.section-padding {
  padding: 80px 0;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}

.section-heading p {
  font-size: 0.98rem;
}

/* Top bar */

.top-bar {
  background: linear-gradient(to right, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  padding: 6px 0;
}

.top-bar strong {
  font-weight: 500;
}

.top-bar-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Navbar */

.main-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(249, 250, 251, 0.92);
  border-bottom: 1px solid var(--border-subtle);
}

body[data-theme='dark'] .main-navbar {
  background: rgba(2, 6, 23, 0.85);
}

.navbar-brand.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4), var(--shadow-subtle);
  background: radial-gradient(circle at top, #e5e7eb, #cbd5f5);
}

body[data-theme='dark'] .brand-logo-circle {
  background: radial-gradient(circle at top, #1f2937, #020617);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 1.02rem;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.main-nav-links .nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  padding: 0.3rem 0.8rem;
}

.main-nav-links .nav-link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #fde68a, #facc15, #eab308);
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.main-nav-links .nav-link:hover,
.main-nav-links .nav-link:focus,
.main-nav-links .nav-link.active {
  color: var(--text);
}

.main-nav-links .nav-link:hover::after,
.main-nav-links .nav-link:focus::after,
.main-nav-links .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Theme toggle button */

.theme-toggle-btn {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(249, 250, 251, 0.9);
  color: var(--text-muted);
  padding: 6px 10px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body[data-theme='dark'] .theme-toggle-btn {
  background: rgba(15, 23, 42, 0.9);
  color: #facc15;
}

.theme-toggle-btn:hover {
  border-color: rgba(234, 179, 8, 0.8);
}

/* Buttons */

.pill-btn-primary {
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #1f2933;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(234, 179, 8, 0.4);
}

.pill-btn-primary:hover {
  filter: brightness(1.05);
}

.pill-btn-ghost {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(249, 250, 251, 0.8);
  color: var(--text);
  padding: 8px 16px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body[data-theme='dark'] .pill-btn-ghost {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
}

/* Hero */

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

/* background video */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* gradient overlay */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
      circle at top left,
      rgba(250, 204, 21, 0.3),
      transparent 55%
    ),
    radial-gradient(
      circle at top right,
      rgba(59, 130, 246, 0.25),
      transparent 60%
    ),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.95));
}

body[data-theme='light'] .hero-gradient {
  background: radial-gradient(
      circle at top left,
      rgba(250, 204, 21, 0.25),
      transparent 55%
    ),
    radial-gradient(
      circle at top right,
      rgba(59, 130, 246, 0.22),
      transparent 60%
    ),
    linear-gradient(to bottom, rgba(248, 250, 252, 0.2), rgba(249, 250, 251, 1));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  padding: 64px 16px 56px;
  margin-top: 30px;
}

.hero-copy {
  margin-bottom: 32px;
  margin-top: 50px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-title span {
  background: linear-gradient(to right, #fef3c7, #facc15, #fbbf24);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 22px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.badge-chip {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(249, 250, 251, 0.85);
  color: var(--text-muted);
  padding: 6px 11px;
  font-size: 0.78rem;
}

body[data-theme='dark'] .badge-chip {
  background: rgba(15, 23, 42, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-pill {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  padding: 6px 11px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(249, 250, 251, 0.85);
}

body[data-theme='dark'] .social-pill {
  background: rgba(15, 23, 42, 0.9);
}

.social-pill:hover {
  color: var(--text);
  border-color: rgba(250, 204, 21, 0.9);
}

/* About */

.about-section {
  background: var(--bg);
}

.card-surface {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 24px 22px;
  box-shadow: var(--shadow-subtle);
}

.card-surface h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.card-surface h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.experience-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.experience-list li + li {
  margin-top: 12px;
}

.experience-list h6 {
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.experience-list p {
  font-size: 0.9rem;
}

.about-photo {
  margin-top: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

/* Coding & Art sections */

.work-section,
.art-section {
  background: var(--bg);
}

/* Carousel wrapper card */

.slideshow-shell {
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

/* ================================
   Carousel
   ================================ */

.slideshow-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at top, var(--bg-alt), var(--bg));
  overflow: hidden;
  border-radius: 18px;
}

/* Fallback if aspect-ratio unsupported */
@supports not (aspect-ratio: 16/9) {
  .slideshow-container {
    height: 562px;
  }
}

.slideshow-container .mySlides {
  position: absolute;
  inset: 0;
  display: none;
}

.slideshow-container .mySlides img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 18px;
  background: var(--bg);
}

/* Arrows */

.slideshow-container .slide-prev,
.slideshow-container .slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  background: rgba(249, 250, 251, 0.85);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  outline: none;
  z-index: 10;
  border: 1px solid var(--border-subtle);
}

body[data-theme='dark'] .slideshow-container .slide-prev,
body[data-theme='dark'] .slideshow-container .slide-next {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.75);
}

.slideshow-container .slide-prev {
  left: 10px;
}
.slideshow-container .slide-next {
  right: 10px;
}

.slideshow-container .slide-prev:hover,
.slideshow-container .slide-next:hover {
  background: rgba(250, 204, 21, 0.95);
  color: #1f2937;
}

/* Slide number */

.slideshow-container .numbertext {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #111827;
  background: rgba(250, 250, 250, 0.9);
  border-radius: 999px;
  z-index: 5;
}

body[data-theme='dark'] .slideshow-container .numbertext {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.75);
}

/* Caption */

.slideshow-container .text {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(249, 250, 251, 0.92);
  border-radius: 14px;
  z-index: 5;
}

body[data-theme='dark'] .slideshow-container .text {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.78);
}

/* Dots */

.dots-wrap {
  text-align: center;
  margin-top: 10px;
}

.dots-wrap .dot {
  height: 11px;
  width: 11px;
  margin: 0 4px;
  background: #d1d5db;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

body[data-theme='dark'] .dots-wrap .dot {
  background: #4b5563;
}

.dots-wrap .dot.active,
.dots-wrap .dot:hover {
  background: #facc15;
  transform: translateY(-1px);
}

/* Footer */

.site-footer {
  margin-top: auto;
  padding: 18px 0 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(249, 250, 251, 0.98);
  color: var(--text-muted);
  font-size: 0.84rem;
}

body[data-theme='dark'] .site-footer {
  background: rgba(2, 6, 23, 0.95);
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer .footer-links a {
  color: var(--text-muted);
}

.site-footer .footer-links a:hover {
  color: var(--text);
}

/* Default hamburger icon style */
.navbar-burger-icon {
  font-size: 1.9rem;
  color: var(--text); /* text variable already switches for dark/light */
}

/* Force visibility in dark mode */
body[data-theme='dark'] .navbar-burger-icon {
  color: #facc15 !important; /* bright yellow so it's always visible */
}

/* Optional: Make it darker in light mode */
body[data-theme='light'] .navbar-burger-icon {
  color: #111 !important;
}

/* Responsive tweaks */

/* Mobile navbar menu styling */
@media (max-width: 991.98px) {
  .main-navbar .navbar-collapse {
    background: var(--bg);
    padding: 12px 0;
    border-top: 1px solid var(--border-subtle);
  }

  .main-navbar .nav-link {
    padding: 10px 18px;
    font-size: 1rem;
    display: block;
  }

  .main-navbar .nav-link:hover {
    background: var(--accent-soft);
    border-radius: var(--radius-md);
  }

  /* Show theme + resume buttons inside the mobile menu */
  .navbar-collapse .theme-toggle-btn,
  .navbar-collapse .pill-btn-primary {
    display: inline-flex !important;
    margin: 10px 18px;
  }
}

/* Center / narrow hero text on smaller screens */
@media (max-width: 991.98px) {
  .hero-copy {
    max-width: 620px; /* controls line length */
    margin: 0 auto 32px; /* centers the block */
    padding: 0 24px; /* adds a bit of side breathing room */
  }
}

@media (min-width: 992px) {
  .hero-copy {
    margin-left: 124px;
  }
}

@media (max-width: 991.98px) {
  .hero-inner {
    padding-top: 40px;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 64px 0;
  }
  .main-navbar {
    backdrop-filter: blur(12px);
  }
}

/* Reduce hero height on shorter screens so there's less blank space */
@media (min-width: 992px) and (max-height: 900px) {
  .hero-section {
    min-height: 0;
  }

  .hero-inner {
    padding-bottom: 40px;
  }
}
