/* Ocean Depth Design - ROV Remote AS */

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

/* Design System */
:root {
    /* Ocean-inspired Colors */
    --ocean-deep: #0A2540;
    --ocean-blue: #003D7A;
    --cyan: #00A8E8;
    --cyan-light: #4FC3F7;
    --white: #FFFFFF;
    --off-white: #F8FAFB;
    --gray-light: #E5E7EB;
    --gray: #9CA3AF;
    --gray-dark: #4B5563;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    /* Layout */
    --max-width: 1280px;
    --header-height: 80px;
    
    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ocean-deep);
    background: var(--white);
    overflow-x: hidden;
}

/* Focus styles for accessibility */
*:focus {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

/* Remove outline for mouse users but keep for keyboard */
*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-light);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ocean-deep);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-weight-light);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: var(--font-weight-regular);
}

p {
    color: var(--gray-dark);
    margin-bottom: var(--space-md);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--gray-dark);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
}

/* Header - Transparent initially */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    height: 70px;
}

.header.scrolled .logo img {
    height: 40px;
}

.header.scrolled .logo .logo-white {
    display: none;
}

.header.scrolled .logo .logo-black {
    display: block;
}

.header.scrolled .main-nav a {
    color: var(--ocean-deep);
}

.nav-wrapper {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo adjustments for transparent header */
.logo {
    display: flex;
    align-items: center;
    padding-top: 4px;
}

.logo img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

/* Initially show white logo, hide black */
.logo .logo-white {
    display: block;
    filter: brightness(0) invert(1);
}

.logo .logo-black {
    display: none;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.02em;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--cyan-light);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 28px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.mobile-menu-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    left: 0;
}

.header.scrolled .mobile-menu-toggle span {
    background: var(--ocean-deep);
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 11px; }
.mobile-menu-toggle span:nth-child(3) { bottom: 0; }

/* Hero Section - Full viewport */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 70px;
    z-index: 1;
}

/* Video Wrapper */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(10, 37, 64, 0.4) 0%, 
        rgba(10, 37, 64, 0.3) 50%, 
        rgba(10, 37, 64, 0.6) 100%);
    pointer-events: none;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 900px;
    color: var(--white);
    animation: heroFadeIn 1s ease-out;
    text-align: center;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-xl);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    font-weight: var(--font-weight-regular);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: var(--font-weight-light);
    opacity: 0.95;
    margin-bottom: var(--space-xl);
    animation: heroFadeIn 1s ease-out 0.2s both;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--white);
    color: var(--ocean-deep);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    border-radius: 50px;
    transition: var(--transition);
    animation: heroFadeIn 1s ease-out 0.4s both;
}

.cta-button:hover {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: var(--transition);
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

/* Sections */
section {
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

section::after {
    content: '';
    display: table;
    clear: both;
}

/* Control Center Section */
.control-center {
    background: var(--white);
    position: relative;
    z-index: 10;
    padding: var(--space-3xl) 0;
}

.control-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.control-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.control-text h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-light);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    color: var(--ocean-deep);
}

.control-text .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray-dark);
    margin-bottom: var(--space-lg);
}

.control-text .subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--gray-dark);
    font-weight: var(--font-weight-light);
}

/* Section Divider */
.section-divider {
    padding: var(--space-xl) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--white);
}

.section-divider.contact-divider {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}

.divider-line {
    width: 100px;
    height: 1px;
    background: var(--gray-light);
    position: relative;
    opacity: 0.5;
}

.divider-line::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 1px;
    background: var(--ocean-deep);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { opacity: 0; width: 40px; }
    50% { opacity: 0.3; width: 60px; }
}

/* Benefits - Clean cards */
.benefits {
    background: var(--off-white);
}

.benefits h2 {
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.benefit-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    border-radius: 12px;
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--cyan);
    stroke-width: 2;
}

