:root {
    --bg-color: #070707;
    --card-bg: rgba(18, 18, 18, 0.85); /* Slightly translucent card background for depth */
    --card-border: rgba(255, 255, 255, 0.12);
    --accent-red: #e50914;
    --accent-glow: rgba(229, 9, 20, 0.35);
    --text-main: #ffffff;
    --text-muted: #888888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow-x: hidden;
    position: relative;
}

/* Background Video Styling & Low Transparency */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35; /* Low transparency for the background video */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 7, 0.75); /* Dark cinematic shade over video */
}

/* Bento Grid Layout */
.bento-container {
    display: grid;
    grid-template-columns: 340px 300px 300px;
    grid-template-rows: auto auto auto;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
    justify-content: center;
    z-index: 2;
}

.bento-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(12px); /* Frosted glass effect */
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
    border-color: rgba(229, 9, 20, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 25px rgba(229, 9, 20, 0.25);
}

/* Butter-Smooth Floating Animations */
@keyframes floatSmooth1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.3deg); }
}

@keyframes floatSmooth2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-0.4deg); }
}

@keyframes floatSmooth3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(0.2deg); }
}

.float-slow {
    animation: floatSmooth1 7s ease-in-out infinite;
}

.float-delayed {
    animation: floatSmooth2 9s ease-in-out infinite;
    animation-delay: 1.5s;
}

.float-fast {
    animation: floatSmooth3 6s ease-in-out infinite;
    animation-delay: 0.8s;
}

/* Card 1: Intro */
.card-intro {
    grid-column: 1 / 2;
    grid-row: 1 / 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.handle {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.card-intro h1 {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    margin: 15px 0;
    letter-spacing: -1px;
}

.bio {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tags-grid span {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-main);
    transition: all 0.2s;
}

.tags-grid span:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--accent-red);
}

.location-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    padding: 15px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.loc-info strong {
    font-size: 14px;
    display: block;
}

.loc-info p {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-red);
}

.radar-circle {
    width: 30px;
    height: 30px;
    border: 1px dashed rgba(229, 9, 20, 0.4);
    border-radius: 50%;
    animation: spin 6s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.btn-cv-full {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    background-color: rgba(255,255,255,0.05);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    transition: all 0.2s;
}

.btn-cv-full:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Card 2: Vertical 3D Interactive ID Badge */
.card-badge-wrapper {
    grid-column: 2 / 3;
    grid-row: 1 / 4;
    background: radial-gradient(circle at center, rgba(28, 8, 8, 0.8) 0%, rgba(8, 8, 8, 0.85) 75%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 540px;
    perspective: 1200px;
    cursor: grab;
    padding: 20px;
}

.badge-lanyard-strap {
    width: 14px;
    height: 30px;
    background: linear-gradient(to right, #111, #2a2a2a, #111);
    margin-bottom: -4px;
    z-index: 4;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
}

.badge-lanyard-clip {
    width: 44px;
    height: 18px;
    background: linear-gradient(to bottom, #333, #151515);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-bottom: -8px;
    z-index: 5;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.badge-card-3d {
    width: 240px;
    height: 420px;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    box-shadow: 0 35px 70px rgba(0,0,0,0.85), 0 0 40px var(--accent-glow);
    display: flex;
    flex-direction: column;
    padding: 14px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.badge-specular-glare {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.badge-screen {
    width: 100%;
    height: 340px;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.08);
}

.badge-brand {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fff;
    z-index: 4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.id-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.badge-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 6px 4px 2px 4px;
}

.pass-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.pass-sub {
    font-size: 10px;
    color: var(--text-muted);
}

/* Card 3: Water-Ripple Auto-Rotating Social Wheel */
.card-socials {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 36px;
}

.water-ripple, .water-ripple.delay-ripple {
    position: absolute;
    width: 10px;
    height: 10px;
    background: transparent;
    border: 2px solid rgba(229, 9, 20, 0);
    border-radius: 50%;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.water-card.ripple-active .water-ripple {
    animation: waterRippleEffect 1s cubic-bezier(0, 0.2, 0.8, 1) forwards;
}

.water-card.ripple-active .water-ripple.delay-ripple {
    animation: waterRippleEffect 1s cubic-bezier(0, 0.2, 0.8, 1) 0.25s forwards;
}

@keyframes waterRippleEffect {
    0% {
        width: 10px;
        height: 10px;
        border-color: rgba(229, 9, 20, 0.8);
        opacity: 1;
    }
    100% {
        width: 220px;
        height: 220px;
        border-color: rgba(229, 9, 20, 0);
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.social-wheel {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slowAutoSpin 25s linear infinite;
    margin-bottom: 10px;
}

@keyframes slowAutoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wheel-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.wheel-icon:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--accent-red);
}

.active-wheel {
    background: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 15px var(--accent-glow);
    color: #fff !important;
}

.wheel-center-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-red);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.catch-me-below {
    position: absolute;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    animation: pulseHintUp 2s infinite ease-in-out;
}

.catch-me-below i {
    color: var(--accent-red);
    font-size: 11px;
}

@keyframes pulseHintUp {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

/* Card 4: Tech Stack */
.card-tech {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-tech h3 {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.tech-pill:hover {
    border-color: var(--accent-red);
    background: rgba(229, 9, 20, 0.1);
}

.tech-pill i {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tech-pill span {
    color: var(--text-main);
    font-size: 12px;
}

/* Card 5: Projects */
.card-projects {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-projects h3 {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: all 0.2s;
}

.project-item:hover {
    border-color: var(--accent-red);
}

.proj-thumb {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, #300, #111);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.proj-details h4 {
    font-size: 13px;
    margin-bottom: 2px;
}

.proj-details p {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-container {
        grid-template-columns: 1fr;
    }
    .card-intro, .card-badge-wrapper, .card-socials, .card-tech, .card-projects {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}