/* ====================================
   DSK SCHILDERWERKEN - MODERN MAKEOVER
   Advanced Scroll Effects & 3D Animations
   ==================================== */

/* === CSS Variables for Easy Customization === */
:root {
    --primary-blue: #009EE2;
    --primary-purple: #312783;
    --accent-gradient: linear-gradient(135deg, #009EE2 0%, #312783 100%);
    --light-bg: #F4F4F4;
    --text-dark: #333;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-3d: 0 30px 80px rgba(0, 0, 0, 0.2);
}

/* === Smooth Scroll Behavior === */
html {
    scroll-behavior: smooth;
}

/* === Enhanced Typography === */
body {
    overflow-x: hidden;
}

.title,
.subtitle,
.chapeau {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.title.aos-animate,
.subtitle.aos-animate,
.chapeau.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* === Modern Gradient Backgrounds === */
.nav {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav.scrolled {
    box-shadow: 0 2px 30px rgba(0,0,0,0.1);
}

/* === 3D Navigation Effects === */
.menu__link {
    position: relative;
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
}

.menu__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.menu__link:hover::after,
.menu__link--active::after {
    width: 100%;
}

@media screen and (min-width: 850px) {
    .menu__link::after {
        top: -5px;
        bottom: auto;
    }
}

.menu__link--button {
    background: var(--accent-gradient);
    transform: perspective(1000px) translateZ(0);
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0, 158, 226, 0.3);
}

.menu__link--button:hover {
    transform: perspective(1000px) translateZ(10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 158, 226, 0.4);
}

/* === Enhanced Header with Parallax === */
.header {
    overflow: hidden;
    position: relative;
}

.header__image {
    transform: scale(1.1);
    transition: transform 0.5s ease-out;
    will-change: transform;
}

.header.parallax-active .header__image {
    animation: parallaxZoom 1s ease-out forwards;
}

@keyframes parallaxZoom {
    to {
        transform: scale(1);
    }
}

/* === 3D Callout Card === */
.callout {
    transform: perspective(1000px) rotateX(0deg);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.callout:hover::before {
    left: 100%;
}

.callout:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.callout__button {
    background: var(--accent-gradient);
    transform: translateZ(20px);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(0, 158, 226, 0.3);
}

.callout__button:hover {
    transform: translateZ(20px) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 158, 226, 0.4);
}

/* === Scroll Reveal Animations === */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* === 3D Rotating Cards for Services === */
.services__item {
    transform: perspective(1000px) translateZ(0);
    transition: var(--transition-smooth);
}

.services__item:hover {
    transform: perspective(1000px) translateZ(10px) scale(1.05);
}

.services__item img {
    filter: drop-shadow(0 5px 10px rgba(0, 158, 226, 0.3));
    transition: var(--transition-smooth);
}

.services__item:hover img {
    filter: drop-shadow(0 8px 20px rgba(0, 158, 226, 0.5));
    transform: rotateY(360deg);
}

.services__background {
    background: linear-gradient(135deg, #F4F4F4 0%, #ffffff 100%);
    box-shadow: var(--shadow-soft);
    transform: perspective(1000px) translateZ(0);
    transition: var(--transition-smooth);
}

.services__background:hover {
    box-shadow: var(--shadow-hover);
}

.services__button {
    background: var(--accent-gradient);
    box-shadow: 0 10px 25px rgba(0, 158, 226, 0.3);
    transition: var(--transition-smooth);
}

.services__button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 158, 226, 0.4);
}

/* === Enhanced Project Cards with 3D Effect === */
.project,
.showreel__item {
    transform: perspective(1000px) translateZ(0);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    border-radius: 0;
    overflow: hidden;
}

.project:hover,
.showreel__item:hover {
    transform: perspective(1000px) translateZ(30px) rotateY(2deg);
    box-shadow: var(--shadow-3d);
}

.project__image,
.showreel__image {
    transition: transform 0.6s ease;
}

.project:hover .project__image,
.showreel__item:hover .showreel__image {
    transform: scale(1.1) rotate(2deg);
}

.project__hover,
.showreel__hover {
    background: linear-gradient(135deg, rgba(0, 158, 226, 0.3), rgba(49, 39, 131, 0.3));
}

.project__details,
.showreel__details {
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.project:hover .project__details,
.showreel__item:hover .showreel__details {
    transform: translateY(0);
    opacity: 1;
}

/* === Floating Animation for Images === */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.founders__image {
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.founders__image:nth-child(1) {
    animation: float 6s ease-in-out infinite;
}

.founders__image:nth-child(2) {
    animation: float 6s ease-in-out infinite 0.5s;
}

.founders__image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 158, 226, 0.4);
}

/* === Enhanced Quote Section === */
.quote {
    padding: 60px 20px;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 158, 226, 0.05) 100%);
    border-left: 5px solid var(--primary-blue);
    transform: perspective(1000px) translateZ(0);
    transition: var(--transition-smooth);
}

.quote:hover {
    transform: perspective(1000px) translateZ(10px);
    border-left-width: 8px;
}

/* === Paragraph Image 3D Flip Effect === */
.paragraph-image {
    position: relative;
}

.paragraph-image__image {
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    transform: perspective(1000px) rotateY(0deg);
}

.paragraph-image:hover .paragraph-image__image {
    box-shadow: var(--shadow-hover);
    transform: perspective(1000px) rotateY(5deg) translateX(-10px);
}

