/* --- Catppuccin Frappe Palette Variables --- */
:root {
    color-scheme: dark;
    --ctp-rosewater: #f2d5cf;
    --ctp-pink: #f4b8e4;       
    --ctp-mauve: #ca9ee6;
    --ctp-red: #e78284;
    --ctp-yellow: #e5c890;    
    --ctp-green: #a6d189;     
    --ctp-teal: #81c8be;
    --ctp-sky: #99d1db;
    --ctp-sapphire: #85c1dc;
    --ctp-blue: #8caaee;
    --ctp-lavender: #babbf1;

    --ctp-text: #c6d0f5;
    --ctp-subtext1: #b5bfe2;

    --ctp-surface1: #51576d;
    --ctp-surface0: #414559;

    --ctp-base: #303446;
    --ctp-mantle: #292c3c;
    --ctp-crust: #232634;

    --banner-height: 34vh;
    --banner-fade-size: 18%;

    --radius-small: 6px;
    --radius-medium: 8px;
    --radius-large: 10px;
}

/* --- Global Fixes --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px; 
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ctp-crust); }
::-webkit-scrollbar-thumb {
    background: var(--ctp-surface1);
    border-radius: var(--radius-small);
    border: 2px solid var(--ctp-crust);
}
::-webkit-scrollbar-thumb:hover { background: var(--ctp-lavender); }

/* --- Base Theme --- */
body {
    background: radial-gradient(circle at top right, var(--ctp-base), var(--ctp-crust));
    background-attachment: fixed;
    background-size: cover;
    color: var(--ctp-text);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    padding: 0 20px 40px 20px;
    margin: 0;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

/* --- Top Banner --- */
body::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: var(--banner-height);
    background-image: url("assets/banner_link.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - var(--banner-fade-size)), transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black calc(100% - var(--banner-fade-size)), transparent 100%);
}

.container {
    width: 95%; 
    max-width: 1100px; 
    margin: 0 auto;
}

/* --- Navigation --- */
.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100vw; 
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--ctp-base);
    border-bottom: 4px solid var(--ctp-pink);
    box-shadow: 0 10px 30px #000000;
}

.tab-btn {
    background: var(--ctp-surface0);
    border: none;
    color: var(--ctp-subtext1);
    padding: 10px 25px;
    border-radius: var(--radius-large);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.tab-btn:hover { background: var(--ctp-surface1); color: #fff; }
.tab-btn.active { background: var(--ctp-pink); color: var(--ctp-base); }

/* --- Hide Section Titles --- */
.section-title { display: none; }

/* --- Profile Header (Img Left of Centered Text) --- */
.profile-header {
    display: flex;
    flex-direction: row; /* Always horizontal */
    align-items: center;
    justify-content: center; /* Centers the whole header group */
    gap: 30px;
    margin: 30px 0 50px 0; 
    position: relative;
    z-index: 10;
    width: 100%;
}
.avatar {
    width: 130px; 
    height: 130px;
    border-radius: var(--radius-large);
    object-fit: cover;
    border: 3px solid var(--ctp-lavender);
    box-shadow: 0 10px 40px #000000;
    flex-shrink: 0; /* Prevents image squishing */
}
.header-text { 
    text-align: center; /* Keeps name and tagline centered relative to each other */
}
.header-text h1 { font-size: 3rem; color: #ffffff; margin: 0; line-height: 1.1; }
.tagline { color: var(--ctp-sky); margin-top: 8px; font-size: 1.3rem; }

/* --- Information Card --- */
.acrylic-card {
    background: var(--ctp-surface0);
    border: 3px solid var(--ctp-pink); 
    border-radius: var(--radius-large);
    padding: 30px;
    margin: 0 auto 40px auto;
    max-width: 650px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 15px rgba(244, 184, 228, 0.2);
}

.acrylic-card h3 { margin-top: 0; font-size: 1.8rem; }
.info-list p { margin: 12px 0; font-size: 1.1rem; line-height: 1.6; }

/* Specific Text Classes */
.cyan-text { color: var(--ctp-sky); }
.light-blue { color: var(--ctp-sapphire); font-weight: bold; }
.white-text { color: #ffffff; }
.urgent-text { color: var(--ctp-red); font-weight: bold; margin-top: 20px; }

/* --- Links Grid (Max 2 Columns) --- */
.links-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}
.link-btn {
    display: block;
    background: var(--ctp-surface0);
    text-decoration: none;
    color: var(--ctp-text);
    padding: 18px;
    text-align: center;
    border-radius: var(--radius-medium);
    font-weight: 600;
    border: 1px solid var(--ctp-surface1);
    transition: all 0.3s ease;
}
.link-btn:hover { background: var(--ctp-surface1); transform: translateY(-3px); }

/* Accent Colors */
.modrinth   { border-bottom: 4px solid var(--ctp-green); }
.curseforge { border-bottom: 4px solid var(--ctp-yellow); }
.twitch     { border-bottom: 4px solid var(--ctp-pink); }
.github     { border-bottom: 4px solid var(--ctp-rosewater); }
.youtube    { border-bottom: 4px solid var(--ctp-red); }
.twitter    { border-bottom: 4px solid var(--ctp-blue); }
.tiktok     { border-bottom: 4px solid var(--ctp-teal); }
.discord    { border-bottom: 4px solid var(--ctp-lavender); }
.bluesky    { border-bottom: 4px solid var(--ctp-sapphire); }
.spotify    { border-bottom: 4px solid var(--ctp-green); }
.roblox     { border-bottom: 4px solid var(--ctp-red); }
.steam      { border-bottom: 4px solid var(--ctp-blue); }

/* --- Copyable Text --- */
.copy-text {
    cursor: pointer;
    color: var(--ctp-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.4s ease, background-color 0.4s ease;
    padding: 2px 4px;
    border-radius: 4px;
}
.copy-text:hover {
    color: var(--ctp-lavender);
    background-color: rgba(186, 187, 241, 0.1);
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px; 
}
.project-card {
    background: var(--ctp-mantle);
    border: 1px solid var(--ctp-surface1);
    border-radius: var(--radius-large);
    padding: 24px;
    border-bottom: 6px solid var(--ctp-sky);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.project-card:hover { transform: translateY(-8px); border-color: var(--ctp-lavender); }
.project-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-medium);
    margin-bottom: 15px;
}
.project-card p { flex-grow: 1; }

/* --- Mobile Fixes --- */
@media (max-width: 650px) {
    /* Keeps PFP on left of centered text on phones */
    .profile-header { flex-direction: row; gap: 15px; margin-top: 20px; }
    .header-text h1 { font-size: 1.8rem; }
    .tagline { font-size: 1rem; }
    .avatar { width: 85px; height: 85px; }

    /* Stacks links to 1 column on phones */
    .links-container { grid-template-columns: 1fr; }

    .tabs { gap: 8px; }
    .tab-btn { padding: 10px 12px; font-size: 0.8rem; }
}
