/* Professional Color Variables - Format2Publish Inspired */
/* New Premium Color Palette - From User's Color Scheme */
/* Premium Professional Color Palette - 3 Complementary Colors */
:root {
    /* Primary Brand Colors - Deep Professional Blue */
    --primary-blue: #1E3A8A;
    --primary-royal: #1D4ED8;
    --primary-light: #3B82F6;
    
    /* Premium Background Colors - Warm Cream & Sophisticated Grays */
    --bg-primary: #FDFDFD;        /* Pure white for main content */
    --bg-secondary: #F8F6F3;      /* Warm cream - premium alternative to white */
    --bg-tertiary: #F1EDE7;       /* Deeper cream for sections */
    --bg-accent: #E8E2DB;         /* Subtle cream accent */
    
    /* Professional Text Colors */
    --text-primary: #1F2937;      /* Dark charcoal for headings */
    --text-secondary: #4B5563;    /* Medium gray for body text */
    --text-light: #6B7280;        /* Light gray for supporting text */
    --text-muted: #9CA3AF;        /* Very light gray for subtle text */
    
    /* Accent Colors from Original Palette */
    --accent-pink: #F8BBD9;       /* Soft pink accent */
    --accent-rose: #FDA4AF;       /* Rose highlight */
    --accent-orange: #EA580C;     /* Bold orange for CTAs */
    --accent-coral: #F97316;      /* Warm coral for hovers */
    
    /* Professional Neutrals - Third Complementary Color */
    --neutral-warm: #A3A08A;      /* Warm taupe */
    --neutral-light: #D4D1C7;     /* Light taupe */
    --neutral-dark: #6B6B47;      /* Dark olive-taupe */
    
    /* Border and UI Elements */
    --border-light: #E8E2DB;      /* Cream borders */
    --border-medium: #D4D1C7;     /* Taupe borders */
    --border-accent: #A3A08A;     /* Dark taupe accents */
    --shadow-light: rgba(30, 58, 138, 0.08);
    --shadow-medium: rgba(30, 58, 138, 0.12);
    --shadow-warm: rgba(163, 160, 138, 0.15);
}

/* Portfolio Page Specific Styles */

.hero-portfolio {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #c7e4fb 0%, #a8d5f0 35%, #89c4e8 70%, #6bb3e0 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(30, 58, 138, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(234, 88, 12, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-portfolio .container {
    position: relative;
    z-index: 1;
}

.hero-portfolio h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #1E3A8A;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(30, 58, 138, 0.1);
    line-height: 1.2;
}

.hero-portfolio p {
    font-size: 1.3rem;
    color: #4B5563;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.portfolio-filters {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #F8F9FB;
    background: white;
    color: #1A2B4C;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1A2B4C;
    color: white;
    border-color: #1A2B4C;
}

.portfolio-grid-section {
    padding: 80px 0;
    background: #c7e4fb;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.portfolio-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.portfolio-item.hidden {
    display: none;
}

.book-cover {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .book-cover img {
    transform: scale(1.05);
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.portfolio-item:hover .book-overlay {
    opacity: 1;
}

.book-info h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.book-info p {
    color: white;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.book-info .genre {
    color: #C8A974;
    font-size: 0.9rem;
    font-weight: 500;
}

.book-details {
    padding: 2rem;
}

.book-details h4 {
    color: #1A2B4C;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.book-details .author {
    color: #2E2E2E;
    margin-bottom: 1rem;
    font-style: italic;
}

.book-description {
    color: #2E2E2E;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.book-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.book-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2E2E2E;
    font-size: 0.9rem;
}

.book-stats i {
    color: #C8A974;
}

.success-stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #1A2B4C, #C8A974);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: white;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.case-studies {
    padding: 80px 0;
    background: #c7e4fb;
}

.case-studies-grid {
    display: grid;
    gap: 4rem;
    margin-top: 3rem;
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.case-study:nth-child(even) {
    grid-template-columns: 2fr 1fr;
}

.case-study:nth-child(even) .case-study-image {
    order: 2;
}

.case-study:nth-child(even) .case-study-content {
    order: 1;
}

.case-study-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-content {
    padding: 3rem;
}

.case-study-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.case-study-content h4 {
    color: #3498db;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: 500;
}

.case-study-content p {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.case-study-quote {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #3498db;
    margin-top: 2rem;
}

.case-study-quote p {
    color: #2c3e50;
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.case-study-quote span {
    color: #6c757d;
    font-weight: 500;
}

/* Responsive Design for Portfolio */
@media (max-width: 768px) {
    .hero-portfolio {
        padding: 120px 0 60px;
    }
    
    .hero-portfolio h1 {
        font-size: 2.8rem;
    }
    
    .hero-portfolio p {
        font-size: 1.1rem;
        max-width: 90%;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .book-overlay {
        padding: 1.5rem;
    }
    
    .book-details {
        padding: 1.5rem;
    }
    
    .book-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .case-study {
        grid-template-columns: 1fr !important;
        gap: 0;
    }
    
    .case-study:nth-child(even) .case-study-image,
    .case-study:nth-child(even) .case-study-content {
        order: unset;
    }
    
    .case-study-content {
        padding: 2rem;
    }
    
    .case-study-content h3 {
        font-size: 1.5rem;
    }
    
    .case-study-quote {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study-content {
        padding: 1.5rem;
    }
    
    .book-details {
        padding: 1rem;
    }
}