* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

:root {
    --bodyColor: radial-gradient(120% 100% at 10% 20%, rgba(112, 214, 255, 0.12), transparent 60%),
                 radial-gradient(100% 50% at 120% 10%, rgba(238, 212, 99, 0.14), transparent 70%),
                 radial-gradient(120% 50% at 10% 80%, rgba(125, 248, 207, 0.1), transparent 70%),
                 radial-gradient(120% 80% at 90% 90%, rgba(121, 112, 245, 0.1), transparent 70%),
                 linear-gradient(160deg, #0a0c12 0%, #0b0e16 45%, #090c12 100%);
    --fontColor: Whitesmoke;
    --sideColor: rgb(12, 12, 12);
    --aboutPanel:  radial-gradient(120% 100% at 10% 20%, rgba(124,240,201,0.08), transparent),
                radial-gradient(90% 80% at 90% 0%, rgba(140,182,255,0.12), transparent),
                #0f1115;
    --footer: var(--sideColor);
    --postColor: #131212b0;
    --borderColor: rgb(70, 70, 70);
    --accent-1: rgb(150, 150, 150);
    --accent-2: #70d6ff;
    --accent-3: #ffb247;
    --postBodyPadding: 1rem 2rem;
}

body {
    background: var(--bodyColor);
    color: var(--fontColor);
    font-family: "Oxanium", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: 250px minmax(0, calc(100vw - 250px));
    grid-template-areas:
    "sidebar main"; 
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: var(--accent-2);
}

/* /////////////////// Sidebar /////////////////// */

.sideBar {
    grid-area: sidebar;
    position: sticky;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--sideColor);
}

.site-name {
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  margin-top: 2rem;
  margin-left: 1.5rem;
  margin-bottom: 2rem;
}

.link {
    text-decoration: none;
    margin: 0 1rem 1rem;
}

.link,
.about-trigger {
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    display: block;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    justify-self: center;
}

.about-trigger {
    margin-top: auto;
    margin-bottom: 2rem;
    background: none;
    border: none;
}

.link:hover,
.link:focus-visible,
.about-trigger:hover,
.about-trigger:focus-visible {
    color: var(--accent-3);
    background-color: rgba(145, 145, 145, 0.199);
    border-radius: 15px;
    cursor: pointer;
}

.link i{
    margin-right: .5rem;
}

/* /////////////// Main Page Layout //////////////// */

.layout {
    padding: 0 5rem;
}

section {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

/* ///////// Lander ////////// */

section .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero {
    width: 70%;
    margin: auto;
    height: 100%;
    gap: 8px;
}

.SR-header {
    margin-bottom: 0.5rem;
}

.lander-header {
    font-size: 4rem;
}

.lander-para {
    color: rgb(150, 150, 150);
    margin-bottom: 1rem;
    line-height: 1.75rem;
}

.scroll-row {
    display: flex;
    gap: 2rem;
    height: auto;
    width: 100%;
    padding: 1rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
}

.scroll-row::-webkit-scrollbar {
  height: 8px;
}

.scroll-row::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4); 
  border-radius: 999px;
}

.scroll-row::-webkit-scrollbar-thumb {
  background: rgb(255, 255, 255);
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.7);
}

.scroll-row::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.recent-link {
    display: block;
    width: 15vh;
    width: 15vw;
    text-decoration: none;
    background: var(--postColor);
    color: inherit;
    border: 1px solid gray;
    border-radius: 15px;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border 0.3s ease, 
                background 0.3s ease;
}

.recent-link:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
}

.recent-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.blog-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-data {
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
}

.blog-data span {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: var(--accent-3);
}

.blog-title {
    font-size: 1.25rem;
}

.blog-excerpt {
    margin-top: auto;
    line-height: 1.5rem;
    color: var(--accent-1);
}


/* ///////////////////// PANELS ///////////////////////// */

#blogs,
#games,
#media {
  padding-top: 1.5rem;
  overflow: hidden;
}

.inner-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5vh;
}

.panel-title {
    font-size: 2vw;
}

.panel-nav {
  display: flex;
  gap: 0.5rem;
}

.scroll-btn {
  cursor: pointer;
  border: 0;
  padding: 0.5rem;
  border-radius: 12px;
  background: rgba(100, 100, 100, 0.479);
  color: inherit;
  font-size: .75vw;
}

.bigboy-scroller{
  position: relative;
  overflow: hidden;
  width: 100%;
}

.scroll-track{
    display: flex;
    width: 100%;
    will-change: transform;
    transition: transform 600ms cubic-bezier(.22,.61,.36,1);
    transform: translateX(calc(var(--panelIndex, 0) * -100%));
}

.scroll-panel{
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 100%;
    width: 100%;
}

.post-link {
    display: block;
    width: 17vw;
    height: 40vh;
    background: var(--postColor);
    border: 1px solid var(--borderColor);
    color: inherit;
    text-decoration: none;
    margin: 1rem;
    transition:  border 0.3s ease, 
                 background 0.3s ease;
}
.post-card{
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-link:hover{
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
}

.poster{
    width: 85%;
    height: 60%;
    object-fit: cover;
    object-position: top;
    display: block;
    margin: 1rem auto 0;
}

.post-body{
    height: 45%;
    padding: var(--postBodyPadding);
    display: flex;
    flex-direction: column;
    gap: 0.75vh;
    min-height: 0;
}

.post-data {
    display: flex;
    justify-content: space-between;
}

.post-data span {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-3);
}

