/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Updated Color Scheme */
    --primary-dark: #1a1a1a;
    --primary-red: #993b3b;
    --accent-red: #993b3b;
    --pure-white: #ffffff;
    --light-gray: #f8f8f8;
    --medium-gray: #666666;
    --dark-gray: #333333;
    --gradient-red: linear-gradient(135deg, #993b3b, #993b3b);
    
    /* Business-specific subtle color variations */
    --books-accent: #a64d4d;
    --books-bg: rgba(166, 77, 77, 0.08);
    --books-border: rgba(166, 77, 77, 0.2);
    
    --forge-accent: #8b6914;
    --forge-bg: rgba(139, 105, 20, 0.08);
    --forge-border: rgba(139, 105, 20, 0.2);
    
    --apps-accent: #4a6fa5;
    --apps-bg: rgba(74, 111, 165, 0.08);
    --apps-border: rgba(74, 111, 165, 0.2);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--pure-white);
    background-color: var(--primary-dark);
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
.header {
    background-color: var(--primary-dark);
    color: var(--pure-white);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: url('Beyond-Studios_webLogo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    line-height: 1;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--accent-red);
}

/* Hero Section */
.hero {
    background: var(--primary-dark);
    color: var(--pure-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-xl) 0;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="10" cy="60" r="1" fill="%23ffffff" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--accent-red);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    line-height: 1.8;
}

.cta-button {
    background: var(--gradient-red);
    color: var(--pure-white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    flex: 1;
    position: relative;
    height: 500px;
}

.floating-books {
    position: relative;
    height: 100%;
}

.floating-book {
    position: absolute;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    max-width: 200px;
    height: auto;
}

.book-1 {
    top: 20%;
    right: 10%;
    transform: rotate(-5deg);
    animation: float 6s ease-in-out infinite;
}

.book-2 {
    top: 40%;
    right: 40%;
    transform: rotate(3deg);
    animation: float 8s ease-in-out infinite 2s;
}

.book-3 {
    top: 60%;
    right: 20%;
    transform: rotate(-3deg);
    animation: float 7s ease-in-out infinite 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--initial-rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--initial-rotation, 0deg)); }
}

/* Collections Section */
.collections {
    padding: var(--spacing-xl) 0;
    background: var(--primary-dark);
    color: var(--pure-white);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--pure-white);
}

.section-title.centered {
    text-align: center;
}

.collections-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.collections-stats {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.book-count {
    display: inline-block;
    background: rgba(153, 59, 59, 0.1);
    color: var(--accent-red);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(153, 59, 59, 0.2);
    backdrop-filter: blur(10px);
}

/* New Books Showcase */
.new-books-showcase {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(153, 59, 59, 0.05) 0%, rgba(153, 59, 59, 0.1) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(153, 59, 59, 0.1);
}

.showcase-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-red);
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.showcase-subtitle {
    color: var(--pure-white);
    opacity: 0.9;
    font-size: 1.1rem;
    margin: 0;
}

.new-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.new-book-card {
    position: relative;
    background: var(--gray-gradient);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 2px solid rgba(153, 59, 59, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.new-book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), #c55656);
}

.new-book-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 15px 40px rgba(153, 59, 59, 0.3);
}

.new-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--pure-white);
    opacity: 0.8;
    margin-bottom: var(--spacing-lg);
}

.collection-categories {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
}

