:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}


html {
    scroll-behavior: smooth;
 
    scroll-padding-top: 130px; 
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    
   
    overflow-x: hidden; 
    width: 100%;        
    position: relative;
}

#fiberCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%; 
    background: rgba(5, 5, 5, 0.7); 
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
}

.main-logo {
    height: 90px; 
    width: auto;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.2)); 
}

.main-logo:hover {
    transform: scale(1.08); 
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.8));
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.btn {
    border: none;
    padding: 0;
    margin-left: 2rem;
    font-weight: 600;
    color: var(--text-color);
}
.btn:hover {
    color: var(--primary); 
}


.hero {
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 150px 5% 0; 
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.highlight {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: #cccccc;
}

.btn-primary {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.7);
}


.section-title {
    font-family: var(--font-head);
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
}

section {
    padding: 100px 5%;
}

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


.card {
   
    background: rgba(0, 0, 0, 0.25); 
    
   
    backdrop-filter: blur(5px);    
    -webkit-backdrop-filter: blur(5px);
    
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 2.5rem;
    border-radius: 15px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
}


.card:hover {
    transform: translateY(-7px);
    background: rgba(0, 0, 0, 0.5); 
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.card h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
    

    text-align: center;
}

.sister-company {
    background: rgba(58, 123, 213, 0.15); 
    border: 1px solid rgba(58, 123, 213, 0.3);
}


.products {
 
    background: transparent;
    padding-top: 50px;
}

.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem; 
    flex-wrap: wrap; 
    margin-top: 3rem;
}

.tech-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
}


@keyframes bluePulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.tech-item:hover {
   
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
    animation: bluePulse 1.5s infinite;
}

.partner-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    
  
    filter: brightness(0) invert(1); 
    opacity: 0.8; 
    cursor: pointer;
}
.partner-logo-short {
    height: 60px;
    width: 200px;
    object-fit: contain;
    transition: all 0.4s ease;
    
  
    filter: brightness(0) invert(1); 
    opacity: 0.8; 
    cursor: pointer;
}
.sammarbeid-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    
   
    filter: brightness(0) invert(1); 
    opacity: 0.8; 
    cursor: pointer;
}

.tech-item:hover .partner-logo {
    transform: scale(1.1);
    opacity: 1;

    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(0, 210, 255, 0.8));
}


footer {
    text-align: center;
    padding: 80px 5%;
    background: linear-gradient(to top, #000, rgba(0,0,0,0.8));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h2 {
    font-family: var(--font-head);
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 2rem;
}

.copyright {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #555;
}


@media (max-width: 768px) {
    
  
    .header {
        display: flex;
        flex-direction: column;
        justify-content: center !important;
        align-items: center !important;
        padding: 1rem 0 !important;
        height: auto;
        position: relative; 
    }

    
    .header nav {
        display: none !important;
    }

    
    .logo-container {
        width: 100%;
        display: flex;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }


    .main-logo {
        height: auto !important;   
        width: 70% !important;     
        max-width: 300px;          
        margin: 0 auto !important;
        display: block;
        transform: none !important; 
    }

    
    .hero h1 { 
        font-size: 2.5rem; 
        margin-top: 1rem;
        padding: 0 1rem; 
    }
    
    .tech-logos {
        gap: 2rem;
        flex-direction: column;
    }
} 


.icon-box {
    width: 70px !important;  
    height: 70px !important;
    background: rgba(0, 210, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto; 
    border: 1px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
    transition: all 0.3s ease;
}


.icon-box svg {
    width: 35px !important;  
    height: 35px !important;
    min-width: 35px;         
    max-width: 35px;         
    stroke: var(--primary);
    stroke-width: 2px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.4));
}


.card:hover .icon-box {
    background: rgba(0, 210, 255, 0.2);
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
}

.card:hover .icon-box svg {
    stroke: #ffffff;
    filter: drop-shadow(0 0 10px var(--primary));
}


a.tech-item {
    text-decoration: none;
    cursor: pointer;
}

