:root {
    --bg-dark: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #9d4edd;
    /* Electric Purple */
    --accent: #00f5d4;
    /* Neon Cyan */
    --gold: #ffd60a;
    /* Gold for Birthday */
    --text-main: #ffffff;
    --text-muted: #8b8b8b;
    --font-head: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --gap: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Confetti Canvas --- */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* --- Background Noise & Blobs --- */
.background-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.gradient-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    filter: blur(80px);
    opacity: 0.6;
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    left: 20%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #4361ee;
    bottom: 20%;
    right: 10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, -50px) scale(1.1);
    }
}

/* --- Floating Nav --- */
.floating-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -1px;
}

.links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.3s;
}

.links a:hover,
.links a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.menu-btn {
    background: var(--card-border);
    border: none;
    color: var(--gold);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.menu-btn:hover {
    background: var(--gold);
    color: #000;
    transform: scale(1.1);
}

/* --- Layout --- */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 120px;
}

/* --- Hero Section --- */
.hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    margin-bottom: 60px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--gold);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 20px;
    background: rgba(255, 214, 10, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
}

.glitch-title {
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 0.9;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 30px;
}

.cta-btn {
    padding: 15px 40px;
    background: var(--text-main);
    color: #000;
    border: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
    background: var(--gold);
}

.hero-image img {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 40px;
    border: 1px solid var(--card-border);
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
    transition: 0.5s;
}

/* --- Bento Grid --- */
.section-label {
    font-family: var(--font-head);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: var(--gap);
}

.bento-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-box:hover {
    border-color: var(--accent);
    z-index: 2;
}

/* Grid Areas */
.bio-box {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0));
}

.stats-box {
    grid-column: span 1;
    grid-row: span 2;
    gap: 15px;
}

.finance-box {
    grid-column: span 1;
}

.map-box {
    grid-column: span 1;
    background-color: #e0fbfc;
    color: #000;
}

.map-box .map-info strong,
.map-box .map-info small {
    color: #001d3d;
}

.gym-box {
    grid-column: span 1;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cake-box {
    grid-column: span 2;
    background: linear-gradient(45deg, rgba(157, 78, 221, 0.2), rgba(0, 245, 212, 0.2));
}

/* Content */
.bento-box h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.bento-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.icon-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    margin-bottom: auto;
    font-weight: bold;
}

.bio-tags span {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--card-border);
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 5px;
}

/* Stat Bars */
.stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-val {
    font-weight: bold;
    min-width: 40px;
}

.stat-label {
    flex-grow: 1;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bar {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.bar .fill {
    height: 100%;
    background: var(--accent);
}

.stat-footer {
    margin-top: auto;
    font-size: 0.75rem;
    color: #4cc9f0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Map */
.box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
    mix-blend-mode: overlay;
}

.location-pin {
    font-size: 2rem;
    color: #ef233c;
    z-index: 1;
    margin: auto;
    animation: bounce 2s infinite;
}

.map-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Icons & Decoration */
.huge-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    opacity: 0.2;
}

.decorative-icon {
    font-size: 5rem;
    position: absolute;
    right: -20px;
    bottom: -20px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.box-bg-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.2;
}

/* --- Timeline Section --- */
.timeline-section {
    position: relative;
    padding: 80px 0;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical Line */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--card-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 30px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

/* Dot on line */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-dark);
    border: 4px solid var(--accent);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -10px;
}

.year {
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 5px;
    display: block;
}

