:root {
    --cherryrose: #A5243D;
    --oldrose: #B48291;
    --lilacashe: #AFAAB9;
    --palesky: #B9CFD4;
    --azuremist: #CEE0DC;
    --bg: #0a0a0a;
    --bg2: #1a1a1a;
    --white: #f8f8f8;
    --glow: rgba(175, 170, 185, 0.3);
    --green: #24a54d;
    --gold: #a58d24;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    background: #0a0a0a; /* Add this: solid dark color to cover overscroll areas */
    box-shadow: inset 0px 0px 10px white;
}

body {
    background-color: var(--bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--white);
    scroll-behavior: smooth;
    padding: 2rem 2rem 2rem 8rem; /* Increased left padding for horizontal sidebar */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}


/* Navigation */
.nav-bar {
    position: fixed;
    z-index: 999999;
    background: rgba(37, 37, 37, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 53%;
    flex-wrap: wrap;
    border: 1px solid rgba(175, 170, 185, 0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    grid-row: 1;
}

.nav-bar a {
    color: var(--lilacashe);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-bar a:hover, .nav-bar a.active {
    background: rgba(175, 170, 185, 0.1);
    color: var(--palesky);
}

.sidebar-nav {
    position: fixed;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999999;
    border-radius: 20px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: left;
    white-space: nowrap;
    width: fit-content;
    height: fit-content;
}

.sidebar-nav a {
    color: var(--lilacashe);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(175, 170, 185, 0.1);
    color: var(--palesky);
}


/* Hero Section */
.hero {
    grid-row: 3;
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    gap: 20px;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cherryrose), var(--lilacashe));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    margin-bottom: 0;
}

.sub-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.sub-link {
    background: rgba(26, 26, 26, 0.6);
    color: var(--azuremist);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(175, 170, 185, 0.3);
    transition: all 0.3s ease;
    width: 9em;
    height: 6em;
    padding: 1.5rem 3rem;
    transition: all 0.3s ease;
}

.sub-link:hover {
    background: var(--lilacashe);
    color: var(--bg);
    transform: scale(1.05);
}
.sub-link2 {
    background: rgba(26, 26, 26, 0.6);
    color: var(--azuremist);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(175, 170, 185, 0.3);
    transition: all 0.3s ease;
    width: 5em;
    height: 3em;
    padding: 1.5rem 3rem;
    transition: all 0.3s ease;
}
.sublink2:hover {
    background: var(--lilacashe);
    color: var(--bg);
    transform: scale(1.05);
}
.note {
    display: inline-flex;  /* Centers content like sub-links */
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.note a {
    color: var(--glow);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.note:hover a {
    color: var(--palesky);
}

.note:hover {
    transform: scale(1.02);
    border-color: var(--oldrose);
    box-shadow: 0 8px 25px rgba(175, 170, 185, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 16px;
}

/* Grid section */
#grid {
    margin-bottom: 100px;
}
#reco, #tutorials {
    margin-top: 0px;
}
.grid {
    grid-row: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 2rem;
    align-items: start;
}
.grid a {
    text-decoration: none;
    color: var(--azuremist);
}

/* Modules / Cards */
.module {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(175, 170, 185, 0.2);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    height: 100%;
}

.module::before {
    content: '';
    height: 4px;
    background: linear-gradient(90deg, var(--cherryrose), var(--oldrose), var(--lilacashe));
}

.module:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--oldrose);
    box-shadow: 0 20px 40px rgba(180, 130, 145, 0.3);
}

.imgbox {
    height: 250px;
    overflow: hidden;
    padding: 1rem;
}

.imgbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.imgbox img:hover {
    transform: scale(1.1);
}

.title {
    text-align: center;
    color: var(--azuremist);
    padding: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0;
}

.desc {
    padding: 0 1.5rem;
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.6;
}
.desc h4 {
    font-weight: 400;
}

.update {
    padding: 1rem;
    text-align: center;
    color: var(--lilacashe);
    font-size: 0.9rem;
    border-top: 1px solid rgba(175, 170, 185, 0.1);
    width: 100%;
}


footer {
    grid-row: 4;
    text-align: center;
    padding: 2rem;
    color: var(--azuremist);
    opacity: 0.8;

}

