﻿* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Manrope', sans-serif;
}

:root {
    --bg-color: #0f151a;
    --second-bg-color: #081b29;
    --text-color: #fff;
    --second-color: #c2bfd1;
    --main-color: #f53fa1;
    --main-color-rgb: 245, 63, 161;
    --other-color: #00ecff;
    --h1-font: 55px;
    --h2-font: 3.6rem;
    --p-font: 1rem;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 12%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: all ease .55s;
}

.navlist { display:flex; gap:14px; list-style:none; margin:0; padding:0; align-items:center; }
.navlist a { color:var(--second-color); text-decoration:none; padding:8px 10px; border-radius:8px; font-weight:600; transition: background .12s ease, color .12s ease, transform .12s ease; }
.navlist a:hover { color:var(--text-color); background: rgba(255,255,255,0.02); transform: translateY(-1px); }
.navlist a[aria-current="page"] { color: var(--text-color); background: linear-gradient(90deg, rgba(245,63,161,0.12), rgba(0,236,255,0.06)); box-shadow: inset 0 -2px 0 rgba(255,255,255,0.02); }

a.locked {
    pointer-events: none;
    cursor: not-allowed;
    color: rgb(179, 179, 179);
    opacity: 0.6;
}

    a.locked:hover {
        background-color: transparent;
        color: rgb(179, 179, 179);
    }

.logo img {
    height: auto;
}

.h-right {
    display: flex;
    align-items: center;
}

    .h-right a {
        margin-right: 30px;
        font-size: 17px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--other-color);
        transition: all ease .55s;
    }

        .h-right a:hover {
            color: var(--text-color);
        }

#menu-icon {
    font-size: 37px;
    color: var(--main-color);
    z-index: 10001;
    cursor: pointer;
    display: none;
}

footer {
    background-color: #111;
    color: #fff;
    padding: 20px 10px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

    .footer-links a {
        color: #ddd;
        text-decoration: none;
        font-size: 14px;
    }

        .footer-links a:hover {
            color: var(--other-color);
        }

.footer-bottom {
    margin: 10px 0;
    font-size: 12px;
    text-align: left;
    color: #aaa;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin: 15px 0;
}

    .social-icons a {
        color: #aaa;
        font-size: 20px;
        transition: color 0.3s ease;
    }

        .social-icons a:hover {
            color: var(--other-color);
        }

.back-to-top {
    position: absolute;
    top: 10px;
    right: 20px;
}

    .back-to-top a {
        text-decoration: none;
        color: #fff;
        font-size: 14px;
    }

        .back-to-top a:hover {
            color: var(--other-color);
        }

section {
    padding: 90px 13% 80px;
}

.home {
    position: relative;
    height: 100vh;
    width: 100%;
    background: url(../media/img/clarklimer.jpg) no-repeat right center;
    background-size: 50% 100%;
    background-position: right top;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.home-text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: var(--h1-font);
    font-weight: 600;
    line-height: 1.2;
    margin: 25px 0 25px;
}

    .home-text h1 span {
        color: var(--main-color);
        font-family: 'Oswald', sans-serif;
        font-weight: 600;
    }

.home-text h3 {
    font-size: 18px;
    font-weight: 500;
}

.count {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
}

    .count li {
        display: flex;
        align-items: center;
        font-size: 14px;
        line-height: 1.3;
        color: var(--second-color);
        width: 30%;
    }

        .count li:nth-child(3) {
            width: 100%;
        }

    .count span {
        font-family: 'Oswald', sans-serif;
        color: var(--text-color);
        font-size: 3rem;
        font-weight: 600;
        margin-right: 17px;
    }

.badge-container {
    position: absolute;
    margin: 20px 0;
    bottom: 245px;
}

.badge1 {
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.cv-btn {
    position: relative;
    margin-top: 70px;
    text-align: center;
    padding: 10px 20px;
    background-color: var(--main-color);
    color: white;
    border-radius: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensures fireflies are contained */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

    .cv-btn:hover {
        transform: scale(1.08);
    }

    .cv-btn .firefly {
        position: absolute;
        width: 5px;
        height: 5px;
        background-color: var(--other-color);
        border-radius: 50%;
        animation: moveFirefly 3s infinite ease-in-out;
        pointer-events: none;
    }

/* Animation to move the fireflies randomly */
@keyframes moveFirefly {
    0% {
        transform: translate(0, 0) scale(0.8);
        opacity: 1;
    }

    25% {
        transform: translate(30px, -20px) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-30px, 30px) scale(1.2);
        opacity: 0.6;
    }

    75% {
        transform: translate(20px, 20px) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-20px, -20px) scale(0.8);
        opacity: 1;
    }
}

/* Each firefly has a slight delay and randomized position */
.cv-btn .firefly:nth-child(2) {
    animation-delay: 0.5s;
    top: 20%;
    left: 10%;
}

.cv-btn .firefly:nth-child(3) {
    animation-delay: 1s;
    top: 50%;
    left: 80%;
}

.cv-btn .firefly:nth-child(4) {
    animation-delay: 1.5s;
    top: 80%;
    left: 30%;
}

.cv-btn .firefly:nth-child(5) {
    animation-delay: 2s;
    top: 10%;
    left: 70%;
}

/* Fireflies only appear on hover */
.cv-btn:hover .firefly {
    display: block;
}

header.sticky {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
    padding: 15px 13%;
}

.section {
    padding-block: 5em;
}


.header {
    text-align: center;
    margin-bottom: 5em;
}

    .header h2 {
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 10px;
    }

.demo-container,
.project-container {
    margin-top: -100px;
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 5px rgba(var(--main-color-rgb), 0.1);
    }

    100% {
        box-shadow: 0 0 15px rgba(var(--main-color-rgb), 0.5);
    }
}

