:root {
    --bg-light: #f8f8f8;
    --bg-dark: #000000;
    --text-dark: #121212;
    --text-light: #ffffff;
    --accent: #000000;
    --grey: #8e8e8e;
    --grid-color: rgba(0, 0, 0, 0.1);
    --grid-color-dark: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    height: 100px;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    left: 2rem;
}

.logo img {
    height: 42px;
    width: 42px;
    object-fit: cover;
    border-radius: 50%;
}

.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--grey);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--text-dark);
}

/* Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    right: 2rem;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.btn:active {
    transform: scale(0.95);
}

.btn-connect {
    background: var(--bg-dark);
    color: var(--text-light);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.global-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-image: radial-gradient(var(--grid-color) 1.5px, transparent 0);
    background-size: 30px 30px;
}

section>div {
    position: relative;
    z-index: 2;
}

.skills,
.top-gainers,
footer {
    background-image: radial-gradient(var(--grid-color-dark) 1.5px, transparent 0) !important;
    background-size: 30px 30px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

h1 {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

h1 span {
    color: var(--grey);
}

.hero-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    padding: 1rem 5rem 5rem 1rem;
    /* Large extrusion to match the image shadow */
    font-size: 1.1em;
    /* Reduced further as requested */
    font-weight: 800;
    line-height: 1;
    position: relative;
    left: 35px;
    margin: 1.5rem 0;
    vertical-align: middle;
    /* Ensure the X sits at the top-left square part */
    width: 140px;
    height: 140px;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.hero-x::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ff9d00;
    /* Bright orange */
    clip-path: polygon(0 0, 50% 0, 100% 50%, 100% 100%, 50% 100%, 0 50%);
    z-index: -1;
    transition: transform 0.3s ease;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--grey);
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.btn-primary {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
    border-radius: 40px;
    object-fit: cover;
    overflow: hidden;
    background: transparent;
}

.icon-1 {
    top: 20%;
    left: 10%;
    width: 100px;
    animation-delay: 0s;
}

.icon-2 {
    top: 15%;
    right: 12%;
    width: 120px;
    animation-delay: 1s;
}

.icon-3 {
    bottom: 25%;
    left: 15%;
    width: 130px;
    animation-delay: 2s;
}

.icon-4 {
    bottom: 20%;
    right: 15%;
    width: 150px;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* CARDS SECTION */
.top-gainers {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 8rem 0;
    position: relative;
    background-image: radial-gradient(var(--grid-color-dark) 1.5px, transparent 0);
    background-size: 30px 30px;
}

/* Override the section>div z-index for carousel to work */
.top-gainers > .container {
    z-index: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Carousel */
.carousel-scene {
    position: relative;
    min-height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.carousel-3d {
    width: 100%;
    height: 460px;
    position: relative;
}

.project-card {
    position: absolute;
    width: 300px;
    height: 460px;
    top: 50%;
    left: 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.project-card.active {
    pointer-events: all;
}

/* NFT-style Card */
.pcard-inner {
    width: 100%;
    height: 100%;
    background: #ff9d00;
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    border: 3px solid #e88a00;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 157, 0, 0.25), 0 0 0 1px rgba(255, 157, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pcard-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 4px 4px;
    pointer-events: none;
    z-index: 1;
}

.project-card.active:hover .pcard-inner {
    transform: scale(1.03);
    box-shadow: 0 25px 70px rgba(255, 157, 0, 0.35), 0 0 0 1px rgba(255, 157, 0, 0.2);
}

.pcard-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.pcard-stripes {
    font-size: 0.9rem;
    letter-spacing: -1px;
    color: #cc7a00;
    font-weight: 800;
    transform: skewX(-10deg);
}

.pcard-level {
    background: #1a1a1a;
    color: #ff9d00;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.pcard-image {
    flex: 1;
    background: #e88a00;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #cc7a00;
    position: relative;
    z-index: 2;
}

.pcard-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card.active:hover .pcard-image img {
    transform: scale(1.08);
}

.pcard-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
    position: relative;
    z-index: 2;
}

.pcard-year {
    font-size: 0.75rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pcard-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    margin: 0.2rem 0 0.4rem;
    position: relative;
    z-index: 2;
}

.pcard-tags {
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.pcard-tag {
    background: #1a1a1a;
    color: #ff9d00;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid rgba(255, 157, 0, 0.4);
    background: rgba(26, 26, 26, 0.95);
    color: #ff9d00;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 50;
}

.carousel-btn:hover {
    background: #ff9d00;
    color: #1a1a1a;
    border-color: #ff9d00;
}

.carousel-prev {
    left: 5%;
}

.carousel-next {
    right: 5%;
}


/* FOOTER */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: visible;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--grey);
    margin-bottom: 1rem;
}

.copyright {
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--grey);
    text-decoration: none;
    font-size: 0.75rem;
}

.input-wrap {
    display: flex;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.2rem 0.2rem 0.2rem 1rem;
}

.input-wrap input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.8rem 0;
    outline: none;
    flex: 1;
}