.post-excerpt {
    line-height: 2vh;
}

/* ///////////////////// About Me ///////////////////////// */

.about-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 12, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.about-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(420px, 90vw);
    padding: 32px 28px;
    background: var(--aboutPanel);
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 5;
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.about-panel.open {
  transform: translateX(0);
}

.about-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.panel-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-content p {
    line-height: 1.75rem;
}

.about-photo-container {
  width: 90%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: auto;
  margin-bottom: 2rem;
}

.about-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 3px solid black;
  border-radius: 5px;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  text-decoration: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: inherit;
  background: black;
  border: none;
  border-radius: 15px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}


.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  opacity: 0.96;
}

.mobile-header{ display:none; }
.menu-backdrop{ display:none; }

/* ///////////////////////// MEDIA QUERIES ////////////////////// */

@media (max-width: 1920px) {

    :root {
        --postBodyPadding: 1rem;
    }

    .post-body {
        font-size: 0.75vw;
        line-height: 2vh;
    }
}

.sr-only {
    position: absolute; 
    width: 1px; 
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden; 
    clip: rect(0, 0, 0, 0); 
    white-space: nowrap; 
    border: 0;
}

@media (max-width: 900px){

    body{
        display:block;
        overflow-x:hidden;
    }

    main.layout > section {
        display: none;
    }
    
    main.layout > section.is-active {
        display: flex;
    }

    .mobile-header {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 10;
        align-items: center;
        justify-content: space-between;
        padding: 0.9rem 1rem;
        background: rgba(10, 12, 18, 0.9);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .mobile-title{
        display: none;
    }

    .menu-btn {
        border: 0;
        background: rgba(100,100,100,0.35);
        color: inherit;
        border-radius: 12px;
        padding: 0.65rem 0.8rem;
        cursor: pointer;
    }

    html {
        scroll-snap-type: none; 
    }
    section{
        height:auto;
        min-height: calc(100svh - 60px);
        padding: 1.25rem 0 2rem;
    }

    .menu-backdrop {
        display:block;
        position: fixed;
        inset: 0;
        z-index: 15;
        background: rgba(4,6,12,0.7);
        opacity: 0;
        pointer-events: none;
        transition: opacity 200ms ease;
    }

    body.menu-open .sideBar { 
        transform: translateX(0); 
    }
    
    body.menu-open .menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .panel-nav {
         display:none;
    }

    .panel-title { 
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sideBar {
        position: fixed;
        width: 70vw;
        z-index: 20;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        box-shadow: 0 25px 40px rgba(0,0,0,0.45);
    }

    .sideBar .site-name {
        font-size: 1.25rem;
    }

    .layout {
        padding: 1rem;
    }

    section {
        height: auto;
        min-height: auto;
        scroll-snap-align: none;
        padding-bottom: 1rem;
    }

    .hero {
        width: 100%;
        margin: 0;
        min-height: auto;
        padding-top: 0.5rem;
    }

    .lander-header {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.1;
        margin: 0.5rem 0;
    }

    .SR-header {
        margin: 0;
    }

    .lander-para {
        line-height: 1.6;
    }

    .recent-link {
        width: min(85vw, 320px);
        flex: 0 0 auto;
    }

    #blogs,
    #games,
    #media {
        padding-top: 0.5rem;
        overflow: visible;
    }

    .panel-title {
        font-size: clamp(1.35rem, 6vw, 2rem);
    }

    .scroll-btn {
        font-size: 1rem;
        padding: 0.45rem 0.7rem;
    }

    .scroll-panel {
        gap: 1.5rem;
    }

    .post-link {
        width: calc(50% - 0.85rem);
        min-width: 0;
        height: auto;
        min-height: 280px;
        aspect-ratio: 1 / 1.25;
        margin: 0;
    }

    .post-body {
        font-size: 0.9rem;
        line-height: 1.4;
        gap: 0.5rem;
    }

    .post-excerpt {
        line-height: 1.45;
    }

    .about-trigger {
        margin-top: 0;
    }

    .about-backdrop {
        display: none;
    }

    .about-panel {
        width: 100vw;
        max-width: 100vw;
        padding: 50px 18px 18px 18px;
        gap: 0;
        justify-content: center;
    }

    .panel-close {
        display: none;
    }

    .about-content {
        gap: 0.75rem;
    }

    .about-me-title {
        display: none;
    }

    .about-photo-container {
        width: 90%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        margin: auto;
        margin-bottom: 1rem;
        }

    .about-photo {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        display: block;
        object-fit: cover;
        object-position: center top;
        border: 3px solid black;
        border-radius: 5px;
        }

}

@media (max-width: 600px) {
    .post-link {
        width: 100%;
    }

    .panel-header {
        margin-bottom: 1rem;
    }
}