@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500&display=swap');


/** GLOBAL **/

* {
    font-family: 'IBM Plex Sans', sans-serif;
    background: transparent;
    box-sizing: border-box;
    color: #fff;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0c0c0c;
}

.glass-element {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin: 5px;
}

.small-button {
    padding: 15px 18px;
    align-self: center;
    border-radius: 15px;
    font-size: 1rem;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.small-button:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin: 2rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 3vw, 4rem);
    margin: 1.5rem 0;
}


/** NAVBAR **/

#menu-toggle {
    display: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, #000, transparent);
    padding: 12px 16px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    cursor: pointer;
    width: 32px;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 32px;
    background: #aaa;
    border-radius: 2px;
    transition: background 0.15s ease;
}

.hamburger:hover span {
    background: #fff;
}

.dropdown {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 30%;
    border-radius: 0 0 5px 0;
    padding: 0;
    margin: 0;
    background: rgba(9, 9, 9, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

#menu-toggle:checked ~ .dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.dropdown a {
    padding: 11px 16px;
    font-size: 1rem;
    font-weight: 400;
    color: #aaa;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.15s ease, background 0.15s ease;
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}


/** LANDING PAGE **/

.landing-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.name {
    font-size: clamp(2rem, 8vw, 10rem);
    transform: translateY(-2rem);
    text-align: center;
    line-height: 1;
}

#matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 95%;
    opacity: 0.16;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}


/** PROJECTS **/
.project-preview-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    width: 100%;
    max-width: 450px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.card img {
    width: 90%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 3px;
    align-self: center;
    margin: 0.5rem;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.project-title {
    font-size: clamp(1rem, 2vw, 1.5rem);
}

.project-text {
    color: #aaa;
    font-size: 0.875rem;
    line-height: 1.5;
}


/** CONTACT **/

.contact-section {
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 4rem;
}

.contact-choice {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: min(50%, 600px);
    height: 60px;
    padding: 0 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-choice:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.contact-label {
    flex-shrink: 0;
    color: #aaa;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    min-width: 80px;
}

.contact-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.contact-info {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copy-check {
    flex-shrink: 0;
    width: 16px;
    color: rgb(104, 162, 85);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.copy-check.show {
    opacity: 1;
}


/** MOBILE **/

@media (max-width: 767px) {

    #projects-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .contact-choice {
        height: auto;
        width: 90%;
        padding: 14px 20px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .contact-center {
        width: 100%;
        justify-content: flex-start;
    }

    .contact-info {
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
        word-break: break-word;
    }

    .contact-label {
        display: none;
    }

    .copy-check {
        display: none;
    }

}