.project-container .header {
    text-align: center;
    margin-bottom: 3em;
}

    .project-container .header h2 {
        font-size: 2.8em;
        font-weight: 700;
        color: var(--text-color);
    }

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    margin-bottom: 30px;
    background: var(--second-bg-color);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    align-items: center;
    border: 1px solid rgba(255,255,255,0.03);
}

.project-info h4 {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5em;
}

.project-info p {
    font-size: var(--p-font);
    color: var(--second-color);
    line-height: 1.6;
}

.project-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.03);
}

    .project-image iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .project-image video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .project-image img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }


/* Responsive Layout Adjustments */
@media (max-width: 768px) {
    .project-item {
        grid-template-columns: 1fr; /* Stack text and image on smaller screens */
    }

    .project-image {
        margin-top: 20px;
    }
}

.demo {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    background: var(--second-bg-color);
    border-radius: 15px;
    width: 100%;
    text-align: justify;
    overflow: hidden;
    flex: 1;
    min-width: unset;
    max-width: unset;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.03);
}

.demo-container .header h2 {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--text-color);
}

.video-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
}

    .video-section iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }



.about {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 40px;
    background: var(--second-bg-color);
    box-shadow: 1px 2px 10px 2px var(white);
    border-radius: 20px;
    width: 100%;
    text-align: justify;
    overflow: hidden;
    flex: 1;
    min-width: 300px;
    max-width: 1500px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.about-text h2 {
    font-size: 30px;
    font-weight: 700;
    text-align: left;
}

.about-text h4 {
    font-size: 20px;
    font-weight: 600;
    word-spacing: 5px;
}

    .about-text h4 span {
        color: var(--main-color);
    }

.about-text p {
    margin: 25px 0 40px;
    width: 120%;
    max-width: 1000px;
    font-size: var(--p-font);
    font-weight: 400;
    line-height: 35px;
    color: var(--second-color);
    width: 100%;
    max-width: 1000px;
}

.skills {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: var(--second-bg-color);
    padding: 40px 40px 20px 40px;
    border-radius: 20px;
    box-shadow: 1px 2px 10px 2px var(white);
}

.skills-box {
    margin-bottom: 30px;
}

.skills-header {
    margin-bottom: 15px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .skills-list span {
        font-size: 14px;
        background: var(--main-color);
        color: var(--text-color);
        padding: 5px 10px;
        border-radius: 5px;
    }

#role-text {
    display: inline-block;
    font-weight: 600;
    font-size: var(--h1-font);
    color: var(--other-color);
    border-right: 3px solid #fff;
    padding-right: 4px;
    margin-top: 10px;
    min-height: 80px;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
}

.name {
    font-family: 'Permanent Marker', cursive !important;
    font-style: normal;
    text-shadow: 2px 2px 4px var(--other-color);
}

@media (max-width: 1650px) {
    header {
        padding: 18px 7%;
    }

        header.sticky {
            padding: 14px 7%;
        }

    section {
        padding: 80px 7% 70px;
    }

    .home {
        background-size: cover;
        background-position: center right;
        height: auto;
        min-height: 80vh;
        .home-text h1

{
    font-size: 2.8rem;
}

.home-text h3 {
    font-size: 16px;
}

.home-text .cv-btn {
    padding: 12px 25px;
}

}
}

@media (max-width: 1330px) {
    header {
        padding: 16px 5%;
    }

        header.sticky {
            padding: 12px 5%;
        }

    section {
        padding: 70px 5% 60px;
    }

    .home {
        background-size: cover;
        background-position: center right;
        height: auto;
        min-height: 75vh;
    }

    .home-text h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .home-text h3 {
        font-size: 14px;
    }

    .home-text .cv-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .navlist a {
        font-size: 13px;
        margin: 0 20px;
    }

    

    .about {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .about-text p {
        font-size: 0.9rem;
        line-height: 1.8;
    }
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.emphasized {
    color: var(--other-color);
    font-weight: 700;
}

.subtle-divider {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 1.5em 0;
}

/* Skill Progress Bar */
.skill-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 45%;
    margin-bottom: 10px;
}

/* Education Timeline */
.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.year {
    font-size: 0.9em;
    color: var(--second-color);
    width: 40px;
    text-align: right;
}

/* Game Badges Style */
.game-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-badge {
    font-size: 0.8em;
    background-color: #222;
    color: var(--text-color);
    padding: 5px 8px;
    border-radius: 3px;
}

/* Icon Styling */
.fa {
    margin-left: 5px;
    color: var(--main-color);
}

/* Glowing Border */
.about, .skills {
    border: 1px solid transparent;
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 5px rgba(var(--main-color-rgb), 0.1);
    }

    100% {
        box-shadow: 0 0 15px rgba(var(--main-color-rgb), 0.5);
    }
}

/* Subtle borders for about/skills to match portfolio theme */
.about, .skills {
    border: 1px solid rgba(255,255,255,0.03);
}

#contact {
    padding-top: 20px;
    padding-bottom: 80px;
    background: var(--bg-color);
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    gap: 20px;
}

