:root {
    --neon-1: #00ff55;
    --neon-2: #9dff00;

    --accent: var(--neon-1);
    --accent-glow: rgba(0, 255, 85, 0.6);
    --gradient-neon: linear-gradient(135deg, var(--neon-1), var(--neon-2));

    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --glass-nav-bg: rgba(20, 20, 20, 0.5);
    --font: 'Poppins', sans-serif;
    --font-minecraft: 'Press Start 2P', cursive;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    font-family: var(--font);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background: transparent;
}

.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: #030a06;
    overflow: hidden;
}

.orb-1,
.orb-2,
.orb-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    animation: float 25s ease-in-out infinite alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(0, 255, 85, 0.25);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(157, 255, 0, 0.2);
    animation-delay: -10s;
}

.orb-3 {
    top: 20%;
    right: 10%;
    width: 40vw;
    height: 40vw;
    background: rgba(0, 255, 85, 0.15);
    animation: float 30s ease-in-out infinite alternate-reverse;
    filter: blur(180px);
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 10%) scale(1.1);
    }
}

.full-glass-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: rgba(10, 15, 12, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 5vh 0 12vh 0;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4vh;
}

.status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-muted);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--neon-1);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-1);
}

.btn-primary {
    background: var(--gradient-neon);
    color: #000;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0, 255, 85, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 255, 85, 0.6);
}

.hire-dropdown {
    position: relative;
    display: inline-block;
}

.hire-dropdown .btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: rgba(15, 20, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 85, 0.2);
    border-radius: 16px;
    padding: 10px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 5px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.hire-dropdown:hover .dropdown-menu,
.hire-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item ion-icon {
    font-size: 18px;
    color: var(--accent);
}

.dropdown-item:hover {
    background: rgba(0, 255, 85, 0.1);
    color: var(--text-main);
    transform: translateX(5px);
}

.section {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.section.active {
    display: block;
}

#about.active,
#contact.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 75vh;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-text {
    flex: 1;
    max-width: 800px;
}

.about-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.about-image-wrapper img {
    width: 100%;
    max-width: 700px;
    max-height: 75vh;
    object-fit: contain;
    mix-blend-mode: lighten;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 95%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 95%);
    transition: var(--transition);
    transform: scale(1.2);
    transform-origin: center right;
}

.about-image-wrapper img:hover {
    transform: scale(1.2) translateY(-5px);
}

.hero-role {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-minecraft);
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.3;
    margin-bottom: 3vh;
    letter-spacing: -1px;
    text-shadow: 0 0 40px rgba(0, 255, 85, 0.4);
}

.hero-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 4vh;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--text-main);
}

.contact-item ion-icon {
    color: var(--accent);
    font-size: 24px;
}

p.text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 18px;
}

/* --- PORTFOLIO SECTION SPECIFICS --- */
.portfolio-hero {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

.portfolio-text-side {
    flex: 1;
}

.portfolio-video-side {
    flex: 1.2;
}

.showreel-player {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20 80px 60px rgba(0, 255, 85, 0.15);
    border: 1px solid rgba(0, 255, 85, 0.2);
    overflow: hidden;
    background: #000;
}

/* Looping Clients Scroller */
.scroller-section {
    margin-bottom: 60px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scroller {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.scroller-inner {
    padding-block: 10px;
    display: flex;
    flex-wrap: nowrap;
    gap: 3rem;
    width: max-content;
    animation: scroll 80s linear infinite;
}

.scroller:hover .scroller-inner {
    animation-play-state: paused;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 1.5rem));
    }
}

.creator-link {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}

.creator-link:hover {
    transform: scale(1.05);
}

.creator-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.creator-info {
    display: flex;
    flex-direction: column;
}

.creator-name {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.creator-name ion-icon {
    color: var(--accent);
    font-size: 16px;
}

.creator-subs {
    font-size: 14px;
    color: var(--text-muted);
}

.portfolio-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-top: 40px;
}

.portfolio-sidebar {
    position: sticky;
    top: 50px;
    width: 250px;
    flex-shrink: 0;
    background: rgba(15, 20, 15, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 20px;
    z-index: 10;
}

.sticky-cat-nav h4 {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 20px;
    padding-left: 10px;
    font-weight: 600;
}

.cat-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 12px;
    transition: var(--transition);
    margin-bottom: 5px;
}

.cat-link ion-icon {
    font-size: 22px;
    color: var(--accent);
    transition: transform 0.2s;
}

.cat-link:hover {
    background: rgba(0, 255, 85, 0.1);
    color: var(--text-main);
    transform: translateX(5px);
}

.cat-link:hover ion-icon {
    transform: scale(1.2);
}

.portfolio-main {
    flex-grow: 1;
    min-width: 0;
}


.category-separator {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 60px 0;
}

.category-title {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 15px;
    scroll-margin-top: 120px;
}

.category-title ion-icon {
    color: var(--accent);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 40px rgba(0, 255, 85, 0.15);
    border-color: rgba(0, 255, 85, 0.3);
}