/* Remote Service - Split layout */
.remote-service {
    overflow: hidden;
    background: var(--off-white);
    padding: var(--space-4xl) 0;
}

.remote-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.remote-text h2 {
    text-align: left;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    color: var(--cyan);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    opacity: 0.9;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 8px;
    transition: var(--transition);
}

.feature-item:hover {
    /* Removed hover animation for cleaner design */
}

.checkmark {
    color: var(--cyan);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.remote-visual {
    position: relative;
}

.remote-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}


/* Partnership Section */
.partnership {
    background: var(--off-white);
    position: relative;
    z-index: 1;
    padding: var(--space-3xl) 0;
}

.partnership-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.partnership-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.partnership-text h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: var(--font-weight-light);
    margin-bottom: var(--space-xl);
    color: var(--ocean-deep);
    line-height: 1.2;
}

.partnership-text .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray-dark);
    margin-bottom: var(--space-lg);
}

.partnership-text p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--gray-dark);
}

/* Locations - Modern Design */
.locations {
    background: var(--white);
    padding: var(--space-3xl) 0;
}

.locations-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.locations h2 {
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.locations-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
    max-width: 1200px;
    margin: 0 auto;
}

/* Map Container */
.locations-map {
    position: relative;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: var(--gray-light);
}

/* Map iframe styling */
.locations-map iframe {
    filter: grayscale(30%) brightness(0.95);
    transition: filter 0.3s ease;
}

.locations-map:hover iframe {
    filter: grayscale(10%) brightness(1);
}

.map-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.map-marker:hover {
    transform: scale(1.1);
}

/* Position markers on map */
.map-marker.bergen {
    top: 25%;
    left: 50%;
}

.map-marker.stord {
    top: 40%;
    left: 52%;
}

.map-marker.karmoy {
    top: 50%;
    left: 48%;
}

.marker-pin {
    width: 16px;
    height: 16px;
    background: var(--cyan);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.marker-pin.main {
    width: 20px;
    height: 20px;
    background: var(--ocean-blue);
    border: 4px solid var(--white);
}

.marker-pin::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--cyan);
    opacity: 0.2;
    border-radius: 50%;
    animation: markerPulse 2s ease-in-out infinite;
}

.marker-label {
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--ocean-deep);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    white-space: nowrap;
    backdrop-filter: blur(5px);
}

.marker-label small {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: var(--font-weight-regular);
    margin-top: 2px;
}

/* Location Markers */
.location-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.location-marker {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    pointer-events: auto;
    cursor: pointer;
    transition: var(--transition);
}

.marker-dot {
    width: 12px;
    height: 12px;
    background: var(--cyan);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.location-marker.main .marker-dot {
    width: 16px;
    height: 16px;
    background: var(--ocean-blue);
}

.marker-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--cyan);
    opacity: 0.2;
    border-radius: 50%;
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.1; }
}

.marker-label {
    background: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.marker-label small {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: var(--font-weight-regular);
}

/* Locations List */
.locations-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    width: 100%;
}

.location-item {
    padding: var(--space-lg) var(--space-xl);
    background: var(--white);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-item:hover {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.location-item.highlighted {
    background: var(--cyan-light);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 168, 232, 0.2);
}

.map-marker.active .marker-pin {
    transform: scale(1.3);
    box-shadow: 0 4px 16px rgba(0, 168, 232, 0.6);
}

.map-marker.active .marker-label {
    background: var(--cyan);
    color: var(--white);
}

.location-item.main-office {
    background: var(--white);
    border: 2px solid var(--cyan);
    position: relative;
    overflow: hidden;
}

.location-item.main-office::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--cyan);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.location-item h3 {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-xs);
    font-weight: var(--font-weight-medium);
}

.location-item h4 {
    font-size: 1.75rem;
    color: var(--cyan);
    margin-bottom: var(--space-md);
    font-weight: var(--font-weight-light);
    line-height: 1.2;
}

.location-item p {
    margin: 0;
    color: var(--gray-dark);
}

