/* base color guides setup */
:root {
    --bg: #021718;
    --text:#f8fafc;
    --primary: #f0eee2;
    --secondary: #e1e1e1;
    --accent: #e78540;
    --card: #5354545f;
}

/* reset default browser styles and set up a consistent box model and font across the site */
* {
    margin: 0;
    padding: 0;
    /* by default width does not include padding and border, but with this it does */
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Body */
body {
    background-color: var(--bg);
    color: var(--text);
}

body, section {
    transition: background-color 0.5s, color 0.5s;
}

body.modal-open {
    overflow: hidden;
}

section {
    scroll-margin-top: 110px;
}

.expand-section {
    max-width: 900px;
    margin: 2rem auto 0;
    padding-left: 4rem;
}

.expand-section > summary {
    cursor: pointer;
}

.expand-section > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

.expand-section > summary::-webkit-details-marker {
    display: none;
}

.expand-section[open] > summary {
    margin-bottom: 1.5rem;
}

.expand-content {
    margin-top: .5rem;
}

.expand-heading {
    max-width: 900px;
    margin: 1.25rem auto .75rem;
    font-size: 1.35rem;
    color: var(--secondary);
}

body.light{
    --bg: #f9fafb;
    --text:#111827;
    --primary: #5c5d90;
    --secondary: #1c4273;
    --accent: #e78540;
    --card: #ffffff62;
}

/* Scroll Navigation (global) */
.scroll-nav {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 999;

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;

    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: var(--text);

    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
    opacity: .85;
}

.scroll-nav:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.scroll-nav:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.scroll-nav__dots {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    opacity: .75;
    position: relative;
}

.scroll-nav__dots::before,
.scroll-nav__dots::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    opacity: .45;
    transform: translateX(-50%);
}

.scroll-nav__dots::before {
    top: -9px;
}

.scroll-nav__dots::after {
    top: 9px;
}

body.light .scroll-nav {
    border-color: rgba(0, 0, 0, .16);
    background: rgba(0, 0, 0, 0.04);
}

body.light .scroll-nav:hover {
    background: rgba(0, 0, 0, 0.07);
}
/* Header and Navigation*/
header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    background-color: var(--card);
    padding: .7rem 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    z-index: 1000;
    border-radius: 999px;
    opacity: .9;
    backdrop-filter: blur(8px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
}

.logo {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a{
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: var(--accent);
}

.menu-btn {
    display: none;
}

/* Hero Section */

.hero-title {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: 3.2rem;
    flex-wrap: wrap;;
}

.hero-title span{
    background: linear-gradient(90deg, #ea5b0e, #e78540);
    background-clip: text;
    color: transparent;;
}
.avatar {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 2rem;
    overflow: hidden;
    color:var(--text);
}

#hero p{
    font-size: 1.4rem;
    margin-top: 1rem;
}

.hero-stack{
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.5rem;
}

.hero-stack .stack-item{
    display: inline-flex;
    align-items: center;
    padding: .4rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.hero-stack .stack-toggle{
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    order: 9999;
}

.hero-stack .stack-item--more{
    display: none;
}

.hero-stack.is-expanded .stack-item--more{
    display: inline-flex;
}

.hero-description {
    max-width: 600px;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 1rem;
    letter-spacing: 0.08rem;
    opacity: 0.9;
}

.hero-content {
    max-width: 480px;
    z-index: 1; 
}

.wave{
    max-width: 60px;
    width: 100%;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: .08rem;
    opacity: .6;;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 150, 255, 0.35),transparent 70%);
    z-index: 0;
    filter:blur(120px);
    pointer-events: none;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.hero-actions a {
    display: flex;
    align-items: center;    
    gap: 1rem;
}

.btn {
    padding: .9rem 1.6rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: .3s;
}

.btn.primary {
    background: #e78540;
    color: #111827;
}

.btn.secondary {
    border: 1px solid var(--primary);
    color: var(--text);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Footer  */
footer{
    background-color: var(--card);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1200px;
    margin:auto;
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

footer h4{
    margin-bottom: 1rem;
}

footer a{
    display: block;
    color: var(--text);
    text-decoration: none;
    margin-bottom: .5rem;
}

.footer-grid > div {
    text-align: center;
}

.socials a{
    font-size: 1.4rem;
    margin-right: .8rem;

}
.socials a:hover{
    color: var(--accent);
}

footer p{
    text-align: center;
    margin-top: 2rem;
    font-size: .9rem;
    opacity: .7;
}

/* Modal (Privacy) */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
}

.modal__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(82vh, 760px);
    overflow: auto;

    background: rgba(8, 24, 25, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
    padding: 1.4rem 1.5rem 1.25rem;
    backdrop-filter: blur(14px);

    transform: translateY(10px) scale(0.99);
    transition: transform .22s ease;
}

.modal.is-open .modal__dialog {
    transform: translateY(0) scale(1);
}

.modal__dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modal__dialog::-webkit-scrollbar {
    width: 10px;
}

.modal__dialog::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
}

.modal__dialog::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
    background-clip: padding-box;
}

