/* ============================================
   CSS Reset / Base Styles
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color var(--transition-base), color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

/* ============================================
   CSS Custom Properties (Brand Colors)
   ============================================ */

:root {
    /* Brand Colors */
    --color-primary: #7434ed;
    --color-secondary: #ca14eb;
    --color-white: #ffffff;
    --color-dark: #101d47;
    
    /* Theme Colors (Light Mode) */
    --bg-color: #ffffff;
    --text-color: #101d47;
    --text-color-secondary: #101d47;
    --shape-color-light: rgba(0, 0, 0, 0.03);
    --shape-color-medium: rgba(0, 0, 0, 0.05);
    --toggle-bg: rgba(0, 0, 0, 0.05);
    --toggle-color: #101d47;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 40px;
    
    /* Transitions */
    --transition-base: 0.3s ease;
}

/* Dark Mode Theme */
[data-theme="dark"] {
    /* Theme Colors (Dark Mode) */
    --bg-color: #0a1329;
    --text-color: #ffffff;
    --text-color-secondary: rgba(255, 255, 255, 0.9);
    --shape-color-light: rgba(255, 255, 255, 0.05);
    --shape-color-medium: rgba(255, 255, 255, 0.08);
    --toggle-bg: rgba(255, 255, 255, 0.1);
    --toggle-color: #ffffff;
}

/* ============================================
   Layout
   ============================================ */

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-md);
    overflow: hidden;
}

/* ============================================
   Background Shapes
   ============================================ */

.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.background-shapes::before,
.background-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--shape-color-light);
    opacity: 0.5;
    transition: background var(--transition-base);
}

/* Top-left shape */
.background-shapes::before {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
}

/* Bottom-right shape */
.background-shapes::after {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -200px;
}

/* Additional shapes using pseudo-elements on container */
.container::before,
.container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--shape-color-medium);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    transition: background var(--transition-base);
}

/* Top-right semi-circle */
.container::before {
    width: 250px;
    height: 250px;
    top: -100px;
    right: -100px;
    border-radius: 0 0 0 100%;
}

/* Bottom-left semi-circle */
.container::after {
    width: 350px;
    height: 350px;
    bottom: -150px;
    left: -150px;
    border-radius: 100% 0 0 0;
}

/* ============================================
   Logo
   ============================================ */

.logo-container {
    position: relative;
    z-index: 1;
    margin-bottom: var(--spacing-2xl);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.logo {
    height: clamp(400px, 60vh, 800px);  /* Min 400px, preferred 60vh, max 800px (4x bigger) */
    max-width: min(1200px, 80vw);        /* Max 1200px or 80% of viewport width */
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* ============================================
   Content
   ============================================ */

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Typography
   ============================================ */

.booting-text {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    text-transform: lowercase;
}

.description-text {
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--text-color-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    text-transform: lowercase;
    transition: color var(--transition-base);
}

.cta-text {
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--text-color-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    text-transform: lowercase;
    transition: color var(--transition-base);
}

.email-link {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--color-primary);
    display: inline-block;
    text-transform: lowercase;
}

.email-link:hover {
    color: var(--color-secondary);
}

.email-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ============================================
   Theme Toggle Button
   ============================================ */

.theme-toggle {
    position: fixed;
    top: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--toggle-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--toggle-color);
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ============================================
   Media Queries - Responsive Design
   ============================================ */

/* Mobile: 320px - 767px */
@media (max-width: 767px) {
    .logo {
        height: clamp(320px, 48vh, 600px);  /* Min 320px, preferred 48vh, max 600px (4x bigger) */
        max-width: min(800px, 85vw);         /* Max 800px or 85% of viewport width */
    }
    
    .booting-text {
        font-size: var(--font-size-xl);
    }
    
    .description-text,
    .cta-text {
        font-size: var(--font-size-base);
    }
    
    .email-link {
        font-size: var(--font-size-base);
    }
    
    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .logo-container {
        margin-bottom: var(--spacing-xl);
    }
    
    .theme-toggle {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        width: 40px;
        height: 40px;
    }
    
    .theme-icon {
        width: 20px;
        height: 20px;
    }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) {
    .booting-text {
        font-size: var(--font-size-3xl);
    }
    
    .description-text,
    .cta-text {
        font-size: var(--font-size-lg);
    }
    
    .email-link {
        font-size: var(--font-size-xl);
    }
}

/* Desktop: 1024px and above */
@media (min-width: 1024px) {
    .content {
        max-width: 700px;
    }
}

/* Large screens: 1920px and above */
@media (min-width: 1920px) {
    .content {
        max-width: 800px;
    }
}
