/* 
   AINudeGeneratorNO.love - Norsk AI Nakenbildegenerator Nettside
   Unik norsk design med nordlys-inspirerte elementer og tradisjonelle farger
*/

:root {
    /* Norsk fargepalett */
    --primary: #df1c41; /* Norwegian red */
    --secondary: #00205b; /* Norwegian blue */
    --accent: #ffffff; /* White accent */
    --dark: #222;
    --light: #f5f8ff;
    --bg: #f0f4f9;
    --gradient-primary: linear-gradient(135deg, #df1c41 0%, #fa4066 100%);
    --gradient-secondary: linear-gradient(135deg, #00205b 0%, #0047bb 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--bg);
    overflow-x: hidden;
    position: relative;
}

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

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

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
    font-weight: 700;
}

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

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.5rem;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Nordlys bakgrunn - Unik norsk design element */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0, 32, 91, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
    overflow: hidden;
}

.aurora-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%2300205b' fill-opacity='0.03' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.5;
    animation: aurora 120s linear infinite;
}

@keyframes aurora {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Header & Navigasjon */
header {
    background-color: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

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

.brand {
    display: flex;
    align-items: center;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 0.75rem;
    color: var(--dark);
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(223, 28, 65, 0.1);
    z-index: -1;
    transform: skewX(-10deg);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.nav-button {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(223, 28, 65, 0.25);
    transition: all 0.3s ease;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(223, 28, 65, 0.35);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero seksjon */
.hero {
    padding: 8rem 0 5rem;
    overflow: hidden;
    position: relative;
}

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

.hero-content {
    animation: fadeInLeft 1.2s ease-out forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark);
    opacity: 0.85;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature {
    display: flex;
    align-items: center;
    background: rgba(223, 28, 65, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    color: var(--primary);
}

.hero-button, .cta-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(223, 28, 65, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.hero-button:hover, .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(223, 28, 65, 0.4);
    color: white;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(223, 28, 65, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(223, 28, 65, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(223, 28, 65, 0.3);
    }
}

.hero-visual {
    animation: fadeInRight 1.2s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Nordiske mønster animasjon */
.nordic-pattern {
    width: 100%;
    height: 400px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.nordic-svg {
    width: 100%;
    height: 100%;
    animation: pulse 6s ease-in-out infinite alternate;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-intro {
    max-width: 700px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
    color: var(--dark);
    opacity: 0.75;
}

/* Features seksjon */
.features {
    padding: 8rem 0;
    position: relative;
    background-color: var(--light);
    clip-path: polygon(0 5%, 100% 0%, 100% 95%, 0% 100%);
    margin: 3rem 0;
}

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

.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    border-top: 3px solid transparent;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary);
}

.feature-icon-wrap {
    width: 65px;
    height: 65px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transform: rotate(45deg);
    box-shadow: 0 8px 20px rgba(223, 28, 65, 0.25);
}

.card-icon {
    width: 30px;
    height: 30px;
    color: white;
    transform: rotate(-45deg);
}

.feature-card h3 {
    text-align: center;
}

.feature-card p {
    text-align: center;
    color: var(--dark);
    opacity: 0.8;
    margin-bottom: 0;
}

/* How it works seksjon */
.how-it-works {
    padding: 8rem 0;
    position: relative;
}

.steps {
    max-width: 850px;
    margin: 0 auto;
}

.step-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card:last-child {
    margin-bottom: 3.5rem;
}

/* Norsk fjell-inspirert number design */
.step-number {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    margin-right: 2rem;
    background: var(--gradient-secondary);
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 10px 20px rgba(0, 32, 91, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
}

.step-content {
    flex-grow: 1;
}

.step-content h3 {
    color: var(--secondary);
    margin-bottom: 0.7rem;
}

.center-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Testimonials seksjon */
.testimonials {
    padding: 8rem 0;
    position: relative;
    background-color: var(--light);
    clip-path: polygon(0 5%, 100% 0%, 100% 100%, 0% 100%);
    margin-bottom: -1px;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.testimonial.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.quote {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 4rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.2;
}

.testimonial-text {
    position: relative;
    z-index: 1;
    margin: 1rem 0 2rem;
}

.testimonial-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stars {
    color: #ffaa00;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.author {
    font-weight: 500;
}

/* FAQ seksjon */
.faq {
    padding: 8rem 0;
    position: relative;
    background-color: var(--bg);
}

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

.faq-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    border-left: 4px solid var(--secondary);
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--dark);
    opacity: 0.8;
    margin-bottom: 0;
}

/* Final CTA seksjon */
.final-cta {
    padding: 7rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, #fa4066 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
    clip-path: polygon(0 15%, 100% 0%, 100% 100%, 0% 100%);
}

.final-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0V0zm10 17.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15zM30 0h10v10H30V0zM20 10h10v10H20V10zm10 10h10v10H30V20zM20 30h10v10H20V30zm10 0h10v10H30V30z' fill='%23ffffff' fill-opacity='0.08'/%3E%3C/svg%3E");
    z-index: 0;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.final-cta p {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.final-cta .cta-button {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.final-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
}

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

.footer-brand p {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.7;
}

.footer-logo {
    display: block;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

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

.footer-links ul,
.footer-legal ul {
    padding: 0;
}

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

.footer-links a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--primary);
    padding-left: 5px;
}

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

.keywords {
    margin-top: 1rem;
    font-size: 0.8rem;
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .nordic-pattern {
        height: 350px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: all 0.3s ease;
        z-index: 100;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .features {
        clip-path: polygon(0 2%, 100% 0%, 100% 98%, 0% 100%);
    }
    
    .testimonials {
        clip-path: polygon(0 2%, 100% 0%, 100% 100%, 0% 100%);
    }
    
    .final-cta {
        clip-path: polygon(0 5%, 100% 0%, 100% 100%, 0% 100%);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .nordic-pattern {
        height: 280px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
