/* ==========================================================================
   AI Advisory Portfolio — Modern Stylesheet
   ========================================================================== */

/* Google Font loaded in base.html */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #fafafa;
}

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

a { transition: color 0.2s; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    background: #1a1a2e;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.nav-brand {
    color: #e8e8e8;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #b8b8d0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6c63ff;
    transition: width 0.3s;
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

/* Hamburger menu — CSS-only checkbox hack */
.nav-toggle { display: none; }
.hamburger { display: none; cursor: pointer; }
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #e8e8e8;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================================================
   Hero (gradient)
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    text-align: center;
    padding: 6rem 2rem 5rem;
    margin: 0 -2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(108,99,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: #fff;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-cta {
    display: inline-block;
    background: #6c63ff;
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 2.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-cta:hover {
    background: #5a52d5;
    transform: translateY(-2px);
}

/* Stats bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2.5rem 0;
    background: #fff;
    border-bottom: 1px solid #e8e8f0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-header {
    padding: 3.5rem 0 2rem;
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #555;
    font-size: 1.1rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 2.5rem 0; }

section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: #fff;
    border: 1px solid #e8e8f0;
    border-left: 4px solid #6c63ff;
    border-radius: 8px;
    padding: 1.75rem;
    transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Project tech tags */
.project-tech {
    font-size: 0.8rem;
    color: #6c63ff;
    font-weight: 500;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e8e8f0;
}

/* Summary card (used on About page) */
.summary-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    margin-bottom: 2.5rem;
}

.summary-card h2 { color: #fff; margin-bottom: 1rem; }
.summary-card p { color: rgba(255,255,255,0.85); font-size: 1.1rem; line-height: 1.8; }

/* ==========================================================================
   Differentiator
   ========================================================================== */
.differentiator {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e8e8e8;
    padding: 3.5rem;
    border-radius: 10px;
    margin: 2.5rem 0;
}

.differentiator h2 { color: #fff; }
.differentiator p { font-size: 1.1rem; line-height: 1.8; }

/* ==========================================================================
   Content list (frameworks, blog, case studies)
   ========================================================================== */
.content-list { padding: 1rem 0 3rem; }

.content-card {
    background: #fff;
    border: 1px solid #e8e8f0;
    border-left: 4px solid #6c63ff;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.content-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.content-card a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
}

.content-card a:hover { color: #6c63ff; }

.empty-state {
    color: #888;
    font-style: italic;
    padding: 2rem 0;
}

/* ==========================================================================
   Article
   ========================================================================== */
.article { padding: 3rem 0; }
.article h1 { font-size: 2rem; margin-bottom: 2rem; font-weight: 800; }
.article-body { max-width: 750px; }
.article-body p { margin-bottom: 1rem; line-height: 1.8; }
.article-body h2 { margin-top: 2rem; margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1rem 2rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-info {
    margin-top: 2rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e8e8f0;
    border-left: 4px solid #6c63ff;
    border-radius: 8px;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-info ul {
    list-style: none;
    margin-top: 1rem;
}

.contact-info li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.contact-info a { color: #6c63ff; font-weight: 500; }
.contact-info a:hover { color: #5a52d5; }

/* ==========================================================================
   About
   ========================================================================== */
.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    max-width: 750px;
    line-height: 1.8;
}

.about-content h2 {
    margin-top: 2.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #1a1a2e;
    color: #888;
    padding: 3.5rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-col h3 {
    color: #e8e8e8;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #888;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: #6c63ff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    /* Hamburger menu */
    .hamburger {
        display: block;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: #1a1a2e;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }

    .nav-toggle:checked ~ .nav-links {
        right: 0;
    }

    .nav-toggle:checked ~ .hamburger .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle:checked ~ .hamburger .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked ~ .hamburger .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-links a { font-size: 1.1rem; }
    .nav-links a::after { display: none; }

    /* Hero */
    .hero { padding: 4rem 1.5rem 3rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.05rem; }

    /* Stats */
    .stats-bar {
        flex-wrap: wrap;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
    .stat-item { min-width: 120px; }

    /* Cards */
    .card-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Differentiator */
    .differentiator { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .stats-bar { gap: 1rem; }
    .stat-number { font-size: 1.5rem; }
}
