/* Modern Portfolio - Blend of current design + D2C sophistication */
/* Colors: Navy blue + Coral/Orange accents */

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

:root {
    /* Primary colors */
    --blue-900: #0f172a;
    --blue-800: #1e293b;
    --blue-700: #334155;
    --blue-600: #475569;
    --coral: #e85d4c;
    --coral-dark: #d14836;
    --coral-light: rgba(232, 93, 76, 0.1);

    /* Neutrals */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --white: #ffffff;

    /* Typography */
    --font-mono: 'Space Mono', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Effects */
    --transition: all 0.2s ease;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--gray-100);
    color: var(--blue-900);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
    color: var(--white);
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 90%, rgba(232, 93, 76, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 10%, rgba(100, 149, 237, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-8);
    align-items: start;
    position: relative;
}

.hero-main {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
}

.hero-profile {
    flex-shrink: 0;
}

.hero-profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.2);
}

.hero-content {
    flex: 1;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-2);
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.hero-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: var(--space-5);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--coral);
    color: var(--white);
    padding: var(--space-3) var(--space-5);
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--coral-dark);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: transparent;
    color: var(--white);
    padding: var(--space-3) var(--space-5);
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* Hero Sidebar */
.hero-sidebar {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.sidebar-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: var(--space-2);
}

.hero-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.hero-sidebar p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-3);
}

.hero-sidebar code {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.hero-sidebar ul {
    list-style: none;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.hero-sidebar li {
    padding: var(--space-1) 0;
    padding-left: var(--space-4);
    position: relative;
}

.hero-sidebar li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.3);
}

/* Featured Book Spotlight Banner */
.featured-book-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    border-top: 1px solid rgba(245, 158, 11, 0.3);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--white);
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.featured-book-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.book-spotlight-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-8);
    align-items: center;
}

.book-cover-container {
    position: relative;
    perspective: 1000px;
}

.book-cover-thumb {
    width: 100%;
    max-width: 260px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.3);
    transform: rotateY(-10deg) rotateX(4deg);
    transition: transform 0.3s ease;
}

.book-cover-container:hover .book-cover-thumb {
    transform: rotateY(0deg) rotateX(0deg) scale(1.03);
}

.book-spotlight-info .badge-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #FBBF24;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.book-spotlight-info h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFFFFF 30%, #FBBF24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.book-spotlight-info .book-subtitle {
    font-size: 1.15rem;
    color: #CBD5E1;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.book-spotlight-info p {
    color: #94A3B8;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.book-feature-bullets {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.book-bullet {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: #E2E8F0;
}

.btn-gold {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    color: #0F172A;
    font-weight: 700;
    padding: 0.8rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    transition: var(--transition);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, #FFE082 0%, #FBBF24 100%);
}

@media (max-width: 768px) {
    .book-spotlight-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .book-cover-thumb {
        margin: 0 auto;
    }
    .book-feature-bullets {
        justify-content: center;
    }
}

/* Main Content Sections */
.main-content {
    padding: 0;
}

.section {
    padding: var(--space-12) 0;
}

.section-alt {
    background: var(--white);
}

.section-header {
    margin-bottom: var(--space-8);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: var(--space-2);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: var(--space-2);
}

.section-desc {
    color: var(--gray-500);
    font-size: 1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-5);
}

/* Project Cards */
.project-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: var(--transition);
}

.section-alt .project-card {
    background: var(--gray-50);
}

.project-card:hover {
    border-color: var(--coral);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.project-card.archived:hover {
    border-color: var(--gray-300);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.card-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: var(--space-1) var(--space-3);
    border-radius: 100px;
}

.card-status.active {
    background: var(--coral-light);
    color: var(--coral);
}

.card-status.archived {
    background: var(--gray-100);
    color: var(--gray-500);
}

.card-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    padding: var(--space-1) var(--space-3);
    border-radius: 100px;
    background: var(--blue-900);
    color: var(--white);
}

.card-badge.live {
    background: var(--coral);
}

.card-badge.detail {
    background: var(--gray-600);
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--blue-900);
}

.project-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: var(--space-4);
}

.card-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--coral);
    text-decoration: none;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--coral-dark);
}

.project-card.archived .card-link {
    color: var(--gray-500);
}

.project-card.archived .card-link:hover {
    color: var(--blue-800);
}

/* Newsletter Section */
.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.newsletter-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.newsletter-info p {
    color: var(--gray-500);
}

.newsletter-info code {
    background: var(--gray-200);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.newsletter-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.newsletter-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: var(--space-2);
}

.form-row {
    display: flex;
    gap: var(--space-3);
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px var(--coral-light);
}

.form-note {
    margin-top: var(--space-3);
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.stat-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
}

.section-alt .stat-card {
    background: var(--gray-100);
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--coral);
    margin-bottom: var(--space-2);
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
}

.skill {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: var(--space-2) var(--space-4);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--gray-600);
    transition: var(--transition);
}

.section-alt .skill {
    background: var(--gray-100);
}

.skill:hover {
    border-color: var(--coral);
    color: var(--coral);
}

/* Footer */
footer {
    background: var(--blue-900);
    color: var(--white);
    padding: var(--space-8) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.footer-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: var(--space-2);
}

.footer-col p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.footer-col code {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.footer-link {
    color: var(--coral);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-8) 0;
    }

    .hero-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .featured-content {
        flex-direction: column;
        text-align: center;
    }

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

    .newsletter-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .form-row {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
        text-align: center;
    }

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

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

.hero-main,
.hero-sidebar,
.featured-content,
.section-header,
.cards-grid,
.newsletter-grid,
.stats-grid {
    animation: fadeInUp 0.6s ease backwards;
}

.hero-sidebar { animation-delay: 0.1s; }
.featured-content { animation-delay: 0.15s; }

/* Smooth scrolling offset for fixed elements if needed */
:target {
    scroll-margin-top: var(--space-8);
}
