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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #e74c3c 0%, #f39c12 25%, #e67e22 50%, #d35400 100%);
    min-height: 100vh;
}

/* CSS Variables (site theme tokens) */
:root {
    --gradient-primary: linear-gradient(90deg, rgba(20,24,30,0.95), rgba(16,20,26,0.95));
    --spacing-sm: 6px;
    --spacing-md: 16px;
    --spacing-lg: 28px;
    --white: #ffffff;
    --dark-blue: #0e2a44;
    --primary-color: #e74c3c;
    --accent-color: #f39c12;
    --shadow-md: 0 10px 30px rgba(12,16,20,0.2);
    --shadow-lg: 0 18px 48px rgba(12,16,20,0.24);
    --radius-sm: 6px;
    --radius-md: 12px;
    --font-size-xl: 1.25rem;
    --transition-fast: 160ms;
    --transition-normal: 220ms;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation styles have been replaced with a new consolidated block later in this file. */

/* Hero Section */
.hero {
    margin-top: 75px;
    padding: 5rem 0;
    background: linear-gradient(135deg, #e74c3c 0%, #f39c12 25%, #e67e22 50%, #d35400 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.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.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin-top: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    max-height: 350px;
    object-fit: cover;
}

/* Sections */
section {
    padding: 5rem 0;
}

.about {
    background: #ffffff;
    color: #2c3e50;
}

.about h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 800;
}

.about p {
    font-size: 1.05rem;
    color: #34495e;
    line-height: 1.7;
}

/* About section layout: image + text */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    text-align: left;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(12,16,20,0.12);
    object-fit: cover;
}

.about-text {
    padding: 0 0.5rem;
}

@media (max-width: 880px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text {
        padding: 0;
    }
}

/* Features */
.features {
    background: rgba(255, 255, 255, 0.92);
}

.features h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    color: #2c3e50;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(231, 76, 60, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(231, 76, 60, 0.1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.2);
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #e74c3c;
    font-weight: 700;
}

.feature-item p {
    color: #5a6c7d;
    line-height: 1.7;
}

/* Reviews */
.reviews {
    background: rgba(255, 255, 255, 0.88);
}

.reviews h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    color: #2c3e50;
    font-weight: 800;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.review-item {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(231, 76, 60, 0.08);
    position: relative;
    border-left: 5px solid #f39c12;
}

.review-item p {
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #34495e;
    line-height: 1.7;
}

.review-item cite {
    color: #e74c3c;
    font-weight: 700;
    font-style: normal;
}

/* Games Section */
.games {
    background: rgba(255, 255, 255, 0.9);
}

.games h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.game-wrapper {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
}

.game-wrapper:hover {
    transform: translateY(-5px);
}

/* Legacy navbar styles removed to prevent conflicts */

/* ======= Clean Nav CSS (desktop + mobile) ======= */

