@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;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Bebas Neue', sans-serif;
    overflow-x: hidden;
    font-size: 1.2rem;
    cursor: auto;
}

.no-cursor,
.no-cursor * {
    cursor: none !important;
}

/* JavaScript Custom Cursor Element */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    /* Adjust based on your GIF size */
    height: 32px;
    z-index: 10000;
    pointer-events: none;
    background-image: url('../images/Cursor-Animation.gif');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    /* Center the cursor on the mouse point */
}

/* Hover effects for interactive elements to show it's clickable */
a:hover,
button:hover,
.portfolio-item:hover,
.close:hover,
input,
textarea,
select {
    cursor: none;
    /* Keep generic cursor hidden, let JS cursor handle it */
}

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: 45px;
    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: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

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;
    will-change: transform;
    backface-visibility: hidden;
}

.rotating-text text {
    font-size: 28px;
    fill: #17A58A;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 3px;
    transition: fill 0.5s ease;
}

/* Welcome modal keeps its original mint rotating text */
.welcome-logo .rotating-text text {
    fill: #70D8A8;
}

/* Modifier class for white text in specific sections */
.nav-white-text .rotating-text text,
.mobile-logo.nav-white-text .rotating-text text {
    fill: #ffffff !important;
}

@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;
    -webkit-tap-highlight-color: transparent;
    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;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-player:hover {
    transform: translateY(2px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.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;
    height: 925px;
    min-height: auto;
}

.home-content {
    text-align: center;
    position: relative;
}

.main-title {
    font-family: 'Rocket Raccoon Free', sans-serif;
    font-size: 25rem;
    padding-top: 70px;
    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;
}

/* Home Marquee */
.home-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 15;
    padding: 15px 0;
}

.marquee-track {
    display: inline-flex;
    white-space: nowrap;
    animation: marqueeScroll 60s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.marquee-track span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: rgba(0, 0, 0, 0.15);
    letter-spacing: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
    display: inline-block;
}

@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* About Section */
#about {
    position: relative;
    z-index: 20;
    background: linear-gradient(to bottom, #53dac1 0%, #9ed580 100%);
}

.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;
    transform: scale(1.1);
}

.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: #FFD700;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 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: 200px;
    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: 620px;
    width: auto;

    object-fit: contain;
    position: relative;
    z-index: 60;
}

.contact-text-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 50;
    /* Above regular content, below character image */
    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;
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
    /* Align to right side */
    align-items: center;
    position: relative;
    z-index: 200;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 300;
    pointer-events: auto;
}

.social-links a:hover {
    background: white;
    color: #ff7302;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.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;
    font-family: 'Bebas Neue', sans-serif;
    /* Same font as others */
    transition: all 0.3s ease;
}

.contact-form-container button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(83, 218, 193, 0.4);
    background: #4ecbb4;
    /* Slightly darker shade */
}

/* Modal */
/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
    /* Prevent background scroll */
    /* Flexbox Centering */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: transparent;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    /* Allow internal scrolling if content is tall */
    position: relative;
    border-radius: 15px;
}

.modal-inner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.modal-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Disables all mouse interaction with YouTube, hiding native cursor and ensuring custom cursor stays visible 'above' logically */
}

.modal-text-content {
    text-align: center;
    color: white;
    width: 100%;
    max-width: 800px;
}

.modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.modal-description {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #ddd;
    margin-bottom: 20px;
}

.project-link-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.project-link-btn:hover {
    background: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    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;
}

/* Strict Scroll Lock for Welcome Modal */
body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}




/* 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;
}

/* --- Custom Scrollbar --- */
/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #f1f1f1;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Site Footer */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: white;
    letter-spacing: 2px;
}

.site-footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Pulsating Heart Animation */
.heart-pulse {
    display: inline-block;
    animation: heartPulse 1.2s ease-in-out infinite;
    font-size: 1.4rem;
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.25);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}