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

:root {
    /* Colors */
    --primary-color: #eacbfd;
    --primary-dark: #d4a5f9;
    --primary-light: #f0d7fe;
    --primary-text: #8b5cf6; /* Donkerder paars voor tekst - goed leesbaar */
    --secondary-color: #eacbfd;
    --accent-color: #d4a5f9;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #fcf9ff;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* ========================================
   Container
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Transparant op homepage hero sectie */
.navbar.transparent {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.transparent .logo-text {
    color: white;
}

.navbar.transparent .logo-text span {
    color: var(--primary-color);
}

.navbar.transparent .nav-menu a {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar.transparent .nav-menu a:hover {
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.navbar.transparent .nav-menu a::after {
    background: white;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.navbar.transparent .mobile-menu-toggle span {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .logo-text,
.navbar.scrolled .nav-menu a {
    color: var(--text-dark);
    text-shadow: none;
}

.navbar.scrolled .logo-text span {
    color: var(--primary-text);
}

.navbar.scrolled .nav-menu a::after {
    background: var(--primary-text);
    box-shadow: none;
}

.navbar.scrolled .mobile-menu-toggle span {
    background: var(--text-dark);
    box-shadow: none;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    white-space: nowrap;
    transition: all var(--transition-base);
}

.logo-text span {
    color: var(--primary-text);
    transition: all var(--transition-base);
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: opacity var(--transition-base);
}

.logo-image:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-image {
        height: 40px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }
    
    .logo a {
        gap: var(--spacing-xs);
    }
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: var(--spacing-xs) 0;
    transition: all var(--transition-base);
}

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all var(--transition-base);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }
    
    .nav-menu a {
        color: var(--text-dark);
        text-shadow: none;
    }
    
    .nav-menu a:hover {
        color: var(--primary-text);
        text-shadow: none;
    }
    
    .nav-menu a::after {
        background: var(--primary-text);
        box-shadow: none;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../Fotos/494881904_1294569329337150_1899620579142192178_n.jpg');
    background-size: cover;
    background-position: center 65%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
    animation: fadeIn 1.5s ease-out;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeInOverlay 1s ease-out;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: slideInDown 1s ease-out 0.5s both;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-md);
    color: white;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7), 0 1px 5px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out 0.7s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    z-index: 4;
    pointer-events: none;
}

.hero-scroll-indicator span {
    display: block;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.hero-scroll-indicator .scroll-arrow {
    animation: bounce 2s infinite;
    margin: var(--spacing-xs) auto 0;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: white;
    margin: var(--spacing-xs) auto 0;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

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

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
    box-shadow: 0 0 20px rgba(234, 203, 253, 0.5), 0 4px 15px rgba(234, 203, 253, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark), var(--primary-color));
    border-radius: 10px;
    z-index: -1;
    opacity: 0.6;
    filter: blur(8px);
    animation: pulseGlow 2s ease-in-out infinite;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(234, 203, 253, 0.8), 0 6px 20px rgba(234, 203, 253, 0.5);
    animation: none;
}

.btn-primary:hover::before {
    opacity: 0.9;
    filter: blur(12px);
    animation: none;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(234, 203, 253, 0.5), 0 4px 15px rgba(234, 203, 253, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(234, 203, 253, 0.7), 0 6px 20px rgba(234, 203, 253, 0.5);
    }
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--text-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary-text);
    border-color: var(--primary-text);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
    position: relative;
    box-shadow: 0 4px 15px rgba(234, 203, 253, 0.4);
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(234, 203, 253, 0.6);
}

.service-icon svg {
    width: 35px;
    height: 35px;
    stroke-width: 2.5;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-text);
    line-height: 1.4;
    transition: color var(--transition-base);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-height: 3.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    flex-grow: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card h3 {
        font-size: 1.15rem;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
}

/* ========================================
   About Preview Section
   ======================================== */
.about-preview {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.about-text .btn {
    margin-top: var(--spacing-md);
}

.about-image {
    position: relative;
}

.about-image model-viewer {
    width: 100% !important;
    height: 400px !important;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    --poster-color: rgba(245, 245, 245, 0.8);
    --progress-bar-color: var(--primary-text);
    --progress-mask: rgba(255, 255, 255, 0.9);
    cursor: grab;
    display: block;
    position: relative;
}

.about-image model-viewer:active {
    cursor: grabbing;
}

.about-image model-viewer::part(default-ar-button) {
    background-color: var(--primary-text);
    border-radius: 8px;
    color: white;
}

.about-image model-viewer::part(default-ar-button):hover {
    background-color: var(--primary-dark);
}

/* Loading state */
.about-image model-viewer:not([loaded]) {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

/* Show loading message when model-viewer is not loaded */
.about-image:has(model-viewer:not([loaded]))::after {
    content: 'Laden van 3D model...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary-text);
    font-weight: 600;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.image-placeholder {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.8;
}

.image-placeholder svg {
    width: 120px;
    height: 120px;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image model-viewer {
        height: 300px;
    }
}

/* ========================================
   Reviews Section
   ======================================== */
.reviews {
    background: var(--bg-white);
    padding: var(--spacing-2xl) 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.review-card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.review-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

.review-images {
    display: grid;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    border-radius: 8px;
    overflow: hidden;
}

.review-images:has(img:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

.review-images:has(img:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

.review-images img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform var(--transition-base);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.review-images img:hover {
    transform: scale(1.05);
    z-index: 1;
    position: relative;
    box-shadow: var(--shadow-md);
}

.review-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    font-size: 1rem;
}

.review-author {
    font-weight: 600;
    color: var(--primary-text);
    font-size: 0.95rem;
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .review-images {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .review-images img {
        height: 100px;
    }
}

/* ========================================
   Contact CTA Section
   ======================================== */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.contact-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.contact-cta p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.contact-cta .btn-primary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 4px 15px rgba(255, 255, 255, 0.4);
    animation: pulseGlowWhite 2s ease-in-out infinite;
}

.contact-cta .btn-primary::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(234, 203, 253, 0.6), rgba(255, 255, 255, 0.8));
    opacity: 0.5;
}

.contact-cta .btn-primary:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.8), 0 6px 20px rgba(234, 203, 253, 0.6);
    animation: none;
}

.contact-cta .btn-primary:hover::before {
    opacity: 0.8;
    filter: blur(15px);
}

@keyframes pulseGlowWhite {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 4px 15px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 35px rgba(255, 255, 255, 0.8), 0 6px 20px rgba(255, 255, 255, 0.6);
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
}

.contact-info svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: rgba(255, 255, 255, 0.8);
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.contact-info a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin: var(--spacing-xs) 0;
}

.footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-bottom a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ========================================
   Contact Page
   ======================================== */
/* Contact hero styles moved to animations section below */

.contact-form-section {
    padding: var(--spacing-2xl) 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-card {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 12px;
}

.contact-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--primary-text);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

.contact-info-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
    stroke: var(--primary-text);
}

