﻿/* Tidlöst Eko - Warmer, Emotional Color Palette */
:root {
    --primary-bg: linear-gradient(135deg, #E8F4F8 0%, #F5E6E8 100%);
    --secondary-bg: #FFFBF7;
    --card-bg: rgba(255, 251, 247, 0.95);
    --primary-text: #2C3E50;
    --secondary-text: #546E7A;
    --accent-red: #E63946;
    --accent-warm: #FF6B6B;
    --accent-blue: #4A90E2;
    --accent-blue-hover: #357ABD;
    --light-warm: #FFF5F5;
    --shadow-soft: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
}

/* Body styling */
body.index-page {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: var(--primary-bg);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
}

/* Navigation styles 
.navbar-tidlost {
    background: var(--secondary-bg);
    box-shadow: 0 2px 12px var(--shadow-soft);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(230, 57, 70, 0.1);
}

    .navbar-tidlost .navbar-brand {
        color: var(--primary-text) !important;
        font-size: 1.75rem;
        font-weight: 400;
        font-family: Georgia, 'Times New Roman', serif;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        letter-spacing: 0.5px;
        transition: transform 0.3s ease;
    }

        .navbar-tidlost .navbar-brand:hover {
            transform: translateY(-2px);
        }

        .navbar-tidlost .navbar-brand img {
            height: 36px;
            width: auto;
            transition: transform 0.3s ease;
        }

        .navbar-tidlost .navbar-brand:hover img {
            transform: scale(1.08);
        }

    .navbar-tidlost .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }

        .navbar-tidlost .navbar-toggler:focus {
            box-shadow: none;
        }

    .navbar-tidlost .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-tidlost .nav-link {
        color: var(--primary-text) !important;
        font-weight: 500;
        padding: 0.5rem 1rem !important;
        border-radius: 12px;
        transition: all 0.3s;
    }

        .navbar-tidlost .nav-link:hover {
            background: var(--light-warm);
            color: var(--accent-red) !important;
        }
    */
/* Hero Section - More Emotional */
.hero-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 4rem 2rem;
    margin: 3rem auto;
    max-width: 900px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 32px var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--accent-red), var(--accent-warm), var(--accent-red));
    }

    .hero-logo-animated {
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
        animation: float 3s ease-in-out infinite;
    }

        .hero-logo-animated img {
            height: 80px;
            width: auto;
            filter: drop-shadow(0 4px 12px rgba(230, 57, 70, 0.3));
            transition: transform 0.3s ease;
        }

    .hero-section:hover .hero-logo-animated img {
        transform: scale(1.08);
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-15px);
        }
    }

    /* Mobile sizing */
    @media (max-width: 768px) {
        .hero-logo-animated img {
            height: 60px;
        }
    }

    @media (max-width: 480px) {
        .hero-logo-animated img {
            height: 50px;
        }
    }

.hero-section h1 {
    color: var(--primary-text);
    font-size: 3rem;
    font-weight: 400;
    font-family: Georgia, 'Times New Roman', serif;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    line-height: 1.3;
}

.hero-tagline {
    color: var(--accent-red);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.6;
}

.hero-description {
    color: var(--secondary-text);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    line-height: 1.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Video Section - Mobile-Optimized */
.video-section {
    position: relative;
    width: calc(100% - 3rem); /* Ensure padding on sides */
    max-width: 900px; /* Reduced from 1000px */
    margin: 3rem auto;
    background: var(--secondary-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 48px var(--shadow-medium);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #000;
}

    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain; /* Changed from cover to contain to prevent cropping */
        cursor: pointer;
    }

    .video-container.playing video {
        cursor: default;
    }

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.3), rgba(74, 144, 226, 0.3));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-container.playing .video-overlay {
    opacity: 0;
}

.play-button {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    pointer-events: auto;
}

    .play-button:hover {
        transform: scale(1.15);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    }

    .play-button::after {
        content: "";
        width: 0;
        height: 0;
        border-left: 28px solid var(--accent-red);
        border-top: 18px solid transparent;
        border-bottom: 18px solid transparent;
        margin-left: 6px;
    }

