/* Reset en basis styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    --accent-primary: #ff6b35;
    --accent-secondary: #f7931e;
    --border-color: #d2d2d7;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 16px 40px rgba(0, 0, 0, 0.15);
    
    /* Header variables */
    --header-height: 80px;
    --header-height-scrolled: 60px;
    --header-border-radius: 0 0 20px 20px;
    --header-border-radius-scrolled: 0 0 15px 15px;
}

[data-theme="dark"] {
    /* Dark theme colors */
    --bg-primary: #1c1c1e;
    --bg-secondary: #2c2c2e;
    --bg-tertiary: #3a3a3c;
    --text-primary: #ffffff;
    --text-secondary: #ebebf5;
    --text-tertiary: #8e8e93;
    --accent-primary: #ff6b35;
    --accent-secondary: #f7931e;
    --border-color: #38383a;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 16px 40px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    border-radius: var(--header-border-radius);
    margin: 20px 20px 0 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-light);
}

[data-theme="dark"] .header {
    background: rgba(45, 45, 47, 0.9);
}

.header.scrolled {
    height: var(--header-height-scrolled);
    border-radius: var(--header-border-radius-scrolled);
    margin: 10px 20px 0 20px;
    box-shadow: var(--shadow-medium);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header.scrolled .logo img {
    height: 30px;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
}

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile theme switch adjustments */
@media (max-width: 768px) {
    .theme-switch {
        width: 40px;
        height: 24px;
    }
    
    .theme-switch-slider:before {
        height: 18px;
        width: 18px;
        left: 2px;
        bottom: 2px;
    }
    
    .theme-switch-input:checked + .theme-switch-slider:before {
        transform: translateX(16px);
    }
    
    .theme-switch-icon {
        font-size: 10px;
    }
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    padding: 100px 0 40px;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 0 40px;
    flex: 1;
}

.mobile-nav-link {
    display: block;
    padding: 20px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover {
    color: var(--accent-primary);
    padding-left: 20px;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-menu-actions {
    padding: 40px;
    border-top: 1px solid var(--border-color);
}

.mobile-theme-toggle {
    width: 100%;
    justify-content: flex-start;
    gap: 15px;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.mobile-theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: none;
}

/* Apple-style Theme Switch */
.theme-switch-container {
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
    cursor: pointer;
}

.theme-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-switch-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-switch-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.theme-switch-input:checked + .theme-switch-slider {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
}

.theme-switch-input:checked + .theme-switch-slider:before {
    transform: translateX(20px);
    background: white;
    border-color: var(--accent-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.theme-switch-input:checked + .theme-switch-slider .theme-switch-icon {
    color: white;
}

.theme-switch:hover .theme-switch-slider {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.theme-switch-input:checked:hover + .theme-switch-slider {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
}

.hero.scroll-transition {
    transform: translateY(-30px) scale(0.95);
    opacity: 0.6;
    filter: blur(2px);
}

/* Light mode hero background */
.hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(248, 249, 250, 0.3) 100%), 
                url('img/bg/whitedesktophero.png') center/cover no-repeat;
}

/* Mobile light mode hero background */
@media (max-width: 768px) {
    .hero {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(248, 249, 250, 0.3) 100%), 
                    url('img/bg/whitemobilehero.png') center/cover no-repeat;
    }
}

/* Dark mode hero background */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, rgba(28, 28, 30, 0.4) 0%, rgba(45, 45, 47, 0.4) 100%), 
                url('img/bg/darkmodedesktophero.png') center/cover no-repeat;
}

/* Mobile dark mode hero background */
@media (max-width: 768px) {
    [data-theme="dark"] .hero {
        background: linear-gradient(135deg, rgba(28, 28, 30, 0.4) 0%, rgba(45, 45, 47, 0.4) 100%), 
                    url('img/bg/darkmodemobilehero.png') center/cover no-repeat;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.1;
    position: relative;
    overflow: hidden;
    min-height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2em;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: heroTitleEntrance 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

/* Hero Text Smooth Transition */
.hero-title-dynamic {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}


@keyframes heroTitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-title-static {
    color: #ff6b35;
    background: linear-gradient(135deg, #ff6b35 0%, #ff7a45 12.5%, #ff8c42 25%, #ff9a4f 37.5%, #ffa85c 50%, #ffb366 62.5%, #ffc173 75%, #ffcf80 87.5%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 400% 400%;
    animation: futuristicGradientFlow 8s ease-in-out infinite;
    filter: contrast(1.3) saturate(1.4) brightness(1.1) drop-shadow(0 0 30px rgba(255, 107, 53, 0.3));
    position: relative;
    display: inline-block;
    text-shadow: 
        0 0 20px rgba(255, 107, 53, 0.4),
        0 0 40px rgba(255, 165, 0, 0.2),
        0 0 60px rgba(255, 215, 0, 0.1);
    transform: scale(1.02);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .hero-title-static {
        color: #ff6b35;
        background: none;
        -webkit-text-fill-color: initial;
        text-shadow: 
            0 0 20px rgba(255, 107, 53, 0.4),
            0 0 40px rgba(255, 165, 0, 0.2),
            0 0 60px rgba(255, 215, 0, 0.1);
        filter: contrast(1.3) saturate(1.4) brightness(1.1) drop-shadow(0 0 30px rgba(255, 107, 53, 0.3));
        font-weight: 800;
        letter-spacing: -0.02em;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

[data-theme="dark"] .hero-title-static {
    color: #ff6b35;
    background: linear-gradient(135deg, #ff6b35 0%, #ff7a45 12.5%, #ff8c42 25%, #ff9a4f 37.5%, #ffa85c 50%, #ffb366 62.5%, #ffc173 75%, #ffcf80 87.5%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 400% 400%;
    animation: futuristicGradientFlow 8s ease-in-out infinite;
    text-shadow: 
        0 0 15px rgba(255, 107, 53, 0.3),
        0 0 30px rgba(255, 165, 0, 0.15),
        0 0 45px rgba(255, 215, 0, 0.08);
    filter: contrast(1.2) saturate(1.3) brightness(1.05) drop-shadow(0 0 25px rgba(255, 107, 53, 0.2));
    transform: scale(1.01);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark mode fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    [data-theme="dark"] .hero-title-static {
        color: #ff6b35;
        background: none;
        -webkit-text-fill-color: initial;
        text-shadow: 
            0 0 15px rgba(255, 107, 53, 0.3),
            0 0 30px rgba(255, 165, 0, 0.15),
            0 0 45px rgba(255, 215, 0, 0.08);
        filter: contrast(1.2) saturate(1.3) brightness(1.05) drop-shadow(0 0 25px rgba(255, 107, 53, 0.2));
        font-weight: 800;
        letter-spacing: -0.02em;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}


.hero-title-dynamic {
    color: #ff6b35;
    background: linear-gradient(135deg, #ff6b35 0%, #ff7a45 12.5%, #ff8c42 25%, #ff9a4f 37.5%, #ffa85c 50%, #ffb366 62.5%, #ffc173 75%, #ffcf80 87.5%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 400% 400%;
    animation: futuristicGradientFlow 8s ease-in-out infinite;
    filter: contrast(1.3) saturate(1.4) brightness(1.1) drop-shadow(0 0 30px rgba(255, 107, 53, 0.3));
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: inline-block;
    min-width: 200px;
    text-align: left;
    text-shadow: 
        0 0 20px rgba(255, 107, 53, 0.4),
        0 0 40px rgba(255, 165, 0, 0.2),
        0 0 60px rgba(255, 215, 0, 0.1);
    transform: scale(1.02);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .hero-title-dynamic {
        color: #ff6b35;
        background: none;
        -webkit-text-fill-color: initial;
        text-shadow: 
            0 0 20px rgba(255, 107, 53, 0.4),
            0 0 40px rgba(255, 165, 0, 0.2),
            0 0 60px rgba(255, 215, 0, 0.1);
        filter: contrast(1.3) saturate(1.4) brightness(1.1) drop-shadow(0 0 30px rgba(255, 107, 53, 0.3));
        font-weight: 800;
        letter-spacing: -0.02em;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

[data-theme="dark"] .hero-title-dynamic {
    color: #ff6b35;
    background: linear-gradient(135deg, #ff6b35 0%, #ff7a45 12.5%, #ff8c42 25%, #ff9a4f 37.5%, #ffa85c 50%, #ffb366 62.5%, #ffc173 75%, #ffcf80 87.5%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 400% 400%;
    animation: futuristicGradientFlow 8s ease-in-out infinite;
    text-shadow: 
        0 0 15px rgba(255, 107, 53, 0.3),
        0 0 30px rgba(255, 165, 0, 0.15),
        0 0 45px rgba(255, 215, 0, 0.08);
    filter: contrast(1.2) saturate(1.3) brightness(1.05) drop-shadow(0 0 25px rgba(255, 107, 53, 0.2));
    transform: scale(1.01);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark mode fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    [data-theme="dark"] .hero-title-dynamic {
        color: #ff6b35;
        background: none;
        -webkit-text-fill-color: initial;
        text-shadow: 
            0 0 15px rgba(255, 107, 53, 0.3),
            0 0 30px rgba(255, 165, 0, 0.15),
            0 0 45px rgba(255, 215, 0, 0.08);
        filter: contrast(1.2) saturate(1.3) brightness(1.05) drop-shadow(0 0 25px rgba(255, 107, 53, 0.2));
        font-weight: 800;
        letter-spacing: -0.02em;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}


@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes staticGradientShift {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes futuristicGradientFlow {
    0% {
        background-position: 0% 50%;
        filter: contrast(1.3) saturate(1.4) brightness(1.1) drop-shadow(0 0 30px rgba(255, 107, 53, 0.3));
    }
    16.66% {
        background-position: 25% 25%;
        filter: contrast(1.4) saturate(1.5) brightness(1.15) drop-shadow(0 0 35px rgba(255, 107, 53, 0.4));
    }
    33.33% {
        background-position: 75% 0%;
        filter: contrast(1.5) saturate(1.6) brightness(1.2) drop-shadow(0 0 40px rgba(255, 107, 53, 0.5));
    }
    50% {
        background-position: 100% 75%;
        filter: contrast(1.4) saturate(1.5) brightness(1.15) drop-shadow(0 0 35px rgba(255, 107, 53, 0.4));
    }
    66.66% {
        background-position: 50% 100%;
        filter: contrast(1.3) saturate(1.4) brightness(1.1) drop-shadow(0 0 30px rgba(255, 107, 53, 0.3));
    }
    83.33% {
        background-position: 0% 75%;
        filter: contrast(1.2) saturate(1.3) brightness(1.05) drop-shadow(0 0 25px rgba(255, 107, 53, 0.2));
    }
    100% {
        background-position: 0% 50%;
        filter: contrast(1.3) saturate(1.4) brightness(1.1) drop-shadow(0 0 30px rgba(255, 107, 53, 0.3));
    }
}



.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Hero Counters */
.hero-counters {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 60px;
    z-index: 2;
}

.counter-item {
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.counter-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform, box-shadow;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 
        0 15px 35px rgba(255, 107, 53, 0.4),
        0 8px 20px rgba(255, 107, 53, 0.3),
        0 4px 12px rgba(255, 107, 53, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2),
        inset 2px 0 0 rgba(255, 255, 255, 0.1),
        inset -2px 0 0 rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0) rotateX(0deg) rotateY(0deg);
}

.btn-primary::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.6s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    transform: translateY(-8px) translateZ(20px) rotateX(15deg) rotateY(5deg);
    box-shadow: 
        0 25px 50px rgba(255, 107, 53, 0.5),
        0 15px 35px rgba(255, 107, 53, 0.4),
        0 8px 20px rgba(255, 107, 53, 0.3),
        inset 0 3px 0 rgba(255, 255, 255, 0.4),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2),
        inset 3px 0 0 rgba(255, 255, 255, 0.2),
        inset -3px 0 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-4px) translateZ(10px) rotateX(8deg) rotateY(2deg);
    box-shadow: 
        0 15px 30px rgba(255, 107, 53, 0.4),
        0 8px 20px rgba(255, 107, 53, 0.3),
        0 4px 12px rgba(255, 107, 53, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2),
        inset 2px 0 0 rgba(255, 255, 255, 0.1),
        inset -2px 0 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1),
        inset 2px 0 0 rgba(255, 255, 255, 0.1),
        inset -2px 0 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0) rotateX(0deg) rotateY(0deg);
}

.btn-secondary::before {
    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.6s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-8px) translateZ(20px) rotateX(15deg) rotateY(5deg);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 3px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1),
        inset 3px 0 0 rgba(255, 255, 255, 0.2),
        inset -3px 0 0 rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:active {
    transform: translateY(-4px) translateZ(10px) rotateX(8deg) rotateY(2deg);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1),
        inset 2px 0 0 rgba(255, 255, 255, 0.1),
        inset -2px 0 0 rgba(0, 0, 0, 0.05);
}

/* Projecten Section */
.projecten {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.projecten::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/bg/diensten/whitedesktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.25;
    z-index: 0;
    transform: translateZ(0);
    will-change: transform;
    --base-opacity: 0.25;
}

[data-theme="dark"] .projecten::before {
    background-image: url('img/bg/diensten/darkdesktop.png');
    opacity: 0.35;
    --base-opacity: 0.35;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-primary) 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    line-height: 1.2;
    animation: titleGradientShift 6s ease-in-out infinite;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-primary) 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(1px);
    opacity: 0.3;
    animation: titleGradientShift 6s ease-in-out infinite reverse;
    z-index: -1;
}

@keyframes titleGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 50% 100%;
    }
    75% {
        background-position: 50% 0%;
    }
}

/* Performance optimizations for animations */
.section-title,
.section-subtitle,
.hero-title,
.hero-title-static,
.hero-title-dynamic {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Parallax background variables */
.projecten,
.services,
.reviews,
.about-us {
    --parallax-y: 0px;
    --bg-opacity: 1;
    --bg-scale: 1;
}

.projecten::before,
.services::before,
.reviews::before,
.about-us::before {
    transform: translate3d(0, var(--parallax-y, 0px), 0) scale(var(--bg-scale, 1));
    opacity: calc(var(--bg-opacity, 1) * var(--base-opacity, 1));
    transition: transform 0.1s ease-out, opacity 0.3s ease-out;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .section-title,
    .section-subtitle,
    .hero-title,
    .hero-title-static,
    .hero-title-dynamic {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .projecten::before,
    .services::before,
    .reviews::before,
    .about-us::before {
        background-attachment: scroll !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Mobile optimizations for background performance */
@media (max-width: 768px) {
    .projecten::before,
    .services::before,
    .reviews::before,
    .about-us::before {
        background-attachment: scroll;
        transform: none;
        will-change: auto;
    }
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.2s;
}

.section-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.projecten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.projecten-grid.scroll-visible {
    transform: translateY(0);
    opacity: 1;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.02);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.project-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.02);
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    height: 30px;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-credit {
    display: flex;
    align-items: center;
}

.footer-credit p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.8;
}

.credit-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: inline-block;
}

.credit-link:hover {
    color: var(--accent-secondary);
    transform: translateY(-1px);
}

.credit-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.credit-link:hover::after {
    width: 100%;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--bg-primary);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        margin: 10px 10px 0 10px;
        height: 70px;
    }
    
    .header.scrolled {
        height: 60px;
        margin: 5px 10px 0 10px;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo img {
        height: 35px;
    }
    
    .header.scrolled .logo img {
        height: 25px;
    }
    
    .hero-buttons {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        perspective: 1000px;
        transform-style: preserve-3d;
    }
    
    .btn-primary:hover {
        transform: translateY(-4px) translateZ(10px) rotateX(8deg) rotateY(2deg);
    }
    
    .btn-secondary:hover {
        transform: translateY(-4px) translateZ(10px) rotateX(8deg) rotateY(2deg);
    }
    
    .btn-primary:active {
        transform: translateY(-2px) translateZ(5px) rotateX(4deg) rotateY(1deg);
    }
    
    .btn-secondary:active {
        transform: translateY(-2px) translateZ(5px) rotateX(4deg) rotateY(1deg);
    }
    
    .hero-counters {
        bottom: 120px;
        gap: 40px;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    .counter-label {
        font-size: 0.8rem;
    }
    
    .projecten-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-credit {
        order: -1;
        margin-bottom: 10px;
    }
    
    .footer-credit p {
        font-size: 0.8rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .whatsapp-tooltip {
        right: 65px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .projecten {
        padding: 80px 0;
    }
    
    .projecten::before {
        background-image: url('img/bg/diensten/whitemobile.png');
        background-attachment: scroll;
        opacity: 0.3;
    }
    
    [data-theme="dark"] .projecten::before {
        background-image: url('img/bg/diensten/darkmobile.png');
        opacity: 0.4;
    }
    
    .hero-counters {
        bottom: 100px;
        gap: 30px;
    }
    
    .counter-number {
        font-size: 1.8rem;
    }
    
    .counter-label {
        font-size: 0.75rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    transform: scale(0.8) translateY(50px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-color);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: white;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.modal-close i {
    font-size: 16px;
}

/* Modal Navigation */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: white;
    opacity: 0;
    visibility: hidden;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav i {
    font-size: 18px;
}

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}

.modal-content:hover .modal-nav {
    opacity: 1;
    visibility: visible;
}

/* Progress Indicator */
.modal-progress {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.modal-progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.modal-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: var(--progress, 0%);
}

.modal-progress-dots {
    display: flex;
    gap: 8px;
}

.modal-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-progress-dot.active {
    background: var(--accent-primary);
    transform: scale(1.2);
}

.modal-progress-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.modal-image-container {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modal-info {
    padding: 30px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.modal-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-tags .tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        width: 95vw;
        margin: 20px;
    }
    
    .modal-image-container {
        height: 50vh;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-description {
        font-size: 1rem;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
        opacity: 1;
        visibility: visible;
    }
    
    .modal-nav i {
        font-size: 14px;
    }
    
    .modal-nav-prev {
        left: 10px;
    }
    
    .modal-nav-next {
        right: 10px;
    }
    
    .modal-progress-bar {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 100vw;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .modal-image-container {
        height: 40vh;
    }
    
    .modal-info {
        padding: 15px;
    }
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: visible;
    min-height: auto;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/bg/diensten/whitedesktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: 0;
    transform: translateZ(0);
    will-change: transform;
    --base-opacity: 0.3;
}

[data-theme="dark"] .services::before {
    background-image: url('img/bg/diensten/darkdesktop.png');
    opacity: 0.4;
    --base-opacity: 0.4;
}

.services-container {
    position: relative;
    margin-top: 60px;
    overflow: visible;
    height: auto;
}

.services-grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
    margin: 0 60px;
    height: auto;
    max-height: none;
    cursor: grab;
}

.services-grid::-webkit-scrollbar {
    height: 8px;
}

.services-grid::-webkit-scrollbar-track {
    background: transparent;
}

.services-grid::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.services-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

.services-grid:active {
    cursor: grabbing;
}

.services-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    color: var(--accent-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    box-shadow: var(--shadow-light);
}

.services-nav:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.services-prev {
    left: 0;
}

.services-next {
    right: 0;
}

.service-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: visible;
    display: flex;
    flex: 0 0 350px;
    min-width: 350px;
    flex-direction: column;
    height: auto;
    min-height: 400px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 20px 20px 0 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 28px;
    color: white;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature-tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-card:hover .feature-tag {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    transform: translateY(-2px);
}

.service-actions {
    margin-top: auto;
    padding-top: 20px;
}

.btn-small {
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* Services Mobile CTA */
.services-desktop-cta {
    display: block;
    text-align: center;
    margin-top: 60px;
}

.services-mobile-cta {
    display: none;
    text-align: center;
    margin-top: 40px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Services Responsive */
@media (max-width: 768px) {
    .services {
        padding: 80px 0;
    }
    
    .services::before {
        background-image: url('img/bg/diensten/whitemobile.png');
        background-attachment: scroll;
        opacity: 0.35;
    }
    
    [data-theme="dark"] .services::before {
        background-image: url('img/bg/diensten/darkmobile.png');
        opacity: 0.45;
    }
    
    .services-container {
        margin-top: 40px;
        overflow: visible;
        height: auto;
    }
    
    .services-grid {
        margin: 0 50px;
        gap: 20px;
        overflow-y: hidden;
        height: auto;
        max-height: none;
    }
    
    .services-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .service-card {
        flex: 0 0 280px;
        min-width: 280px;
        padding: 25px 20px;
        min-height: 350px;
        height: auto;
    }
    
    /* Show all service cards on mobile */
    .service-card {
        display: block;
    }
    
    /* Hide desktop CTA button on mobile */
    .services-desktop-cta {
        display: none;
    }
    
    /* Show mobile CTA button */
    .services-mobile-cta {
        display: block;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 24px;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.85rem;
    }
}

/* Reviews Section */
.reviews {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/bg/diensten/whitedesktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.25;
    z-index: 0;
    transform: translateZ(0);
    will-change: transform;
    --base-opacity: 0.25;
}

[data-theme="dark"] .reviews::before {
    background-image: url('img/bg/diensten/darkdesktop.png');
    opacity: 0.3;
    --base-opacity: 0.3;
}

/* Contact Section */
/* About Us Section */
.about-us {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/bg/diensten/whitedesktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.35;
    z-index: 0;
    transform: translateZ(0);
    will-change: transform;
    --base-opacity: 0.35;
}

[data-theme="dark"] .about-us::before {
    background-image: url('img/bg/diensten/darkdesktop.png');
    opacity: 0.45;
    --base-opacity: 0.45;
}

.about-content {
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.about-card {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.about-header {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    padding: 40px;
    text-align: center;
    color: white;
    position: relative;
}

.about-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    font-weight: 600;
}

.company-badge i {
    font-size: 1.2rem;
}

.about-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.about-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

.owners-showcase {
    padding: 50px;
}

.owners-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.owner-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.owner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.owner-image-container {
    text-align: center;
    margin-bottom: 20px;
}

.owner-image {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.owner-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-primary);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.owner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, rgba(247, 147, 30, 0.9) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3;
}

.owner-card:hover .owner-overlay {
    opacity: 1;
}

.owner-stats {
    display: flex;
    gap: 20px;
    color: white;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
}

.owner-info h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.owner-role {
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

.owner-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-tag {
    background: var(--accent-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.company-story {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.story-content h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.story-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
    margin-bottom: 30px;
}

.company-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-top: 5px;
    flex-shrink: 0;
}

.value-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.contact {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: -1;
}

.contact-form-container {
    max-width: 1200px;
    margin: 0 auto 80px;
    background: var(--bg-primary);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.form-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 40px;
    text-align: center;
    color: white;
    position: relative;
}

.form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.form-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.form-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

.form-note {
    font-size: 0.9rem !important;
    opacity: 0.8 !important;
    margin-top: 10px !important;
    font-style: italic;
}

.modern-form {
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(37, 211, 102, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(37, 211, 102, 0.1);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.benefit-item i {
    color: #25D366;
    font-size: 1.1rem;
}

.whatsapp-btn {
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    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;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:active {
    transform: translateY(0);
}

.whatsapp-btn i {
    font-size: 1.3rem;
}

.contact-info-section {
    text-align: center;
}

.contact-info-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

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

.contact-card {
    background: var(--bg-primary);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 120px;
    text-align: center;
    flex-direction: column;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
    color: white;
}

.contact-details {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-details h3,
.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-details p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.contact-details a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: center;
    display: block;
}

.contact-details a:hover {
    color: var(--accent-secondary);
}

/* Contact Form */
.contact-form {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Social Media */
.social-media {
    margin-top: 60px;
    text-align: center;
}

.social-media h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.social-link i {
    font-size: 18px;
}

/* Contact Responsive */
@media (max-width: 768px) {
    .about-us {
        padding: 80px 0;
    }
    
    .about-us::before {
        background-image: url('img/bg/diensten/whitemobile.png');
        background-attachment: scroll;
        opacity: 0.4;
    }
    
    [data-theme="dark"] .about-us::before {
        background-image: url('img/bg/diensten/darkmobile.png');
        opacity: 0.5;
    }
    
    .about-header {
        padding: 30px 20px;
    }
    
    .company-badge {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .about-header h3 {
        font-size: 1.8rem;
    }
    
    .about-subtitle {
        font-size: 1rem;
    }
    
    .owners-showcase {
        padding: 30px 20px;
    }
    
    .owners-container {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .owner-card {
        padding: 25px 20px;
    }
    
    .owner-image img {
        width: 150px;
        height: 150px;
    }
    
    .owner-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .owner-info h4 {
        font-size: 1.3rem;
    }
    
    .owner-role {
        font-size: 0.95rem;
    }
    
    .company-story {
        padding: 30px 20px;
    }
    
    .story-content h4 {
        font-size: 1.4rem;
    }
    
    .story-content p {
        font-size: 1rem;
    }
    
    .company-values {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .value-item {
        padding: 15px;
    }
    
    .value-item i {
        font-size: 1.3rem;
    }
    
    .value-item h5 {
        font-size: 1rem;
    }
    
    .value-item p {
        font-size: 0.85rem;
    }
    
    .reviews {
        padding: 80px 0;
    }
    
    .reviews::before {
        background-image: url('img/bg/diensten/whitemobile.png');
        background-attachment: scroll;
        opacity: 0.3;
    }
    
    [data-theme="dark"] .reviews::before {
        background-image: url('img/bg/diensten/darkmobile.png');
        opacity: 0.4;
    }

    .contact {
        padding: 80px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-container {
        margin-bottom: 60px;
    }
    
    .form-header {
        padding: 30px 20px;
    }
    
    .form-icon {
        width: 60px;
        height: 60px;
    }
    
    .form-icon i {
        font-size: 2rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .modern-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-benefits {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 25px;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        align-items: center;
        justify-content: center;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .contact-details {
        text-align: center;
        align-items: center;
        justify-content: center;
    }
}

/* Reviews Section */

.reviews-carousel {
    position: relative;
    margin-top: 60px;
    overflow: hidden;
    border-radius: 20px;
    z-index: 1;
    display: block;
}

.reviews-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 80px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
    cursor: grab;
}

.reviews-track::-webkit-scrollbar {
    height: 8px;
}

.reviews-track::-webkit-scrollbar-track {
    background: transparent;
}

.reviews-track::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.reviews-track::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

.reviews-track:active {
    cursor: grabbing;
}

.review-card {
    flex: 0 0 350px;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 20px 20px 0 0;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars i {
    color: #ff6b35;
    font-size: 14px;
}

.google-logo {
    width: 60px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.google-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.review-card:hover .google-logo {
    opacity: 1;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    box-shadow: var(--shadow-light);
    z-index: 10;
    flex-shrink: 0;
}

.carousel-nav:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.carousel-nav i {
    font-size: 16px;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Reviews Responsive */
@media (max-width: 768px) {
    .reviews {
        padding: 80px 0;
    }
    
    .review-card {
        flex: 0 0 320px;
        padding: 25px;
    }
    
    .reviews-track {
        gap: 20px;
        padding: 20px 60px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav i {
        font-size: 14px;
    }
    
    .reviews-carousel {
        display: block;
        gap: 0;
    }
    
    .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .carousel-nav:hover {
        transform: translateY(-50%) scale(1.1);
    }
    
    .carousel-prev {
        left: 20px;
        order: unset;
    }
    
    .carousel-next {
        right: 20px;
        order: unset;
    }
    
    .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .google-logo {
        width: 50px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .review-card {
        flex: 0 0 280px;
        padding: 20px;
    }
    
    .reviews-track {
        gap: 15px;
        padding: 20px 50px;
    }
    
    .carousel-prev {
        left: 10px;
        order: unset;
    }
    
    .carousel-next {
        right: 10px;
        order: unset;
    }
    
    .review-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .google-logo {
        align-self: flex-end;
    }
}

/* Form Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.form-message-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

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

/* Page Header Styles */
.page-header {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

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

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

/* All Services Page */
.all-services {
    padding: 80px 0;
    background: var(--bg-secondary);
    overflow: visible;
    min-height: auto;
}

.all-services .services-grid {
    max-width: 1200px;
    margin: 0 auto;
    overflow-y: hidden;
    height: auto;
    max-height: none;
}

@media (max-width: 768px) {
    .all-services {
        padding: 60px 0;
        overflow: visible;
        min-height: auto;
    }
    
    .all-services .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
        overflow-y: hidden;
        height: auto;
        max-height: none;
    }
    
    .all-services .service-card {
        margin-bottom: 20px;
    }
    
    .all-services .service-actions {
        margin-top: 20px;
    }
}

/* Services CTA */
.services-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.services-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.services-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Navigation Active State */
.nav-link.active {
    color: var(--accent-primary);
}

.nav-link.active::after {
    width: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}
