@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&family=Space+Grotesk:wght@300;600&display=swap');
:root {
    --bg-color: #001011;
    --text-main: #f0f0f0;
    --text-muted: #ffc43a87;
    --accent-secondary: #fc7853; 
    --accent-primary: #ffc43a;
    --accent-glow: #E9E3E6;    /* Electric Blue */
    --glass-panel: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    font-family: Outfit, sans-serif;
    --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background-color: #ffc43a20; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    height: 100vh;
    overflow-x: hidden;
}

aside {
    position: relative;
    display: flex;
    gap: 2rem;
    flex-direction: column;
}
aside > *:last-child {
    margin-top: auto;
}
main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.ambient-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200vw;
    height: 200vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 50% 50%, #ffc43a11, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(252, 119, 83, 0.15), transparent 20%);
    animation: drift 30s linear infinite;
}
@keyframes drift {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h1 {
    font-size: 4rem;
}
h2 {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}
h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 1rem;
}
h3::after {
    content: '';
    height: 1px;
    max-height: 1px;
    flex-grow: 1;
    background: var(--glass-border);
}

h4 {
    font-size: 1.2rem;
}
p {
    font-size: 1rem;
    font-weight: 200;
}

aside, main {
    padding: 3rem;
}

footer a {
    text-decoration: none;
    color: var(--accent-primary);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

div#separator {
    height: 100%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}


footer {
    font-weight: 100;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: var(--accent-primary);
}

div#layout {
    display: grid;
    grid-template-columns: 1fr 0.1fr 1.5fr;
    min-height: 100vh;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
button {
    appearance: none;
    border: none;
}
.btn {
    display: inline-flex;
    justify-content: space-around;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem;
    gap: 0.5rem;
    color: #fff;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.05);
    transition: all 0.3s;
}
.btn:hover { 
    background: var(--accent-primary); 
    color: #000;
    cursor: pointer;
}
@media screen and (min-width: 1700px) {
    div#layout {
        padding: 2rem 6rem;
    }
}
@media screen and (max-width: 1100px) {
    div#separator {
        flex-grow: 0;
        display: none;
    }
    aside {
        padding: 2rem;
        padding-bottom: 0;
    }
    main {
        margin-bottom: 3rem;
        padding: 2rem;
    }
    div#layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 2fr;
        min-height: 100vh;
    }

    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1rem;
    }
    h4 {
        font-size: 1rem;
    }
    p {
        font-size: 1rem;
    }
    ul#techstack li {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
    footer, #cv-link {
        display: none;
    }
}
@media screen and (max-width: 600px) {
    aside {
        padding: 1.5rem;
        padding-bottom: 0;
        justify-content: space-around;
    }
    main {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }

    h1 {
        /*font-size: 2rem */
    }
    h2 {
        /*font-size: 1rem */
    }
    h3 {
        /*font-size: 0.9rem */
    }
    h4 {
        /*font-size: 0.9rem */
    }
    .social-links {
        gap: 0.5rem;
    }
    a.btn {
        /*font-size: 1rem */
        padding: 0.4rem;
    }
}



/* .ctrl-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
} */

.ctrl-btn:hover { background: #fff; color: #000; }


ul#techstack {
    list-style: none outside none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
}

ul#techstack li {
    border: var(--glass-border) 1px solid;
    /*font-size: 1.2rem */
    border-radius: var(--radius);
    padding: 0.6rem 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
ul#techstack li p {
    text-align: center;
}
/* 
ul#techstack li:hover {
    user-select: none;
    border-color: var(--accent-glow);
    transition: all 0.3s ease-in-out;
    border: var(--accent-primary) 1px solid;
    color: var(--accent-primary);
} */

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-track {
    overflow-x: scroll;
    overflow-y: hidden;
    display: flex;
    gap: 2rem;
    padding-bottom: 2rem;
}

/* .carousel-track::-webkit-scrollbar { display: none; } */

.project-card {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1rem;
    flex: 0 0 20rem;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card:hover {
}
.project-card p {
    flex-grow: 1;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 2rem;
    margin-bottom: 1rem;
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Fade effect for invisible carousel item */
.carousel-track::before{
    mask-image: linear-gradient(to right, transparent, black 20%);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4rem;
    height: 100%;
    pointer-events: none;
    /* background: linear-gradient(to right, var(--bg-color), transparent); */
}
.carousel-track::after{
    mask-image: linear-gradient(to left, transparent, black 50%);
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4rem;
    height: 100%;
    pointer-events: none;
    /* background: linear-gradient(to left, var(--bg-color), transparent); */
}