/* 
* undresserNO.site - Norwegian AI Website
* Color Scheme: Blue (#0E6BA8), Light Blue (#E7F2F8), Amber (#F2A900)
*/

:root {
    --primary: #0E6BA8;
    --secondary: #F2A900;
    --light: #E7F2F8;
    --dark: #052F4A;
    --white: #FFFFFF;
    --gray: #666666;
    --light-gray: #f5f9fc;
    --text-color: #333333;
    --shadow: 0 8px 30px rgba(14, 107, 168, 0.12);
    --gradient: linear-gradient(135deg, #0E6BA8, #3B99DC);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Header & Navigation */
.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 75vh;
    background: var(--gradient);
    transform: skewY(-5deg);
    transform-origin: top left;
    z-index: -1;
}

header {
    padding: 1.5rem 0;
    position: relative;
    color: var(--white);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-svg {
    margin-right: 10px;
}

.logo span b {
    color: var(--secondary);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--white);
    font-weight: 600;
    position: relative;
}

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

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--white);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    color: var(--white);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-button {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(242, 169, 0, 0.3);
}

.cta-button:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(242, 169, 0, 0.4);
}

.cta-note {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--light-gray);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(14, 107, 168, 0.15);
}

.feature-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
    margin-bottom: 0;
}

/* Wave Divider */
.wave-divider {
    position: relative;
    height: 100px;
    margin-top: -100px;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: var(--white);
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--gray);
    margin-bottom: 0;
}

.step-connector {
    flex: 0 0 50px;
    height: 3px;
    background: var(--light);
    margin-top: 80px;
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
}

.center-btn {
    text-align: center;
}

/* Skew Divider */
.skew-divider {
    height: 80px;
    background: var(--light-gray);
    transform: skewY(-3deg);
    margin-top: -40px;
    margin-bottom: -40px;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: var(--light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    position: relative;
    font-size: 1.1rem;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Testimonial */
.testimonial {
    padding: 5rem 0;
    background: var(--gradient);
    color: var(--white);
    text-align: center;
}

.testimonial-inner {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial h2 {
    margin-bottom: 1rem;
}

.testimonial p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.testimonial .cta-button {
    background: var(--white);
    color: var(--primary);
}

.testimonial .cta-button:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo svg {
    margin-right: 10px;
}

.footer-brand p {
    opacity: 0.7;
}

.footer-links h4, .footer-info h4 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-links h4::after, .footer-info h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--white);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-info p {
    opacity: 0.7;
    margin-bottom: 1rem;
}

.keywords {
    font-size: 0.8rem;
    opacity: 0.4;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

.hero-shape {
    animation: float 6s ease-in-out infinite;
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .cta-wrapper {
        align-items: center;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-card {
        margin-bottom: 2rem;
    }
    
    .step-connector {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 100;
        transition: right 0.3s ease;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin: 1.5rem 0;
    }
    
    .menu-toggle {
        display: block;
        z-index: 101;
    }
    
    .menu-toggle.active .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active .hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .features {
        padding: 4rem 0;
    }
    
    .how-it-works {
        padding: 4rem 0;
    }
    
    .faq {
        padding: 4rem 0;
    }
}

/* JavaScript for interactive elements */
document.addEventListener('DOMContentLoaded', function() {
    // Mobile menu toggle
    const menuToggle = document.querySelector('.menu-toggle');
    const mainNav = document.querySelector('.main-nav');
    
    if (menuToggle) {
        menuToggle.addEventListener('click', function() {
            this.classList.toggle('active');
            mainNav.classList.toggle('active');
        });
    }
    
    // FAQ accordions
    const faqQuestions = document.querySelectorAll('.faq-question');
    
    faqQuestions.forEach(question => {
        question.addEventListener('click', function() {
            const answer = this.nextElementSibling;
            
            // Close all other answers
            document.querySelectorAll('.faq-answer').forEach(item => {
                if (item !== answer) {
                    item.classList.remove('active');
                    item.previousElementSibling.classList.remove('active');
                }
            });
            
            // Toggle current answer
            this.classList.toggle('active');
            answer.classList.toggle('active');
        });
    });
});