body.light .modal__dialog {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.12);
}

.modal__close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;
}

body.light .modal__close {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
}

.modal__close:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.modal__close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.modal__dialog h2 {
    font-size: 1.65rem;
    color: var(--secondary);
    margin-bottom: .35rem;
    padding-right: 3rem;
    letter-spacing: .01rem;
}

.modal__meta {
    opacity: .7;
    font-size: .9rem;
    margin-bottom: 1.1rem;
}

.modal__dialog h3 {
    margin-top: 1.15rem;
    margin-bottom: .5rem;
    font-size: 1.12rem;
    color: var(--secondary);
}

.modal__dialog p,
.modal__dialog li {
    opacity: .85;
    line-height: 1.6;
}

.modal__dialog p {
    margin: .6rem 0;
}

.modal__dialog ul {
    margin: .35rem 0 .75rem 1.15rem;
}

.modal__dialog li + li {
    margin-top: .35rem;
}

.modal__dialog a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 650;
}

.modal__dialog a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* My Journey Section */
#journey {
    padding: 5rem 2rem;
    background: var(--bg);
    color: var(--text);
}

#journey h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
    padding-left: 2rem;
    border-left: 3px solid var(--primary);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-content {
    background: var(--card);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9);
}

.timeline-content h3 {
    margin-bottom: .5rem;
    color: var(--secondary);
    font-size: 1.2rem;
}  

.timeline-content p {
    font-size: 0.9rem;
    margin-bottom: .5rem;
    opacity: .7;
}

/* Journey timeline tech stack (mini tags) */
.timeline-tech-stack {
    margin-top: .75rem;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.timeline-tech-stack .stack-item {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    line-height: 1.1;
    letter-spacing: .02rem;
    opacity: .9;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(6px);
}

/* Education Timeline (always visible) */
#education {
    padding: 5rem 2rem;
    background: var(--bg);
    color: var(--text);
}

#education h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-top: 3rem;
    margin-bottom: .75rem;
}

.experience-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.experience-card {
    background: var(--card);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .9rem;
}

.experience-header h3 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: .25rem;
}

.experience-role {
    opacity: .8;
}

.experience-dates {
    font-weight: 700;
    opacity: .75;
    white-space: nowrap;
}

.experience-summary,
.experience-details ul {
    margin-left: 1.1rem;
    opacity: .82;
    line-height: 1.7;
}

.experience-summary li,
.experience-details li {
    margin-bottom: .35rem;
}

.experience-details {
    margin-top: .75rem;
}

.experience-details summary {
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    color: var(--text);
    opacity: .9;
    margin-bottom: .75rem;
}

.experience-details summary:hover {
    color: var(--accent);
}

.timeline-tech-used {
    display: inline-block;
    font-size: .8rem;
    background: var(--accent);
    padding: .3rem .5rem;
    border-radius: 10px;
    color: white;
    margin-top: .50rem;
}

/* Projects Section */
#projects {
    padding: 5rem 2rem;
    background: var(--bg);
    color: var(--text);
}

#projects h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-top: 3rem;
    margin-bottom: .75rem;
}

.section-subtitle {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    opacity: .75;
    line-height: 1.6;
}

.projects-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--card);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.55);
}

