@font-face {
    font-family: 'Rocket Raccoon Free';
    src: url('../fonts/RocketRaccoonFree-Regular.woff2') format('woff2'),
        url('../fonts/RocketRaccoonFree-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #FFD700;
    --secondary-color: #FF8C00;
    --bg-home: #ffffff;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Bebas Neue', sans-serif;
    overflow-x: hidden;
    font-size: 1.2rem;
}

body.modal-open {
    overflow: hidden;
}

.section {
    min-height: 100vh;
    padding: 50px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.container {
    max-width: 1375px;
    width: 100%;
    margin: 0 auto;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    z-index: 1000;
    background: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    padding-top: 75px;
    gap: 75px;
    transition: all 0.3s ease;
}

nav.nav-scrolled .nav-links {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 40px;
    border-radius: 50px;
    padding-top: 15px;
    margin-top: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 2rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-links a:hover {
    transform: scale(1.1);
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

nav.nav-scrolled .nav-links a {
    font-size: 1.5rem;
}

.logo {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 250px;
    height: 150px;
}

.rotating-text-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo {
    width: 80px;
    height: auto;
    position: absolute;
    z-index: 2;
}

.rotating-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 10s linear infinite;
    z-index: 1;
}

.rotating-text text {
    font-size: 28px;
    fill: #70D8A8;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 3px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/*  Welcome Modal */
.welcome-modal {
    display: flex;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.welcome-content {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 50px 50px;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.welcome-content h2 {
    font-family: 'Rocket Raccoon Free', sans-serif;
    font-size: 5rem;
    color: #333;
    margin-top: 100px;
    text-shadow: none;
}

#enter-site-btn {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    border: none;
    padding: 15px 60px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(83, 218, 193, 0.4);
}

#enter-site-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(83, 218, 193, 0.6);
}

/* Music Player */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-player button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: color 0.3s;
}

.music-player button:hover {
    color: var(--secondary-color);
}

/* Equalizer Animation */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    margin-right: 5px;
}

.equalizer .bar {
    width: 3px;
    background: linear-gradient(to top, #53dac1, #e9d040);
    border-radius: 2px;
    animation: equalize 0.8s ease-in-out infinite;
}

.equalizer .bar:nth-child(1) {
    animation-delay: 0s;
}

.equalizer .bar:nth-child(2) {
    animation-delay: 0.2s;
}

.equalizer .bar:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes equalize {

    0%,
    100% {
        height: 5px;
    }

    50% {
        height: 20px;
    }
}

/* Home Section */
#home {
    position: relative;
    background: #ffffff;
}

.home-content {
    text-align: center;
    position: relative;
}

.main-title {
    font-family: 'Rocket Raccoon Free', sans-serif;
    font-size: 25rem;
    padding-top: 120px;
    line-height: 0.7;
    text-align: left;
}

.text-creative {
    background: linear-gradient(to bottom, #53dac1 20%, #e9d040 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-yaka {
    background: linear-gradient(to bottom, #ff7302 10%, #fcb601 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 500px;
    display: inline-flex;
    align-items: flex-start;
    gap: 50px;
}

.character-container {
    margin-top: -50px;
}

.character-img {
    max-width: 750px;
    height: auto;
    position: relative;
    z-index: 10;
    margin-top: -250px;
    margin-left: -120px;
}

/* About Section */
#about {
    position: relative;
    z-index: 20;
    background: linear-gradient(to bottom, #53dac1, #e9d040);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-text-left h2 {
    font-family: 'Rocket Raccoon Free', sans-serif;
    font-size: 15rem;
    line-height: 0.8;
    color: white;
}

.about-text-right {
    max-width: 500px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
}

/* Portfolio Section */
#portfolio {
    background: #ffffff;
}

.portfolio-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.portfolio-left {
    width: 45%;
}

.portfolio-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.portfolio-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.portfolio-title {
    position: relative;
    z-index: 1;
    text-align: left;
}

.portfolio-title h2 {
    font-family: 'Rocket Raccoon Free', sans-serif;
    font-size: 15rem;
    background: linear-gradient(to right, #53dac1, #e9d040);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 0.8;
}

.portfolio-categories {
    text-align: left;
    margin-top: 20px;
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
}

.filter-btn {
    background: none;
    border: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    margin: 0 10px;
    cursor: pointer;
}

.filter-btn.active {
    color: #FF8C00;
}

/* Portfolio Navigation */
.portfolio-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(83, 218, 193, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
    font-size: 1.2rem;
}

.nav-arrow:hover {
    background: rgba(83, 218, 193, 0.2);
    transform: scale(1.1);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#page-info {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: #666;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.portfolio-item {
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    aspect-ratio: 4/3;
    background: #f5f5f5;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.character-container-portfolio {
    position: absolute;
    top: 25px;
    right: -150px;
    z-index: 10;
    pointer-events: none;
}

.character-container-portfolio img {
    max-width: 400px;
}

/* Contact Section */
#contact {
    background: linear-gradient(to bottom, #ff7302, #fcb601);
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
}

.contact-left-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    position: relative;
}

.contact-character-img {
    height: 550px;
    width: auto;

    object-fit: contain;
    position: relative;
    z-index: 10;
}

.contact-text-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
    text-align: left;
    margin-left: -75px;
}

.contact-text-wrapper h2 {
    font-family: 'Rocket Raccoon Free', sans-serif;
    font-size: 18rem;
    line-height: 0.8;
    color: white;
}

.contact-label {
    font-family: 'Rocket Raccoon Free', sans-serif;
    font-size: 13rem !important;
    line-height: 0.8;
    color: white;
    margin-bottom: 0;
}

.contact-form-container {
    width: 100%;
    max-width: 800px;
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 20px;
    margin-bottom: 20px;
    border: none;
    border-radius: 15px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
}

.contact-form-container textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-container button {
    width: 100%;
    padding: 20px;
    background: #53dac1;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: 50px auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    position: relative;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.modal-content iframe {
    width: 100%;
    height: 600px;
    border-radius: 10px;
}


.close {
    position: fixed;
    top: 30px;
    right: 50px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
}

.close:hover {
    color: #FF8C00;
}

/* Responsive */


.welcome-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 5px;
    margin-top: 30px;
    line-height: 1;
}

.welcome-gradient-title {
    font-family: 'Rocket Raccoon Free', sans-serif;
    font-size: 4.5rem;
    background: linear-gradient(to right, #53dac1, #e9d040);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 0.9;

    .portfolio-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .portfolio-item {
        cursor: pointer;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        position: relative;
        aspect-ratio: 4/3;
        background: #f5f5f5;
    }

    .portfolio-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s;
    }

    .portfolio-item:hover img {
        transform: scale(1.05);
    }

    .character-container-portfolio {
        position: absolute;
        top: 25px;
        right: -150px;
        z-index: 10;
        pointer-events: none;
    }

    .character-container-portfolio img {
        max-width: 400px;
    }

    /* Contact Section */
    #contact {
        background: linear-gradient(to bottom, #ff7302, #fcb601);
    }

    .contact-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 100px;
    }

    .contact-left-section {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
        position: relative;
    }

    .contact-character-img {
        height: 550px;
        width: auto;

        object-fit: contain;
        position: relative;
        z-index: 10;
    }

    .contact-text-wrapper {
        display: flex;
        flex-direction: column;
        position: relative;
        z-index: 5;
        text-align: left;
        margin-left: -75px;
    }

    .contact-text-wrapper h2 {
        font-family: 'Rocket Raccoon Free', sans-serif;
        font-size: 18rem;
        line-height: 0.8;
        color: white;
    }

    .contact-label {
        font-family: 'Rocket Raccoon Free', sans-serif;
        font-size: 13rem !important;
        line-height: 0.8;
        color: white;
        margin-bottom: 0;
    }

    .contact-form-container {
        width: 100%;
        max-width: 800px;
    }

    .contact-form-container input,
    .contact-form-container textarea {
        width: 100%;
        padding: 20px;
        margin-bottom: 20px;
        border: none;
        border-radius: 15px;
        font-family: 'Bebas Neue', sans-serif;
        font-size: 1.5rem;
    }

    .contact-form-container textarea {
        min-height: 150px;
        resize: vertical;
    }

    .contact-form-container button {
        width: 100%;
        padding: 20px;
        background: #53dac1;
        color: white;
        border: none;
        border-radius: 15px;
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* Modal */
    .modal {
        display: none;
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        overflow: auto;
    }

    .modal-content {
        margin: 50px auto;
        display: block;
        width: 90%;
        max-width: 1000px;
        position: relative;
    }

    .modal-content img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .modal-content iframe {
        width: 100%;
        height: 600px;
        border-radius: 10px;
    }


    .close {
        position: fixed;
        top: 30px;
        right: 50px;
        color: #f1f1f1;
        font-size: 50px;
        font-weight: bold;
        cursor: pointer;
        z-index: 2001;
        transition: color 0.3s;
    }

    .close:hover {
        color: #FF8C00;
    }

    /* Responsive */


    .welcome-title {
        font-family: 'Bebas Neue', sans-serif;
        font-size: 2rem;
        color: #333;
        margin-bottom: 5px;
        margin-top: 30px;
        line-height: 1;
    }

    .welcome-gradient-title {
        font-family: 'Rocket Raccoon Free', sans-serif;
        font-size: 4.5rem;
        background: linear-gradient(to right, #53dac1, #e9d040);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        line-height: 0.9;
        margin-bottom: 30px;
        margin-top: 0;
    }

    /* Canvas support for PNG sequence animation */
    .character-img[id="main-character"],
    canvas.character-img {
        max-width: 1050px !important;
        height: auto !important;
        width: auto;
        display: inline-block;
    }