/* Reset and Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0F1115;
    --bg-secondary: #1a1d24;
    --text-primary: #E6EAF2;
    --text-secondary: #a8b2c7;
    --accent: #4F8EF7;
    --accent-hover: #6BA3FF;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --max-width: 720px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* Typography */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

header {
    padding: var(--spacing-md) 0;
    position: relative;
}

.domain-tag {
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-align: center;
    font-weight: 500;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: var(--spacing-lg) 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.glow-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        var(--accent),
        transparent
    );
    margin: 0 auto var(--spacing-md);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.glow-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(79, 142, 247, 0.8),
        transparent
    );
    animation: glow-slide 3s ease-in-out infinite;
}

@keyframes glow-slide {
    0% { left: -100%; }
    100% { left: 200%; }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.hero-tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Content Card */
.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(10px);
}

.description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* Skills Chips */
.skills-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.chip {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(79, 142, 247, 0.1);
    border: 1px solid rgba(79, 142, 247, 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    transition: all 0.3s ease;
}

.chip:hover {
    background: rgba(79, 142, 247, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Construction Indicator */
.construction-indicator {
    text-align: center;
}

.construction-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.construction-progress {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg,
        var(--accent),
        var(--accent-hover),
        var(--accent)
    );
    background-size: 200% 100%;
    animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.construction-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.construction-text::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

/* Tech Illustration */
.tech-illustration {
    max-width: 300px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.6;
}

.tech-illustration svg {
    width: 100%;
    height: auto;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.contact {
    font-size: 1rem;
    color: var(--text-secondary);
}

.email-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.email-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Focus States */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 640px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .content-card {
        padding: var(--spacing-md);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #000;
        --text-primary: #fff;
        --accent: #5FA0FF;
    }
    
    .chip {
        border-width: 2px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .tech-illustration,
    .construction-indicator,
    .glow-line {
        display: none;
    }
}