.contact-info-item a {
    color: var(--primary-text);
    font-weight: 600;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-error-message {
    background: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    animation: fadeIn 0.3s ease-out;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(234, 203, 253, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    font-size: 1rem;
    line-height: 1.6;
}

.form-group textarea:focus {
    min-height: 200px;
}

/* Make message textarea larger when it has content */
.form-group textarea#message {
    min-height: 200px;
    max-height: 500px;
    transition: min-height 0.2s ease, height 0.2s ease;
    overflow-y: auto;
}

.form-group textarea#message:focus {
    min-height: 250px;
}

.form-group textarea#message:not(:placeholder-shown),
.form-group textarea#message.has-content {
    min-height: 280px;
}

/* Form Success Message */
.form-success-message {
    background: linear-gradient(135deg, rgba(234, 203, 253, 0.3) 0%, rgba(252, 249, 255, 0.5) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: var(--spacing-xl);
    text-align: center;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.5s ease-out;
}

.form-success-message .success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.form-success-message .success-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--text-dark);
}

.form-success-message h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.form-success-message p {
    color: var(--text-dark);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

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

/* License Plate Check Styles */
.license-plate-wrapper {
    display: flex;
    gap: var(--spacing-xs);
    align-items: stretch;
}

.license-plate-wrapper input {
    flex: 1;
    margin-bottom: 0;
}

.btn-check {
    padding: 0.875rem 1.5rem;
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    white-space: nowrap;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-weight: 700;
}

.btn-check:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-check:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-check-loader {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.license-plate-info {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: 8px;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease-out;
}

.license-plate-info.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
    padding: var(--spacing-md);
}

.license-plate-info.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.license-plate-info.loading {
    background: rgba(234, 203, 253, 0.2);
    color: var(--primary-dark);
    border: 1px solid var(--primary-color);
}

.license-plate-info.success .vehicle-details {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(16, 185, 129, 0.3);
}

.vehicle-details {
    margin-top: var(--spacing-xs);
    padding-top: var(--spacing-xs);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.vehicle-details strong {
    display: block;
    margin-top: var(--spacing-xs);
    margin-bottom: 2px;
    color: #065f46;
    font-weight: 700;
}

.license-plate-info.success .vehicle-details strong {
    color: #065f46;
}

.vehicle-details span {
    display: block;
    color: inherit;
    opacity: 0.9;
}

.license-plate-info.success .vehicle-details span {
    color: #047857;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .license-plate-wrapper {
        flex-direction: column;
    }
    
    .btn-check {
        width: 100%;
    }
}

/* ========================================
   About Page
   ======================================== */
/* About hero styles moved to animations section below */

.about-content-section {
    padding: var(--spacing-2xl) 0;
}

.about-text-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-text-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

/* About Intro Section */
.about-intro {
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.about-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-text), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* About Section Title */
.about-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    text-align: center;
}

