/* --- ROOT VARIABLES --- */
:root {
    font-variant:highlight-gold #ffcc33; 
    --accent-pink: #d66d75;    /* Your signature Berry Red */
    --bg-dark: #121212;        /* Hero background */
    --bg-sidebar: #252525;     /* Sidebar grey */
    --bg-content: #1a1a1a;     /* Main content background */
    --text-white: #f4f4f4;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-content);
    color: white;
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed nav */
}

/* --- TOP NAVIGATION (UNIVERSAL & FIXED) --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5vw;
    position: fixed;    /* Stays at top during scroll */
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.8); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--highlight-gold);
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    overflow: hidden;
    margin-top: -80px; /* Pulls hero back up to start behind transparent nav */
}

#canvas-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-content { z-index: 10; text-align: center; }

.greeting {
    font-size: 1rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.hero-name {
    font-size: 5rem !important;
    background: linear-gradient(to right, #ffffff, var(--highlight-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
    font-weight: 800;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.resume-btn {
    padding: 12px 30px;
    border: 1px solid rgba(214, 109, 117, 0.4);
    background: rgba(214, 109, 117, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.resume-btn:hover { background: rgba(214, 109, 117, 0.2); }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    animation: bounce 2s infinite;
    color: var(--accent-pink);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* --- MAIN LAYOUT --- */
.main-container {
    display: flex;
    background-color: var(--bg-content);
    padding-top: 15vh;
    padding-bottom: 20vh;
    position: relative;
}

/* --- SIDEBAR NAVIGATION --- */
#chapterList {
    position: sticky;
    top: 20vh;
    height: 410px;
    width: 25vw;
    background: var(--bg-sidebar); 
    padding: 60px;
    border-radius: 0 40px 40px 0; 
    z-index: 50;
    display: flex;
    align-items: center;
}

#chapterList ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 80px; 
}

#chapterPill {
    position: absolute;
    left: 0; width: 100%; height: 95px;
    background: var(--accent-pink); 
    border-radius: 0 40px 40px 0;
    z-index: -1;
    transition: top 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#chapterList li a {
    font-size: 2.2rem;
    font-weight: 800;
    padding-left: 35px;
    color: rgba(255,255,255,0.2);
    text-decoration: none;
    transition: 0.3s;
}

#chapterList li.chapterSelected a { color: white; }

/* --- CONTENT AREA --- */
#sideLayout {
    flex: 1;
    margin-left: 10vw;
    margin-right: 5vw;
    display: flex;
    flex-direction: column;
    gap: 40vh; 
}

.section-title {
    font-size: 3rem;
    color: var(--highlight-gold);
    margin-bottom: 40px;
    font-weight: 900;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 800px; 
}

.intro { grid-column: span 2; }

/* --- PROJECT CARDS & HIGHLIGHTS --- */
.ProjectCard {
    background: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s ease;
    border-bottom: 4px solid var(--accent-pink);
}

.ProjectCard:hover { transform: translateY(-5px); }
.ProjectCard .card-text { padding: 25px; }

.ProjectCard h2, .ProjectCard h3 {
    color: var(--highlight-gold);
    margin-bottom: 10px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    gap: 30px;
    max-width: 1100px;
}

.stacked-feats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-feat img { height: 400px; width: 100%; object-fit: cover; }
.sub-feat img { height: 180px; width: 100%; object-fit: cover; }

.ProjectCard img {
    opacity: 0.8;
    transition: 0.3s ease;
}

.ProjectCard:hover img { opacity: 1; }

.view-more-container {
    margin-top: 50px;
    width: 100%; 
    max-width: 1100px; 
}

.projects-btn {
    display: block; 
    width: 100%;    
    text-align: center; 
    padding: 18px 0;    
    background: rgba(214, 109, 117, 0.1); 
    border: 1px solid rgba(214, 109, 117, 0.4);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: 0.3s ease;
}

.projects-btn:hover {
    background: var(--accent-pink);
    box-shadow: 0px 8px 25px rgba(214, 109, 117, 0.3);
    transform: translateY(-3px);
}

/* --- SKILLS & RESPONSIVE --- */
.skills-placeholder {
    height: 400px;
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 20px;
}

@media (max-width: 1024px) {
    #chapterList { display: none; }
    #sideLayout { margin-left: 5vw; }
    .hero-name { font-size: 3.5rem !important; }
    .highlights-grid { grid-template-columns: 1fr; }
}