.category-btn {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
    background: var(--gradient-red);
    color: var(--pure-white);
    transform: translateY(-2px);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.collection-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.collection-card {
    background: #2a2a2a;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.collection-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.card-image {
    position: relative;
    height: 250px;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 85%;
    height: 85%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.collection-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    /* Remove background - badges have their own styling */
    color: var(--pure-white);
    padding: 0; /* Remove padding - badges handle their own */
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.card-content {
    padding: var(--spacing-md);
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--pure-white);
}

.card-content p {
    color: #cccccc;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.card-tags {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.tag {
    background: var(--light-gray);
    color: var(--medium-gray);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.card-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-direction: column;
}

.volume-buttons {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
}

.volume-btn {
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.volume-btn:hover {
    background: var(--primary-red);
    color: var(--pure-white);
    transform: translateY(-1px);
}

.view-details-btn {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.view-details-btn:hover {
    background: var(--primary-red);
    color: var(--pure-white);
    transform: translateY(-2px);
}

.buy-button {
    background: var(--gradient-red);
    color: var(--pure-white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    justify-content: center;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background-color: #2a2a2a;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--pure-white);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: #cccccc;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature h4 {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.feature p {
    color: #cccccc;
    font-size: 0.9rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-red);
    color: var(--pure-white);
    text-align: center;
}

.contact h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.contact-button {
    background: transparent;
    border: 2px solid var(--pure-white);
    color: var(--pure-white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.contact-button:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-button.facebook-messenger {
    background: #0084ff;
    border-color: #0084ff;
}

.contact-button.facebook-messenger:hover {
    background: #006ae6;
    border-color: #006ae6;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--pure-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--medium-gray);
    opacity: 0.8;
}

.footer-links h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--accent-red);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--pure-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: var(--spacing-md);
    text-align: center;
    color: var(--medium-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .nav-links {
        gap: var(--spacing-sm);
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        height: 300px;
        margin-top: var(--spacing-md);
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        font-size: 0.9rem;
        padding: 0.4rem var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .collection-card {
        margin: 0 var(--spacing-xs);
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states and animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.collection-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* Multi-Business Layout Styles */

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button.primary {
    background: var(--books-accent);
    color: white;
}

.cta-button.secondary {
    background: transparent;
    color: var(--forge-accent);
    border: 2px solid var(--forge-accent);
}

.cta-button.tertiary {
    background: var(--apps-accent);
    color: white;
    border: 2px solid var(--apps-accent);
}

.cta-button.primary:hover {
    background: #b85555;
    box-shadow: 0 8px 32px rgba(166, 77, 77, 0.3);
}

.cta-button.secondary:hover {
    background: var(--forge-accent);
    color: white;
    box-shadow: 0 8px 32px rgba(139, 105, 20, 0.3);
}

.cta-button.tertiary:hover {
    background: #5a7ab7;
    color: white;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.3);
}

/* Business Overview Section */
.business-overview {
    padding: 4rem 0;
    background: rgba(42, 42, 42, 0.5);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.business-card {
    background: var(--gray-gradient);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(153, 59, 59, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(153, 59, 59, 0.2);
    border-color: rgba(153, 59, 59, 0.4);
}

.business-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.business-card h3 {
    color: var(--accent-red);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.business-card h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.business-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.business-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    background: rgba(153, 59, 59, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    border: 1px solid rgba(153, 59, 59, 0.2);
}

.business-btn {
    background: var(--accent-red);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.business-btn:hover {
    background: #a64d4d;
    transform: translateY(-2px);
}

/* Business-specific color variations */
.business-card[data-business="books"] {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-color: var(--books-border);
    position: relative;
}

.business-card[data-business="books"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--books-bg);
    z-index: 0;
}

.business-card[data-business="books"] > * {
    position: relative;
    z-index: 1;
}

.business-card[data-business="books"]:hover {
    border-color: var(--books-accent);
    box-shadow: 0 15px 40px rgba(166, 77, 77, 0.25);
}

.business-card[data-business="books"] h3 {
    color: var(--books-accent);
}

.business-card[data-business="books"] .stat {
    background: rgba(166, 77, 77, 0.15);
    border-color: var(--books-border);
}

.business-card[data-business="books"] .business-btn {
    background: var(--books-accent);
}

.business-card[data-business="books"] .business-btn:hover {
    background: #b85555;
}

.business-card[data-business="forge"] {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-color: var(--forge-border);
    position: relative;
}

.business-card[data-business="forge"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--forge-bg);
    z-index: 0;
}

.business-card[data-business="forge"] > * {
    position: relative;
    z-index: 1;
}

.business-card[data-business="forge"]:hover {
    border-color: var(--forge-accent);
    box-shadow: 0 15px 40px rgba(139, 105, 20, 0.25);
}

.business-card[data-business="forge"] h3 {
    color: var(--forge-accent);
}

.business-card[data-business="forge"] .stat {
    background: rgba(139, 105, 20, 0.15);
    border-color: var(--forge-border);
}

.business-card[data-business="forge"] .business-btn {
    background: var(--forge-accent);
}

.business-card[data-business="forge"] .business-btn:hover {
    background: #a67c18;
}

.business-card[data-business="apps"] {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-color: var(--apps-border);
    position: relative;
}

.business-card[data-business="apps"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--apps-bg);
    z-index: 0;
}

.business-card[data-business="apps"] > * {
    position: relative;
    z-index: 1;
}

.business-card[data-business="apps"]:hover {
    border-color: var(--apps-accent);
    box-shadow: 0 15px 40px rgba(74, 111, 165, 0.25);
}

.business-card[data-business="apps"] h3 {
    color: var(--apps-accent);
}

.business-card[data-business="apps"] .stat {
    background: rgba(74, 111, 165, 0.15);
    border-color: var(--apps-border);
}

.business-card[data-business="apps"] .business-btn {
    background: var(--apps-accent);
}

.business-card[data-business="apps"] .business-btn:hover {
    background: #5a7ab7;
}

/* Forge Section */
.forge {
    padding: 4rem 0;
    background: rgba(26, 26, 26, 0.95);
}

.forge-header,
.apps-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-count,
.app-count {
    background: rgba(153, 59, 59, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: var(--pure-white);
    font-weight: 600;
    border: 1px solid rgba(153, 59, 59, 0.3);
    margin-top: 1rem;
    display: inline-block;
}

.featured-projects-showcase,
.featured-apps-showcase {
    margin-bottom: 3rem;
}

.featured-projects-grid,
.featured-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.forge-categories,
.apps-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.forge-grid,
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Apps Section */
.apps {
    padding: 4rem 0;
    background: rgba(42, 42, 42, 0.8);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .business-card {
        padding: 2rem;
    }
    
    .business-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .forge-categories,
    .apps-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .featured-projects-grid,
    .featured-apps-grid {
        grid-template-columns: 1fr;
    }
    
    .forge-grid,
    .apps-grid {
        grid-template-columns: 1fr;
    }
}

/* Project and App Card Styles */
.project-card-link,
.featured-project-card-link,
.app-card-link,
.featured-app-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card,
.featured-project-card,
.app-card,
.featured-app-card {
    background: var(--gray-gradient);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(153, 59, 59, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover,
.featured-project-card:hover,
.app-card:hover,
.featured-app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(153, 59, 59, 0.3);
    border-color: rgba(153, 59, 59, 0.4);
}

.project-image img,
.project-image > div {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.app-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.app-icon img,
.app-icon > div {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin: 0 auto;
    display: block;
}

.project-content,
.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h4,
.app-content h4 {
    color: var(--accent-red);
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem 0;
    font-family: var(--font-heading);
    font-weight: 600;
}

.project-subtitle,
.app-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.project-description,
.app-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.project-meta,
.app-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.category-tag,
.status-tag,
.price-tag,
.rating-tag,
.downloads-tag {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.category-tag {
    background: rgba(153, 59, 59, 0.8);
}

.price-tag {
    background: #28a745;
}

.rating-tag {
    background: #ffc107;
    color: #000;
}

.downloads-tag {
    background: #17a2b8;
}

.project-badge,
.app-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.project-badge.featured,
.app-badge.featured {
    background: #ffc107;
    color: #000;
}

.project-badge.new,
.app-badge.new {
    background: #28a745;
}

.project-badge.wip {
    background: #17a2b8;
}

.project-badge.sold {
    background: #dc3545;
}

.project-badge.popular,
.app-badge.popular {
    background: #e74c3c;
}

/* Featured cards styling */
.featured-project-card,
.featured-app-card {
    border: 2px solid rgba(153, 59, 59, 0.4);
    background: linear-gradient(135deg, rgba(153, 59, 59, 0.1), rgba(26, 26, 26, 0.9));
}

.featured-project-card:hover,
.featured-app-card:hover {
    border-color: rgba(153, 59, 59, 0.6);
    box-shadow: 0 20px 50px rgba(153, 59, 59, 0.4);
}

/* Page Hero Styles */
.page-hero {
    padding: 10rem 0 6rem 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(42, 42, 42, 0.9));
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

.page-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(153, 59, 59, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: var(--pure-white);
    font-weight: 600;
    border: 1px solid rgba(153, 59, 59, 0.3);
}

/* Featured Content Section */
.featured-content {
    padding: 4rem 0;
    background: rgba(26, 26, 26, 0.8);
}

.business-preview {
    margin-bottom: 4rem;
}

.business-preview:last-child {
    margin-bottom: 0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.preview-header h3 {
    color: var(--accent-red);
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin: 0;
}

.view-all-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-red);
    border-radius: 8px;
    transition: all 0.3s;
}

.view-all-link:hover {
    background: var(--accent-red);
    color: white;
    transform: translateY(-2px);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Additional Page-Specific Styles */
.features-section,
.services-section,
.app-categories-section {
    padding: 4rem 0;
    background: rgba(42, 42, 42, 0.5);
}

.features-grid,
.services-grid,
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card,
.service-card,
.category-card {
    background: var(--gray-gradient);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(153, 59, 59, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover,
.service-card:hover,
.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(153, 59, 59, 0.4);
}

.feature-icon,
.service-icon,
.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h4,
.service-card h4,
.category-card h4 {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.commission-cta,
.app-store-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(153, 59, 59, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(153, 59, 59, 0.3);
}

.commission-cta h3,
.app-store-cta h3 {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.app-store-badges {
    margin-top: 1.5rem;
}

.development-info {
    padding: 4rem 0;
    background: rgba(26, 26, 26, 0.95);
}

.dev-info-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.dev-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.dev-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.dev-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.back-to-studio {
    padding: 3rem 0;
    background: rgba(153, 59, 59, 0.1);
    text-align: center;
}

.studio-promo h3 {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.studio-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.studio-link {
    background: var(--accent-red);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.studio-link:hover {
    background: #a64d4d;
    transform: translateY(-2px);
}

/* Active Navigation State */
.nav-links a.active {
    color: var(--accent-red);
    font-weight: 600;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .page-hero {
        padding: 8rem 0 4rem 0;
        min-height: 60vh;
    }
    
    .page-title {
        font-size: 2.5rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .page-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .page-description {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .page-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .preview-header {
        text-align: center;
        flex-direction: column;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
    }
    
    .studio-links {
        flex-direction: column;
        align-items: center;
    }
    
    .studio-link {
        width: 100%;
        max-width: 250px;
    }
}

/* Print styles */
@media print {
    .header,
    .hero,
    .contact,
    .footer {
        display: none;
    }
    
    .collections {
        background: white;
    }
    
    .collection-card {
        break-inside: avoid;
    }
}