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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
}

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

/* Navigation */
.main-nav {
    background-color: #1e293b;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden on desktop by default */
}

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

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 1rem 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    padding: 2.5rem 0 3rem 0;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 60px; /* Offset for sticky nav on mobile */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.hero h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    opacity: 0.95;
}

.hero-tagline {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-links {
    display: flex;
    gap: 1rem;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.hero-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-link svg {
    width: 18px;
    height: 18px;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.content-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #64748b;
    font-size: 1.05rem;
}

/* Project Cards */
.project-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.technical-section {
    scroll-margin-top: 80px; /* Offset for sticky nav on mobile */
}

.project-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.12);
    transform: translateY(-2px);
}

.project-status {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.project-status.complete {
    background: #d1fae5;
    color: #065f46;
}

.project-status.in-progress {
    background: #fef3c7;
    color: #92400e;
}

.project-card h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-card p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #334155;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #475569;
    transform: translateY(-1px);
}

.project-link.secondary {
    background: transparent;
    color: #334155;
    border: 1px solid #334155;
}

.project-link.secondary:hover {
    background: #f1f5f9;
}

.project-link.disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
}

/* Creative Section */
.creative-section {
    position: sticky;
    top: 2rem;
    height: fit-content;
    scroll-margin-top: 80px; /* Offset for sticky nav on mobile */
}

.creative-section .section-header h2 {
    font-size: 1.6rem;
}

.creative-section .section-header p {
    font-size: 0.95rem;
}

.creative-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.creative-card {
    display: block;
    background: white;
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.creative-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.creative-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.creative-card h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.creative-card p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Built With Section */
.built-with {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    padding: 1.2rem;
    border: 1px solid #e2e8f0;
}

.built-with h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.tool-tag {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: white;
    color: #334155;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.built-with-note {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Show navigation on tablet/mobile where sidebar isn't visible */
    .main-nav {
        display: block;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .creative-section {
        position: static;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        padding: 0.75rem 0;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    /* Adjust creative section sticky position for mobile with nav */
    .creative-section {
        position: static; /* No sticky on mobile, but if it were: */
        top: 5rem; /* Account for nav bar height */
    }

    .hero {
        padding: 2rem 0 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .hero-links {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-card h3 {
        font-size: 1.3rem;
    }

    .project-links {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 1rem;
    }
}