:root {
    color-scheme: dark;
    /* Force dark mode preference */
    --bg-color: #0c0e12;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #6c5ce7;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --card-radius: 24px;
    --btn-radius: 16px;

    --transition-speed: 0.3s;
}

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

html,
body {
    background-color: var(--bg-color);
    /* Critical for mobile to not default to white */
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

body {
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    position: relative;
    background: transparent;
}

/* 1. Static Gradient Background */
#bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Base Layer (0) */
    background: radial-gradient(circle at 50% 10%, #1a1c29 0%, #0c0e12 100%);
    pointer-events: none;
    transform: translateZ(0);
    /* Force GPU compositing */
}

/* 2. 3D Particles Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Middle Layer (1) */
    pointer-events: none;
    background: transparent;
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 2;
}

/* Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
}

.hover-lift {
    transition: transform var(--transition-speed) ease,
        background var(--transition-speed) ease,
        border-color var(--transition-speed) ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    background: var(--glass-highlight);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Profile Section */
.profile-section {
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.15);
}

.status-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    border-radius: var(--btn-radius);
    gap: 16px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.link-card:hover::before {
    transform: translateX(100%);
}

.link-card i {
    font-size: 1.6rem;
    color: var(--accent-color);
}

/* Business Carousel */
.carousel-section {
    padding: 32px 0;
    /* Full width touch feel */
    text-align: center;
    overflow: hidden;
    /* Hide overflow for infinite scroll */
}

.carousel-section h2 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: scroll 20s linear infinite;
}

/* Pause on hover for interaction */
.carousel-track:hover {
    animation-play-state: paused;
}

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

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

    /* -50% because we duplicated items */
}

.carousel-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
    /* Remove underline from link */
}

.carousel-item:hover {
    transform: scale(1.1);
}

.carousel-item img {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    /* Slightly lighter for transp logos */
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Special handling for JPG logos to make them look uniform */
.jpg-logo {
    mix-blend-mode: normal;
    /* Default */
    border-radius: 20px;
    /* Ensure rounded corners even if jpg is square */
    background: transparent !important;
    /* Remove container bg since jpg has one */
    padding: 0 !important;
    /* Full bleed for jpg */
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.carousel-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 40px 16px;
    }

    .name {
        font-size: 1.8rem;
    }

    .carousel-item img {
        width: 75px;
        height: 75px;
    }
}