.project-card h3 {
    margin-bottom: .6rem;
    color: var(--secondary);
    font-size: 1.2rem;
}

.project-title-link {
    color: inherit;
    text-decoration: none;
}

.project-title-link:hover {
    color: var(--accent);
}

.project-description {
    font-size: .95rem;
    opacity: .75;
    line-height: 1.6;
}

.project-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
}

.project-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.projects-cta {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

/* Podcasts Section */
#podcasts {
    padding: 5rem 2rem;
    background: var(--bg);
    color: var(--text);
}

#podcasts h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-top: 3rem;
    margin-bottom: .75rem;
}

.podcast-stats {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.podcast-impact {
    max-width: 900px;
    margin: -1.25rem auto 2.5rem;
    text-align: center;
    opacity: .78;
    line-height: 1.6;
}

.stat-card {
    background: var(--card);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: .02rem;
}

.stat-label {
    margin-top: .25rem;
    opacity: .75;
    font-size: .95rem;
}

.podcast-shows {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.podcast-show-card {
    background: var(--card);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.podcast-show-header h3 {
    margin-bottom: .6rem;
    color: var(--secondary);
    font-size: 1.2rem;
}

.podcast-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .9rem;
}

.podcast-tags:empty {
    display: none;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    background: var(--accent);
    padding: .3rem .7rem;
    border-radius: 999px;
    color: white;
    white-space: nowrap;
}

.tag-featured {
    background: linear-gradient(90deg, #ea5b0e, #e78540);
}

.tag-muted {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

body.light .tag-muted {
    background: rgba(17, 24, 39, 0.08);
    color: var(--text);
}

.podcast-description {
    font-size: .95rem;
    opacity: .78;
    line-height: 1.6;
}

.spotify-embed {
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 12px;
}

.podcast-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 1rem;
}

.podcast-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.podcast-subheading {
    max-width: 1100px;
    margin: 3rem auto 1.25rem;
    font-size: 1.2rem;
    color: var(--secondary);
}

.episodes-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.episode-card {
    background: var(--card);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}

.episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.55);
}

.episode-card h4 {
    font-size: 1.05rem;
    color: var(--secondary);
    margin-bottom: .6rem;
    line-height: 1.35;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.episode-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .8rem;
}

.episode-description {
    font-size: .95rem;
    opacity: .78;
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8em;
}

.episode-actions {
    margin-top: auto;
    padding-top: 1.1rem;
}

.episode-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}



/* Responsive */

@media (max-width: 900px) {
    #hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .avatar {
        width: 150px;
        height: 150px;
    }
}

/* Hide the fixed scroll button on smaller screens (tablet/phone) */
@media (max-width: 1024px) {
    .scroll-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    nav {
        position: absolute;
        top: calc(100% + .75rem);
        right: 0;
        background-color: var(--card);
        flex-direction: column;
        padding: .9rem;
        display: none;

        border-radius: 14px;
        min-width: 220px;
        box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(10px);
    }

    nav.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    header {
        padding: .6rem .9rem;
        top: .75rem;
    }

    .logo {
        font-size: 1.15rem;
    }

    #hero {
        padding: 1.5rem 1rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.35rem;
        justify-content: center;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .hero-stack {
        justify-content: center;
        gap: .45rem;
    }

    .hero-stack .stack-item {
        padding: .35rem .65rem;
        font-size: .9rem;
    }

    .btn {
        padding: .8rem 1.2rem;
        border-radius: 12px;
    }

    #journey,
    #projects,
    #podcasts {
        padding: 4.25rem 1rem;
    }

    #journey h2,
    #projects h2,
    #podcasts h2 {
        margin-top: 2rem;
    }

    .projects-grid,
    .episodes-grid,
    .podcast-shows,
    .podcast-stats {
        grid-template-columns: 1fr;
    }

    .project-card,
    .episode-card,
    .podcast-show-card,
    .stat-card {
        padding: 1.1rem 1.15rem;
    }

    .avatar {
        width: 130px;
        height: 130px;
    }

    .scroll-nav {
        width: 46px;
        height: 46px;
        bottom: 12px;
    }
}