/* Style the contact panel to be on the right */

    .contact-panel .contact-header h2 {
        text-align: center;
        font-size: 2.8em;
        font-weight: 700;
        margin-bottom: 20px;
    }

.contact-panel {
    background: var(--second-bg-color);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    padding: 40px;
    width: 100%;
    min-width: unset;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.03);
}
        .contact-info .contact-item i {
            font-size: 1.3em;
        }

        .contact-info .contact-item p {
            font-size: 0.9em;
        }

.contact-cta p {
    font-size: 1em;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-item a:hover {
    color: var(--other-color);
}


/* About page styles removed per request */
.container { max-width:1200px; margin:0 auto; padding:0 12px; }

/* Portfolio-style creative contact box (shared) */
.contact-box.creative {
    display: grid;
    grid-template-columns: 1fr 260px 220px;
    gap: 20px;
    align-items: center;
    padding: 26px;
    background: linear-gradient(135deg, rgba(245,63,161,0.06), rgba(0,236,255,0.03));
    border: 1px solid rgba(255,255,255,0.04);
    text-align: left;
    border-radius: 12px;
}
.cb-left h3 { margin:0 0 8px 0; font-size:1.15rem; color:var(--text-color); line-height:1.2; }
.cb-left .muted { color:var(--second-color); font-size:0.95rem; }
.contact-cta-btn { display:inline-block; background: linear-gradient(90deg, rgba(245,63,161,0.95), rgba(0,236,255,0.85)); color:#fff; padding:8px 14px; border-radius:10px; text-decoration:none; font-weight:600; font-size:0.95rem; box-shadow:0 6px 18px rgba(245,63,161,0.08); transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease; }
.contact-cta-btn { border: none; cursor: pointer; line-height: 1; }
.cb-right .socials { display:grid; grid-template-columns: repeat(2, 36px); gap:8px; justify-content:end; align-items:center; }
.cb-right .socials a { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; background: rgba(255,255,255,0.02); border-radius:8px; margin-left:0; color:var(--text-color); opacity:0.95; transition: transform .12s ease, opacity .12s ease, background .12s ease, color .12s ease; }
.cb-right .socials a:hover { transform: translateY(-2px); opacity:1; color:var(--other-color); background: rgba(255,255,255,0.035); }
.cb-right .socials a svg { width:18px; height:18px; display:block; }

@media (max-width: 900px) {
    .contact-box.creative { grid-template-columns: 1fr; text-align:left; }
    .cb-right { text-align:left; }
    .cb-center { margin-top:8px; }
}

