@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Coustard&family=Press+Start+2P&display=swap');

:root{
    --purple: blueviolet;
    --pink: #d4083f;
    --cream: #ffe2bd;
    --azure: #0078D4;
    --nav-dark: #000;
    --text-dark: #101010;
    --white: #fff;
    --shadow: 8px 8px 0 #000;
    --section-padding: clamp(50px, 7vw, 90px) 0;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    text-decoration:none;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    color:var(--text-dark);
    font-family:'Coustard', serif;
    background:linear-gradient(270deg, #1df7bf, #f84f5d, #3ecec2, #680627, crimson);
    background-size:1000% 1000%;
    animation:AnimationName 75s ease infinite;
    overflow-x:hidden;
}

@keyframes AnimationName{
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

.max-width{
    width:min(100% - 32px, 1300px);
    margin:auto;
}

.scroll-btn{
    position:fixed;
    height:45px;
    width:42px;
    background:var(--purple);
    right:30px;
    bottom:18px;
    text-align:center;
    line-height:45px;
    color:white;
    z-index:9999;
    border:2px solid black;
    border-radius:10px;
    font-size:34px;
    cursor:pointer;
    opacity:0;
    pointer-events:none;
    transform:translateY(20px);
    transition:.3s ease;
}

.scroll-btn.show{
    opacity:1;
    pointer-events:auto;
    transform:translateY(0);
}

.navbar{
    position:fixed;
    min-height:60px;
    width:100%;
    padding:15px 0;
    background:var(--nav-dark);
    font-family:'Press Start 2P', cursive;
    transition:all .3s ease;
    z-index:1000;
}

.navbar.sticky{
    background:var(--purple);
    box-shadow:0 8px 20px rgba(0,0,0,.25);
}

.navbar .max-width{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.navbar .logo a{
    color:#fff;
    font-size:clamp(16px, 2vw, 27px);
    font-weight:600;
}

.navbar .logo a span{
    color:var(--purple);
}

.navbar.sticky .logo a span{
    color:black;
}

.navbar .menu{
    display:flex;
    align-items:center;
    gap:18px;
}

.navbar .menu li{
    list-style:none;
}

.navbar .menu li a{
    color:#fff;
    font-size:12px;
    font-weight:200;
    transition:color .3s ease;
}

.navbar .menu li a:hover{
    color:var(--purple);
}

.navbar.sticky .menu li a{
    color:black;
}

.navbar.sticky .menu li a:hover{
    color:white;
}

.menu-btn{
    color:#fff;
    border:0;
    background:transparent;
    display:none;
    cursor:pointer;
}

.menu-btn .material-icons{
    font-size:42px;
    color:#fff;
}

.navbar.sticky .menu-btn .material-icons{
    color:black;
}

.home{
    position:relative;
    padding:0;
    min-height:100vh;
    min-height:100svh;
    background:#000;
    overflow:hidden;
}

.home-video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center;
}

.home-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.08);
    pointer-events:none;
}

section{
    padding:var(--section-padding);
}

.title,
.title2,
.title3,
.title4,
.title5,
.title6{
    position:relative;
    text-align:center;
    background:black;
    color:white;
    padding:18px 10px 24px;
    min-height:72px;
    width:100%;
    font-family:'Press Start 2P', cursive;
    font-size:clamp(20px, 4vw, 40px);
    font-weight:500;
    margin-bottom:35px;
}

.title::before,
.title2::before,
.title3::before,
.title4::before,
.title5::before,
.title6::before{
    content:"";
    position:absolute;
    left:50%;
    bottom:10px;
    width:min(525px, 75%);
    height:3px;
    background:#fff;
    transform:translateX(-50%);
}

.about .about-content{
    display:grid;
    grid-template-columns:minmax(260px, 420px) 1fr;
    gap:clamp(25px, 5vw, 65px);
    align-items:center;
}

.about .about-content .left img{
    width:100%;
    max-height:600px;
    object-fit:cover;
    border:5px solid black;
    box-shadow:var(--shadow);
}