/* Contact */
.contact {
    background: var(--white);
    color: var(--ocean-deep);
    padding: var(--space-2xl) 0 var(--space-3xl) 0;
}

.contact h2 {
    color: var(--ocean-deep);
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: var(--font-weight-light);
    margin-bottom: var(--space-sm);
}

.contact .section-intro {
    color: var(--gray-dark);
    text-align: center;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: var(--space-md);
}

.contact-item {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--off-white);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 168, 232, 0.1);
}

.contact-item h3 {
    color: var(--cyan);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-xs);
}

.contact-item p,
.contact-item a {
    color: var(--ocean-deep);
    font-size: 1.125rem;
}

.emergency-number {
    font-size: 1.75rem;
    color: var(--ocean-deep);
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.01em;
}

.contact-item a {
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--ocean-deep);
    opacity: 0.2;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--cyan);
}

.contact-item a:hover::after {
    opacity: 1;
    background: var(--cyan);
}

/* Form */
.contact-form {
    background: var(--off-white);
    padding: var(--space-xl);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-md);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gray-light);
    color: var(--ocean-deep);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray);
    font-weight: var(--font-weight-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--ocean-deep);
}

.contact-form input.valid,
.contact-form textarea.valid {
    border-bottom-color: #10B981;
}

.contact-form input.error,
.contact-form textarea.error {
    border-bottom-color: #EF4444;
}

.error-message {
    display: block;
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    width: auto;
    padding: var(--space-md) var(--space-xl);
    background: var(--ocean-deep);
    color: var(--white);
    border: none;
    border-radius: 0;
    font-weight: var(--font-weight-regular);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--cyan);
    transition: left 0.3s ease;
    z-index: 0;
}

.submit-button:hover::before {
    left: 0;
}

.submit-button span {
    position: relative;
    z-index: 1;
}

.submit-button:hover {
    transform: none;
}

/* Mobile nav items - MUST be hidden on desktop */
.mobile-only-nav-item {
    display: none !important;
}

/* Login Button */
.login-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    margin-right: 0.8rem;
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-1px);
}

.header.scrolled .login-btn {
    color: var(--ocean-deep);
    border-color: rgba(0, 51, 102, 0.6);
}

.header.scrolled .login-btn:hover {
    background: var(--ocean-deep);
    color: white;
    border-color: var(--ocean-deep);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.3rem;
    margin-left: 1.5rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    font-family: inherit;
    padding: 0.2rem 0.4rem;
    opacity: 0.7;
}

.lang-btn:hover {
    opacity: 1;
}

.lang-btn.active {
    opacity: 1;
    font-weight: 600;
}

.lang-btn .flag {
    display: none;
}

.lang-btn .lang-code {
    display: inline;
    font-weight: inherit;
    font-size: inherit;
    letter-spacing: 0.5px;
    opacity: 1;
}

/* When header is scrolled */
.header.scrolled .lang-btn {
    color: var(--ocean-deep);
    opacity: 0.6;
}

.header.scrolled .lang-btn:hover {
    opacity: 1;
}

.header.scrolled .lang-btn.active {
    opacity: 1;
    font-weight: 600;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .login-btn {
        display: none; /* Skjul login-knappen på mobil for å spare plass */
    }
    
    .language-switcher {
        position: absolute;
        top: 1rem;
        right: 4rem;
        margin-left: 0;
    }
    
    .lang-btn {
        padding: 0.2rem 0.3rem;
        font-size: 0.65rem;
    }
    
    .lang-btn .lang-code {
        display: none;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--ocean-deep);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Footer */
.footer {
    background: var(--off-white);
    color: var(--ocean-deep);
    padding: 120px 0 40px;
    margin-top: 120px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 51, 102, 0.1) 20%, rgba(0, 51, 102, 0.1) 80%, transparent);
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-main {
    margin-bottom: 60px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 24px;
    opacity: 0.9;
}

