/* Custom styles extracted from inline HTML styles to clean up index.html */

.preloader-logo {
  object-fit: cover;
  border-radius: 50%;
}

.about-video {
  border-radius: 8px;
  width: 100%;
  max-height: 370px;
  object-fit: cover;
}

.contact-map-iframe {
  border: 0;
  width: 100%;
  height: 270px;
}

:root {
  --bg-0: #12100e;
  --bg-1: #181613;
  --ink-0: #f2ece1;
  --ink-1: #a89e8f;
  --ink-2: #6f6759;
  --accent: #7fa896;
  --accent-dim: rgba(127,168,150,0.14);
  --gold: #c7a24a;
  --line: rgba(242,236,225,0.08);
  
  /* Scroll Progress Theme Colors */
  --scroll-color-1: 127, 168, 150; /* sage */
  --scroll-color-2: 201, 138, 91;  /* terracotta */
  --scroll-color-3: 122, 147, 201; /* slate blue */
  --scroll-color-4: 199, 162, 74;  /* gold */
  --scroll-color-5: 164, 121, 201; /* violet */
  --scroll-color-6: 220, 80, 110;  /* deep pink */
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  /* min-height: 100vh; */
  background:
    radial-gradient(circle at 20% 0%, rgba(127,168,150,0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%) !important;
  border-right: 1px solid var(--line) !important;
  padding: 44px 30px 30px !important;
  position: fixed;
  transition: background 0.3s ease;
}

/* thin gold signature line down the far edge */
.sidebar::after {
  content: "";
  position: absolute;
  top: 0; right: -1px;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold) 18%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

.sidebar .profile {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.sidebar .avatar-ring {
  width: 120px; height: 120px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 200deg, var(--accent), var(--gold), var(--accent));
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
}
.sidebar .avatar-ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-0);
  display: block;
}

.sidebar .brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.03em;
  color: var(--ink-0);
  margin-bottom: 2px;
}
.sidebar .brand-tag {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.sidebar .socials {
  display: flex; justify-content: center; gap: 10px;
}
.sidebar .socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-1) !important;
  background: transparent !important;
  text-decoration: none;
  transition: all .25s ease;
}
.sidebar .socials a:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--bg-0) !important;
  transform: translateY(-2px);
}
.sidebar .socials svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- NAV ---------- */
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.sidebar nav ul { padding: 0 !important; display: flex; flex-direction: column; height: 100%; margin-bottom: 0; }
.sidebar nav ul li { list-style: none; }

.sidebar .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px 13px 18px !important;
  border-radius: 8px;
  color: var(--ink-1) !important;
  text-decoration: none;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: 'Inter', sans-serif !important;
  letter-spacing: 0.01em;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  width: auto !important;
  margin-bottom: 2px;
}
.sidebar .nav-item svg {
  width: 17px; height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
  transition: transform .25s ease;
  margin-right: 0 !important;
}

/* sliding accent bar */
.sidebar .nav-item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.3s ease, background 0.3s ease;
}

.sidebar .nav-item:hover,
.sidebar .nav-item:focus {
  color: var(--ink-0) !important;
  background: var(--accent-dim) !important;
  letter-spacing: 0.035em;
}
.sidebar .nav-item:hover svg,
.sidebar .nav-item:focus svg { transform: translateX(2px); color: var(--ink-0) !important; }
.sidebar .nav-item:hover::before,
.sidebar .nav-item:focus::before { height: 60%; }

.sidebar .nav-item.active {
  color: var(--ink-0) !important;
  background: var(--accent-dim) !important;
  letter-spacing: 0.035em;
}
.sidebar .nav-item.active::before { height: 70%; background: var(--gold); }
.sidebar .nav-item.active svg { color: var(--ink-0) !important; }

.sidebar .nav-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 6px;
}

/* ============================================================
   SIDEBAR BACKGROUND — gradient mesh glow + bokeh particles
   ============================================================ */

.sidebar {
  overflow: hidden;
}

.sidebar > * {
  position: relative;
  z-index: 2;
}

.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 25% 15%, rgba(217, 162, 74, 0.18), transparent 45%),
    radial-gradient(circle at 75% 60%, rgba(197, 139, 176, 0.14), transparent 50%);
  animation: navGlowDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes navGlowDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-15px, 10px) scale(1.08); }
}

.sidebar .bokeh-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.sidebar .particle {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 190, 140, 0.5), transparent 70%);
  filter: blur(1px);
  animation-name: navParticleRise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes navParticleRise {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-520px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar::before,
  .sidebar .particle {
    animation: none;
  }
}

/* ============================================================
   CUSTOM SECTION BACKGROUNDS
   ============================================================ */

/* Ensure the text/content is always layered on top of the backgrounds */
#about > .container,
#resume > .container,
#testimonials > .container,
#contact > .container {
  position: relative;
  z-index: 2;
}

/* --- About --- */
#about {
  position: relative;
  overflow: hidden;
  background: #fdfbf9 !important; /* Soft warm alabaster */
}
#about::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,142,232,0.35), transparent 70%);
  top: -250px; left: -130px;
  pointer-events: none;
}
#about::after {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,89,48,0.25), transparent 70%);
  bottom: -220px; right: -100px;
  pointer-events: none;
}

/* --- Resume --- */
#resume {
  position: relative;
  overflow: hidden;
  background: #f4f7f6 !important; /* Faint sage mist to complement sidebar */
}
#resume::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(56,142,232,0.15) 0%, transparent 40%);
  pointer-events: none;
}

/* --- Testimonials --- */
#testimonials {
  position: relative;
  overflow: hidden;
  background: #fdfbf9 !important; /* Soft warm alabaster */
}
#testimonials::before,
#testimonials::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,142,232,0.35), transparent 70%);
  pointer-events: none;
}
#testimonials::before { width: 260px; height: 260px; top: -140px; right: 15%; }
#testimonials::after { width: 220px; height: 220px; bottom: -130px; left: 8%; }

/* --- Contact --- */
#contact {
  position: relative;
  overflow: hidden;
  background: #f4f7f6 !important; /* Faint sage mist */
}
#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(56,142,232,0.15) 0%, transparent 40%);
  pointer-events: none;
}
