/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark theme colors */
    --bg-primary: #0a0a0a;
    --glass-bg: rgba(10, 10, 10, 0.65);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --accent: #ffffff;
    --accent-hover: #cccccc;
    
    /* Spacing */
    --header-height: 48px;
    --border-radius: 4px;
    --left-panel-max-width: 550px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.863);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.3px;
    transition: opacity 0.3s ease;
}

.header-logo:hover {
    opacity: 0.75;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.header-nav a:hover {
    color: var(--accent);
}

.header-nav a:hover::after {
    width: 100%;
}

/* Login button in header */
.header-nav li .btn-login-header,
.header-nav .btn-login-header {
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.header-nav li .btn-login-header::after,
.header-nav .btn-login-header::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

.header-nav li .btn-login-header:hover,
.header-nav .btn-login-header:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* === SMOOTH SCROLL === */
html {
    scroll-behavior: smooth;
}

/* === READ MORE BUTTON (Hero sections) === */
.btn-read-more {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.7rem 1.8rem;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* === MAIN CONTENT WRAPPER === */
.main-wrapper {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
}

/* === FULLSCREEN BACKGROUND WALLPAPER === */
.bg-wallpaper {
    position: absolute;
    inset: 0;
    background-image: url('/static/images/wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Subtle glass effect over the entire wallpaper */
.bg-wallpaper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.25);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* === LEFT CONTENT (Glass panel, max 550px) === */
.content-left {
    width: 100%;
    max-width: var(--left-panel-max-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    position: relative;
    z-index: 2;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    box-shadow: 
        4px 0 32px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.content-left h1 {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.content-left .description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 420px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.content-left .btn-read-more {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: fit-content;
}

.content-left .btn-read-more:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* === RIGHT AREA === */
.content-right {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .content-left {
        padding: 3rem 2.5rem;
    }
    
    .content-left h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }
    
    .content-left {
        max-width: 100%;
        padding: 3rem 2rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 
            0 4px 32px rgba(0, 0, 0, 0.4),
            inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    }
    
    .content-left h1 {
        font-size: 2.5rem;
    }
    
    .content-left .description {
        max-width: 100%;
        font-size: 0.95rem;
    }
    
    .content-right {
        flex: 0 0 40vh;
    }
    
    .header {
        padding: 0 1.2rem;
    }
    
    .header-nav {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .content-left {
        padding: 2.5rem 1.5rem;
    }
    
    .content-left h1 {
        font-size: 2rem;
    }
    
    .header {
        flex-direction: column;
        height: auto;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }
    
    .header-logo {
        font-size: 1rem;
    }
    
    .header-nav a {
        font-size: 0.7rem;
    }
    
    .main-wrapper {
        padding-top: 72px;
    }
}

/* === TOAST NOTIFICATION === */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 9999;
    padding: 0.8rem 1.5rem;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast.toast-error {
    border-color: rgba(255, 59, 48, 0.3);
    background: rgba(255, 59, 48, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.toast.toast-success {
    border-color: rgba(48, 209, 88, 0.3);
    background: rgba(48, 209, 88, 0.1);
    color: rgba(255, 255, 255, 0.9);
}