:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --bg-card: #0b1220;
  --accent: #FF7F50;
  --accent-strong: #E74C3C;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
}

/* Global reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255,127,80,0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(231,76,60,0.3), transparent 60%),
    var(--bg);
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* HERO */
.hero {
  background:
    radial-gradient(circle at top left, rgba(255, 127, 80, 0.35), transparent 60%),
    linear-gradient(135deg, #020617, #020617 50%, #020617);
  color: #fff;
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 220px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin: 0 0 0.35rem;
  letter-spacing: 0.03em;
}

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 1.1rem;
}

.hero-text {
  max-width: 600px;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-btn {
  border-radius: 999px;
  padding-inline: 1.4rem;
  padding-block: 0.65rem;
  font-weight: 500;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.65);
}

.hero-btn.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: none;
}

.hero-btn.btn-outline-light {
  border-color: rgba(248, 250, 252, 0.5);
  color: #e5e7eb;
}

/* NAVBAR POLISH */
/* --- Main navbar (shared on all pages) --- */

.navbar.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

/* Brand + links */
.navbar .navbar-brand,
.navbar .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
}

.navbar .navbar-brand {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Link pills */
.navbar .nav-link {
  border-radius: 999px;
  padding: 6px 14px;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background-color: rgba(248, 250, 252, 0.08);
  color: #fff !important;
  transform: translateY(-1px);
}

.navbar .nav-link.active,
.navbar .show > .nav-link {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff !important;
}

/* Dropdown menu */
.dropdown-menu {
  border-radius: 16px;
  background-color: #020617;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.4rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.dropdown-item {
  color: var(--text-main);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background-color: rgba(15, 23, 42, 0.85);
}

/* Toggler (mobile) */
.navbar-toggler {
  border-color: rgba(148, 163, 184, 0.6);
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(248, 250, 252, 0.4);
}

/* Custom “hamburger” icon that shows up on dark background */
.navbar-toggler-icon {
  background-image: none;
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  box-shadow:
    0 -6px 0 0 #e5e7eb,
    0  0   0 0 #e5e7eb,
    0  6px 0 0 #e5e7eb;
  background-color: transparent;
}

/* Make collapsed menu a bit more spacious on mobile */
@media (max-width: 991.98px) {
  .navbar.main-nav {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .navbar-nav .nav-link {
    margin-bottom: 0.15rem;
  }
}

/* Keep legacy non-Bootstrap nav styles from interfering */
nav:not(.navbar) {
  background: none;
  box-shadow: none;
  padding: 0;
}


/* SECTIONS */
section {
  padding: 56px 0;
}

.section-intro {
  padding-top: 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  height: 2px;
  width: 64px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

/* Text */
p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* PORTFOLIO CARDS */
.portfolio-item {
  background: radial-gradient(circle at top, rgba(255,127,80,0.12), transparent 60%),
              var(--bg-card);
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.90);
  margin-bottom: 32px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.portfolio-item::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0;
  background:
    radial-gradient(circle at top left, rgba(255,127,80,0.36), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56,189,248,0.24), transparent 55%);
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.98);
  border-color: rgba(248, 250, 252, 0.35);
}

.portfolio-item:hover::before {
  opacity: 1;
}

.portfolio-item h2 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  color: #f9fafb;
}

.portfolio-description {
  font-size: 0.96rem;
}

/* Portfolio media */
.portfolio-image {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.portfolio-image .image {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  background: #020617;
}

.portfolio-image .image:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 1);
  border-color: rgba(248, 250, 252, 0.55);
  opacity: 0.96;
}

/* LIGHTBOX */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  z-index: 2000;
}

.lightbox-overlay img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  border-radius: 16px;
  border: 1px solid rgba(248, 250, 252, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9);
}

/* CONTACT */
.contact-section {
  background: radial-gradient(circle at top, rgba(255,127,80,0.18), transparent 65%),
              linear-gradient(135deg, #020617, #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.contact-heading {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-info {
  color: var(--text-muted);
}

.contact-icons {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.contact-icons a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #020617;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #e5e7eb;
  font-size: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.contact-icons a:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 1);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
}

