:root {
    --bg-black: #0a0a0a;
    --card-black: #121212;
    --border-white: #e0e0e0;
    --accent-orange: #ff5e00;
    --text-softer: #888;
    --font-display: 'Orbitron', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--card-black);
    color: white;
    font-family: var(--font-tech);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(50, 50, 50, 0.4) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(50, 50, 50, 0.4) 0%, transparent 20%);
}

/* Main Container Frame */
.bento-container {
    width: 100%;
    min-height: 100vh;
    /* Allow scrolling */
    height: auto;
    max-width: none;
    background-color: var(--bg-black);
    border: none;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 50px auto auto auto auto 1fr;
    /* First row for marquee */
    gap: 20px;
    position: relative;
    overflow-y: auto;
    /* Enable scroll */
    overflow-x: hidden;
    padding-bottom: 50px;
}

/* --- Top Marquee --- */
.marquee-container {
    grid-column: 1 / 10;
    background: #111;
    border: 1px solid #333;
    border-radius: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 0 20px;
}

.marquee-content {
    display: flex;
    gap: 30px;
    white-space: nowrap;
    animation: marqueeScroll 20s linear infinite;
    /* Slower and linear */
    font-size: 14px;
    font-weight: bold;
    color: var(--text-softer);
    text-transform: uppercase;
    width: max-content;
    /* Ensure it takes full width of content */
}

.marquee-content i {
    color: var(--accent-orange);
    font-size: 10px;
    display: flex;
    align-items: center;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Move half of the total width (original set) */
}

/* --- Top Bar Elements --- */
/* brand-logo removed */

