/* ===================================================
   layout.css  —  No-sidebar, full-width, clean white
   =================================================== */

/* ── 1. Kill sidebar & related clutter (keep cursor!) ─ */
#colorlib-aside,
.js-colorlib-nav-toggle,
.colorlib-nav-toggle,
#theme-toggle {
  display: none !important;
}

/* ── Custom cursor (futuristic dot + ring) ─────── */
.cursor, .cursor2 {
  position: fixed                                !important;
  top: 0                                         !important;
  left: 0                                        !important;
  pointer-events: none                           !important;
  z-index: 999999                                !important;
  /* IMPORTANT: NO !important on transform — JS needs to override it
     every frame for the unified rAF mouse tracker. Width/height/opacity
     transitions are still allowed via their own properties. */
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  margin: 0                                      !important;
  will-change: transform;
}
.cursor {
  width: 10px  !important;
  height: 10px !important;
  background: linear-gradient(135deg, #007bff, #00d4ff) !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: 0 0 14px rgba(0, 180, 255, 0.85) !important;
  opacity: 1 !important;
  display: block !important;
  mix-blend-mode: normal !important;
}
.cursor2 {
  width: 44px  !important;
  height: 44px !important;
  border: 1.5px solid rgba(0, 130, 255, 0.6) !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: 0 0 18px rgba(0, 150, 255, 0.25) !important;
  opacity: 1 !important;
  display: block !important;
  mix-blend-mode: normal !important;
}
.cursor.magnet  { width: 22px !important; height: 22px !important; opacity: 0.7 !important; }
.cursor2.magnet { width: 66px !important; height: 66px !important; border-color: #00d4ff !important; }
@media (max-width: 860px), (hover: none) {
  .cursor, .cursor2 { display: none !important; }
}

/* ── 2. Make main content fill 100 % width ───────── */
html, body {
  background: #ffffff !important;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* CRITICAL: position:sticky needs visible overflow on ALL ancestors.
   The original template puts overflow:hidden on #colorlib-page and that
   breaks the sticky hero canvas — force visible. */
#colorlib-page,
.container-wrap,
#colorlib-main {
  overflow: visible !important;
}

.container-wrap {
  display: block !important;
  padding: 0 !important;
}

#colorlib-main {
  width: 100% !important;
  margin-left: 0 !important;
  float: none !important;
  padding-top: 0;
}

/* ── 3. NAVBAR — clean 3-zone grid (brand | centered links | CV) ── */
#top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 100000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0, 100, 255, 0.06);
  display: flex;
  align-items: center;
}
#top-nav::after {                          /* animated cyan underline */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #007bff 45%, #00d4ff 55%, transparent);
  background-size: 200% 100%;
  opacity: 0.5;
  animation: navShimmer 6s linear infinite;
}
@keyframes navShimmer {
  0% { background-position: -100% 0; } 100% { background-position: 100% 0; }
}

.top-nav-inner {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;       /* brand | links | CV */
  align-items: center;
  gap: 24px;
}