.pins {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.timeline-item.right .pins {
    justify-content: flex-start;
}

.pin-note {
    font-size: 0.75rem;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 1px solid var(--card-border);
}

.pin-note.warning {
    color: #ef233c;
    border-color: #ef233c;
    background: rgba(239, 35, 60, 0.1);
}

/* --- Cake Section --- */
.cake-section {
    text-align: center;
    padding: 60px 0;
}

.cake-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.cake {
    position: relative;
    width: 250px;
    height: 200px;
    margin-top: 50px;
}

.plate {
    width: 270px;
    height: 110px;
    position: absolute;
    bottom: -10px;
    left: -10px;
    background-color: #ccc;
    border-radius: 50%;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
}

.layer {
    position: absolute;
    display: block;
    width: 250px;
    height: 100px;
    border-radius: 50%;
    background-color: #551a8b;
}

.layer-bottom {
    top: 75px;
    background: #3d0e66;
    box-shadow: 0 4px 0px #2a0847;
}

.layer-middle {
    top: 40px;
    background: #5a189a;
    box-shadow: 0 4px 0px #3d0e66;
}

.layer-top {
    top: 0px;
    background: #7b2cbf;
    box-shadow: 0 4px 0px #5a189a;
}

.icing {
    top: 2px;
    left: 5px;
    background-color: #f0f0f0;
    width: 240px;
    height: 90px;
    border-radius: 50%;
    position: absolute;
    z-index: 2;
}

.drip {
    display: block;
    width: 50px;
    height: 60px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    background-color: #f0f0f0;
    position: absolute;
    top: 50px;
    z-index: 1;
}

.drip1 {
    left: 10px;
    height: 75px;
}

.drip2 {
    left: 80px;
    height: 50px;
}

.drip3 {
    left: 160px;
    height: 65px;
}

/* Candles Base */
.candle {
    background-color: #ef233c;
    width: 16px;
    height: 50px;
    border-radius: 8px/4px;
    top: -20px;
    position: absolute;
    z-index: 10;
    cursor: pointer;
    box-shadow: inset 0 -5px 10px -5px rgba(0, 0, 0, 0.5);
}

.candle:nth-child(even) {
    background: var(--accent);
}

/* Candles Container */
.candles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Candle Positioning (7 Candles) - Adjusted to stay on cake */
.candles .candle:nth-child(1) {
    left: 55px;
    top: -5px;
}

.candles .candle:nth-child(2) {
    left: 80px;
    top: -15px;
}

.candles .candle:nth-child(3) {
    left: 105px;
    top: -20px;
}

.candles .candle:nth-child(4) {
    left: 125px;
    top: -25px;
    z-index: 12;
}

/* Center */
.candles .candle:nth-child(5) {
    left: 145px;
    top: -20px;
}

.candles .candle:nth-child(6) {
    left: 170px;
    top: -15px;
}

.candles .candle:nth-child(7) {
    left: 195px;
    top: -5px;
}

/* Flame Animation */
.flame {
    position: absolute;
    background-color: orange;
    width: 15px;
    height: 35px;
    border-radius: 10px 10px 4px 4px / 25px 25px 10px 10px;
    top: -34px;
    left: 50%;
    margin-left: -7.5px;
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5), 0 0 20px rgba(255, 165, 0, 0.5), 0 0 60px rgba(255, 165, 0, 0.5), 0 0 80px rgba(255, 165, 0, 0.5);
    transform-origin: 50% 90%;
    animation: flicker 1s ease-in-out alternate infinite;
}