.arrow-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.arrow-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.policy-btns {
    display: flex;
    gap: 1rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

.socials {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.socials svg {
    width: 24px;
    height: 24px;
    fill: white;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.socials a:hover svg {
    opacity: 1;
}

.floating-cookie {
    position: absolute;
    top: -120px;
    right: 100px;
    width: 250px;
    opacity: 0.8;
}

.floating-cookie img {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}


/* ABOUT SECTION */
.about {
    background-color: #a3ff00;
    /* Neon Green from reference */
    color: #000;
    padding: 10rem 0 0;
    position: relative;
    overflow: hidden;
}

.about-container {
    position: relative;
    z-index: 5;
    padding-bottom: 5rem;
}

.about-header {
    text-align: center;
    position: relative;
    margin-bottom: 6rem;
}

.corner-label {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.top-left {
    top: 0;
    left: 0;
}

.top-right {
    top: 0;
    right: 0;
}

.about-header h1 {
    font-size: 8rem;
    margin: 0;
    line-height: 0.9;
}

.about-header h1 span {
    color: transparent;
    -webkit-text-stroke: 2px #000;
}

.about-visuals {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.neon-asset {
    position: absolute;
    width: 220px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    border-radius: 40px;
    object-fit: cover;
    overflow: hidden;
}

.asset-1 {
    left: -5%;
    top: -60px;
    animation: float 5s ease-in-out infinite;
}

.asset-2 {
    right: -5%;
    bottom: -100px;
    animation: float 7s ease-in-out infinite;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 10;
}

.bio-lead {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.bio-sub {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 500px;
}

.section-tag {
    display: block;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.beliefs-list {
    list-style: none;
}

.beliefs-list li {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1.5rem;
}

.beliefs-list li span {
    font-weight: 400;
    opacity: 0.5;
}

/* Wireframe Background */
.wireframe-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    opacity: 0.1;
    pointer-events: none;
}

.circle-grid {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image:
        radial-gradient(circle at center, transparent 0, transparent 40%, #000 40%, #000 41%, transparent 41%),
        repeating-conic-gradient(from 0deg, transparent 0deg, transparent 15deg, #000 15deg, #000 16deg);
}

/* Ticker */
.ticker {
    background: #000;
    color: #a3ff00;
    margin-top: 8rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 1rem 0;
    overflow: hidden;
    transform: rotate(-1deg);
}

.ticker-content {
    display: flex;
    width: max-content;
    animation: scroll-ticker 20s linear infinite;
}

.ticker span {
    font-size: 1.2rem;
    font-weight: 800;
    padding-right: 4rem;
    white-space: nowrap;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* SKILLS SECTION */
.skills {
    background: #111;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.skills .section-header h2 {
    color: white;
}

.skills .section-tag {
    color: var(--grey);
}

.skills-carousel {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
    width: max-content;
    animation: scroll-skills 25s linear infinite;
}

.skills-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll-skills {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.skills-carousel::-webkit-scrollbar {
    display: none;
}

.skill-card {
    min-width: 320px;
    height: 480px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-card:hover {
    transform: translateY(-20px) scale(1.02);
}

.skill-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

.skill-icon {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 180px;
    z-index: 1;
    transition: transform 0.4s;
}

.skill-card:hover .skill-icon {
    transform: rotate(5deg) scale(1.1);
}

.skill-icon img {
    width: 100%;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
    border-radius: 30px;
    object-fit: cover;
    overflow: hidden;
}

.skill-content {
    position: relative;
    z-index: 2;
    color: white;
}

.skill-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.skill-content ul {
    list-style: none;
    opacity: 0.8;
}

.skill-content ul li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-content ul li::before {
    content: "●";
    font-size: 0.6rem;
    opacity: 0.5;
}

.skill-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Themes */
.purple-card {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.pink-card {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.blue-card {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.green-card {
    background: linear-gradient(135deg, #0ba360, #3cba92);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    h1 {
        font-size: 4rem;
    }

    .about-header h1 {
        font-size: 6rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        height: 80px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .menu-btn {
        display: flex;
    }

    .ticker span {
        font-size: 1rem;
        padding-right: 2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
        gap: 2rem;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 2rem;
        color: var(--text-dark);
    }

    .logo {
        z-index: 1001;
    }

    h1 {
        font-size: 4rem;
    }

    .hero-x {
        padding: 0 30px 45px 5px;
        /* Shifting content area up by reducing top padding */
        margin: 1rem 0;
        width: 80px;
        height: 80px;
        left: 15px;
        /* Move both the X and the background to the right */
        font-size: 2.8rem;
        /* Kept smaller while the names scale up */
    }

    .hero-x::after {
        transform: translateX(10px);
        /* Move ONLY the orange background to the right */
    }


    .float-icon {
        width: 60px !important;
    }

    .icon-1 {
        top: 15%;
        left: 5%;
    }

    .icon-2 {
        top: 10%;
        right: 5%;
    }

    .icon-3 {
        bottom: 15%;
        left: 5%;
    }

    .icon-4 {
        bottom: 10%;
        right: 5%;
    }


    .about {
        padding: 6rem 0 0;
    }

    .about-header h1 {
        font-size: 3.5rem;
    }

    .about-visuals {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bio-lead {
        font-size: 1.5rem;
    }

    .beliefs-list li {
        font-size: 1.1rem;
        padding: 1rem 0;
    }

    .skills {
        padding: 4rem 0;
    }

    .skill-card {
        min-width: 280px;
        height: 400px;
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .carousel-scene {
        min-height: 420px;
    }

    .carousel-3d {
        height: 380px;
    }

    .project-card {
        width: 240px;
        height: 380px;
    }

    .carousel-prev {
        left: 2%;
    }

    .carousel-next {
        right: 2%;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .socials {
        justify-content: flex-start;
    }

    .floating-cookie {
        width: 130px;
        right: 15px;
        top: -80px;
        bottom: auto;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 3.5rem;
    }

    .about-header h1 {
        font-size: 2.8rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }
}