/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-red: #dc2626;
    --primary-red-dark: #b91c1c;
    --primary-red-light: #ef4444;
    --black: #000000;
    --dark-gray: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 50px;
    padding: 10px 15px;
}

.nav-logo a {
    text-decoration: none;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.logo-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.logo-background-video.loaded {
    opacity: 1;
}

/* Fallback background while video loads */
.nav-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50px;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.nav-logo.video-loaded::before {
    opacity: 0;
}

.logo-image {
    position: relative;
    z-index: 2;
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    max-width: 200px;
}

/* Hover effects for the logo */
.nav-logo:hover .logo-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-background-video {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.back-btn {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal);
}

.back-btn:hover {
    color: var(--primary-red);
}

/* ===== PORTAL HERO SECTION ===== */
.portal-hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('background.jpeg') center center/cover no-repeat;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(220, 38, 38, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    z-index: 2;
    position: relative;
    margin-top: 80px;
}

.portal-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.portal-subtitle {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ===== MOTIVATION OPTIONS ===== */
.motivation-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.motivation-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--dark-gray);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.motivation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-red-dark));
}

.motivation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-red);
}

.motivation-card h3 {
    color: var(--dark-gray);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.motivation-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--black);
}

.motivation-card p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.motivation-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.motivation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .motivation-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .motivation-card {
        padding: 2rem 1.5rem;
    }
    
    .portal-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    
    .portal-subtitle {
        font-size: 1.2rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .motivation-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .motivation-card {
        padding: 1.5rem 1rem;
    }
    
    .card-icon {
        font-size: 3rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.motivation-card {
    animation: fadeInUp 0.6s ease-out;
}

.motivation-card:nth-child(1) {
    animation-delay: 0.1s;
}

.motivation-card:nth-child(2) {
    animation-delay: 0.2s;
}

.motivation-card:nth-child(3) {
    animation-delay: 0.3s;
} 