/* CSS Variables & Theme */
:root {
    --bg-color-dark: #0f0c10;
    /* Deep Graphite */
    --primary-red: #d90429;
    /* Vibrant Dark Red */
    --accent-cyan: #00f5d4;
    /* Soft Cyan/Neo-Mint */
    --text-white: #f8f9fa;
    --text-gray: #adb5bd;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;

    --font-main: 'Outfit', sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    height: 100vh;
    /* Fixed height to prevent scroll */
    width: 100vw;
    overflow: hidden;
    /* Force no scroll */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Background Animation Layer */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 15% 50%, rgba(217, 4, 41, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 245, 212, 0.08), transparent 20%);
}

.sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float 10s ease-in-out infinite;
    opacity: 0.6;
}

.sphere-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-red);
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-cyan);
    bottom: 10%;
    right: -50px;
    animation-delay: -2s;
}

.sphere-3 {
    width: 150px;
    height: 150px;
    background: #7209b7;
    /* Purple Elegant */
    top: 40%;
    left: 60%;
    animation-delay: -4s;
    opacity: 0.4;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

/* Main Container - Adjusted for compactness */
.main-container {
    width: 95%;
    max-width: 900px;
    /* Slightly wider to fit items better side-by-side */
    max-height: 95vh;
    /* Ensure it stays within viewport */
    padding: 0;
    perspective: 1000px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Glass Card - Compact Padding */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 3rem;
    /* Reduced vertical padding significantly */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    overflow: visible;
    /* Changed to visible so shadows/effects don't get cut if handled carefully, or hidden if needed */
    overflow: hidden;
    /* Actually keep hidden for safety */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-divider {
    background-color: var(--glass-border);
    height: 1px;
    margin: 1.5rem 0;
    /* Tightened */
    border: none;
}

/* Profile Image - Slightly Smaller */
.profile-container {
    margin-bottom: 1rem;
    /* Tightened */
}

.profile-image {
    width: 120px;
    /* Reduced from 150px */
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(217, 4, 41, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(217, 4, 41, 0.4);
}

/* Typography */
.main-title {
    color: var(--text-white);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.8rem !important;
    /* Increased from 0.2rem */
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #b3b3b3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem !important;
    line-height: 1.2;
    /* Prevent collapse */
}

.tagline {
    color: var(--text-gray);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 1rem !important;
    /* Tightened */
    font-size: 1.1rem !important;
    /* Adjusted */
}

/* Bio Stats - Compact Row */
.bio-stats {
    display: flex;
    flex-direction: row;
    /* Horizontal on desktop */
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    /* Tightened */
    flex-wrap: wrap;
}

.bio-item {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bio-item i {
    color: var(--primary-red);
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.3rem 0.8rem;
    background: rgba(217, 4, 41, 0.1);
    border: 1px solid rgba(217, 4, 41, 0.3);
    border-radius: 50px;
    margin-bottom: 1rem;
    /* Tightened */
}

.pulsing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-red);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(217, 4, 41, 0.4);
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.7rem;
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 4, 41, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(217, 4, 41, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(217, 4, 41, 0);
    }
}

/* Discord CTA */
.discord-cta-container {
    margin-top: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    /* Reduced to pull shadow text closer/allow it to hang */
    margin-bottom: 0.5rem;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-red), #a1001d);
    color: white;
    padding: 0.8rem 1.8rem;
    /* Compact padding */
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    position: relative;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 4, 41, 0.5);
    color: white;
}

.discord-shadow-text {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.2rem;
    /* Adjusted size */
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Info Cards */
.info-section {
    margin: 1.5rem 0;
    /* Reduced from 3rem */
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease, background 0.3s ease;
    text-align: left;
    position: relative;
    /* For watermark positioning */
    overflow: hidden;
    /* Contain watermark */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Watermark Effects using Pseudo-elements */
.card-japan::after,
.card-passport::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-size: 140px;
    color: rgba(255, 255, 255, 0.15);
    /* Opacity 15% */
    transform: rotate(-15deg);
    z-index: 0;
    pointer-events: none;
    content: "";
    /* Fallback */
}

.card-japan::after {
    content: "\f6a1";
    /* Torii Gate */
}

.card-passport::after {
    content: "\f5ab";
    /* Passport */
}

/* Ensure content stays above watermark */
.info-card>* {
    position: relative;
    z-index: 1;
}

.card-icon {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 0.8rem;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: fit-content;
}

.info-card h3 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.info-card p {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Footer */
.glass-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 0.5rem;
}

.social-link {
    color: var(--text-gray);
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: var(--text-white);
    transform: scale(1.2);
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
}

/* Responsiveness */
@media screen and (max-width: 768px) {
    body {
        height: auto;
        /* Allow scroll on mobile */
        min-height: 100vh;
        overflow-y: auto;
        padding: 2rem 0;
        display: block;
        /* Normal block flow */
    }

    .main-container {
        width: 100%;
        max-height: none;
        margin: 0 auto;
    }

    .glass-card {
        padding: 2rem 1.5rem;
        border-radius: 0;
        /* Full bleed or slightly less rounded */
        border: none;
        background: transparent;
        /* Cleaner on mobile? Or keep card. Keeping card but adjusting. */
        background: var(--glass-bg);
        /* Keep background */
        box-shadow: none;
        /* Reduce heavy shadow on mobile */
    }

    .main-title {
        font-size: 2rem !important;
    }

    .bio-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .discord-shadow-text {
        font-size: 1.8rem;
        bottom: -10px;
    }

    .info-section .columns {
        display: block;
        /* Stack */
    }

    .info-section .column {
        padding: 0 0 1rem 0 !important;
        /* Reset padding for stack */
    }

    .sphere-1 {
        left: -100px;
    }

    .sphere-2 {
        right: -50px;
    }
}