.project-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.project-info {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-title {
    font-size: 18px;
    margin-bottom: 6px;
    line-height: 1.4;
    font-weight: 500;
}

.project-meta {
    font-size: 14px;
    color: var(--text-muted);
}

h3.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -1px;
}

.contact-container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 16px;
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    transition: var(--transition);
    overflow-wrap: break-word;
    word-break: break-word;
}

textarea.form-control {
    min-height: 200px;
    resize: none;
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 85, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 25px;
    font-size: 20px;
    border-radius: 16px;
}

.floating-nav {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: max-content;
    padding: 10px;
    border-radius: 50px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 40px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
}

.nav-btn ion-icon {
    font-size: 20px;
}

.nav-btn:hover {
    color: var(--text-main);
}

.nav-btn.active {
    background: var(--gradient-neon);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 85, 0.4);
}

@media (max-width: 1200px) {
    .portfolio-sidebar {
        width: 200px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    .about-layout {
        flex-direction: column-reverse;
        text-align: center;
        justify-content: center;
    }

    .about-text {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-contacts {
        justify-content: center;
    }

    .about-image-wrapper {
        justify-content: center;
        margin-bottom: 20px;
    }

    .about-image-wrapper img {
        height: 45vh;
        width: 100%;
        max-width: 380px;
        object-fit: cover;
        object-position: top center;

        transform: scale(1.15) translateX(20px);
    }

    .about-image-wrapper img:hover {
        transform: scale(1.15) translateX(20px) translateY(-5px);
    }

    .portfolio-hero {
        flex-direction: column;
    }

    #about.active,
    #contact.active {
        justify-content: flex-start;
        min-height: auto;
    }
}

@media (max-width: 900px) {
    .portfolio-layout {
        flex-direction: column;
        gap: 30px;
        margin-top: 20px;
    }

    .portfolio-sidebar {
        position: sticky;
        top: 10px;
        width: fit-content;
        margin: 0 auto;
        padding: 12px 15px;
        border-radius: 15px;
        z-index: 100;
        background: rgba(15, 20, 15, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .sticky-cat-nav h4 {
        display: none;
    }

    .sticky-cat-nav {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        justify-content: center;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .sticky-cat-nav::-webkit-scrollbar {
        display: none;
    }

    .cat-link {
        white-space: nowrap;
        margin-bottom: 0;
        padding: 12px 20px;
        background: rgba(255, 255, 255, 0.05);
    }

    .cat-link:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    h3.section-title,
    .category-title {
        font-size: 28px;
    }

    .form-control {
        padding: 20px 25px;
        font-size: 16px;
    }

    textarea.form-control {
        min-height: 150px;
    }

    .submit-btn {
        padding: 20px;
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .floating-nav {
        bottom: 25px;
        padding: 8px;
        gap: 5px;
        max-width: 95vw;
    }

    .nav-btn {
        padding: 12px 20px;
        font-size: 13px;
        gap: 6px;
    }

    .nav-btn ion-icon {
        display: none;
    }

    .nav-btn span {
        display: inline;
    }

    .cat-link {
        padding: 8px 14px;
        font-size: 13px;
        gap: 6px;
    }

    .cat-link ion-icon {
        font-size: 16px;
    }
}

.showreel-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 255, 85, 0.15);
    border: 1px solid rgba(0, 255, 85, 0.2);
}

.showreel-wrapper .showreel-player {
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: block;
    width: 100%;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.player-overlay ion-icon {
    font-size: 70px;
    color: var(--neon-1);
    opacity: 0.9;
}

.showreel-wrapper.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 30px 20px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3;
    opacity: 0;
    transition: var(--transition);
}

.showreel-wrapper:hover .player-controls,
.showreel-wrapper:focus-within .player-controls {
    opacity: 1;
}

.player-controls button {
    color: #fff;
    font-size: 22px;
    display: flex;
    transition: 0.2s;
}

.player-controls button:hover {
    color: var(--neon-1);
    transform: scale(1.1);
}

.time-track {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    font-size: 13px;
    font-family: monospace;
}

.time-track input[type="range"],
.player-controls input[type="range"] {
    width: 100%;
    cursor: pointer;
    accent-color: var(--neon-1);
    height: 4px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
}

#volume-slider {
    width: 70px;
}

.invalid-email {
    border-color: #ff4444 !important;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2) !important;
}

.error-text {
    color: #ff4444;
    font-size: 12px;
    position: absolute;
    bottom: -22px;
    left: 10px;
    display: none;
}

.error-text.show {
    display: block;
}

.char-count {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 12px;
    color: var(--text-muted);
    transition: 0.2s;
    pointer-events: none;
}

.char-count.limit-reached {
    color: #ff4444;
    font-weight: bold;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(10, 15, 12, 0.9);
    border: 1px solid var(--neon-1);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 255, 85, 0.2);
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast ion-icon {
    color: var(--neon-1);
    font-size: 22px;
}