.footer-logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
    opacity: 0.7;
}

.footer-tagline {
    font-size: 18px;
    color: var(--ocean-deep);
    margin-bottom: 8px;
    font-weight: 300;
    letter-spacing: -0.3px;
}

.footer-highlight {
    font-size: 14px;
    color: var(--cyan);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 12px;
    color: rgba(0, 51, 102, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.contact-value {
    font-size: 16px;
    color: var(--ocean-deep);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

a.contact-value:hover {
    color: var(--cyan);
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: rgba(0, 51, 102, 0.6);
    flex-wrap: wrap;
}

.footer-legal p {
    margin: 0;
}

.separator {
    color: rgba(0, 51, 102, 0.2);
    font-size: 10px;
}

/* Mobile responsive for footer */
@media (max-width: 768px) {
    .footer {
        padding: 80px 0 30px;
        margin-top: 80px;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }
    
    .separator {
        display: none;
    }
}

/* Animations */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Responsive */
@media (max-width: 768px) {
    /* Adjust container padding for mobile */
    .container {
        padding: 0 var(--space-md);
    }
    
    /* Header adjustments */
    .header {
        height: 60px;
    }
    
    .header.scrolled {
        height: 60px;
    }
    
    .logo img {
        height: 45px;
    }
    
    .header.scrolled .logo img {
        height: 40px;
    }
    
    /* Ensure logo switching works on mobile too */
    .logo .logo-white {
        display: block;
        filter: brightness(0) invert(1);
    }
    
    .logo .logo-black {
        display: none;
    }
    
    .header.scrolled .logo .logo-white {
        display: none;
    }
    
    .header.scrolled .logo .logo-black {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--ocean-deep);
        transition: var(--transition);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
    }
    
    .main-nav a {
        color: var(--white);
        font-size: 1.25rem;
    }
    
    /* Show mobile-only items in mobile menu */
    .mobile-only-nav-item {
        display: list-item !important;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
    
    .mobile-only-nav-item:first-of-type {
        margin-top: 3rem;
    }
    
    .mobile-login-link {
        display: inline-block !important;
        padding: 0.75rem 1.5rem;
        background: transparent;
        color: white !important;
        border: 2px solid rgba(255, 255, 255, 0.8);
        border-radius: 25px;
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        text-decoration: none;
        text-align: center;
        width: 200px;
        margin: 0 auto;
    }
    
    .mobile-lang-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }
    
    .mobile-lang-btn {
        background: transparent;
        border: 2px solid rgba(255, 255, 255, 0.5);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-lang-btn.active {
        border-color: white;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-lang-btn:hover {
        border-color: white;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero adjustments */
    .hero {
        padding-top: 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: var(--space-lg);
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.875rem;
    }
    
    /* Section spacing */
    section {
        padding: var(--space-2xl) 0;
    }
    
    /* Typography adjustments */
    h2 {
        font-size: 1.75rem;
        margin-bottom: var(--space-md);
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1.125rem;
        line-height: 1.6;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: var(--space-sm);
    }
    
    /* Control Center */
    .control-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .control-visual {
        order: 2;
    }
    
    .control-text {
        order: 1;
    }
    
    .control-text h2 {
        font-size: 1.75rem;
        margin-bottom: var(--space-lg);
    }
    
    .control-text .lead,
    .control-text .subtitle {
        font-size: 1rem;
    }
    
    /* Remote Service */
    .remote-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .remote-features {
        margin-top: var(--space-md) !important;
    }
    
    .feature-item {
        margin-bottom: var(--space-sm);
        padding: var(--space-xs);
    }
    
    /* Partnership Section - Key fixes */
    .partnership {
        padding: var(--space-2xl) 0;
    }
    
    .partnership-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .partnership-visual {
        order: 2;
        margin-bottom: var(--space-lg);
    }
    
    .partnership-text {
        order: 1;
    }
    
    .partnership-text h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: var(--space-lg);
    }
    
    .partnership-text .lead {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: var(--space-md);
    }
    
    .partnership-text p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    /* Benefits grid */
    .benefits-grid,
    .tech-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    /* Locations */
    .locations {
        padding: var(--space-2xl) 0;
    }
    
    .locations h2 {
        font-size: 1.75rem;
    }
    
    .section-intro {
        font-size: 1rem;
        margin-bottom: var(--space-xl);
    }
    
    .locations-content {
        gap: var(--space-xl);
    }
    
    .locations-list {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .locations-map {
        height: 300px;
        margin-top: var(--space-lg);
    }
    
    .location-item {
        padding: var(--space-md) var(--space-lg);
        min-height: 100px;
    }
    
    .location-item h3 {
        font-size: 0.625rem;
    }
    
    .location-item h4 {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
    }
    
    .location-item p {
        font-size: 0.875rem;
    }
    
    .location-marker {
        font-size: 0.75rem;
    }
    
    /* Contact */
    .contact {
        padding: var(--space-xl) 0 var(--space-2xl) 0;
    }
    
    .contact h2 {
        font-size: 1.75rem;
        margin-bottom: var(--space-xs);
    }
    
    .contact .section-intro {
        font-size: 1rem;
        margin-bottom: var(--space-lg);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-info {
        padding-top: 0;
        margin-bottom: 0;
    }
    
    .contact-item {
        margin-bottom: var(--space-md);
        padding: var(--space-sm);
    }
    
    .contact-item h3 {
        font-size: 0.7rem;
    }
    
    .contact-item p,
    .contact-item a {
        font-size: 1rem;
    }
    
    .emergency-number {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: var(--space-lg);
    }
    
    .contact-form input,
    .contact-form textarea {
        margin-bottom: var(--space-sm);
    }
    
    /* Images */
    .control-visual img,
    .remote-visual img,
    .partnership-visual img {
        transform: none;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    
    /* Team images */
    .team-images {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: 0;
    }
    
    .team-image {
        transform: none !important;
    }
    
    /* Footer */
    /* Clean up any old footer styles */
    
    /* Section dividers */
    .section-divider {
        padding: var(--space-lg) 0;
    }
    
    .section-divider.contact-divider {
        padding: var(--space-xl) 0;
    }
    
    /* Scroll indicator */
    .scroll-indicator {
        bottom: var(--space-lg);
    }
}

/* Extra small devices (phones < 480px) */
@media (max-width: 480px) {
    /* Further reduce padding on very small screens */
    .container {
        padding: 0 var(--space-sm);
    }
    
    /* Hero adjustments for very small screens */
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: var(--space-md);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.813rem;
    }
    
    /* Section headers */
    h2 {
        font-size: 1.5rem;
    }
    
    /* Partnership section - critical fixes for small screens */
    .partnership-text h2 {
        font-size: 1.25rem;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .partnership-text .lead,
    .partnership-text p {
        font-size: 0.875rem;
    }
    
    /* Control center text */
    .control-text h2 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    /* Location items */
    .location-item {
        padding: var(--space-sm) var(--space-md);
        min-height: 80px;
    }
    
    .location-item h4 {
        font-size: 1.25rem;
    }
    
    /* Contact */
    .contact {
        padding: var(--space-lg) 0 var(--space-xl) 0;
    }
    
    .contact h2 {
        font-size: 1.5rem;
    }
    
    .contact .section-intro {
        font-size: 0.9375rem;
        padding: 0 var(--space-sm);
    }
    
    .contact-item {
        padding: var(--space-sm);
    }
    
    .contact-item h3 {
        font-size: 0.625rem;
    }
    
    .contact-item p,
    .contact-item a {
        font-size: 0.9375rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: var(--space-md);
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 0.9375rem;
    }
    
    .emergency-number {
        font-size: 1.25rem;
    }
    
    /* Submit button */
    .submit-button {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.813rem;
        width: 100%;
    }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
}