.info-bar {
    width: 100%;
    position: relative;
    z-index: 10;
    

    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(10px);     
    -webkit-backdrop-filter: blur(10px); 
    
   
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    padding: 80px 5%;
    margin: 4rem 0; 
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 3rem;
}


.info-block.reverse {
    flex-direction: row-reverse;
}

.info-text {
    flex: 1;
}

.info-text h3 {
    font-family: var(--font-head);
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.info-text p {
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 1.1rem;
}

.info-list {
    list-style: none;
    margin-top: 1rem;
}

.info-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    color: #bbb;
}

.info-list li::before {
    content: "►"; 
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 3px;
}

.blue-text { color: var(--primary); font-weight: bold; }
.yellow-text { color: #ffd700; font-weight: bold; }


.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    margin: 4rem 0;
}


.info-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.cyber-img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
    
   
    filter: grayscale(100%) sepia(100%) hue-rotate(170deg) saturate(200%) brightness(0.8);
}

.info-image:hover .cyber-img {
   
    filter: grayscale(0%);
    transform: scale(1.05);
}


@media (max-width: 768px) {
    .info-block, .info-block.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    
    .info-text h3 {
        font-size: 1.8rem;
    }
}
.stats-section {
    padding: 60px 5%;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.stat-item h3 {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary); 
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    margin-bottom: 0.5rem;
}


.stat-item h3::after {
    content: "+";
    font-size: 2rem;
    color: #fff;
    vertical-align: super;
}

.stat-item p {
    font-size: 1.1rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.floating-phone {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary); 
    color: #000; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 2000; 
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
    transition: all 0.3s ease;
    
    
    animation: phonePulse 2s infinite;
}


.floating-phone {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    
    
    border: none; 
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
    
    transition: all 0.3s ease;
    animation: phonePulse 2s infinite;
}


.floating-phone svg {
    width: 30px;  
    height: 30px;
    fill: #000000; 
    display: block;
}


.floating-phone:hover {
    transform: scale(1.1);
    background-color: #ffffff; 
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
}

.floating-phone:hover svg {
    fill: var(--primary); 
}


@keyframes phonePulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

@media (max-width: 768px) {
    .info-bar {
        
        padding: 60px 1rem !important; 
        width: 100% !important;
        box-sizing: border-box; 
    }
    
    .info-container {
        width: 100% !important;
        overflow: hidden; 
    }

   
    .cyber-img {
        max-width: 100%;
        height: auto;
    }
}
/* --- TILLEGG FOR HMS-SIDE (Slider og Grid-fix) --- */

/* 1. Plasserer Kurs & HR i midten under Utstyrskontroll (3 kolonner) */
@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr); /* Låser til 3 kolonner */
    }
    .card-center {
        grid-column: 2; /* Flytter kortet til midtre kolonne */
    }
}

/* 2. De nye smale bilde-sliderne med runde kanter */
.vfo-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;      /* Gjør rammen smalere */
    aspect-ratio: 6 / 5;   /* Gjør rammen høyere (stående format) */
    margin: 0 auto;        /* Sentrerer i kolonnen */
    overflow: hidden;      /* Kutter bildene ved de runde kantene */
    border-radius: 25px;   /* Runde hjørner */
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    background: #000;      /* Bakgrunn bak bildene */
}

.vfo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;     /* Fyller ut hele den høye rammen */
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    border-radius: 25px;
}

.vfo-slide.vfo-active {
    opacity: 1;
}

/* 3. Responsiv justering for mobil-slider */
@media (max-width: 768px) {
    .vfo-slider-wrapper {
        max-width: 320px;  /* Enda smalere på små skjermer */
        aspect-ratio: 3 / 4;
    }
}
/* Stil for tekst-gruppene i kabelproduksjon */
.kabel-item {
    margin-bottom: 2.1rem;
    border-left: 3px solid var(--primary); /* Den blå streken som utheving */
    padding-left: 20px;
    transition: transform 0.3s ease;
}

.kabel-item h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.kabel-item p {
    color: #bbb;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Valgfri: Gjør streken lysere når man holder over teksten */
.kabel-item:hover {
    transform: translateX(5px);
    border-left-color: #fff;
}