/* Reset margins, paddings, and box sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
  /* match your actual sidebar width; your footer uses 210px so we’ll use that */
  --sidebar-w: 210px;
}

/* Make the HTML/body fill the page. */
html, body {
  height: 100%;
}

/* Dark Mode Body Settings */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212; /* overall background */
  color: #E0E0E0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Bigger logo in the left sidebar */
.sidebar-logo {
  padding: 18px 10px 10px;   /* a bit more room around it */
  text-align: center;
}

.sidebar-logo img {
  display: block;
  width: clamp(150px, 100%, 200px); /* grow but stay inside the column */
  height: auto;                    /* keep aspect ratio */
  object-fit: contain;
  margin: 0 auto 6px auto;         /* centered, slight spacing below */
}

/* The left sidebar (header) is fixed to the left */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  /* Red gradient from #333 to #8B0000 */
  background: linear-gradient(180deg, #333, #8B0000);
  padding: 20px;
}

/* Your Name styling inside the sidebar */
.name {
  font-size: 2rem;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

/* Nav Styles inside the sidebar */
nav ul {
  list-style: none;
}

nav ul li {
  margin-bottom: 15px;
  list-style-position: outside;
}

/* Base links */
nav ul li a{
  color:#fff;
  text-decoration:none;
  font-weight:400;
  border-left:3px solid transparent;
  padding-left:12px;
  transition: color .2s ease, text-shadow .2s ease, font-weight .2s ease,
              padding-left .2s ease, border-color .2s ease;
}

/* Hover + active state (white text, bolder, glow, gold accent) */
nav ul li a:hover,
nav ul li a.active{
  color:#fff;                 /* stays white */
  font-weight:700;            /* bolder */
  text-shadow:
    0 0 6px rgba(255,215,0,.45),   /* gold glow */
    0 0 12px rgba(220,20,60,.35);  /* subtle crimson halo */
  border-left-color:#FFD700;  /* gold bar */
  padding-left:15px;          /* same nudge you had */
}

/* Keyboard focus ring (optional but good for a11y) */
nav ul li a:focus-visible{
  outline:2px solid #FFD700;
  outline-offset:2px;
}

/* The main content area is shifted right by 240px to clear the sidebar */
main {
  margin-left: 240px; /* 220px width + 20px padding = 240px */
  padding: 40px;
  flex: 1;            /* expands to fill available space */
}

/* Social buttons pinned to bottom of left sidebar */
.social-links {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.social-btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #333;
  color: #E0E0E0;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}

/* Brand hints */
.social-btn.linkedin:hover { color: #bbb; }
.social-btn.github:hover   { color: #bbb; }

/* Footer pinned to the bottom of the page */
footer {
  text-align: center;
  padding: 20px 0;
  background-color: #1a1a1a;
  color: #ccc;
  font-size: 0.9rem;
  border-top: 1px solid #333;
  padding-left: 210px;
}

/* Make sure the sidebar can host a pseudo-element */
header{
  position: fixed;            /* you already have this */
  z-index: 20;                /* keep it above main so the feather sits on top */
}

/* Sidebar → main fade */
header::after{
  content: "";
  position: absolute;
  top: 0;
  right: -56px;               /* push the feather outside the sidebar */
  width: 56px;                /* feather width; tweak 40–80px to taste */
  height: 100%;
  pointer-events: none;       /* never block clicks */
  z-index: -1;                /* stays with the header but beneath its contents */

  /* Fade from sidebar edge into transparent over the main area */
  background: linear-gradient(
    90deg,
    rgba(139, 0, 0, 0.55) 0%,   /* matches your maroon end of the sidebar */
    rgba(18, 18, 18, 0.0) 100%  /* fade to main bg */
  );
}

/* Optional: a tiny inner shadow on the main for extra depth */
main{
  position: relative; /* enables the inset shadow to render consistently */
  box-shadow: inset 18px 0 32px -24px rgba(0,0,0,0.6);
}

/* -----------------------------
   Desktop nav positioning
   ----------------------------- */

/* Keep your desktop offset (same as your 200px) */
:root {
  --nav-offset-desktop: 200px; /* change this anytime */
}

/* Desktop default: menu stays visible */
.site-nav {
  padding-top: var(--nav-offset-desktop);
}

.site-nav .menu {
  display: flex;
  flex-direction: column;
  gap: 22px; /* adjust if you want tighter/looser spacing */
}

/* Hamburger hidden on desktop */
.menu-toggle {
  display: none;
}

/* -----------------------------
   Mobile dropdown nav
   ----------------------------- */
@media (max-width: 768px) {
  /* On phones: remove the big top offset */
  .site-nav {
    padding-top: 0;
  }

  /* Show hamburger on phones */
  .menu-toggle {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.20);
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
  }

  /* Collapse menu by default (ONLY on mobile) */
  .site-nav .menu {
    display: grid;
    gap: 8px;
    margin-top: 10px;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);

    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
  }

  /* Open state */
  header.menu-open .site-nav .menu {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
  }

  /* Optional: mobile menu link styling */
  .site-nav .menu li a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    border-left: none;
    background: rgba(0,0,0,0.18);
  }

  /* Footer centering fix on mobile */
  footer,
  footer.footer {
    padding-left: 0 !important;
    justify-content: center;
    text-align: center;
  }
}


/* If the layout becomes single-column on small screens, hide the feather */
@media (max-width: 768px){
  header::after{ display: none; }
  main{ box-shadow: none; }
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  header {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
  }
  .name {
    margin-bottom: 15px;
  }
  nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  nav ul li {
    margin: 5px 10px;
  }
  main {
    margin: 0;
    padding: 20px;
  }

  .social-links {
    position: static;
    margin-top: 10px;
  }
}

/* Disable mini-games on touch devices / tablets / phones */
@media (pointer: coarse), (max-width: 1024px) {
  a.minigame-link {
    pointer-events: none;
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(1);
  }
}

/* Hide notice by default (PC/laptop) */
.desktop-only-notice {
  display: none;
  text-align: center;
  margin: 20px auto;
  padding: 0 12px;
}

/* Show ONLY on mobile/tablet screens (same logic as your "disabled" behavior) */
@media (pointer: coarse), (max-width: 1024px) {
  .desktop-only-notice {
    display: block;
  }
}

/* Desktop default: arrows visible */
.carousel-arrow{
  display: grid;
}

/* Hide arrows on phone/tablet (swipe will be used) */
@media (pointer: coarse), (max-width: 1024px){
  .carousel-arrow{
    display: none !important;
  }

  /* Optional: remove extra side gutters if you still have them somewhere */
  .project-carousel{
    padding: 0 !important;
  }
}