/* FOOTER */
footer {
  padding: 18px 0 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    padding-top: 72px;
  }
  .hero-inner {
    min-height: 0;
  }
  .hero h1 {
    text-align: left;
  }
  section {
    padding: 42px 0;
  }
}

@media (max-width: 576px) {
  .portfolio-item {
    padding: 14px 14px 16px;
  }
}

/* --- ABOUT PAGE LAYOUT --- */

.hero-about .hero-inner {
  justify-content: center;
  text-align: center;
}

.hero-about .hero-text {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Main about section */
.about-section {
  padding: 56px 0 64px;
}

.about-card {
  background: radial-gradient(circle at top, rgba(255,127,80,0.18), transparent 60%),
              #020617;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 1);
  padding: 28px 28px 30px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0;
  background:
    radial-gradient(circle at top left, rgba(255,127,80,0.32), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56,189,248,0.25), transparent 55%);
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.about-card:hover::before {
  opacity: 1;
}

.about-avatar {
  flex: 0 0 auto;
  text-align: center;
}

.about-avatar img {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.8);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85);
  background: #020617;
}

.about-name {
  margin-top: 14px;
  font-size: 1.3rem;
  color: #f9fafb;
}

.about-text {
  flex: 1 1 auto;
}

.about-text p {
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Responsive tweaks for smaller screens */
@media (max-width: 768px) {
  .about-card {
    flex-direction: column;
    align-items: center;
    padding: 22px 18px 24px;
  }

  .about-avatar img {
    width: 190px;
    height: 190px;
  }

  .about-text {
    text-align: left;
  }
}

/* Supporting Work hero uses the same centered layout as About */
.hero-support .hero-inner {
  justify-content: center;
  text-align: center;
}

.hero-support .hero-text {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Optional: softer subtitle under section titles */
.section-subtitle {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.collage,
.photography-collage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-rows: 10px;
    gap: 14px;
}

.collage img,
.photography-collage img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    transition: transform .2s ease, box-shadow .2s ease;
    grid-row-end: span 15;
}

.collage img:hover,
.photography-collage img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0,0,0,.2);
}

/* Centered hero style for the home page header */
.hero-home-centered .hero-inner {
  justify-content: center;
  text-align: center;
}

.hero-home-centered .hero-actions {
  display: none !important; /* Removes the buttons cleanly */
}

.hero-home-centered .hero-text {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* PROTECTED PROJECTS PAGE */

.hero-protected .hero-inner {
  justify-content: center;
  text-align: center;
}

.hero-protected .hero-text {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.protected-section {
  padding: 56px 0 64px;
}

.protected-card {
  max-width: 720px;
  margin: 0 auto;
  background: radial-gradient(circle at top, rgba(255,127,80,0.18), transparent 60%),
              #020617;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 1);
  padding: 28px 24px 28px;
}

.protected-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.protected-text {
  margin-bottom: 1.4rem;
}

.protected-form {
  margin-bottom: 1.2rem;
}

.protected-input {
  background-color: #020617;
  border-color: rgba(148,163,184,0.6);
  color: var(--text-main);
}

.protected-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255,127,80,0.6);
}

.protected-btn {
  border-radius: 999px;
  padding-inline: 1.4rem;
  padding-block: 0.6rem;
  font-weight: 500;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: none;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.65);
}

.protected-error {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #f97373;
}

.protected-content {
  margin-top: 1.2rem;
}

.protected-note {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

/* Small gallery inside protected project cards */
.protected-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}

.protected-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;      /* or 3 / 2 or 1 / 1 if you prefer */
  object-fit: cover;        /* crops nicely, no stretching */
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.9);
  cursor: zoom-in;
  transition: transform 0.18s ease,
              box-shadow 0.18s ease,
              border-color 0.18s ease,
              opacity 0.18s ease;
}

.protected-gallery img:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 1);
  border-color: rgba(248, 250, 252, 0.7);
  opacity: 0.97;
}

@media (max-width: 576px) {
  .protected-gallery {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
}

/* Password card (small box) */
.protected-card {
  background: #020617;
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(15,23,42,0.95);
  padding: 32px;
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
}

/* After-unlock content (full width) */
.protected-projects {
  margin-top: 40px;
  padding-bottom: 40px;
}

.protected-projects .portfolio-item {
  height: 100%;
}

