/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette - Nordic Tech Theme */
    --primary-color: #0066cc;      /* Vibrant Blue */
    --primary-dark: #004c99;       /* Darker Blue for hover */
    --secondary-color: #0b0f19;    /* Very Dark Blue/Black background */
    --accent-color: #00d4ff;       /* Cyan highlight */
    --text-light: #f4f4f4;
    --text-dark: #333333;
    --text-gray: #a0a0a0;
    --white: #ffffff;
    
    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
}
/* senast */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.6s ease;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. NAVIGATION BAR
   ========================================= */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
    margin-left: 7px;  /* <--- LÄGG TILL DENNA RAD */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
    position: relative;
}

/* Hover underline animation */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.6s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%; /* Below the parent */
    left: 0;
    background: var(--white);
    width: 220px;
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.6s ease;
    border-top: 3px solid var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.dropdown-menu li a:hover {
    background-color: #f0f8ff;
    color: var(--primary-color);
}

.dropdown-menu li a::after {
    display: none; /* No underline for dropdown items */
}

/* Nav Actions (Buttons & Toggle) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-toggle {
    display: flex;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.lang-opt {
    color: var(--text-gray);
    transition: color 0.6s;
}

.lang-opt.active, .lang-opt:hover {
    color: var(--primary-color);
}

.divider {
    color: var(--text-gray);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    height: 90vh; /* Almost full screen */
    background: var(--secondary-color);
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    z-index: 1;
}

/* Background "Wow" Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -50px;
    right: -50px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-content {
    max-width: 800px;
    text-align: left; /* Or center if you prefer */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.hero h1 .highlight {
    color: transparent;
    background: linear-gradient(90deg, var(--accent-color), var(--white));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.3s; /* Delay */
}

.hero-btns {
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.6s; /* Delay */
    display: flex;
    gap: 15px;
}

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--secondary-color);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   4. STATS SECTION
   ========================================= */
.stats {
    background: var(--white);
    padding: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
    margin-top: -50px; /* Overlaps Hero slightly */
    border-radius: 8px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    display: inline-block;
}

