@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #fff;
    background-color: #0d0d0d;
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: 10px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* BACKGROUND VIDEO */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.25);
    z-index: -1;
}

/* HEADER & NAVBAR */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('bg_nav.avif');
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo img {
    height: 35px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 9px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('bg_nav.avif');
    transition: 0.3s;
}

.nav-links a:hover {
    background: #a9a9a9;
    color: #000;
}

/* SECTIONS BASE LAYOUT */
section {
    min-height: 100vh;
    padding: 120px 20px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-container,
.about-container,
.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1050px;
    width: 100%;
}

.projects-container {
    max-width: 1000px;
    width: 100%;
}

/* TEXT STYLES */
.hero-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
}

.hero-title,
.section-title,
.sub-title {
    display: inline-block;
    border-bottom: 3px solid #a9a9a9;
    background: url("text_bg.jpg");
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: animateGradient 15s linear infinite;
}

@keyframes animateGradient {
    to { background-position: 5000px 0; }
}

.hero-title {
    font-size: 28px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.sub-title {
    font-size: 16px;
    margin-bottom: 15px;
}

/* IMAGES & CARDS */
.portrait-box img {
    width: 280px;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.card {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 24px;
}

/* ABOUT SECTION */
.about-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.skills-grid {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.skill-card {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('bg_nav.avif');
    transition: 0.3s;
}

.skill-card:hover {
    border-color: #fff;
    transform: translateY(-5px);
}

.skill-card h3 {
    font-size: 11px;
    margin-bottom: 6px;
}

.skill-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin: 10px 0;
}

.skill-card p {
    font-size: 7px;
    color: #ccc;
}

/* PROJECTS SECTION */
.project-card {
    text-align: center;
}

.project-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.project-subtitle {
    font-size: 10px;
    color: #aaa;
    display: block;
    margin-bottom: 15px;
}

.project-desc {
    font-size: 8px;
    color: #ddd;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-img:hover {
    transform: scale(1.03);
    border-color: #fff;
}

/* CONTACT SECTION */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 380px;
}

.btn-contact {
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('bg_nav.avif');
    text-align: center;
    font-size: 8px;
    transition: 0.3s;
}

.btn-contact:hover {
    background: #a9a9a9;
    color: #000;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('bg_nav.avif');
}

.footer p {
    font-size: 8px;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    text-align: center;
    padding-top: 60px;
}

.lightbox img {
    max-width: 85%;
    max-height: 75vh;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lightbox p {
    margin-top: 12px;
    color: #fff;
    font-size: 10px;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 8px;
        padding: 10px 15px;
    }

    .logo img {
        height: 25px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .nav-links a {
        padding: 6px 10px;
        font-size: 7px;
    }

    section {
        min-height: auto;
        padding: 120px 15px 40px;
    }

    .home-container,
    .about-container,
    .contact-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .hero-title {
        font-size: 13px;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 10px;
    }

    .section-title {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .sub-title {
        font-size: 12px;
    }

    .portrait-box img {
        width: 100%;
        max-width: 220px;
        height: auto;
    }

    .skills-grid {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        width: 100%;
    }
}