.about .about-content .right .text{
    font-size:clamp(22px, 3vw, 28px);
    font-weight:600;
    margin-bottom:14px;
}

.about .about-content .right .text span{
    color:var(--purple);
}

.about .about-content .right p{
    text-align:justify;
    font-size:clamp(16px, 2vw, 18px);
    line-height:1.7;
}

.about .about-content .right a,
.about .about-content .right .resume-btn{
    display:inline-block;
    background:black;
    color:var(--purple);
    font-size:18px;
    padding:10px 30px;
    margin-top:20px;
    border-radius:6px;
    border:2px solid var(--purple);
    transition:all .3s ease;
}


.about .about-content .right a:hover,
.about .about-content .right .resume-btn:hover{
    background:white;
    transform:translateY(-3px);
}

.education{
    background:rgba(255,226,189,.35);
}

.book-wrap{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:18px;
}

.book{
    display:grid;
    grid-template-columns:1fr 1fr;
    background:#fff4df;
    border:5px solid black;
    box-shadow:12px 12px 0 rgba(0,0,0,.9);
    min-height:430px;
    position:relative;
}

.book::after{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:50%;
    width:5px;
    background:black;
    transform:translateX(-50%);
}

.book-page{
    padding:clamp(24px, 4vw, 45px);
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.book-info{
    background:linear-gradient(135deg, #fff, #ffe2bd);
}

.page-tag{
    font-family:'Press Start 2P', cursive;
    color:var(--pink);
    font-size:11px;
    margin-bottom:18px;
}

.book-info h3,
.book-image h3{
    font-size:clamp(22px, 3vw, 36px);
    margin-bottom:20px;
}

.edu-line{
    margin:14px 0;
    font-size:clamp(16px, 2vw, 20px);
    line-height:1.55;
}

.edu-line strong{
    color:var(--purple);
}

.book-image{
    align-items:center;
    text-align:center;
    gap:20px;
    background:white;
}

.book-image img{
    width:100%;
    max-width:420px;
    height:260px;
    background:white;
    border:4px solid black;
    box-shadow:8px 8px 0 var(--pink);
    padding:6px;
}

/* McMaster and Sheridan fill their frame more */
.book-image img.edu-fill{
    max-width:520px;
    height:310px;
    object-fit:cover;
    padding:0;
}

/* PISES and Sager stay perfectly contained */
.book-image img.edu-contain{
    max-width:420px;
    height:260px;
    object-fit:contain;
    padding:6px;
}

.book-btn{
    width:58px;
    height:58px;
    border:4px solid black;
    background:var(--purple);
    color:white;
    font-family:'Press Start 2P', cursive;
    font-size:20px;
    cursor:pointer;
    box-shadow:5px 5px 0 black;
    transition:.25s ease;
}

.book-btn:hover:not(:disabled),
.controls button:hover:not(:disabled){
    background:var(--pink);
    transform:translateY(-3px);
}

.book-btn:disabled,
.controls button:disabled{
    opacity:.25;
    cursor:not-allowed;
    transform:none;
    box-shadow:5px 5px 0 black;
}

.experience{
    background:#d7355b;
}

.work-section{
    background:var(--cream);
    border:5px solid #000;
    padding:clamp(22px, 4vw, 45px);
    overflow:hidden;
}

.work-track{
    display:flex;
    gap:30px;
    overflow-x:auto;
    scroll-behavior:smooth;
    scrollbar-width:none;
    padding:10px 6px 25px;
    scroll-snap-type:x mandatory;
}

.work-track::-webkit-scrollbar{
    display:none;
}

.work-card{
    width:min(650px, 88vw);
    min-width:min(650px, 88vw);
    background:#f7f7f7;
    border:4px solid #000;
    box-shadow:8px 8px 0 var(--pink);
    padding:clamp(22px, 4vw, 30px);
    display:grid;
    grid-template-columns:92px 1fr;
    gap:22px;
    align-items:start;
    scroll-snap-align:start;
}

.work-card:nth-child(even){
    box-shadow:8px 8px 0 var(--purple);
}

.work-logo{
    width:78px;
    height:78px;
    background:white;
    border:3px solid black;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.work-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:7px;
}

.date{
    color:var(--pink);
    font-family:'Press Start 2P', cursive;
    font-size:10px;
    font-weight:bold;
    line-height:1.5;
}

.work-card h3{
    font-size:clamp(26px, 4vw, 34px);
    margin:15px 0 7px;
}

.role{
    font-weight:bold;
    color:#555;
    font-size:18px;
}

.summary,
.modal-summary{
    font-size:18px;
    line-height:1.55;
    margin-top:14px;
}

.more-btn{
    margin-top:20px;
    background:var(--purple);
    color:white;
    border:4px solid #000;
    padding:12px 18px;
    font-family:'Press Start 2P', cursive;
    font-size:12px;
    cursor:pointer;
    box-shadow:5px 5px 0 #000;
    transition:.2s ease;
}

.more-btn:hover{
    transform:translate(-2px, -2px);
    box-shadow:7px 7px 0 #000;
    background:var(--pink);
}

.controls{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:25px;
}

.controls button{
    background:var(--purple);
    border:4px solid black;
    color:white;
    padding:12px 20px;
    cursor:pointer;
    font-family:'Press Start 2P', cursive;
    box-shadow:5px 5px 0 black;
    transition:.25s ease;
}

.modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:10000;
    background:rgba(0,0,0,.72);
    align-items:center;
    justify-content:center;
    padding:22px;
}

.modal.show{
    display:flex;
}

.modal-box{
    width:min(760px, 100%);
    max-height:88vh;
    overflow:auto;
    background:#fff;
    border:5px solid #000;
    box-shadow:10px 10px 0 var(--purple);
    padding:clamp(24px, 4vw, 38px);
    position:relative;
}

.close-modal{
    position:absolute;
    top:15px;
    right:20px;
    background:var(--pink);
    color:white;
    border:3px solid #000;
    padding:6px 11px;
    font-family:'Press Start 2P', cursive;
    font-weight:bold;
    cursor:pointer;
}

.modal-box h2{
    font-size:clamp(26px, 4vw, 36px);
    margin:15px 45px 5px 0;
}

.modal-box h3{
    font-size:clamp(18px, 2.5vw, 24px);
    color:#555;
}

.fun-list{
    list-style:none;
    margin-top:20px;
}

.fun-list li{
    font-size:17px;
    line-height:1.65;
    margin-bottom:11px;
}

.skills{
    background:black;
}

.skills-carousel{
    background:#111;
    border:5px solid white;
    padding:clamp(22px, 4vw, 35px);
    overflow:hidden;
}

.skills-track{
    display:flex;
    gap:25px;
    overflow-x:auto;
    scroll-behavior:smooth;
    scrollbar-width:none;
    padding:10px 4px 25px;
    scroll-snap-type:x mandatory;
}

.skills-track::-webkit-scrollbar{
    display:none;
}

.skills-card{
    width:min(360px, 86vw);
    min-width:min(360px, 86vw);
    background:white;
    text-align:center;
    border-radius:.8rem;
    padding:25px;
    cursor:crosshair;
    transition:all .3s ease;
    border:4px solid black;
    box-shadow:6px 6px 0 var(--purple);
    scroll-snap-align:start;
}

.skills-card:hover{
    transform:scale(1.04);
    background-color:var(--purple);
    color:white;
}

.skills-card .text{
    font-size:25px;
    font-weight:500;
    margin:10px 0;
}

.skills-card p{
    line-height:1.55;
}

.projects,
.contactME{
    background:rgba(255,255,255,.65);
}

.projects-content,
.contactME-content{
    background:white;
    border:4px solid black;
    box-shadow:8px 8px 0 black;
    padding:clamp(24px, 4vw, 40px);
}

.contactME-content{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:35px;
}

.contactME .text{
    font-size:26px;
    margin-bottom:12px;
}

.row{
    margin-top:18px;
}

.head{
    font-weight:700;
    color:var(--purple);
}

.social-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:24px;
}