/* Base navbar */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(6px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nav-logo a { display: inline-flex; align-items:center; }
.nav-logo img { height: 44px; width: auto; display:block; }

.nav-menu { display:flex; gap: var(--spacing-lg); align-items:center; }
.nav-menu li { list-style:none; }
.nav-menu a { color: var(--white); text-decoration:none; padding:8px 12px; border-radius:8px; font-weight:600; }
.nav-menu a:hover, .nav-menu a.active { background: rgba(255,255,255,0.06); color: var(--accent-color); }

/* Mobile: hide menu and show toggle */
.mobile-toggle { display:none; background:transparent; border:0; padding:8px; cursor:pointer; }
.site-hamburger { display:block; width:22px; height:2px; background:var(--white); position:relative; }
.site-hamburger::before, .site-hamburger::after { content:''; position:absolute; left:0; width:22px; height:2px; background:var(--white); transition: transform 180ms ease, opacity 180ms ease; }
.site-hamburger::before { top:-7px; }
.site-hamburger::after { top:7px; }

@media (max-width: 880px) {
    /* Force proper mobile header layout */
    .nav-container { 
        display: flex !important; 
        align-items: center !important; 
        justify-content: space-between !important; 
        position: relative;
        height: 64px; /* Fixed height for consistency */
    }
    
    /* Logo stays on the left */
    .nav-logo { 
        order: 1 !important; 
        flex: 0 0 auto !important; 
        margin: 0 !important; 
    }
    
    /* Hamburger button on the right */
    .mobile-toggle { 
        display: inline-flex !important; 
        align-items: center !important; 
        justify-content: center !important;
        order: 2 !important; 
        flex: 0 0 auto !important; 
        margin: 0 !important;
        padding: 12px !important;
        width: 48px;
        height: 48px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    
    /* Hidden desktop menu becomes mobile dropdown */
    .nav-menu { 
        order: 3;
        position: absolute !important; 
        top: 100% !important; 
        left: 0 !important; 
        right: 0 !important; 
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        background: var(--dark-blue) !important; 
        color: var(--white) !important; 
        flex-direction: column !important; 
        padding: var(--spacing-lg) var(--spacing-md) !important; 
        gap: 12px !important; 
        max-height: 0 !important; 
        overflow: hidden !important; 
        transform: translateY(-8px) !important; 
        opacity: 0 !important; 
        transition: max-height 320ms ease, transform 240ms ease, opacity 220ms ease; 
        box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
        z-index: 999;
        border-top: 3px solid var(--primary-color) !important;
    }

    /* Mobile menu links styling */
    .nav-menu a {
        color: var(--white) !important;
        padding: 16px 20px !important;
        background: rgba(255,255,255,0.05) !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        font-size: 16px !important;
        transition: all 200ms ease !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
    }

    .nav-menu a:hover,
    .nav-menu a:focus {
        background: var(--primary-color) !important;
        color: var(--white) !important;
        transform: translateX(4px) !important;
        border-color: var(--accent-color) !important;
    }

    /* Prevent the menu from affecting layout when hidden */
    .nav-menu[aria-hidden="true"] { 
        display: block !important; 
        pointer-events: none !important; 
    }
    
    /* Overlay for mobile menu */
    .nav-overlay { 
        position: fixed; 
        inset: 0; 
        background: rgba(0,0,0,0.6); 
        z-index: 990; 
        opacity: 0; 
        pointer-events: none; 
        transition: opacity 220ms ease; 
    }
    .nav-overlay.active { 
        opacity: 1; 
        pointer-events: auto; 
    }
    
    /* Open state styles */
    body.nav-open .nav-menu { 
        max-height: 500px !important; 
        opacity: 1 !important; 
        transform: translateY(0) !important; 
    }
    body.nav-open .site-hamburger { 
        background: transparent !important; 
    }
    body.nav-open .site-hamburger::before { 
        transform: translateY(7px) rotate(45deg) !important; 
    }
    body.nav-open .site-hamburger::after { 
        transform: translateY(-7px) rotate(-45deg) !important; 
    }
    body.nav-open .site-hamburger::before, 
    body.nav-open .site-hamburger::after { 
        background: var(--primary-color) !important; 
    }
}

/* End Clean Nav CSS */

/* Responsive 16:9 iframe: max-width 900px, maintain aspect ratio */
.game-embed {
    width: 100%;
    max-width: 900px;
    /* For modern browsers */
    aspect-ratio: 16 / 9;
    position: relative;
}

.game-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Fallback for browsers without aspect-ratio support */
.game-embed.fallback {
    position: relative;
    padding-top: calc(9 / 16 * 100%); /* 16:9 */
}

.game-embed.fallback iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Play Section */
.play-section {
    margin-top: 75px;
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.96);
}

.play-header {
    text-align: center;
    margin-bottom: 4rem;
}

.play-header h1 {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.play-header p {
    font-size: 1.3rem;
    color: #34495e;
    max-width: 600px;
    margin: 0 auto;
}

.play-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.game-wrapper.featured {
    min-height: 480px;
}

/* Contact Section */
.contact-section {
    margin-top: 75px;
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.96);
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h1 {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.contact-header p {
    font-size: 1.3rem;
    color: #34495e;
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.1);
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
}

.success-message {
    color: #27ae60;
    font-size: 1rem;
    margin-top: 1.5rem;
    text-align: center;
    padding: 1.2rem;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.btn-submit {
    background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

/* Legal Sections */
.legal-section {
    margin-top: 75px;
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.96);
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-header h1 {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.legal-header p {
    font-size: 1.3rem;
    color: #34495e;
}

.legal-content {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.1);
}

.legal-content h2 {
    color: #2c3e50;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: #34495e;
    margin-bottom: 1.8rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.legal-content a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Footer styles consolidated later in the file (removed duplicate block) */

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 3.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 550px;
    margin: 2rem;
    box-shadow: 0 25px 80px rgba(231, 76, 60, 0.3);
    border: 1px solid rgba(231, 76, 60, 0.1);
}

.modal-content h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 800;
}

.modal-content p {
    color: #34495e;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.btn-confirm {
    background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .features-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid,
    .play-games {
        grid-template-columns: 1fr;
    }
    
    .game-wrapper iframe {
        height: 320px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-nav ul {
        justify-content: center;
    }
    
    .contact-form,
    .legal-content {
        padding: 2.5rem;
        margin: 1rem;
    }
    
    .modal-content {
        padding: 2.5rem;
        margin: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        margin-top: 110px;
    }
    
    .play-section,
    .contact-section,
    .legal-section {
        margin-top: 110px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .legal-header h1,
    .contact-header h1,
    .play-header h1 {
        font-size: 2.5rem;
    }
    
    .about h2,
    .features h2,
    .reviews h2,
    .games h2 {
        font-size: 2.2rem;
    }
}

/* New responsive navbar tweaks */

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #fff; /* make toggle visible on dark nav */
    padding: 0 8px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
        

}

    /* nudge tweak: ensure toggle and logo are visually centered within the navbar height */
    .navbar .nav-container > div .nav-toggle,
    .navbar .nav-container > div .nav-logo {
        margin-top: 0; /* override any page-level quirks */
    }

/* Visually hidden (screen-reader only) */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

@media (max-width: 880px) {
    .nav-container {
        height: 64px;
        gap: 12px;
    }

    .nav-logo img {
        height: 36px;
        width: auto;
        display: block;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        right: 12px;
        background: rgba(16,20,26,0.96);
        color: #fff;
        flex-direction: column;
        width: 220px;
        padding: 0.6rem 0.6rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        border-radius: 12px;
        z-index: 1200;
        /* enable animated open/close */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu li {
        margin: 0.35rem 0;
    }

    /* hide menu by default on small screens when the helper class is present */
    .nav-menu.mobile-hidden {
        /* fully hidden: remove padding, pointer events and visibility */
        max-height: 0 !important;
        overflow: hidden;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* When visible, let max-height grow large enough for items */
    .nav-menu:not(.mobile-hidden) {
        max-height: 500px; /* enough to show items; adjusted in JS using scrollHeight */
        visibility: visible;
        pointer-events: auto;
    }
}

/* Footer */
.footer {
    background: linear-gradient(180deg, rgba(44,62,80,0.04), rgba(255,255,255,0.96));
    border-top: 1px solid rgba(44,62,80,0.06);
    padding: 2.5rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 1.5rem;
    align-items: start;
}

.footer-logo h3 {
    font-size: 1.4rem;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin-bottom: 0.6rem;
}

.footer-nav ul li a {
    color: #34495e;
    text-decoration: none;
    font-weight: 600;
}

.disclaimer-card {
    background: linear-gradient(180deg, rgba(236, 150, 79, 0.98), rgba(236, 150, 79, 0.98));
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(52,73,94,0.06);
    box-shadow: 0 8px 30px rgba(44,62,80,0.04);
    max-width: 520px;
}

.disclaimer-card .title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.disclaimer-card .title strong {
    color: #2c3e50;
    font-size: 0.98rem;
}

.disclaimer-card .text {
    color: #5a6c7d;
    font-size: 0.94rem;
    line-height: 1.5;
}

/* Disclaimer banner shown above game sections */
.disclaimer-banner {
    max-width: 1000px;
    margin: 1.75rem auto 2rem auto;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(231,76,60,0.06), rgba(243,156,18,0.04));
    border: 1px solid rgba(231,76,60,0.12);
    color: #2c3e50;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 8px 30px rgba(231,76,60,0.06);
}

.disclaimer-banner strong {
    color: #e74c3c;
    font-size: 1rem;
}

.disclaimer-banner p {
    margin: 0;
    color: #34495e;
    font-size: 0.98rem;
}

.disclaimer-card a{
    color: #e74c3c;
    text-decoration: underline;
    font-weight: 600;
}

@media (max-width: 880px) {
    .disclaimer-banner {
        margin: 1rem 0;
        padding: 0.9rem 1rem;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 880px) {
    .disclaimer-card {
        margin: 0 auto;
        max-width: 100%;
    }
}

@media (max-width: 880px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-nav ul {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
}

/* Logo image inside nav */
.nav-logo img {
    height: 34px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Hero background fallback when hero image isn't provided inline */
.hero {
    margin-top: 75px;
    padding: 6rem 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    /* fallback gradient if image is missing */
    background-image: linear-gradient(135deg, rgba(231,76,60,0.85), rgba(243,156,18,0.7));
}

/* Try to use the local hero.jpg if present, layered over gradient */
.hero.has-image {
    background-image: linear-gradient(135deg, rgba(20,24,30,0.35), rgba(20,24,30,0.25)), url('../img/hero.jpg');
}

/* About section background */
.about {
    background-size: cover;
    background-position: center center;
    color: #fff;
}
.about.has-image {
    background-image: url('../img/about.jpg');
}

/* Ensure text remains readable on image backgrounds */
.about.has-image .container,
.hero.has-image .container {
    background: rgba(0,0,0,0.25);
    padding: 2rem;
    border-radius: 12px;
}