:root {
    --bg-color: #020617; /* Very dark slate */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    
    /* Brand Colors */
    --brand-primary: #3b82f6;
    --brand-primary-light: #60a5fa;
    --brand-secondary: #8b5cf6;
    
    /* Mesh Gradient Colors */
    --blob-1: #3b82f6; /* Blue */
    --blob-2: #8b5cf6; /* Purple */
    --blob-3: #0ea5e9; /* Light Blue */
    --blob-4: #6366f1; /* Indigo */

    /* Glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Button Styles */
    --button-bg: rgba(255, 255, 255, 0.05);
    --button-hover-bg: rgba(255, 255, 255, 0.15);

    --spacing-unit: 8px; /* 8px grid system base */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 3);
    overflow-x: hidden;
    position: relative;
}

/* Slideshow Background */
.slideshow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: var(--bg-color);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 24s infinite;
}

.slide-1 {
    background-image: url('https://global.unitednations.entermediadb.net/assets/mediadb/services/module/asset/downloads/preset/Collections/Production%20Library/20-04-2026-UN-Photo-GA-wideview.jpg/image1024x768.jpg');
    animation-delay: 0s;
}

.slide-2 {
    background-image: url('https://global.unitednations.entermediadb.net/assets/mediadb/services/module/asset/downloads/preset/Collections/Production%20Library/20-04-2026-IMO-Ships.jpg/image1024x768.jpg');
    animation-delay: 8s;
}

.slide-3 {
    background-image: url('https://global.unitednations.entermediadb.net/assets/mediadb/services/module/asset/downloads/preset/Collections/Embargoed/25-02-2026_UNICEF_Ukraine-school-02.jpg/image1024x768.jpg');
    animation-delay: 16s;
}

@keyframes fadeSlide {
    0% { opacity: 0; animation-timing-function: ease-in; }
    8% { opacity: 1; animation-timing-function: linear; }
    33% { opacity: 1; animation-timing-function: ease-out; }
    41% { opacity: 0; }
    100% { opacity: 0; }
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(2, 6, 23, 0.4); /* Dark overlay */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: -1;
}

/* Glass Panel Container */
.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 4);
    position: relative;
    z-index: 1;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 5) calc(var(--spacing-unit) * 4);
    box-shadow: var(--glass-shadow);
}

.header {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.profile-image {
    width: calc(var(--spacing-unit) * 12);
    height: calc(var(--spacing-unit) * 12);
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto calc(var(--spacing-unit) * 3);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Rotating gradient border for profile */
.profile-image::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary), var(--blob-3));
    z-index: -1;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: calc(var(--spacing-unit) * 1);
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
    width: 100%;
}

.link-button {
    display: flex;
    align-items: center;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2.5);
    background: var(--button-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: calc(var(--spacing-unit) * 1.5);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

/* Staggered animation delays for buttons */
.link-button:nth-child(1) { animation-delay: 0.2s; }
.link-button:nth-child(2) { animation-delay: 0.3s; }
.link-button:nth-child(3) { animation-delay: 0.4s; }
.link-button:nth-child(4) { animation-delay: 0.5s; }

/* Subtle inner glow on hover */
.link-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-button:hover {
    background: var(--button-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-button:hover::after {
    left: 100%;
}

.link-button.primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.link-button.primary:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, var(--brand-primary-light), var(--brand-secondary));
}

.button-icon-left {
    margin-right: calc(var(--spacing-unit) * 2);
    flex-shrink: 0;
    opacity: 0.8;
}

.button-text {
    flex-grow: 1;
    text-align: left;
}

.button-icon-right {
    margin-left: calc(var(--spacing-unit) * 1);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.link-button:hover .button-icon-right {
    transform: translateX(4px);
}

.footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Reduce motion if user prefers for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