.about-section-description {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Expertise Section */
.about-expertise {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.expertise-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.expertise-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(234, 203, 253, 0.4);
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(234, 203, 253, 0.6);
}

.expertise-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 2.5;
}

.expertise-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-text);
}

.expertise-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Services Beyond Cars Section */
.about-services-beyond {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(234, 203, 253, 0.1) 0%, rgba(252, 249, 255, 0.05) 100%);
    border-radius: 20px;
}

.services-beyond-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.services-beyond-text {
    padding: var(--spacing-md);
}

.services-beyond-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.services-beyond-cta {
    font-weight: 600;
    color: var(--primary-text);
    font-size: 1.125rem;
}

.services-beyond-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.services-beyond-icon {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(234, 203, 253, 0.4);
}

.services-beyond-icon svg {
    width: 100px;
    height: 100px;
    stroke-width: 2;
}

/* Quality Materials Section */
.about-quality {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
}

.quality-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.quality-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.quality-icon {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-text);
    box-shadow: 0 8px 25px rgba(234, 203, 253, 0.3);
}

.quality-icon svg {
    width: 90px;
    height: 90px;
    stroke-width: 2;
}

.quality-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.quality-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.quality-features li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--text-light);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.quality-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-text);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Why Choose Us Section */
.about-why-choose {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
    border-radius: 20px;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.why-choose-item {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-align: center;
    border: 2px solid transparent;
}

.why-choose-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.why-choose-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(234, 203, 253, 0.3);
}

.why-choose-item:hover .why-choose-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(234, 203, 253, 0.5);
}

.why-choose-icon svg {
    width: 35px;
    height: 35px;
    stroke-width: 2.5;
}

.why-choose-item h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-text);
}

.why-choose-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* CTA Section */
.about-cta {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.cta-content .btn-primary {
    background: white;
    color: var(--primary-text);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-content .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 968px) {
    .services-beyond-content,
    .quality-content {
        grid-template-columns: 1fr;
    }
    
    .services-beyond-visual,
    .quality-visual {
        order: -1;
    }
    
    .expertise-grid,
    .why-choose-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .about-intro-text {
        font-size: 1.125rem;
    }
    
    .about-section-description {
        font-size: 1rem;
    }
    
    .expertise-grid,
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .services-beyond-icon,
    .quality-icon {
        width: 150px;
        height: 150px;
    }
    
    .services-beyond-icon svg,
    .quality-icon svg {
        width: 70px;
        height: 70px;
    }
}

/* Only apply animation styles if JavaScript is enabled */
.js-enabled .about-text-content h2 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-content-section.section-visible .about-text-content h2 {
    opacity: 1;
    transform: translateY(0);
}

.about-content-section.section-visible .about-text-content h2:nth-child(1) { transition-delay: 0.1s; }
.about-content-section.section-visible .about-text-content h2:nth-child(2) { transition-delay: 0.2s; }
.about-content-section.section-visible .about-text-content h2:nth-child(3) { transition-delay: 0.3s; }
.about-content-section.section-visible .about-text-content h2:nth-child(4) { transition-delay: 0.4s; }

.about-text-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    font-size: 1.125rem;
}

.js-enabled .about-text-content p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-content-section.section-visible .about-text-content p {
    opacity: 1;
    transform: translateY(0);
}

