/* Norwegian Fonts */
@font-face {
    font-family: 'NorwegianNew';
    src: url('../fonts/NorwegianTextPro-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'NorwegianNew';
    src: url('../fonts/NorwegianTextPro-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'NorwegianNew';
    src: url('../fonts/NorwegianDisplayPro-Bold.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #E6222E rgba(255, 255, 255, 0.1);
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'NorwegianNew', system-ui, sans-serif;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    line-height: 1.6;
    color: #343a40;
}

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

h1 {
    font-size: 4rem;
    color: #15273F;
}

h2 {
    font-size: 3rem !important;
    color: #15273F;
    font-weight: 900 !important;
    font-family: 'NorwegianNew' !important;
}

h3 {
    font-size: 1.35rem;
    color: #15273F;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

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

/* Navigation */
.navbar {
    background-color: #15273F;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-logo .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #E6222E;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'NorwegianNew';
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #E6222E;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-hero {
    background-color: #E6222E;
    color: white;
    padding: 16px 32px;
    font-size: 1.2rem;
    border-radius: 12px;
}

.btn-outline {
    background-color: transparent;
    color: #E6222E;
    border: 2px solid #E6222E;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.btn-outline .btn-icon {
    filter: brightness(0) saturate(100%) invert(19%) sepia(96%) saturate(6249%) hue-rotate(352deg) brightness(94%) contrast(95%);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 39, 63, 0.8) 0%, rgba(230, 34, 46, 0.7) 50%, rgba(21, 39, 63, 0.8) 100%);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 120px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'NorwegianNew';
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

.hero-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 900;
    font-family: 'NorwegianNew';
    color: #15273F;
}

.section-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Features Section */
.features-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 70px 0;
}

.features-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.feature-text h2 {
    margin-bottom: 2rem;
    font-size: 3rem !important;
}

.feature-info p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: flex-start;
}

.feature-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    text-align: left;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(230, 34, 46, 0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #E6222E, #D21C2E);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(230, 34, 46, 0.2);
}

.feature-icon-img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
}

.feature-img, .feature-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #15273F 0%, #1a3352 100%);
    color: white;
    padding: 100px 0;
}

.stats-section .section-title {
    color: white !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    margin-bottom: 1.5rem;
}

.stats-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
}

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

.stat-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(230, 34, 46, 0.3);
}

.stat-number {
    font-family: 'NorwegianNew';
    font-size: 3.5rem;
    font-weight: bold;
    color: #E6222E;
    margin-bottom: 0.75rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Community Section */
.community-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 100px 0;
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.community-text h2 {
    font-size: 3.5rem !important;
    margin-bottom: 1.5rem;
}

.community-text > p {
    font-size: 1.15rem;
    color: #6c757d;
    line-height: 1.8;
}

.community-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
    margin-top: 3rem;
}

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

.community-stat .stat-number {
    display: block;
    font-family: 'NorwegianNew';
    font-size: 2.5rem;
    font-weight: bold;
    color: #E6222E;
    margin-bottom: 0.5rem;
}

.community-stat .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.community-img, .community-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #15273F 0%, #1a3352 100%);
    padding: 100px 0;
    text-align: center;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white !important;
}

.contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: #15273F;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

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

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    max-width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* SVG Logo Enhancements */
.svg-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* PNG Logo Styling */
.png-logo {
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #E6222E, #15273F);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #D21C2E, #E6222E);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
        white-space: normal;
    }
    
    h2, .feature-text h2, .community-text h2 {
        font-size: 2.5rem !important;
    }
    
    .features-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .community-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .features-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-actions {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .feature-list {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }
    
    .features-section {
        padding: 50px 0;
    }
    
    .hero-content-wrapper {
        padding: 100px 20px 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        white-space: normal;
        letter-spacing: -0.5px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2, .feature-text h2, .community-text h2 {
        font-size: 2rem !important;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem !important;
    }
    
    .community-stats {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    .features-section,
    .stats-section,
    .community-section,
    .contact-section {
        padding: 60px 0;
    }
}