.paragraph-image__button {
    background: var(--accent-gradient);
    box-shadow: 0 10px 25px rgba(0, 158, 226, 0.3);
    transition: var(--transition-smooth);
}

.paragraph-image__button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 158, 226, 0.4);
}

/* === Founders Section Enhancement === */
.founders {
    background: linear-gradient(135deg, #F4F4F4 0%, #ffffff 100%);
    box-shadow: var(--shadow-soft);
    transform: perspective(1000px) translateZ(0);
    transition: var(--transition-smooth);
}

.founders:hover {
    box-shadow: var(--shadow-hover);
}

/* === Specialism Cards === */
.specialism {
    transform: perspective(1000px) translateZ(0);
    transition: var(--transition-smooth);
}

.specialism:hover {
    transform: perspective(1000px) translateZ(10px);
}

.specialism__content {
    background: linear-gradient(135deg, #F4F4F4 0%, #ffffff 100%);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.specialism:hover .specialism__content {
    box-shadow: var(--shadow-hover);
}

.specialism__icon {
    filter: drop-shadow(0 5px 10px rgba(0, 158, 226, 0.3));
    transition: var(--transition-smooth);
}

.specialism:hover .specialism__icon {
    filter: drop-shadow(0 8px 20px rgba(0, 158, 226, 0.5));
    transform: rotateY(360deg);
}

/* === Contact Form Enhancements === */
.contactform__input,
.contactform__input--large,
#message {
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contactform__input:focus,
.contactform__input--large:focus,
#message:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 20px rgba(0, 158, 226, 0.2);
    transform: translateY(-2px);
}

.l-contactform {
    background: linear-gradient(135deg, #F4F4F4 0%, #ffffff 100%);
    box-shadow: var(--shadow-soft);
}

.contactform__submit {
    background: var(--accent-gradient);
    box-shadow: 0 10px 25px rgba(0, 158, 226, 0.3);
    transition: var(--transition-smooth);
}

.contactform__submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 158, 226, 0.4);
}

/* === Footer Enhancements === */
.footer__wrapper {
    background: linear-gradient(135deg, #312783 0%, #1a0f4d 100%);
}

.footer__icon {
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer__icon:hover {
    transform: translateY(-5px) scale(1.2);
}

.footer__icon svg {
    transition: var(--transition-smooth);
}

.footer__icon:hover svg {
    fill: var(--primary-blue);
}

/* === Scroll Progress Bar === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--accent-gradient);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* === Pulse Animation for CTA Buttons === */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 158, 226, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 158, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 158, 226, 0);
    }
}

.callout__button,
.services__button,
.paragraph-image__button {
    animation: pulse 2s infinite;
}

/* === Stagger Animation for Lists === */
.services__item,
.specialism__item,
.footer__item {
    opacity: 0;
    transform: translateX(-20px);
    transition: var(--transition-smooth);
}

.services__item.stagger-animate,
.specialism__item.stagger-animate,
.footer__item.stagger-animate {
    opacity: 1;
    transform: translateX(0);
}

.services__item:nth-child(1) { transition-delay: 0.1s; }
.services__item:nth-child(2) { transition-delay: 0.2s; }
.services__item:nth-child(3) { transition-delay: 0.3s; }
.services__item:nth-child(4) { transition-delay: 0.4s; }
.services__item:nth-child(5) { transition-delay: 0.5s; }
.services__item:nth-child(6) { transition-delay: 0.6s; }

/* === Image Tilt Effect === */
.tilt-effect {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.tilt-effect:hover {
    transform: perspective(1000px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg));
}

/* === Smooth Underline Animation === */
.text-link {
    position: relative;
    display: inline-block;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.text-link:hover::after {
    width: 100%;
}

/* === Glowing Effect for Focus Elements === */
.glow-on-hover {
    transition: var(--transition-smooth);
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(0, 158, 226, 0.6),
                0 0 40px rgba(0, 158, 226, 0.4),
                0 0 60px rgba(0, 158, 226, 0.2);
}

/* === Loading Animation === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* === Diagonal Background Enhancement === */
.header::after,
.footer::before,
.footer::after,
.project::after,
.showreel__item::after {
    filter: drop-shadow(0 -10px 20px rgba(0, 0, 0, 0.1));
}

/* === Improved Responsiveness === */
@media screen and (max-width: 849px) {
    .nav {
        backdrop-filter: none;
    }
    
    .menu {
        background: linear-gradient(90deg, #009EE2 0%, #312783 100%);
        box-shadow: 0 -2px 30px rgba(0, 0, 0, 0.2);
    }
}

/* === Parallax Sections === */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* === Subtle Grid Pattern Overlay === */
.pattern-overlay {
    position: relative;
}

.pattern-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 158, 226, 0.03) 2px, rgba(0, 158, 226, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 158, 226, 0.03) 2px, rgba(0, 158, 226, 0.03) 4px);
    pointer-events: none;
}

/* === Micro-interactions === */
.clickable {
    cursor: pointer;
    user-select: none;
}

.clickable:active {
    transform: scale(0.95);
}

/* === Smooth Color Transitions === */
* {
    transition-property: background-color, color, border-color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Override for elements that need custom transitions */
.nav,
.menu__link,
.project,
.showreel__item,
.services__item {
    transition: var(--transition-smooth);
}
