/* northmats.site - Nordic Adventure Gaming Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ice-blue: #4dd0e1;
    --deep-teal: #006064;
    --forest-green: #2e7d32;
    --amber-glow: #ffb300;
    --dark-slate: #263238;
    --frost-white: #e0f7fa;
    --storm-gray: #455a64;
    --magic-pink: #ec407a;
    --text-light: #eceff1;
    --text-dark: #263238;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-light);
    background: linear-gradient(180deg, var(--dark-slate) 0%, var(--deep-teal) 50%, var(--forest-green) 100%);
    min-height: 100vh;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Navbar - Transparent Overlay Style */
.navbar {
    background: linear-gradient(90deg, rgba(38, 50, 56, 0.95), rgba(0, 96, 100, 0.9));
    backdrop-filter: blur(8px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(77, 208, 225, 0.3);
    border-bottom: 2px solid var(--ice-blue);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--ice-blue);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--amber-glow);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.logo:hover {
    color: var(--amber-glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ice-blue), var(--amber-glow));
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(.2,.9,.2,1), opacity 0.35s;
    opacity: 0.9;
}

.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-links a:hover {
    background: rgba(77, 208, 225, 0.06);
    color: var(--amber-glow);
    transform: translateY(-3px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--ice-blue);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section - Diagonal Split */
.hero {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Full-bleed: make hero span the full viewport width while keeping content centered */
    width: 100vw;

    box-sizing: border-box;
    /* Override global section constraints so hero can be full-bleed */
    max-width: none;
    margin: 0;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(38,50,56,0.55), rgba(0,96,100,0.25));
    pointer-events: none;
    z-index: 0;
}

@keyframes shimmer {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.2rem;
    color: var(--ice-blue);
    text-shadow: 
        2px 2px 0 var(--deep-teal),
        4px 4px 10px rgba(77, 208, 225, 0.5);
    font-weight: 900;
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    color: var(--frost-white);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: linear-gradient(135deg, var(--amber-glow), #ffa000);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 179, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 179, 0, 0.6);
}

/* Section Styles */
section {
    padding: 5rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--ice-blue);
    font-weight: 800;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--amber-glow), transparent);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--frost-white);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* About Section - Card Layout */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    background: rgba(38, 50, 56, 0.6);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--ice-blue);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.about-text h3 {
    color: var(--amber-glow);
    margin-bottom: 1.2rem;
    font-size: 2rem;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.about-highlights {
    background: linear-gradient(135deg, rgba(0, 96, 100, 0.5), rgba(46, 125, 50, 0.5));
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--amber-glow);
}

.about-highlights h4 {
    color: var(--amber-glow);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.about-highlights ul {
    list-style: none;
}

.about-highlights li {
    padding: 0.8rem 0;
    padding-left: 2.5rem;
    position: relative;
    color: var(--text-light);
}

.about-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--ice-blue);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Features Grid - Card Stack Style */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(38, 50, 56, 0.8), rgba(0, 96, 100, 0.6));
    padding: 2.5rem;
    border-radius: 12px;
    text-align: left;
    border-top: 4px solid var(--ice-blue);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(77, 208, 225, 0.4);
    border-top-color: var(--amber-glow);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    display: block;
}

.feature-card h3 {
    color: var(--ice-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: 1fr; /* one game per row */
    gap: 2.5rem;
    margin-top: 3rem;
    justify-items: center; /* center the iframe in the column */
}


/* When using only the iframe frames, no extra card styling is applied. */
.game-container { display: contents; }

/* Game iframe: responsive 16:9 frame, max width 900px */
.game-frame {
    width: 100%;
    max-width: 900px; /* desired maximum */
    aspect-ratio: 16/9;
    height: auto;
    border: none;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    background: #000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Make sure very small screens have some breathing room */
@media (max-width: 420px) {
    .game-frame {
        border-radius: 6px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.45);
    }
}

.game-frame {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    background: #000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}
/* Reviews Section - Stacked Cards */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.review-card {
    background: rgba(0, 96, 100, 0.4);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--amber-glow);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.review-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 35px rgba(77, 208, 225, 0.4);
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.9;
}

.reviewer-name {
    color: var(--amber-glow);
    font-weight: 700;
    font-size: 1.1rem;
}

.reviewer-rating {
    color: var(--amber-glow);
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

/* Footer - Two-Column Wide Layout */
.footer {
    background: linear-gradient(135deg, rgba(38, 50, 56, 0.98), rgba(0, 96, 100, 0.95));
    padding: 3.5rem 2rem 1.5rem;
    border-top: 4px solid var(--ice-blue);
    margin-top: 5rem;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    color: var(--ice-blue);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 2.2;
    transition: all 0.3s ease;
    display: block;
}

.footer-section a:hover {
    color: var(--amber-glow);
    padding-left: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-disclaimer-card {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.4), rgba(0, 96, 100, 0.5));
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--amber-glow);
    margin-bottom: 2.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.footer-disclaimer-card h4 {
    color: var(--amber-glow);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-disclaimer-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(77, 208, 225, 0.3);
    color: var(--frost-white);
    font-size: 1rem;
}

/* Contact Form */
.contact-form {
    max-width: 750px;
    margin: 3rem auto;
    background: rgba(38, 50, 56, 0.8);
    padding: 3.5rem;
    border-radius: 15px;
    border: 2px solid var(--deep-teal);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--ice-blue);
    font-weight: 700;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--deep-teal);
    border-radius: 8px;
    background: rgba(38, 50, 56, 0.5);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ice-blue);
    box-shadow: 0 0 15px rgba(77, 208, 225, 0.4);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--amber-glow), #ffa000);
    color: var(--text-dark);
    padding: 1.2rem 3.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: none;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 6px 25px rgba(255, 179, 0, 0.4);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 179, 0, 0.6);
}

/* Content Pages */
.content-section {
    max-width: 950px;
    margin: 3rem auto;
    background: rgba(38, 50, 56, 0.8);
    padding: 3.5rem;
    border-radius: 15px;
    border: 2px solid var(--deep-teal);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.content-section h2 {
    color: var(--ice-blue);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.content-section h3 {
    color: var(--amber-glow);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
}

.content-section p,
.content-section ul,
.content-section ol {
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 1.2rem;
}

.content-section ul,
.content-section ol {
    padding-left: 2.5rem;
}

.content-section li {
    margin-bottom: 0.8rem;
}

/* Disclaimer Popup */
.disclaimer-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.disclaimer-popup.active {
    display: flex;
}

.disclaimer-content {
    background: linear-gradient(135deg, var(--dark-slate), var(--deep-teal));
    padding: 3.5rem;
    border-radius: 15px;
    max-width: 650px;
    text-align: center;
    border: 4px solid var(--ice-blue);
    box-shadow: 0 20px 60px rgba(77, 208, 225, 0.5);
    position: relative;
}

.disclaimer-content h2 {
    color: var(--amber-glow);
    margin-bottom: 1.8rem;
    font-size: 2.2rem;
    font-weight: 800;
}

.disclaimer-content p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 2;
    font-size: 1.1rem;
}

.disclaimer-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.accept-btn,
.decline-btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: none;
    transition: all 0.3s ease;
}

.accept-btn {
    background: linear-gradient(135deg, var(--amber-glow), #ffa000);
    color: var(--text-dark);
}

.accept-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 179, 0, 0.6);
}

.decline-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.decline-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--ice-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(38, 50, 56, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 2px solid var(--ice-blue);
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

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

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

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

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

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

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .disclaimer-content {
        padding: 2.5rem;
    }

    .contact-form {
        padding: 2.5rem;
    }
}