.nav-dock {
    grid-column: 10 / -1;
    /* Nav takes remaining space */
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

/* ... nav-icon and contact-pill styles ... */
.nav-icon {
    width: 45px;
    height: 45px;
    background: black;
    border: 1px solid #333;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-icon:hover {
    background: white;
    color: black;
}

.contact-pill {
    background: black;
    border: 1px solid white;
    border-radius: 50px;
    padding: 10px 25px;
    font-family: var(--font-display);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-pill:hover {
    background: white;
    color: black;
}

/* --- Hero Card (Profile) --- */
.hero-card {
    grid-column: span 8;
    grid-row: span 4;
    /* Spans all 4 content rows */
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    min-height: 0;
    /* Allow shrinking if needed */
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: grayscale(100%) contrast(1.2);
    transition: 0.5s;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.hero-card:hover .hero-img {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.05);
    /* Slight zoom instead of move */
}

.hero-typography h1 {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 0.9;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.hud-text {
    position: absolute;
    font-size: 10px;
    color: var(--text-softer);
    letter-spacing: 1px;
}

.top-left {
    top: 30px;
    left: 30px;
}

.middle-right {
    top: 50%;
    right: 30px;
    transform: rotate(90deg) translateX(50%);
}

.hero-info-group {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align all content to the right */
    z-index: 2;
    max-width: 350px;
    gap: 15px;
    /* Increased gap for better breathing room */
}

.hero-tags {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-tags span {
    white-space: nowrap;
    /* Prevent breaking */
    display: block;
}

.hero-bio {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(20, 20, 20, 0.9));
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 4px solid var(--accent-orange);
    /* Stronger accent */
    text-align: right;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

.orange {
    color: var(--accent-orange);
    font-weight: bold;
    margin-left: 5px;
}

/* --- Side Cards (Links) --- */
.link-card {
    grid-column: span 4;
    background: #111;
    border-radius: 30px;
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #333;
    transition: 0.3s;
    min-height: 180px;
}

.link-card:hover {
    border-color: var(--accent-orange);
    background: #151515;
}

.card-label {
    font-size: 10px;
    color: var(--text-softer);
    text-transform: uppercase;
}

.card-title {
    font-family: var(--font-display);
    font-size: 24px;
    margin-top: auto;
    margin-bottom: 5px;
}

.card-price {
    font-size: 14px;
    color: var(--accent-orange);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Wide Bottom Card --- */
.wide-card {
    grid-column: span 4;
    background: #111;
    /* Default is hidden or moved based on grid flow, let's adjust */
    grid-column: 9 / -1;
    /* Bottom right slot in 12-col grid */
    grid-row: span 1;
    border-radius: 30px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #333;
    position: relative;
}

.wide-card:hover {
    border-color: white;
}

.mini-profile {
    width: 60px;
    height: 60px;
    background: var(--accent-orange);
    border-radius: 20px;
    /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: black;
}

.wide-info h3 {
    font-family: var(--font-display);
    font-size: 16px;
}

.wide-info p {
    font-size: 12px;
    color: var(--text-softer);
}

.nav-arrows {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.nav-arrows i {
    font-size: 12px;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 50%;
}

/* --- Mobile Responsiveness --- */
/* --- Tablet Responsiveness (768px - 1024px) --- */
@media (max-width: 1024px) {
    .bento-container {
        grid-template-rows: auto;
        /* Auto rows for flexibility */
        padding-bottom: 20px;
    }

    .marquee-container {
        grid-column: 1 / 9;
        /* Shrink marquee slightly */
    }

    .nav-dock {
        grid-column: 9 / -1;
        /* Give nav more space */
    }

    .hero-card {
        grid-column: span 12;
        /* Full width profile */
        grid-row: span 1;
        /* Reset row span */
        min-height: 450px;
        align-items: center;
        /* Center content vertically if needed */
    }

    .hero-img {
        width: 50%;
        /* Image takes half width */
        right: 0;
        left: auto;
        /* Align to right */
        mask-image: linear-gradient(to left, black 80%, transparent 100%);
        /* Fade to left */
    }

    .hero-typography h1 {
        position: absolute;
        top: 30px;
        left: 30px;
        font-size: 40px;
    }

    .hero-info-group {
        left: 30px;
        right: auto;
        bottom: 30px;
        align-items: flex-start;
        /* Align text left */
        text-align: left;
    }

    .hero-tags {
        align-items: flex-start;
    }

    .hero-bio {
        border-right: none;
        border-left: 4px solid var(--accent-orange);
        /* Accent on left */
        text-align: left;
    }

    .link-card {
        grid-column: span 6;
        /* 2 cards per row */
        min-height: 200px;
    }

    .wide-card {
        grid-column: span 12;
        /* Full width */
    }
}

/* --- Mobile Responsiveness (< 768px) --- */
@media (max-width: 768px) {
    .bento-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
        padding: 10px;
        display: flex;
        flex-direction: column;
    }

    .marquee-container {
        order: 1;
        width: 100%;
        margin-bottom: 5px;
    }

    .nav-dock {
        order: 2;
        width: 100%;
        justify-content: center;
        /* Center icons */
        gap: 25px;
        /* More space between icons */
        margin-bottom: 15px;
        background: rgba(20, 20, 20, 0.8);
        /* Backdrop for icons */
        padding: 10px;
        border-radius: 50px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-card {
        order: 3;
        width: 100%;
        min-height: 600px;
        /* Taller to fit everything */
        padding: 0;
        /* Full bleed */
        display: block;
        /* Custom positioning */
        position: relative;
    }

    .hero-img {
        width: 100%;
        height: 50%;
        /* Top half only */
        top: 0;
        left: 0;
        right: auto;
        border-radius: 30px 30px 0 0;
        mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        object-position: center top;
    }

    .hero-typography h1 {
        font-size: 42px;
        /* Large readable title */
        position: absolute;
        top: 52%;
        /* Start right below image */
        left: 20px;
        text-align: left;
        width: auto;
        margin: 0;
    }

    .hero-info-group {
        position: absolute;
        bottom: 20px;
        /* Float at bottom */
        left: 20px;
        right: 20px;
        width: auto;
        max-width: none;
        align-items: flex-start;
        gap: 10px;
    }

    .hero-tags {
        font-size: 24px;
        margin-bottom: 5px;
        align-items: flex-start;
        display: flex;
        flex-direction: row;
        /* Horizontal tags on mobile looks better usually? Let's keep stack but smaller */
        flex-direction: column;
    }

    .hero-bio {
        font-size: 13px;
        padding: 15px;
        text-align: left;
        border-left: 3px solid var(--accent-orange);
        border-right: none;
        background: rgba(20, 20, 20, 0.8);
        width: 100%;
    }

    .link-card {
        order: 4;
        width: 100%;
        min-height: 120px;
        flex-direction: row;
        /* Horizontal layout for links on mobile saves space */
        align-items: center;
        padding: 15px 25px;
    }

    .card-title {
        margin: 0;
        font-size: 20px;
    }

    .card-label {
        margin-bottom: 5px;
    }

    /* Adjust link card inner layout for horizontal */
    .link-card>div:first-child {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .link-card>div:last-child {
        /* Arrow or price */
        margin-left: auto;
    }

    .wide-card {
        order: 5;
        width: 100%;
    }
}