.social-buttons a{
    background:var(--purple);
    color:white;
    border:3px solid black;
    padding:10px 14px;
    box-shadow:4px 4px 0 black;
    font-family:'Press Start 2P', cursive;
    font-size:10px;
    transition:.2s ease;
}

.social-buttons a:hover{
    background:var(--pink);
    transform:translateY(-3px);
}

.fields{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.field{
    margin-bottom:15px;
}

.field input,
.field textarea{
    width:100%;
    border:3px solid black;
    padding:14px;
    font-family:'Coustard', serif;
    font-size:16px;
}

.button button{
    background:var(--purple);
    border:4px solid black;
    color:white;
    padding:12px 20px;
    cursor:pointer;
    font-family:'Press Start 2P', cursive;
    box-shadow:5px 5px 0 black;
}



/* Resume popup */
.resume-btn{
    font-family:'Coustard', serif;
    cursor:pointer;
}

.resume-modal-box{
    text-align:center;
}

.resume-modal-title{
    margin:20px 35px 28px 0 !important;
    font-size:clamp(22px, 4vw, 34px) !important;
}

.resume-options{
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
    margin-top:20px;
}

.resume-options a{
    display:block;
    background:var(--purple);
    color:white;
    border:4px solid black;
    padding:16px 18px;
    font-family:'Press Start 2P', cursive;
    font-size:clamp(10px, 2vw, 14px);
    box-shadow:5px 5px 0 black;
    transition:.25s ease;
}

.resume-options a:hover{
    background:var(--pink);
    transform:translateY(-3px);
}

/* Tighter skills spacing */
.skills{
    padding-top:clamp(32px, 5vw, 62px);
}

.skills .title4{
    margin-bottom:22px;
}

.skills-carousel{
    padding-top:clamp(16px, 3vw, 26px);
}


.title7{
    position:relative;
    text-align:center;
    background:black;
    color:white;
    padding:18px 10px 24px;
    min-height:72px;
    width:100%;
    font-family:'Press Start 2P', cursive;
    font-size:clamp(20px, 4vw, 40px);
    font-weight:500;
    margin-bottom:35px;
}

.title7::before{
    content:"";
    position:absolute;
    left:50%;
    bottom:10px;
    width:min(525px, 75%);
    height:3px;
    background:#fff;
    transform:translateX(-50%);
}

.certifications{
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
}

.cert-section-one{
    background:transparent;
    border:none;
    padding:0;
    box-shadow:none;
}

.cert-frame{
    display:grid;
    grid-template-columns:1.4fr .8fr;
    gap:28px;
    background:white;
    border:5px solid black;
    box-shadow:10px 10px 0 var(--azure);
    padding:28px;
    color:#111;
    text-decoration:none;
}

.cert-preview{
    min-height:330px;
    border:4px solid black;
    background:#0d2b55;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:22px;
}

.cert-paper{
    width:100%;
    max-width:620px;
    min-height:260px;
    background:white;
    border-radius:10px;
    padding:35px;
    text-align:center;
}

.microsoft-logo{
    width:165px;
    max-width:70%;
    height:auto;
    margin-bottom:35px;
}

.cert-paper h3{
    font-size:22px;
    margin-bottom:14px;
}

.cert-paper h2{
    font-size:24px;
    margin:18px 0;
}

.cert-badge-img{
    width:130px;
    max-width:45%;
    height:auto;
    margin:18px auto 0;
    display:block;
}

.cert-info{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.cert-info .tag{
    font-family:'Press Start 2P', cursive;
    color:var(--pink);
    font-size:11px;
    margin-bottom:15px;
}

.cert-info h3{
    font-size:32px;
    margin-bottom:14px;
}

.cert-info p{
    font-size:18px;
    line-height:1.6;
    margin-bottom:12px;
}

.verify-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:320px;
    height:58px;

    background:var(--azure);
    color:white;

    border:4px solid black;

    font-family:'Press Start 2P', cursive;
    font-size:12px;

    text-decoration:none;

    box-shadow:5px 5px 0 black;

    transition:.2s;
}
 .verify-btn:hover{
    background:var(--pink);
    transform:translateY(-3px);
}

@media (max-width: 800px){
    .cert-frame{
        grid-template-columns:1fr;
    }

    .cert-section-one{
        padding:22px;
    }

    .cert-paper{
        padding:24px;
    }

    .cert-paper h2{
        font-size:20px;
    }

    .cert-info h3{
        font-size:27px;
    }
}

@media (max-width: 430px), (max-height: 520px){
    .title7{
        font-size:17px;
        min-height:60px;
        padding:15px 8px 22px;
    }

    .cert-section-one,
    .cert-frame{
        padding:18px;
    }

    .cert-paper{
        padding:18px;
    }

    .cert-info p{
        font-size:15px;
    }

    .verify-btn{
        font-size:10px;
        padding:10px 14px;
    }
}

@media (min-width: 1600px){
    .max-width{
        width:min(92vw, 1500px);
    }

    .work-card{
        width:680px;
        min-width:680px;
    }

    .skills-card{
        width:390px;
        min-width:390px;
    }
}

@media (max-width: 980px){
    .menu-btn{
        display:block;
    }

    .navbar .menu{
        position:fixed;
        left:-100%;
        top:60px;
        width:100%;
        height:calc(100vh - 60px);
        background:black;
        flex-direction:column;
        justify-content:center;
        gap:30px;
        transition:.3s ease;
    }

    .navbar .menu.show{
        left:0;
    }

    .navbar .menu li a{
        font-size:16px;
    }

    .navbar.sticky .menu li a{
        color:white;
    }

    .about .about-content,
    .contactME-content{
        grid-template-columns:1fr;
    }

    .about .about-content .left{
        max-width:420px;
        margin:auto;
    }

    .book-wrap{
        grid-template-columns:1fr;
    }

    .book-btn{
        justify-self:center;
    }

    .book-prev{
        order:2;
        margin-right:80px;
    }

    .book{
        order:1;
    }

    .book-next{
        order:2;
        margin-left:80px;
        margin-top:-76px;
    }
}

@media (max-width: 700px){
    :root{
        --section-padding:42px 0;
    }

    .max-width{
        width:min(100% - 22px, 1300px);
    }

    .home-video{
        object-fit:contain;
        object-position:center center;
        background:#000;
    }

    .book{
        grid-template-columns:1fr;
        min-height:auto;
    }

    .book::after{
        display:none;
    }

    .book-image img,
    .book-image img.edu-fill,
    .book-image img.edu-contain{
        height:220px;
        max-width:320px;
        object-fit:contain;
        padding:6px;
    }

    .work-card{
        grid-template-columns:1fr;
        width:86vw;
        min-width:86vw;
    }

    .work-logo{
        width:72px;
        height:72px;
    }

    .fields{
        grid-template-columns:1fr;
    }

    .scroll-btn{
        right:15px;
    }

    .modal{
        padding:14px;
        align-items:flex-start;
        padding-top:82px;
    }
}

@media (max-width: 430px), (max-height: 520px){
    .navbar{
        padding:12px 0;
    }

    .navbar .logo a{
        font-size:15px;
    }

    .menu-btn .material-icons{
        font-size:34px;
    }

    .title,
    .title2,
    .title3,
    .title4,
    .title5,
    .title6{
        font-size:17px;
        min-height:60px;
        padding:15px 8px 22px;
    }

    .book-page,
    .work-card,
    .modal-box,
    .skills-card{
        padding:20px;
    }

    .work-card h3,
    .book-info h3,
    .book-image h3{
        font-size:23px;
    }

    .summary,
    .modal-summary,
    .fun-list li{
        font-size:15px;
    }

    .more-btn,
    .controls button,
    .button button{
        font-size:10px;
        padding:10px 14px;
    }
}