.about-content-section.section-visible .about-text-content p:nth-of-type(1) { transition-delay: 0.15s; }
.about-content-section.section-visible .about-text-content p:nth-of-type(2) { transition-delay: 0.25s; }
.about-content-section.section-visible .about-text-content p:nth-of-type(3) { transition-delay: 0.35s; }
.about-content-section.section-visible .about-text-content p:nth-of-type(4) { transition-delay: 0.45s; }

/* Expertise cards animation */
.js-enabled .about-text-content div[style*="grid"] {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-content-section.section-visible .about-text-content div[style*="grid"] {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.5s;
}

.js-enabled .about-text-content div[style*="grid"] > div {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.about-content-section.section-visible .about-text-content div[style*="grid"] > div:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.about-content-section.section-visible .about-text-content div[style*="grid"] > div:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.85s;
}

.about-content-section.section-visible .about-text-content div[style*="grid"] > div:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

/* "Waarom Kiezen voor Ons?" box */
.js-enabled .about-text-content div[style*="background: linear-gradient"] {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-content-section.section-visible .about-text-content div[style*="background: linear-gradient"] {
    opacity: 1;
    transform: scale(1);
    transition-delay: 1.1s;
}

.js-enabled .about-text-content div[style*="background: linear-gradient"] li {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.about-content-section.section-visible .about-text-content div[style*="background: linear-gradient"] li:nth-child(1) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 1.3s;
}

.about-content-section.section-visible .about-text-content div[style*="background: linear-gradient"] li:nth-child(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 1.4s;
}

.about-content-section.section-visible .about-text-content div[style*="background: linear-gradient"] li:nth-child(3) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 1.5s;
}

.about-content-section.section-visible .about-text-content div[style*="background: linear-gradient"] li:nth-child(4) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 1.6s;
}

.about-content-section.section-visible .about-text-content div[style*="background: linear-gradient"] li:nth-child(5) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 1.7s;
}

/* CTA button */
.js-enabled .about-text-content .btn-primary {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.about-content-section.section-visible .about-text-content .btn-primary {
    opacity: 1;
    transform: scale(1);
    transition-delay: 1.8s;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-light);
}

.js-enabled .gallery-item {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.gallery-section.gallery-visible .gallery-item:nth-child(1) {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.1s;
}

.gallery-section.gallery-visible .gallery-item:nth-child(2) {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

.gallery-section.gallery-visible .gallery-item:nth-child(3) {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.3s;
}

.gallery-section.gallery-visible .gallery-item:nth-child(4) {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.4s;
}

.gallery-section.gallery-visible .gallery-item:nth-child(5) {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.5s;
}

.gallery-section.gallery-visible .gallery-item:nth-child(6) {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.6s;
}

.gallery-section.gallery-visible .gallery-item:nth-child(7) {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.7s;
}

.gallery-section.gallery-visible .gallery-item:nth-child(8) {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.8s;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(234, 203, 253, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 2.5rem;
    color: white;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
    z-index: 10001;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-content img {
        max-height: 85vh;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-5deg) scale(0.95);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards;
}

.scale-in {
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

.rotate-in {
    opacity: 0;
    animation: rotateIn 0.7s ease-out forwards;
}

/* Staggered animations for lists */
.animate-stagger > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.6s; }
.animate-stagger > *:nth-child(7) { animation-delay: 0.7s; }
.animate-stagger > *:nth-child(8) { animation-delay: 0.8s; }

/* Hero section animations for about and contact pages */
.about-hero,
.contact-hero {
    position: relative;
    padding: calc(var(--spacing-2xl) + 80px) 0 var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.about-hero {
    background-image: url('../Fotos/557709411_1436182075175874_3307290894739476596_n.jpg');
}

.contact-hero {
    background-image: url('../Fotos/487702652_1263506932443390_791947956711222357_n.jpg');
}

.about-hero::before,
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeInOverlay 1s ease-out;
    z-index: 1;
}

.about-hero .container,
.contact-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero h1,
.contact-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    animation: slideInDown 1s ease-out 0.3s both;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about-hero p,
.contact-hero p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    animation: slideInUp 1s ease-out 0.5s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Mobile optimization for hero backgrounds */
@media (max-width: 768px) {
    .about-hero,
    .contact-hero {
        background-attachment: scroll;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

