/* ===================================
   FREELANCE PORTFOLIO - MODERN 2026
   Clean minimal design with Shoelace
   =================================== */

/* CSS Variables */
:root {
    /* Modern color palette - 2026 */
    --sl-color-primary-600: #2563eb;
    --sl-color-primary-700: #1d4ed8;
    --sl-font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --sl-border-radius-medium: 12px;
    --sl-border-radius-large: 16px;

    /* Custom tokens */
    --max-width: 1280px;
    --color-text: #0f172a;
    --color-text-muted: #475569;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-surface: #f8fafc;
}

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

/* Accessibility: Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 1000;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Base Typography */
body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: #ffffff;
    color: #0f172a;
    line-height: 1.7;
    font-size: 16px;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #0f172a;
}

h1 {
    font-size: clamp(3rem, 7vw, 5rem);
}

h2 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Navigation - Modern floating style */
nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
    list-style: none;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    color: #2563eb;
}

/* Mobile menu toggle button */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0f172a;
    transition: all 0.3s;
}

/* Hero - Modern spacious design */
.hero {
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    padding: 8rem 2rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: #475569;
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Container - More generous spacing */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 7rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

/* Flash Messages */
.flash-container {
    padding: 2rem 0 0;
}

.flash-container .container {
    padding: 0 2rem;
}

.flash-container sl-alert {
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: #f8fafc;
    padding: 7rem 0;
}

/* Footer - Modern minimal */
footer {
    background: #f8fafc;
    padding: 3rem 2rem;
    text-align: center;
    color: #64748b;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

footer p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.5rem;
    }

    .container {
        padding: 4rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}