/* ── BRAND: monogram tile + name ── */
.nav-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
  transition: transform 0.2s;
}
.nav-brand:hover { transform: translateX(1px); }
.brand-logo {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  font-family: 'Courier New', monospace;
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, #007bff 0%, #00d4ff 100%);
  border-radius: 11px;
  box-shadow:
    0 6px 18px rgba(0, 120, 255, 0.30),
    inset 0 1px 0 rgba(255,255,255,0.35);
  position: relative;
}
.brand-logo::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 14px;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  filter: blur(10px); opacity: 0.35; z-index: -1;
}
.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px; font-weight: 700;
  color: #0a0a14;
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-name em {
  font-style: normal;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── LINKS — centered, exactly 6 items ── */
.nav-links {
  justify-self: center;
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: rgba(245, 248, 255, 0.6);
  border: 1px solid rgba(0, 120, 255, 0.08);
  border-radius: 999px;
}
.nav-links li { list-style: none; }
.nav-links a {
  display: inline-block;
  font-family: 'Quicksand', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #2a2f3d !important;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(.4,.0,.2,1);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links li.active a {
  background: linear-gradient(135deg, #007bff 0%, #00d4ff 100%);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 120, 255, 0.30);
}

/* ── CV button — right side ── */
.nav-cv-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0a0a14 0%, #1a1f2e 100%);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(10, 10, 20, 0.18);
  transition: all 0.25s;
  border: 1px solid rgba(255,255,255,0.08);
}
.nav-cv-btn i { font-size: 13px; color: #00d4ff; }
.nav-cv-btn:hover {
  background: linear-gradient(135deg, #007bff 0%, #00d4ff 100%);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 120, 255, 0.42);
}
.nav-cv-btn:hover i { color: #fff; }

/* Mobile nav hamburger — bigger, tap-friendly */
.nav-hamburger {
  display: none;
  background: linear-gradient(135deg, #f0f8ff, #ffffff);
  border: 1.5px solid rgba(0, 120, 255, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 22px;             /* was 11px on this template (rem=10px) */
  line-height: 1;
  cursor: pointer;
  color: #007bff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 80, 200, 0.08);
  transition: transform .15s, box-shadow .2s;
}
.nav-hamburger:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 80, 200, 0.16); }
.nav-hamburger:active { transform: translateY(0); }

/* Mobile drawer */
#top-nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #eee;
  padding: 1rem 2rem;
  z-index: 99998;
  flex-direction: column;
  gap: 4px;
}
#top-nav-drawer.open { display: flex; }
#top-nav-drawer a {
  font-family: "Quicksand", Arial, sans-serif;
  font-size: 0.9rem;
  color: #444;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  display: block;
}
#top-nav-drawer a:last-child { border-bottom: none; }
#top-nav-drawer a:hover { color: #007bff; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .top-nav-inner { grid-template-columns: 1fr auto; }
  .nav-hamburger { display: block; }
}
@media (max-width: 768px) {
  #top-nav { height: 64px; }
  .top-nav-inner { padding: 0 16px; gap: 12px; }
  .nav-cv-btn { display: none; }
  .brand-logo { width: 36px; height: 36px; font-size: 12px; }
  .brand-name { font-size: 16px; }
}

/* Override the legacy template hero styles that mess things up */
#colorlib-hero,
.hero-video-section {
  min-height: 0     !important;
  width: 100%       !important;
  float: none       !important;
  clear: both       !important;
  margin: 0         !important;
  padding: 0        !important;
  background: #fff  !important;
  display: block    !important;
  position: relative !important;
  overflow: visible !important;
}

#top-nav      { z-index: 100000 !important; background: #ffffff !important; }
#colorlib-main { padding-top: 0 !important; }

/* ── 5. Section spacing (extra breathing room without sidebar) ── */
.colorlib-about,
.colorlib-services,
.colorlib-skills,
.colorlib-experience,
.colorlib-education,
.colorlib-work,
.colorlib-contact,
.colorlib-globe {
  padding-top: 4em;
  padding-bottom: 4em;
}

.colorlib-narrow-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── 6. Kill ALL dark-mode rules ─────────────────── */
body.dark-mode,
body.dark-mode #colorlib-aside,
body.dark-mode #colorlib-main,
body.dark-mode #colorlib-page {
  background: #ffffff !important;
  color: rgba(0,0,0,0.7) !important;
}
body.dark-mode * { color: inherit; }

/* ── 7. Misc alignment fixes ─────────────────────── */
.row { margin-left: -15px; margin-right: -15px; }

/* Hero overlay sits below top nav */
.hero-overlay {
  padding-bottom: 3rem;
  padding-left: 4rem;
}

/* Work grid fix without sidebar */
.colorlib-work .project {
  min-height: 300px;
}

/* Footer alignment */
#colorlib-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

/* Counter section */
#colorlib-counter {
  padding: 4em 0;
}