.stat-item span {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-item p {
    font-weight: 600;
    color: var(--text-dark);
}

/* =========================================
   5. ABOUT SNIPPET
   ========================================= */
.section-padding {
    padding: var(--section-padding);
}

.sub-heading {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.about-snippet .row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.col-half {
    flex: 1;
}

.about-snippet h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-snippet p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    gap: 15px; /* Arrow moves */
}

.img-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.placeholder-img {
    width: 100%;
    height: 400px;
    background: #e0e0e0; /* Gray placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #888;
    background: linear-gradient(45deg, #f3f3f3, #e2e2e2);
}

/* =========================================
   6. SERVICES SECTION (Dark Theme)
   ========================================= */
.bg-dark {
    background-color: var(--secondary-color);
    color: var(--white);
}

.section-header.center {
    text-align: center;
    margin-bottom: 60px;
}

.bg-dark .sub-heading {
    color: var(--accent-color);
}

.bg-dark h2 {
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #161b29; /* Slightly lighter than bg */
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.6s ease;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Glow & Lift */
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-card a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-card a i {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: margin-left 0.6s;
}

.service-card:hover a i {
    margin-left: 10px;
}

/* =========================================
   7. TESTIMONIALS
   ========================================= */
.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto; /* Allow scroll if needed, or wrap */
    padding-bottom: 20px;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
}

.testimonial-card .quote {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.client-info h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 3px;
}

.client-info span {
    font-size: 0.85rem;
    color: #777;
}

/* =========================================
   8. CTA BANNER
   ========================================= */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color), #004c99);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-banner .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-banner .btn-primary:hover {
    background: var(--text-light);
    transform: translateY(-2px);
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col h3 span {
    color: var(--primary-color);
    margin-left: 7px; /* <--- Lägg till denna för mellanrum i footern */
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px; /* Slide effect */
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-list li i {
    color: var(--primary-color);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.6s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* =========================================
   10. RESPONSIVE (Mobile)
   ========================================= */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    /* Nav */
    .menu-toggle { display: block; color: var(--secondary-color); }
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.6s ease;
    }
    .nav-links.active { right: 0; }
    
    .nav-actions .btn-primary, .lang-toggle {
        display: none; /* Simplify nav on mobile for now */
    }

    /* Hero */
    .hero { height: auto; padding: 100px 0 60px; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-btns { justify-content: center; }
    
    /* Stats */
    .stats { margin-top: 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }

    /* About */
    .about-snippet .row { flex-direction: column; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
/* =========================================
   FAQ SECTION
   ========================================= */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Två kolumner */
    gap: 30px;
    margin-top: 40px;
}

.faq-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.6s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.faq-item h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Mobil: En kolumn */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    /* --- FIXED: Mobile Dropdown (Slower & Centered) --- */
    
    /* 1. Keep 'Services' centered */
    .dropdown {
        width: 100%;           
        text-align: center;    
    }

    /* 2. Dropdown Menu Style */
    .dropdown-menu {
        position: static;      
        width: 100%;           
        box-shadow: none;      
        border-top: none;      
        transform: none;       
        background-color: #f8f9fa; 
        
        /* Animation Logic */
        display: block;        
        max-height: 0;         
        overflow: hidden;      
        opacity: 0;            
        padding: 0;            
        
        /* CHANGED HERE: 0.5s -> 0.8s for a slower, smoother slide */
        transition: max-height 0.7s ease-in-out, opacity 0.7s ease-in-out, padding 0.7s ease;
    }

    /* 3. Open State */
    .dropdown:hover .dropdown-menu {
        max-height: 500px;     
        opacity: 1;            
        padding: 10px 0;       
    }
    
    /* 4. Sub-links centered */
    .dropdown-menu li a {
        text-align: center;    
        padding: 10px 0;
        font-size: 0.9rem;
        color: #555;
    }
    
    .dropdown-menu li a:hover {
        background-color: #e9ecef;
        color: var(--primary-color);
    }
}
/* =========================================
   MODERN LOGO STYLE: SLIM YELLOW LINE - ta bort denna kod om du inte gillar logo namnet på det sättet
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&display=swap');

/* Grundstilen för loggan (Gäller både Header och Footer) */
.logo {
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -1px;
}

/* NORDIC IT (Fet stil) */
.logo-nit {
    font-weight: 700;
    font-size: 1.8rem;
    color: #005293; /* Din blå färg */
}

/* SOLUTIONS (Tunnare stil + Gul linje) */
.logo-sol {
    font-weight: 400;
    font-size: 1.8rem;
    color: #005293; /* Din blå färg */
    position: relative; /* Krävs för att linjen ska hamna rätt */
    line-height: 1;
}

/* DEN GULA LINJEN (Gemensam för alla) */
.logo-sol::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    
    /* JUSTERINGAR DU BAD OM: */
    bottom: -5px;  /* Flyttar ner linjen så den hamnar UNDER texten */
    height: 3px;   /* Gör linjen slimmare/tunnare */
    
    background-color: #FECB00; /* Din gula färg */
    border-radius: 2px; /* Lite mjuka kanter på linjen */
}

/* === FOOTER JUSTERING (För läsbarhet) === */
/* Eftersom footern är mörkgrå syns inte blå text där. 
   Denna kod gör texten vit i footern, MEN behåller den gula linjen exakt likadan. */
footer .logo-nit,
footer .logo-sol {
    color: #ffffff; 
}
/* Om du absolut vill ha blå text i footern (även om det syns dåligt),
   radera raderna ovan (footer .logo-nit...) */
   /* === ABSTRACT TECH CARD (Ersätter bilden) === */
.abstract-tech-card {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Ser till att den är lika hög som texten bredvid */
    background: linear-gradient(145deg, #1a1a1a, #2c3e50); /* Mörkgrå/Blå tech-ton */
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
}

.tech-content {
    text-align: center;
    z-index: 2; /* Ligger ovanpå dekorationen */
}

.tech-content h3 {
    font-family: 'Space Grotesk', sans-serif; /* Samma font som loggan */
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Det gula strecket i mitten */
.tech-divider {
    width: 60px;
    height: 4px;
    background: #FECB00;
    margin: 15px auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(254, 203, 0, 0.4); /* Lite glöd */
}

/* --- DEKORATION (Ser ut som "kod" eller "servrar" i bakgrunden) --- */
.tech-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1; /* Väldigt subtilt */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 20px;
}

/* Skapar ränderna i bakgrunden */
.tech-decoration span {
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    width: 80%;
    margin: 0 auto;
}

.tech-decoration span:nth-child(2) { width: 60%; opacity: 0.5; }
.tech-decoration span:nth-child(3) { width: 90%; opacity: 0.3; }
/* === TECH CARD DESIGN === */
.abstract-tech-card {
    width: 100%;
    height: 400px;
    background: linear-gradient(145deg, #1a1a1a, #2c3e50);
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
}

.tech-content {
    text-align: center;
    z-index: 2;
}

.tech-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-divider {
    width: 60px;
    height: 4px;
    background: #FECB00;
    margin: 15px auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(254, 203, 0, 0.4);
}

.tech-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 20px;
}

.tech-decoration span {
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    width: 100%;
}