/* ===========================================
   CORSAL - Website Styles
   Kleuren gebaseerd op het Corsal logo
   =========================================== */

:root {
    /* Primary colors from logo */
    --primary-blue: #6B8DC4;
    --primary-dark: #5D6A85;
    --primary-darker: #4A5568;

    /* Neutrals */
    --white: #FFFFFF;
    --light-bg: #F7F9FC;
    --light-gray: #E2E8F0;
    --text-dark: #2D3748;
    --text-medium: #4A5568;
    --text-light: #718096;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(107, 141, 196, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(107, 141, 196, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

p {
    color: var(--text-medium);
}

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

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

ul {
    list-style: none;
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107, 141, 196, 0.3);
    color: var(--white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

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

.navbar .logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar .logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-links .btn-nav {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 6px;
}

.nav-links .btn-nav:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(107, 141, 196, 0.4);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?w=1920&h=1080&fit=crop') center/cover;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
    animation: fadeInUp 0.8s ease-out backwards;
}

.badge:nth-child(1) { animation-delay: 0.3s; }
.badge:nth-child(2) { animation-delay: 0.4s; }
.badge:nth-child(3) { animation-delay: 0.5s; }

.badge:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.3);
}

.hero .btn-primary {
    background: var(--white);
    color: var(--primary-dark);
}

.hero .btn-primary:hover {
    color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Section Intro */
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: var(--text-medium);
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(107, 141, 196, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--white);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    animation: pulse 1.5s infinite;
}

.service-card h3 {
    color: var(--primary-dark);
}

/* Experience Section */
.experience {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.experience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.experience-item {
    margin-bottom: 40px;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-item h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.experience-item ul {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.experience-item li {
    color: var(--text-medium);
    padding-left: 16px;
    position: relative;
}

.experience-item li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.experience-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.experience-image:hover img {
    transform: scale(1.05);
}

/* Festival Tags */
.festival-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.festival-tag {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.festival-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 141, 196, 0.3);
}

/* Why Corsal Section */
.why-corsal {
    padding: var(--section-padding);
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.benefit {
    position: relative;
    padding-left: 80px;
}

.benefit:hover .benefit-number {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.benefit-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-gray);
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.benefit h3 {
    color: var(--primary-dark);
    margin-bottom: 8px;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item svg {
    color: var(--primary-blue);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
    color: var(--text-medium);
}

.zzp-notice {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    margin-top: 20px;
}

.zzp-notice p {
    font-size: 0.95rem;
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(107, 141, 196, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.contact-form .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.contact-form .btn-primary:hover::after {
    left: 100%;
}

/* Footer */
.footer {
    background: var(--primary-darker);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.footer-zzp {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Scroll-triggered Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

.animate-on-scroll.from-left {
    transform: translateX(-30px);
}

.animate-on-scroll.from-right {
    transform: translateX(30px);
}

.animate-on-scroll.from-left.animate-in,
.animate-on-scroll.from-right.animate-in {
    transform: translateX(0);
}

.service-card.animate-on-scroll.animate-in { transition-delay: 0s; }
.service-card.animate-on-scroll.animate-in:nth-child(2) { transition-delay: 0.1s; }
.service-card.animate-on-scroll.animate-in:nth-child(3) { transition-delay: 0.2s; }
.service-card.animate-on-scroll.animate-in:nth-child(4) { transition-delay: 0.3s; }

.benefit.animate-on-scroll.animate-in { transition-delay: 0s; }
.benefit.animate-on-scroll.animate-in:nth-child(2) { transition-delay: 0.1s; }
.benefit.animate-on-scroll.animate-in:nth-child(3) { transition-delay: 0.2s; }
.benefit.animate-on-scroll.animate-in:nth-child(4) { transition-delay: 0.3s; }

/* Respect users' motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .experience-content {
        grid-template-columns: 1fr;
    }

    .experience-image {
        order: -1;
        max-height: 400px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .experience-item ul {
        grid-template-columns: 1fr;
    }

    .benefit {
        padding-left: 0;
        padding-top: 50px;
    }

    .benefit-number {
        top: 0;
        left: 0;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .service-card {
        padding: 30px 20px;
    }
}
