/* static/css/main.css */
/* Light-first professional design - 2026 */

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

:root {
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --blue: #2563eb;
    --blue-hover: #1d4ed8;
    --emerald: #059669;
    --emerald-hover: #047857;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4.5rem 0;
}

/* ===== HEADER ===== */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.nav__brand:hover {
    background: var(--bg-alt);
}

.nav__brand-icon {
    font-size: 1.25rem;
}

.nav__links {
    display: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.nav-link--highlight {
    background: var(--blue);
    color: #fff;
}

.nav-link--highlight:hover {
    background: var(--blue-hover);
    color: #fff;
}

@media (min-width: 768px) {
    .nav__links {
        display: flex;
        gap: 0.25rem;
        align-items: center;
    }
    .mobile-menu-btn, .mobile-nav {
        display: none !important;
    }
}

/* ===== DARK MODE TOGGLE ===== */
.dark-mode-toggle {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.dark-mode-toggle:hover {
    background: var(--border);
}

/* ===== HERO ===== */
.hero {
    padding: 5rem 0 5.5rem;
    text-align: center;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.hero__title {
    font-size: clamp(1.875rem, 5vw, 2.75rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.hero__subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1.75rem 0;
}

.hero__stat {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.hero__stat-icon {
    font-size: 0.95rem;
}

.hero__availability {
    background: var(--emerald);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 9999px;
    margin-top: 1.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero__availability:hover {
    background: var(--emerald-hover);
}

.hero__availability-icon {
    font-size: 1rem;
}

/* ===== SECTION HEADERS ===== */
.about__header, .skills__header, .portfolio__header, .contact__header {
    text-align: center;
    margin-bottom: 2rem;
}

.about__title, .skills__title, .portfolio__title, .contact__title {
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.about__subtitle, .skills__subtitle, .portfolio__subtitle, .contact__subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ===== ABOUT ===== */
.about {
    background: var(--bg);
}

.about__text {
    max-width: 58ch;
    margin: 0 auto;
}

.about__text p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.about__text a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.about__text a:hover {
    text-decoration: underline;
}

/* ===== SKILLS/RESOURCES ===== */
.skills {
    background: var(--bg-alt);
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.skills__category {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.skills__category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.skills__category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.skills__category-icon {
    font-size: 1.2rem;
}

.skills__category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.skills__list {
    list-style: none;
}

.skills__list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--bg-alt);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.skills__list li:last-child {
    border-bottom: none;
}

.skills__list a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.skills__list a:hover {
    text-decoration: underline;
}

/* ===== PORTFOLIO/SERVICES ===== */
.portfolio {
    background: var(--bg);
}

.portfolio__projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.portfolio__project {
    display: flex;
    gap: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.portfolio__project:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.portfolio__project-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.portfolio__project-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.portfolio__project-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.portfolio__project-tech {
    font-size: 0.75rem;
    color: var(--blue);
    font-weight: 500;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--text);
    color: #fff;
}

.contact__title {
    color: #fff;
}

.contact__subtitle {
    color: #9ca3af;
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact__icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.contact__details strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: #fff;
    font-size: 0.875rem;
}

.contact__details span {
    color: #9ca3af;
    font-size: 0.85rem;
}

.contact__link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.85rem;
}

.contact__link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.contact__cta {
    text-align: center;
}

.contact__cta-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.contact__cta-content p {
    max-width: 42ch;
    margin: 0 auto 1.25rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.contact__cta-links {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact__cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.15rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}

.contact__cta-button--primary {
    background: var(--blue);
    color: #fff;
}

.contact__cta-button--primary:hover {
    background: var(--blue-hover);
}

.contact__cta-button--secondary {
    background: #1f2937;
    color: #d1d5db;
    border: 1px solid #374151;
}

.contact__cta-button--secondary:hover {
    background: #374151;
    color: #fff;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text);
    color: #6b7280;
    text-align: center;
    padding: 1.25rem 0;
    border-top: 1px solid #1f2937;
}

.footer__content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.footer__links {
    margin-top: 0.6rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer__link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}

.footer__link:hover {
    color: #93c5fd;
}

.footer__copyright {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: block;
    background: none;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.mobile-menu-btn:hover {
    background: var(--bg-alt);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
    z-index: 1000;
}

.mobile-nav.show {
    display: block;
}

.mobile-nav-links {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-links .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.mobile-nav-links .nav-link--highlight {
    text-align: center;
    margin-top: 0.5rem;
}

.mobile-nav-links .dark-mode-toggle {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
}

/* ===== FOCUS ===== */
*:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {
    section {
        padding: 3rem 0;
    }
    .hero__stats {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
    }
    .hero__stat {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    .skills__grid, .portfolio__projects {
        grid-template-columns: 1fr;
    }
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact__cta-links {
        flex-direction: column;
        align-items: center;
    }
    .contact__cta-button {
        width: 100%;
        max-width: 200px;
    }
}
