/*
Theme Name: Nordic Stream Final
Theme URI: https://example.com/nordic-stream
Author: Highonc4
Author URI: https://example.com
Description: The complete, fixed version of the Nordic Stream theme.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nordic-stream
*/

:root {
    /* Colors */
    /* Colors - Swedish Theme */
    --bg-deep: #05101A;
    /* Deep Navy */
    --bg-surface: #0A1A2A;
    /* Slightly lighter navy for cards */
    --bg-glass: rgba(10, 26, 42, 0.4);
    /* Blue-tinted glass */

    --primary-accent: #FECC00;
    /* Swedish Yellow - High visibility */
    --primary-accent-glow: rgba(254, 204, 0, 0.4);

    --secondary-accent: #006AA7;
    /* Swedish Blue - Branding */
    --secondary-accent-glow: rgba(0, 106, 167, 0.4);

    --text-main: #ffffff;
    --text-muted: #B0C4DE;
    /* Light steel blue for better contrast on navy */

    --success: #00ff88;
    --warning: #ffd700;
    --danger: #ff4d4d;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --glass-blur: 10px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 10px 40px -10px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.max-w-800 {
    max-width: 800px;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    /* Swedish Gradient: Yellow to White or Yellow to Light Blue */
    background: linear-gradient(135deg, var(--primary-accent) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-success {
    color: var(--success);
}

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

.mb-3 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.w-100 {
    width: 100%;
}

/* Glassmorphism */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.btn-primary {
    /* Solid Yellow for high contrast against dark blue */
    background: var(--primary-accent);
    color: var(--bg-deep);
    /* Dark text on yellow button for readability */
    box-shadow: 0 0 20px var(--primary-accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Header Styles */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-width);
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 50px;
}

.header-content {
    width: 100%;
    justify-content: space-between;
}

.header.scrolled {
    background: rgba(15, 15, 19, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--primary-accent);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary-accent) 0%, rgba(0, 0, 0, 0) 70%);
    /* Blue glow */
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 106, 167, 0.3);
    /* Blue background */
    color: var(--primary-accent);
    /* Yellow text */
    border: 1px solid var(--secondary-accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: inline-flex;
    gap: 4rem;
    padding: 2rem 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Showcase Section */
.showcase-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cat-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cat-btn.active,
.cat-btn:hover {
    background: var(--primary-accent);
    color: var(--bg-deep);
    border-color: var(--primary-accent);
    font-weight: 600;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.showcase-item {
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.poster {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.showcase-item:hover .poster {
    transform: scale(1.05);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    position: relative;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.recommend {
    border: 1px solid var(--primary-accent);
    box-shadow: 0 0 30px rgba(254, 204, 0, 0.15);
    /* Yellow glow */
}

.recommend-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-accent);
    color: var(--bg-deep);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d1e0;
}

/* FAQ & Contact */
.faq-container {
    margin-bottom: 4rem;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
}

.toggle {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        width: 95%;
        padding: 1rem;
        top: 10px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        padding: 2rem;
        flex-direction: column;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .sm-hidden {
        display: none;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        width: 90%;
    }

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-surface);
    /* Fallback */
    background: var(--bg-glass);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Ensure text aligns left for form labels/inputs */
    text-align: left;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close:hover {
    color: #fff;
}

/* Modal Form Styles */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-form .form-group {
    margin-bottom: 0;
}

.order-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.order-form input,
.order-form select,
.order-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-family: inherit;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Blog Styles */
.blog-header {
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    /* Fixed variables for new theme */
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Single Post Styles */
.single-hero {
    padding-top: 150px;
    padding-bottom: 3rem;
    position: relative;
}

.single-hero .post-title {
    font-size: 3.5rem;
    line-height: 1.1;
}

.featured-image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.single-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.single-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.single-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.single-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.single-content ul,
.single-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.single-content li {
    margin-bottom: 0.5rem;
}

.single-content blockquote {
    border-left: 4px solid var(--primary-accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #fff;
    font-size: 1.25rem;
}

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.post-navigation .nav-prev a,
.post-navigation .nav-next a {
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-navigation .nav-prev a:hover,
.post-navigation .nav-next a:hover {
    color: var(--primary-accent);
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.text-end {
    text-align: right;
}

.ms-3 {
    margin-left: 1rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .single-hero .post-title {
        font-size: 2.5rem;
    }

    .single-content {
        font-size: 1.05rem;
    }
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.blog-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.read-more {
    color: var(--secondary-accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.read-more:hover {
    text-decoration: underline;
}


/* Custom Logo Support */
.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo-link img {
    max-height: 45px; /* Change this number to make the logo smaller or bigger */
    width: auto;
}