:root {
    /* Värangord Color Palette */
    --fjord-black: #2C2C2E;
    --fjord-black-dark: #1E1E1F;
    --fjord-black-light: #3D3D3F;
    --nordic-red: #B23A3A;
    --nordic-red-hover: #D14545;
    --amber-house: #E3A23A;
    --amber-house-hover: #F2B044;
    --harbor-gray: #D1CFD4;
    --snow-white: #F5F6F7;
    
    /* Layout Variables */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-med: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-round: 50%;
    
    /* Z-index layers */
    --z-base: 1;
    --z-above: 10;
    --z-nav: 100;
    --z-modal: 1000;
    --z-overlay: 9999;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--fjord-black-dark);
}

body {
    font-family: var(--font-primary);
    color: var(--harbor-gray);
    background-color: var(--fjord-black);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--snow-white);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: var(--z-base);
}

.section {
    padding: 6rem 0;
    position: relative;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: var(--radius-round);
    filter: blur(120px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out alternate;
}

.red-glow {
    background: var(--nordic-red);
    top: -10%;
    right: -10%;
}

.amber-glow {
    background: var(--amber-house);
    bottom: -20%;
    left: -10%;
    animation-delay: -5s;
    opacity: 0.1;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.1); }
    100% { transform: translate(-5%, 10%) scale(0.9); }
}

/* Typography Enhancements */
.gradient-text {
    background: linear-gradient(135deg, var(--nordic-red), var(--amber-house));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--nordic-red);
    color: var(--snow-white);
    box-shadow: 0 4px 15px rgba(178, 58, 58, 0.3);
}

.btn-primary:hover {
    background-color: var(--nordic-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 58, 58, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--snow-white);
    border: 1px solid var(--harbor-gray);
}

.btn-secondary:hover {
    border-color: var(--snow-white);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(178, 58, 58, 0.1);
    color: var(--nordic-red);
    border: 1px solid rgba(178, 58, 58, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: var(--z-nav);
    transition: all var(--transition-med);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(44, 44, 46, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(30, 30, 31, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--snow-white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--harbor-gray);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--snow-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--nordic-red);
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: calc(var(--z-nav) + 1);
}

.hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--snow-white);
    position: relative;
    transition: all var(--transition-fast);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--snow-white);
    transition: all var(--transition-fast);
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

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

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--harbor-gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

/* Shield Animation */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-graphic {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-round);
    border: 1px solid rgba(178, 58, 58, 0.3);
    animation: pulse 3s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pulse-ring.delay {
    animation-delay: 1.5s;
}

.shield-core {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--fjord-black-light), var(--fjord-black-dark));
    border-radius: var(--radius-round);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(178, 58, 58, 0.4), inset 0 0 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(227, 162, 58, 0.2);
    z-index: 2;
}

.shield-icon {
    width: 50px;
    height: 50px;
    color: var(--amber-house);
    filter: drop-shadow(0 0 10px rgba(227, 162, 58, 0.5));
}

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 1; border-color: rgba(178, 58, 58, 0.8); }
    100% { transform: scale(1.5); opacity: 0; border-color: rgba(227, 162, 58, 0.1); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.scroll-indicator p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--harbor-gray);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--nordic-red);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* Services */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--nordic-red);
}

.section-desc {
    color: var(--harbor-gray);
    font-size: 1.1rem;
}

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

.service-card {
    background: rgba(30, 30, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: all var(--transition-med);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(44, 44, 46, 0.8);
    border-color: rgba(178, 58, 58, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    background: rgba(0,0,0,0.2);
}

.nordic-red-icon {
    color: var(--nordic-red);
    box-shadow: inset 0 0 20px rgba(178, 58, 58, 0.1);
}

.amber-house-icon {
    color: var(--amber-house);
    box-shadow: inset 0 0 20px rgba(227, 162, 58, 0.1);
}

.harbor-gray-icon {
    color: var(--snow-white);
    box-shadow: inset 0 0 20px rgba(209, 207, 212, 0.1);
}

.mixed-gradient-icon {
    color: var(--snow-white);
    background: linear-gradient(135deg, rgba(178, 58, 58, 0.2), rgba(227, 162, 58, 0.2));
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--harbor-gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.learn-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--snow-white);
    margin-top: auto;
}

.learn-more .arrow {
    transition: transform var(--transition-fast);
    color: var(--nordic-red);
}

.service-card:hover .learn-more .arrow {
    transform: translateX(5px);
}

/* Banner */
.banner {
    padding: 4rem 0;
    background: linear-gradient(90deg, var(--fjord-black-dark) 0%, rgba(178, 58, 58, 0.1) 100%);
    border-top: 1px solid rgba(178, 58, 58, 0.2);
    border-bottom: 1px solid rgba(178, 58, 58, 0.2);
}

.banner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.banner-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.container-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-round);
    background: rgba(30,30,31, 0.8);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--harbor-gray);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--fjord-black-dark);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--snow-white);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--snow-white);
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--nordic-red);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 3px rgba(178, 58, 58, 0.1);
}

.custom-select {
    position: relative;
}

.custom-select::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--harbor-gray);
    pointer-events: none;
}

.form-group select {
    appearance: none;
}

.btn-block {
    width: 100%;
}

/* Footer */
.footer {
    background: #111112;
    padding-top: 5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--harbor-gray);
    max-width: 300px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--harbor-gray);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--nordic-red);
    padding-left: 5px;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--harbor-gray);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.fade-in-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--transition-slow);
}

.fade-in-up.visible,
.fade-in-zoom.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem auto;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .container-split, .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: var(--fjord-black-dark);
        flex-direction: column;
        justify-content: center;
        transition: right var(--transition-med);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        padding: 2rem;
    }

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

    .mobile-menu-btn {
        display: block;
    }

    /* Keep banner content centered */
    .banner-container {
        justify-content: center;
        text-align: center;
    }

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

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

    .footer-links-group {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
