/* ============================================================================
   KRUT VFX - MAIN STYLESHEET
   Colors: Black and Orange
   Fonts: Outfit (Headings), Inter (Body)
============================================================================ */

:root {
    /* Colors */
    --color-bg: #050505; /* Deep black */
    --color-text: #f4f4f5; /* Off-white for better readability */
    --color-text-muted: #a1a1aa;
    --color-primary: #ff5500; /* Vibrant orange */
    --color-primary-hover: #ff7733;

    /* Video Overlay Settings - EDIT OPACITY HERE */
    --video-overlay-color: #000000;
    --video-overlay-opacity: 0.65; /* 0 = completely clear, 1 = completely black */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Geist', sans-serif;

    /* Spacing */
    --section-padding: 8rem 2rem;
    --container-max: 1000px;
}

/* ----------------------------------------------------------------------------
   RESET & BASICS
---------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* ----------------------------------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------------------------------- */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--color-text);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
}

/* ----------------------------------------------------------------------------
   LAYOUT & UTILITIES
---------------------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Scroll Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------------------------------
   LOGO / HEADER
---------------------------------------------------------------------------- */
.logo-container {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    display: inline-block;
    transition: transform 0.3s ease;
}

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

.logo {
    height: 130px; /* Increased size for larger logo */
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}

/* ----------------------------------------------------------------------------
   SECTION 1: HERO
---------------------------------------------------------------------------- */
.section-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--video-overlay-color);
    opacity: var(--video-overlay-opacity);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    text-align: center;
    height: 300px; /* Fixed height to prevent layout jumps during rotation */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Message Item inside Hero */
.hero-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 1.5rem;
    max-width: 900px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-message.active {
    opacity: 1;
    visibility: visible;
}

.hero-headline {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 3rem; /* Ökat avstånd till textplattorna under */
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
    line-height: 1.0;
    text-align: center;
}

.hero-headline span {
    color: var(--color-primary);
}

.hero-description-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem; /* Avstånd mellan plattorna istället för överlappning */
    max-width: 800px;
    margin: 0 auto;
}

.hero-description-plate {
    /* Typsnitt för textplattorna. Prova att avkommentera något av de andra för att testa! */
    /* font-family: 'Space Grotesk', sans-serif; */ /* Modern & lite tech-känsla */
    /* font-family: 'Space Mono', monospace; */ /* Renodlad tech/kod-känsla */
    /* font-family: 'Caveat', cursive; font-size: clamp(1.6rem, 3.2vw, 2.0rem); */ /* Handskriven känsla (lite större) */
    /* font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; */ /* DYMO-etikett-känsla */
    /* font-family: 'Playfair Display', serif; font-style: italic; */ /* Elegant, redaktionell och filmisk känsla */
    /* font-family: 'Syne', sans-serif; */ /* Trendigt, futuristiskt och lite brutalistiskt */
    /* font-family: 'Allerta Stencil', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; */ /* "Krut"-känsla, flightcases och produktion */
    /* font-family: 'Permanent Marker', cursive; */ /* Eltejp och tjock tuschpenna (gaffatejp-känsla) */
    /* font-family: 'VT323', monospace; letter-spacing: 0.05em; */ /* Retro/Terminal/AI-känsla */
    /* font-family: var(--font-body); */ /* Originaltypsnittet (Geist) - Väldigt stilrent */
    font-family: 'Special Elite', cursive; letter-spacing: 0.03em; /* Skrivmaskin / Manus / Hemligt dokument */
    
    font-size: clamp(1rem, 1.8vw, 1.3rem); /* Mindre textstorlek */
    font-weight: 500; /* Medium vikt */
    
    /* Default-färger om inget inline-style sätts */
    color: #ffffff; 
    background-color: #000000;
    
    padding: 0.8rem 1rem; /* Mer padding på höjden (top/bottom), samma på sidorna */
    margin: 0; /* Ingen negativ margin, vi använder gap i containern istället */
    border-radius: 0; /* Skarpa hörn */
    display: inline-block;
    max-width: 600px; /* Blev för smalt med 450px, testar bredare */
    text-wrap: balance; /* Förhindrar ensamma ord (horungar) på sista raden */
    box-shadow: 0 8px 24px rgba(0,0,0,0.15); /* Mycket mjukare och bredare skugga */
    line-height: 1.4;
    transition: transform 0.3s ease;
    z-index: 1; /* Gör så att de kan överlappa varandra snyggt (eller vid hover) */
    position: relative;
}

.hero-description-plate:hover {
    z-index: 10; /* Hamnar överst vid hover */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

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

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: #fff;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ----------------------------------------------------------------------------
   SECTION 2: ABOUT
---------------------------------------------------------------------------- */
.section-about {
    padding: var(--section-padding);
    background: linear-gradient(to bottom, #050505, #111);
    position: relative;
}

.about-content {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content p:first-child {
    font-size: 1.4rem;
    color: var(--color-text);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 2.5rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.team-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-name {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    color: #fff;
}

.team-role {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.contact-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-info p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.email-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    display: inline-block;
}

/* ----------------------------------------------------------------------------
   SECTION 3: FOOTER / INSTAGRAM
---------------------------------------------------------------------------- */
.section-footer {
    padding: 2rem 0 4rem;
    background-color: #000;
    text-align: center;
}

/* Hide Elfsight Free Widget Branding */
[class^="elfsight-app"] a[href*="elfsight"],
[class^="elfsight-app"] > div > a,
.eui-banner,
.eapps-link {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

.instagram-block {
    margin-bottom: 5rem;
}

.instagram-block h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.instagram-feed {
    max-width: 100%;
    margin: 0 0 3rem 0;
    width: 100%;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid rgba(255,255,255,0.2);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.instagram-btn:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 85, 0, 0.2);
}

.footer-bottom {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ----------------------------------------------------------------------------
   RESPONSIVE DESIGN
---------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --section-padding: 5rem 1.5rem;
    }
    
    .logo-container {
        position: absolute;
        top: 2rem;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .logo-container:hover {
        transform: translateX(-50%) scale(1.02);
    }
    
    .logo {
        height: 100px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        font-size: 1rem;
    }
    
    .about-content p:first-child {
        font-size: 1.2rem;
    }
    
    .email-link {
        font-size: 1.5rem;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 10vw, 3.5rem);
        word-break: break-word;
        hyphens: auto;
    }
}

/* Language Toggle Button */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.lang-toggle:hover {
    transform: scale(1.1);
    opacity: 1;
}

.lang-toggle svg {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
