@font-face {
    font-family: 'CyberCrown';
    src: url('fonts/Cyber Crown One.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CyberCrownAlt';
    src: url('fonts/Cyber Crown.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    overflow: hidden;
    color: white;
    /* animation: fadeIn 1.2s ease; */
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: linear-gradient(45deg, #2a5bd7, #7b2ff7, #ff3cac);
        background-size: 400% 400%;
        animation: gradientMove 18s ease infinite;
        z-index: -2;
    }

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 25px 50px;
    background: rgba(85, 85, 85, 0.68);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.logo {
    transform: translateY(3px);
    font-size: 44px;
    font-weight: normal;
    letter-spacing: 3px;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
    text-shadow: none;
    justify-self: start;
    text-decoration: none;
    color: white;
    /* 🔥 Custom Font Applied Here */
    font-family: 'CyberCrown', sans-serif;
}

    .logo:hover {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 22px rgba(255, 255, 255, 0.35);
    }

.tagline {
    justify-self: center;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-style: italic;
    letter-spacing: 0.5px;
    opacity: 0.95;
    white-space: nowrap;
    font-weight: 300;
}

.nav-buttons {
    display: flex;
    align-items: center;
    justify-self: end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 19px 32px;
    margin-left: 15px;
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-size: 20px;
}

.blue {
    background: linear-gradient(45deg, #234fba, #153f9e);
}

.purple {
    background: linear-gradient(45deg, #a64bf4, #6a00f4);
}

.resume {
    background: linear-gradient(45deg, #e34e92, #b91d68);
}

.large {
    padding: 24px 48px;
    font-size: 22px;
    border-radius: 22px;
}

.btn:hover {
    transform: scale(1.08);
    filter: brightness(1.15);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
}

main {
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px;
}

.content {
    display: flex;
    align-items: center;
    gap: 100px;
    margin-left: 105px;
    margin-top: 30px;
}

.image-box {
    width: 350px;
    height: 350px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    cursor: pointer;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.image-tilt {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.18s ease, filter 0.18s ease;
    will-change: transform, filter;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
    transition: transform 0.18s ease, filter 0.18s ease;
    will-change: transform, filter;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.22));
}

.image-box:hover .profile-image {
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.38)) drop-shadow(0 0 26px rgba(255, 255, 255, 0.20));
}

.placeholder {
    background: rgba(255, 255, 255, 0.25);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    color: white;
    font-weight: 700;
}

.description {
    transform: translateY(-16px);
}

    .description h2 {
        margin-bottom: 15px;
        font-size: 34px;
        letter-spacing: 0.5px;
        display: inline-block;
        cursor: pointer;
        transition: transform 0.25s ease, filter 0.25s ease;
        text-shadow: none;
    }

        .description h2:hover {
            transform: scale(1.06);
            filter: brightness(1.12);
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.45), 0 0 16px rgba(255, 255, 255, 0.28);
        }

    .description p {
        max-width: 600px;
        line-height: 1.6;
        font-size: 21px;
        font-weight: 400;
    }

.bottom-buttons {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

    .bottom-buttons .btn {
        font-size: 24px;
    }

.bottom-left {
    grid-column: 1;
    justify-self: end;
}

.bottom-center {
    grid-column: 2;
    justify-self: center;
}

.bottom-right {
    grid-column: 3;
    justify-self: start;
}

/*
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
*/

@media (max-width: 900px) {
    body {
        overflow: auto;
    }

    header {
        padding: 18px 20px;
        grid-template-columns: 1fr;
        gap: 10px;
        justify-items: center;
    }

    .logo {
        font-size: 26px;
        justify-self: center;
    }

    .tagline {
        font-size: 15px;
        text-align: center;
        white-space: normal;
        justify-self: center;
    }

    .nav-buttons {
        justify-self: center;
    }

    main {
        height: auto;
        min-height: calc(100vh - 92px);
        padding: 28px 20px 34px;
    }

    .content {
        flex-direction: column;
        margin-left: 0;
        margin-top: 20px;
        gap: 30px;
        text-align: center;
    }

    .image-box {
        width: min(72vw, 290px);
        height: min(72vw, 290px);
    }

    .description {
        transform: none;
    }

        .description h2 {
            font-size: 24px;
        }

        .description p {
            font-size: 16px;
            max-width: 100%;
        }

    .bottom-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        margin-top: 30px;
        margin-bottom: 0;
    }

    .btn {
        margin-left: 0;
    }

    .large {
        width: min(100%, 340px);
    }
}

.image-box:hover {
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.22));
}