.video-text {
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
    padding: 0 2rem;
    text-align: center;
    line-height: 1.4;
    pointer-events: none;
}

/* How it Works Section - Warmer */
.how-it-works {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 4rem 2.5rem;
    margin: 3rem auto;
    max-width: 900px;
    border-radius: 24px;
    box-shadow: 0 8px 32px var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

    .how-it-works h2 {
        color: var(--primary-text);
        font-size: 2.25rem;
        font-weight: 600;
        margin-bottom: 2rem;
        text-align: center;
        position: relative;
        display: inline-block;
        width: 100%;
    }

        .how-it-works h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--accent-red), var(--accent-warm));
            border-radius: 2px;
        }

    .how-it-works p {
        color: var(--secondary-text);
        font-size: 1.15rem;
        line-height: 2;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .how-it-works .highlight {
        color: var(--accent-red);
        font-weight: 600;
    }

/* CTA Button - More Inviting */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-warm) 100%);
    color: white;
    padding: 1.25rem 3.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(230, 57, 70, 0.3);
    margin-top: 1.5rem;
    border: none;
}

    .cta-button:hover {
        background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-red) 100%);
        transform: translateY(-3px);
        box-shadow: 0 8px 32px rgba(230, 57, 70, 0.4);
        color: white;
    }

    .cta-button i {
        margin-right: 0.5rem;
    }

/* Features Section - Softer Cards */
.features {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

    .features h2 {
        text-align: center;
        color: var(--primary-text);
        font-size: 2.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

.features-subtitle {
    text-align: center;
    color: var(--secondary-text);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    font-style: italic;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 6px 24px var(--shadow-soft);
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

    .feature::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--accent-red), var(--accent-warm));
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }

    .feature:hover::before {
        transform: scaleX(1);
    }

    .feature:hover {
        transform: translateY(-12px);
        box-shadow: 0 12px 40px var(--shadow-medium);
    }

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
    transition: transform 0.3s ease;
    display: inline-block;
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature h3 {
    color: var(--primary-text);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.feature p {
    color: var(--secondary-text);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    body.index-page {
        padding-top: 0 !important;
    }
    /*
    .navbar-tidlost .navbar-brand {
        font-size: 1.5rem;
    }

        .navbar-tidlost .navbar-brand img {
            height: 30px;
        }
    */
    .hero-section {
        margin: 1.5rem 1rem;
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }

    .hero-logo-animated img {
        height: 60px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .video-section {
        width: calc(100% - 2rem); /* Smaller margins on mobile */
        margin: 1.5rem auto;
        border-radius: 20px;
        border-width: 2px;
    }

    .video-container {
        padding-top: 56.25%; /* Keep 16:9 on mobile too */
    }

    .play-button {
        width: 70px;
        height: 70px;
    }

        .play-button::after {
            border-left-width: 22px;
            border-top-width: 14px;
            border-bottom-width: 14px;
        }

    .video-text {
        font-size: 1.3rem;
        padding: 0 1rem;
    }

    .how-it-works {
        margin: 1.5rem 1rem;
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }

        .how-it-works h2 {
            font-size: 1.75rem;
        }

        .how-it-works p {
            font-size: 1rem;
        }

    .features {
        padding: 3rem 1rem;
    }

        .features h2 {
            font-size: 1.75rem;
        }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature {
        padding: 2.5rem 2rem;
    }

    .feature-icon {
        font-size: 3.5rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    /*
    .navbar-tidlost .navbar-brand img {
        height: 28px;
    }

        */
    .hero-section {
        padding: 2.5rem 1.25rem;
    }

    .hero-logo-animated img {
        height: 50px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .video-section {
        width: calc(100% - 1rem); /* Even smaller margins on tiny screens */
        margin: 1rem auto;
        border-radius: 16px;
    }

    .video-container {
        padding-top: 56.25%; /* Consistent aspect ratio */
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

        .play-button::after {
            border-left-width: 18px;
            border-top-width: 12px;
            border-bottom-width: 12px;
            margin-left: 4px;
        }

    .video-text {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}