/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Hugo Coder inspired color scheme */
    --primary-color: #1565c0;
    --secondary-color: #64748b;
    --accent-color: #42a5f5;
    --text-primary: #212121;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-primary: #fafafa;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e0e0e0;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --transition: all 0.25s ease-in;
}

/* Dark theme colors */
body.colorscheme-dark {
    --text-primary: #dadada;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --bg-primary: #212121;
    --bg-secondary: #424242;
    --bg-tertiary: #4f4f4f;
    --border-color: #334155;
    --primary-color: #42a5f5;
    --accent-color: #1565c0;
}

body.colorscheme-auto {
    @media (prefers-color-scheme: dark) {
        --text-primary: #dadada;
        --text-secondary: #cbd5e1;
        --text-muted: #64748b;
        --bg-primary: #212121;
        --bg-secondary: #424242;
        --bg-tertiary: #4f4f4f;
        --border-color: #334155;
        --primary-color: #42a5f5;
        --accent-color: #1565c0;
    }
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

/* Disable transitions during page load */
.preload-transitions * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Main content */
.main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Hero section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(21, 101, 192, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(66, 165, 245, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 2rem;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-bio {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 0.95rem;
    min-width: 120px;
    justify-content: center;
}

.contact-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.contact-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Dark mode toggle - hidden */
.float-container {
    display: none;
}

/* Error page styles */
.error-page {
    background: var(--bg-primary);
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-message {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-home-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-bio {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-avatar {
        width: 120px;
        height: 120px;
    }
    
    .contact-links {
        gap: 1rem;
    }
    
    .contact-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .error-message {
        font-size: 1.5rem;
    }
}