@keyframes flicker {
    0% {
        transform: skewX(5deg);
        box-shadow: 0 0 10px rgba(255, 165, 0, 0.2), 0 0 20px rgba(255, 165, 0, 0.2), 0 0 60px rgba(255, 165, 0, 0.2), 0 0 80px rgba(255, 165, 0, 0.2);
    }

    25% {
        transform: skewX(-5deg);
        box-shadow: 0 0 10px rgba(255, 165, 0, 0.5), 0 0 20px rgba(255, 165, 0, 0.5), 0 0 60px rgba(255, 165, 0, 0.5), 0 0 80px rgba(255, 165, 0, 0.5);
    }

    50% {
        transform: skewX(10deg);
        box-shadow: 0 0 10px rgba(255, 165, 0, 0.3), 0 0 20px rgba(255, 165, 0, 0.3), 0 0 60px rgba(255, 165, 0, 0.3), 0 0 80px rgba(255, 165, 0, 0.3);
    }

    75% {
        transform: skewX(-10deg);
        box-shadow: 0 0 10px rgba(255, 165, 0, 0.4), 0 0 20px rgba(255, 165, 0, 0.4), 0 0 60px rgba(255, 165, 0, 0.4), 0 0 80px rgba(255, 165, 0, 0.4);
    }

    100% {
        transform: skewX(5deg);
        box-shadow: 0 0 10px rgba(255, 165, 0, 0.5), 0 0 20px rgba(255, 165, 0, 0.5), 0 0 60px rgba(255, 165, 0, 0.5), 0 0 80px rgba(255, 165, 0, 0.5);
    }
}

.smoke {
    position: absolute;
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.6);
    top: -40px;
    left: 50%;
    animation: smokeAnim 2s forwards;
    opacity: 0;
}

@keyframes smokeAnim {
    0% {
        opacity: 0.8;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px) scale(3);
    }
}

/* --- Music Player UI --- */
.music-player-container {
    max-width: 500px;
    margin: 40px auto 0;
    width: 100%;
}

.player-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.album-art {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.rotating-art {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    animation: rotateArt 5s linear infinite paused;
}

.player-card.playing .rotating-art {
    animation-play-state: running;
}

@keyframes rotateArt {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #000;
    border-radius: 50%;
    border: 2px solid #333;
}

.track-info {
    flex-grow: 1;
    overflow: hidden;
}

.track-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    white-space: nowrap;
}

.track-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.progress-bar {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.ctrl-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.ctrl-btn:hover {
    color: var(--accent);
}

.play-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--gold);
}

/* Visualizer */
.visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 50px;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

.visualizer .bar {
    width: 10px;
    background: var(--accent);
    height: 10%;
    transition: height 0.1s;
}

.player-card.playing .visualizer .bar {
    animation: equalizer 1s ease-in-out infinite;
}

.player-card.playing .visualizer .bar:nth-child(odd) {
    animation-duration: 0.8s;
}

.player-card.playing .visualizer .bar:nth-child(2n) {
    animation-duration: 1.1s;
}

.player-card.playing .visualizer .bar:nth-child(3n) {
    animation-duration: 1.3s;
}

@keyframes equalizer {

    0%,
    100% {
        height: 10%;
    }

    50% {
        height: 80%;
    }
}

/* --- Gallery Section --- */
.gallery-section {
    margin-top: 80px;
}

.gallery-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.card-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--card-border);
    transition: transform 0.3s;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card-photo:hover img {
    transform: scale(1.1);
}

.overlay-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    transform: translateY(100%);
    transition: 0.3s;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
}

.card-photo:hover .overlay-caption {
    transform: translateY(0);
}

.footer-note {
    text-align: center;
    margin-top: 50px;
    color: var(--text-muted);
}

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    .gallery-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .card-photo {
        border-radius: 15px;
    }

    .hero-header {
        flex-direction: column-reverse;
        text-align: center;
        margin-top: 50px;
        min-height: auto;
    }

    .glitch-title {
        font-size: 3rem;
    }

    .hero-image img {
        width: 100%;
        height: 350px;
        margin-bottom: 30px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-box {
        min-height: 250px;
    }

    .bio-box,
    .stats-box,
    .finance-box,
    .map-box,
    .gym-box,
    .cake-box {
        grid-column: auto;
        grid-row: auto;
    }

    .floating-nav {
        width: 90%;
        bottom: 20px;
        padding: 15px 20px;
    }

    /* Mobile Timeline */
    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 21px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .pins {
        justify-content: flex-start;
    }

    /* Mobile Player */
    .player-card {
        flex-direction: column;
        text-align: center;
    }

    .progress-container {
        width: 100%;
    }
}