@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }

    /* Blob animation for background */
    @keyframes blob {
        0% { transform: translate(0px, 0px) scale(1); }
        33% { transform: translate(30px, -50px) scale(1.1); }
        66% { transform: translate(-20px, 20px) scale(0.9); }
        100% { transform: translate(0px, 0px) scale(1); }
    }

    .animate-blob {
        animation: blob 7s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }
    .animation-delay-2000 { animation-delay: 2s; }

    /* Fade-in animations for content */
    @keyframes fade-in-down {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .animate-fade-in-down { animation: fade-in-down 0.7s ease-out forwards; }

    @keyframes fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    .animate-fade-in { animation: fade-in 0.8s ease-out forwards; }
    .animation-delay-300 { animation-delay: 0.3s; }
    .animation-delay-500 { animation-delay: 0.5s; }

    @keyframes fade-in-left {
        from { opacity: 0; transform: translateX(-50px); }
        to { opacity: 1; transform: translateX(0); }
    }
    .animate-fade-in-left { animation: fade-in-left 0.7s ease-out forwards; }

    @keyframes fade-in-right {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0); }
    }
    .animate-fade-in-right { animation: fade-in-right 0.7s ease-out forwards; }
    .animation-delay-100 { animation-delay: 0.1s; }
    .animation-delay-200 { animation-delay: 0.2s; }
    .animation-delay-300 { animation-delay: 0.3s; } /* For benefit item 4 */

    /* Checklist "drawing" animation on hover */
    .checklist-check .check-line {
        stroke-dasharray: 30; /* Adjust this value if your checkmark is longer/shorter */
        stroke-dashoffset: 30;
        transition: stroke-dashoffset 0.3s ease-out;
    }

    .group:hover .checklist-check .check-line {
        stroke-dashoffset: 0;
    }

    /* Sequential Checkmark Animation for Why Choose Us Section */
    .checkmark-circle {
        transition: all 0.6s ease-out;
    }

    .checkmark-svg {
        transition: all 0.4s ease-out;
    }

    .checkmark-path {
        stroke-dasharray: 20;
        stroke-dashoffset: 20;
        transition: stroke-dashoffset 0.8s ease-out;
    }

    /* Animation states */
    .checkmark-circle.animate-check {
        opacity: 1 !important;
        transform: scale(1.1);
        animation: checkmarkPop 0.6s ease-out forwards;
    }

    .checkmark-svg.animate-check {
        opacity: 1 !important;
    }

    .checkmark-path.animate-check {
        stroke-dashoffset: 0;
        animation: checkmarkDraw 0.8s ease-out forwards;
    }

    @keyframes checkmarkPop {
        0% { 
            transform: scale(0.8); 
            opacity: 0.3; 
        }
        50% { 
            transform: scale(1.2); 
            opacity: 0.8; 
        }
        100% { 
            transform: scale(1); 
            opacity: 1; 
        }
    }

    @keyframes checkmarkDraw {
        0% {
            stroke-dashoffset: 20;
        }
        100% {
            stroke-dashoffset: 0;
        }
    }

/* Why Choose Us Section - Same styling as Offer Section */
.why-choose-section {
    background: linear-gradient(135deg, var(--glacier-blue), var(--windy-sky));
    color: white;
    position: relative;
    overflow: hidden;
}

.why-choose-section::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="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.15)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

:root {
    --primary-color: #1A5F7A; /* Main brand base */
    --accent-color: #43C6AC;  /* Accent / highlight */
    --dark-color: #17252A;    /* Primary text on light */
    --light-color: #FEFFFF;   /* Text on dark / panels */
    --bg-light-1: #F1F7F8;    /* Section background A */
    --bg-light-2: #E6EBED;    /* Section background B */
    --shadow-color: rgba(23, 37, 42, 0.15);
    /* Legacy variable aliases (keep old references working) */
    --glacier-blue: var(--primary-color);
    --windy-sky: var(--accent-color);
    --deep-ice: var(--dark-color);
    --snow-white: var(--light-color);
    --light-bg-1: var(--bg-light-1);
    --light-bg-2: var(--bg-light-2);
}

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

/* (Removed custom utility classes in favor of Tailwind CDN tw- prefixed utilities) */

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--deep-ice);
    background-color: transparent; /* Allow video to show through */
    overflow-x: hidden;
}

.perspective-container {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    perspective: 1000px;
    scroll-behavior: smooth;
}

.scroll-content {
    transform-style: preserve-3d;
}

.cursor-trail {
    display: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* HEADER */
header {
    position: fixed;
    z-index: 1000;
    width: 100%;
    padding: 1rem 0;
    transition: background 0.4s ease-out, box-shadow 0.4s ease-out, padding 0.4s ease-out, transform 0.3s ease;
}

/* Default header state - white navigation */
header nav ul li a {
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important;
}

/* Ensure white text for non-scrolled header with maximum specificity */
html body header:not(.scrolled) nav ul li a,
html body header nav ul li a {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
}

html body header:not(.scrolled) nav ul li a:hover,
html body header nav ul li a:hover {
    color: #43C6AC !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
}

header.header-hidden {
    transform: translateY(-100%); /* Slide up and hide */
}

header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 0.5rem 0;
}

/* Scrolled header - dark navigation with maximum specificity */
html body header.scrolled nav ul li a {
    color: #17252A !important;
    text-shadow: none !important;
    font-weight: 600 !important;
}

html body header.scrolled nav ul li a::after {
    background: #1A5F7A !important;
}

html body header.scrolled nav ul li a:hover {
    color: #1A5F7A !important;
}

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

.logo img {
    height: 80px; 
    display: block;
    transition: height 0.4s ease-out;
}

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

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff !important;
    transition: width 0.3s ease;
}

/* White underline for non-scrolled header */
body header:not(.scrolled) nav ul li a::after {
    background: #ffffff !important;
}

/* Override body color inheritance for navigation */
header nav ul li a,
header nav ul li a:link,
header nav ul li a:visited {
    color: #ffffff !important;
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--snow-white);
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    filter: blur(2px);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 60, 90, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 4rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-content:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Hero Carousel (full feature) */
.hero-carousel { position:absolute; inset:0; width:100%; height:100%; overflow:hidden; z-index:1; }
.hero-carousel:before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 50% 50%, rgba(0,0,0,0.10), rgba(0,0,0,0.48)); z-index:2; pointer-events:none; mix-blend-mode:normal; }
.hero-carousel .carousel-slide { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transform:scale(1.12) translate3d(0,0,0); transition:opacity 1.2s ease, transform 3.4s cubic-bezier(.22,.61,.36,1); filter:brightness(.75) contrast(1.05) saturate(1.06); }
/* Static active slide with full visibility & 3D glow */
.hero-carousel .carousel-slide.active { opacity:1; transform:scale(1) translate3d(0,0,0); filter:brightness(.95) contrast(1.05) saturate(1.08); box-shadow:0 12px 32px -8px rgba(0,0,0,0.6),0 0 0 1px rgba(255,255,255,0.18),0 0 42px -6px rgba(66,198,172,0.5); }
.hero-carousel .carousel-slide.exiting { opacity:0; transform:scale(1.02) translate3d(0,0,0); filter:brightness(.75) contrast(.92) blur(.6px); transition:opacity .8s ease, transform 1.2s ease, filter 1.2s ease; }

/* Hover enhancement for desktop */
@media (hover:hover) and (pointer:fine) {
    .hero-carousel:hover .carousel-slide.active { box-shadow:0 18px 46px -10px rgba(0,0,0,0.65),0 0 0 1px rgba(255,255,255,0.22),0 0 56px -6px rgba(66,198,172,0.65); filter:brightness(1) contrast(1.07) saturate(1.1); }
}

/* Controls */
.carousel-control { position:absolute; top:50%; transform:translateY(-50%); z-index:5; background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,0.35); color:#fff; width:54px; height:54px; display:flex; align-items:center; justify-content:center; font-size:2rem; font-weight:300; border-radius:50%; cursor:pointer; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); transition:background .3s, transform .3s, box-shadow .3s; }
.carousel-control:hover { background:rgba(255,255,255,0.3); box-shadow:0 8px 24px rgba(0,0,0,0.25); transform:translateY(-50%) scale(1.07); }
.carousel-control:active { transform:translateY(-50%) scale(.92); }
.carousel-control.prev { left:2rem; }
.carousel-control.next { right:2rem; }

/* Dots */
.carousel-dots { position:absolute; bottom:2rem; left:50%; transform:translateX(-50%); display:flex; gap:.75rem; z-index:6; }
.carousel-dots button { width:14px; height:14px; border-radius:50%; background:rgba(255,255,255,0.35); border:2px solid rgba(255,255,255,0.6); cursor:pointer; padding:0; transition:background .4s, transform .4s, box-shadow .4s; position:relative; }
.carousel-dots button[aria-selected="true"] { background:linear-gradient(135deg,var(--primary-color),var(--accent-color)); box-shadow:0 0 0 4px rgba(255,255,255,0.35),0 6px 18px -4px rgba(0,0,0,0.45); transform:scale(1.3) rotate(15deg); }
.carousel-dots button:focus-visible { outline:2px solid #fff; outline-offset:3px; }

/* Accessibility helpers (visually hidden) */
.visually-hidden { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0 0 0 0) !important; white-space:nowrap !important; border:0 !important; }

/* Ensure video is beneath carousel */
.video-overlay { z-index:0; }

/* Mobile swipe hint */
.swipe-hint { position:absolute; bottom:5.5rem; left:50%; transform:translateX(-50%); display:flex; flex-direction:row; align-items:center; gap:.5rem; padding:.55rem .9rem; background:rgba(0,0,0,0.35); color:#fff; font-size:.75rem; letter-spacing:.5px; border:1px solid rgba(255,255,255,0.25); border-radius:40px; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); opacity:0; animation:swipeHintFade 6s ease forwards; z-index:7; }
.swipe-hint .swipe-icon { font-size:1rem; animation:swipeIcon 1.8s ease-in-out infinite; }
@keyframes swipeIcon { 0%,100% { transform:translateX(-6px); opacity:.7;} 50% { transform:translateX(6px); opacity:1;} }
@keyframes swipeHintFade { 0% { opacity:0; transform:translate(-50%, 10px);} 12% { opacity:1; transform:translate(-50%,0);} 70% { opacity:1;} 100% { opacity:0; transform:translate(-50%,0);} }
@media (min-width: 801px){ .swipe-hint { display:none; } }

/* Hero main title (bold & visible) */
.hero h1 { font-size:5rem; font-weight:800; text-shadow:0 5px 20px rgba(0,0,0,0.55); letter-spacing:.04em; }

/* Original freezing letter animation */
.freezing-text span { display:inline-block; animation:freeze 1s forwards; }

/* Tagline & description: bold & always visible */
.hero-tagline { font-weight:800; color:var(--snow-white); }
.hero-desc { font-weight:800; color:var(--snow-white); opacity:1; }
@media (max-width:640px){ .hero-tagline, .hero-desc { color:#fff; } }

@keyframes freeze {
    from {
        color: transparent;
        text-shadow: 0 0 20px var(--windy-sky);
        transform: scale(1.2);
    }
    to {
        color: var(--snow-white);
        text-shadow: 0 5px 20px rgba(0,0,0,0.5);
        transform: scale(1);
    }
}

.hero p {
    font-size: 1.8rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-tagline { color: rgba(255,255,255,0.9); }
.hero-desc { margin-top:1rem; font-size:1.05rem; letter-spacing:.5px; font-weight:400; color:rgba(255,255,255,0.85); max-width:720px; margin-left:auto; margin-right:auto; text-shadow:0 3px 12px rgba(0,0,0,0.4); }

@media (max-width: 640px) {
    .hero-tagline, .hero-desc { color:#fff !important; text-shadow:0 4px 18px rgba(0,0,0,0.55); }
    .hero-desc { font-size:.95rem; padding:0 1rem; }
}

/* SECTIONS GENERAL */
section {
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.7s ease;
    border-top: 1px solid rgba(0, 155, 158, 0.2);
}

#about {
    background-color: var(--light-bg-1);
}

#introduction, #services, #offer, #contact {
    background-color: var(--light-bg-2);
}

.section-content-wrapper {
     width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 3rem;
    font-weight: 600;
    color: var(--deep-ice);
}

/* Simplified card style; original glass effect condensed (no Tailwind build). */
.glass-card {
    border-radius: 1rem; /* 2xl */
    padding: 2rem; /* p-8 */
    text-align: center;
    background: rgba(255,255,255,0.30);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.40);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1),0 10px 10px -5px rgba(0,0,0,0.04);
    transition: box-shadow .3s ease, transform .3s ease, background .3s ease;
}
.glass-card.visible { opacity:1; }

/* Component helper classes (manual Tailwind equivalents) */
.tw-btn-base {
    display:inline-flex;align-items:center;justify-content:center;
    font-weight:600;letter-spacing:.025em;
    border-radius:9999px;cursor:pointer;
    transition:background .3s, box-shadow .3s, transform .2s, filter .3s;
    position:relative;text-decoration:none;
    padding:.875rem 2rem;font-size:1rem;line-height:1.2;
    border:1px solid transparent;
}
.tw-btn-base:focus { outline:none; box-shadow:0 0 0 4px rgba(26,95,122,0.35); }
.tw-btn-primary { background:var(--primary-color); color:#fff; }
.tw-btn-primary:hover { filter:brightness(1.1); box-shadow:0 12px 22px -4px rgba(26,95,122,0.45); }
.tw-btn-primary:active { transform:scale(.95); }

.tw-btn-secondary { background:#fff; color:var(--primary-color); border-color:rgba(26,95,122,0.35); }
.tw-btn-secondary:hover { background:rgba(26,95,122,0.07); }
.tw-btn-secondary:active { transform:scale(.96); }

.tw-btn-cta { 
    background:linear-gradient(90deg,var(--primary-color),var(--accent-color));
    color:#fff; box-shadow:0 8px 24px -6px rgba(26,95,122,0.55);
}
.tw-btn-cta:hover { transform:translateY(-3px) scale(1.02); box-shadow:0 14px 32px -4px rgba(26,95,122,0.65); }
.tw-btn-cta:active { transform:scale(.95); }

/* Legacy class hooks */
.btn { display:inline-flex;align-items:center;justify-content:center;font-weight:600;letter-spacing:.025em;border-radius:9999px;cursor:pointer;transition:background .3s, box-shadow .3s, transform .2s, filter .3s;position:relative;text-decoration:none;padding:.875rem 2rem;font-size:1rem;line-height:1.2;border:1px solid transparent;background:var(--primary-color); color:#fff; box-shadow:0 5px 15px rgba(0,155,158,0.5); }
.btn:hover { transform:translateY(-3px); box-shadow:0 10px 24px rgba(0,155,158,0.55); }
.btn-cta { display:inline-flex;align-items:center;justify-content:center;font-weight:600;letter-spacing:.025em;border-radius:9999px;cursor:pointer;transition:background .3s, box-shadow .3s, transform .2s, filter .3s;position:relative;text-decoration:none;padding:1rem 2.5rem;font-size:1.05rem;line-height:1.2;border:1px solid transparent;background:linear-gradient(90deg,var(--primary-color),var(--accent-color));color:#fff;box-shadow:0 8px 24px -6px rgba(26,95,122,0.55); }
.btn-icon { margin-right:.5rem; display:inline-flex; }
.btn.btn-light, .btn-light { background:#fff; color:var(--primary-color); box-shadow:0 5px 15px rgba(42,54,74,0.2); }
.btn.btn-light:hover, .btn-light:hover { box-shadow:0 10px 24px rgba(42,54,74,0.28); }

/* INTRODUCTION SECTION */
.introduction-content {
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Chat-Style Personal Introduction */
.chat-intro-container {
    max-width: 800px;
    margin: 0 auto;
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.chat-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

.chat-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.profile-avatar {
    position: relative;
}

.profile-photo {
    border: 3px solid rgba(67, 198, 172, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(67, 198, 172, 0.3);
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #00ff88;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse-online 2s ease-in-out infinite;
}

@keyframes pulse-online {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.chat-name {
    margin: 0;
    color: var(--primary-color);
}

.chat-status {
    color: #00ff88;
    font-weight: 500;
}

.hand-wave {
    display: inline-block;
    animation: wave 3s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70% { transform: rotate(-10deg); }
    20%, 40%, 60% { transform: rotate(10deg); }
    80% { transform: rotate(-4deg); }
    90% { transform: rotate(4deg); }
}

/* Enhanced Chat Interface Styling */
.chat-intro-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 -2px 4px rgba(0,0,0,0.1));
}

.chat-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.profile-avatar {
    position: relative;
}

.profile-photo {
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 3px solid #ffffff;
    border-radius: 50%;
    animation: pulse-online 2s ease-in-out infinite;
}

@keyframes pulse-online {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.chat-name {
    font-weight: 700;
    color: #1e293b;
}

.chat-status {
    color: #64748b;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-status::before {
    content: '●';
    color: #10b981;
    font-size: 1rem;
    animation: blink 2s ease-in-out infinite;
}

.hand-wave {
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

/* Chat Messages */
.chat-messages {
    margin-top: 1.5rem;
}

.message-bubble {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 18px 18px 18px 4px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #3b82f6;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.message-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 12px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(59, 130, 246, 0.1);
}

.message-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.message-bubble:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 12px;
    color: #3b82f6;
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.typing-indicator.show {
    display: flex;
    animation: fadeInBounce 0.5s ease;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    50% {
        transform: translateY(-2px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Typewriter Effect */
.typewriter-container {
    position: relative;
    min-height: 1.5em;
}

.typewriter-text {
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    display: none;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: normal;
}

.typewriter-text.typing {
    display: block;
    border-right: 2px solid #3b82f6;
    animation: blink 1s step-end infinite;
}

.typewriter-text.completed {
    display: block;
    border-right: none;
    animation: none;
}

@keyframes blink {
    0%, 50% { border-color: #3b82f6; }
    51%, 100% { border-color: transparent; }
}

.signature-text {
    font-family: 'Courier New', monospace;
    opacity: 0;
    animation: fadeInSignature 1s ease-in-out forwards;
    animation-delay: 2s;
}

@keyframes fadeInSignature {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 0.8; transform: translateY(0); }
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.cta-section {
    animation: fadeInUp 1s ease-out;
    animation-delay: 1s;
    animation-fill-mode: both;
}

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

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.intro-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
}

.intro-image {
    flex: 0 0 300px;
    min-width: 250px;
}

.intro-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px var(--shadow-color);
    object-fit: cover;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1565c0;
    font-weight: 600;
}

.intro-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #0d47a1;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* Key Points Block */
.key-points-block {
    margin-top: 2rem;
    padding: 2rem;
}

.key-points-block h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: #1565c0;
}

.key-points-block p {
    color: #0d47a1;
    line-height: 1.6;
}

.key-points-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem 0;
}

.key-points-list li {
    margin: 0.5rem 0;
    color: #0d47a1;
    font-weight: 500;
}

.key-points-highlight {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #0d47a1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .intro-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .intro-image {
        flex: none;
        align-self: center;
    }
    
    .intro-photo {
        max-width: 250px;
    }
    
    .intro-text {
        min-width: auto;
    }
}

/* SERVICES SECTION */
.services-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px 0;
    perspective: 1200px;
}

.service-card {
    width: 320px;
    padding: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    opacity: 0.9; /* Higher minimum for better readability */
    transform: rotateY(2deg) translateX(-10px); /* Much more subtle movement */
    transition: transform 0.6s ease, box-shadow 0.6s ease, opacity 0.6s ease; /* Slower */
}

.services-grid > .service-card:nth-child(even){
     transform: rotateY(2deg) translateX(10px); /* Much more subtle movement */
}

.service-card.visible {
    opacity: 1;
    transform: rotateY(0) translateX(0);
}

.service-card:hover {
    box-shadow: 0 40px 65px rgba(0, 0, 0, 0.2);
    transform: translateY(-15px) scale(1.05) rotateY(0deg);
}

.service-card .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

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

.service-card h3 {
    font-size: 1.5rem;
    color: var(--deep-ice);
    margin-bottom: 10px;
}

/* OFFER SECTION */
#offer .container {
    text-align: center;
}
.offer-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--light-color);
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 20px 50px var(--shadow-color);
    transform: scale(0.9);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.offer-card.visible {
    transform: scale(1);
    opacity: 1;
}
.offer-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.offer-card .subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}
.offer-highlights {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}
.highlight {
    text-align: center;
    flex-basis: 200px; /* Give a base size to each highlight */
}
.highlight .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}
.highlight span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ABOUT SECTION */
#about p.glass-card {
    max-width: 800px;
    margin: auto;
    font-size: 1.1rem;
}

/* IMPRESSZUM SECTION */
#impresszum {
    background-color: var(--light-bg-1);
}

.impresszum-content {
    max-width: 1000px;
    margin: auto;
    text-align: left;
}

.impresszum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.impresszum-grid > div {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.impresszum-grid h3 {
    color: var(--glacier-blue);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--windy-sky);
    padding-bottom: 0.5rem;
}

.impresszum-grid p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.impresszum-grid strong {
    color: var(--deep-ice);
    font-weight: 600;
}

.impresszum-grid a {
    color: var(--glacier-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.impresszum-grid a:hover {
    color: var(--windy-sky);
}

.activity-info ul {
    list-style: none;
    padding-left: 0;
}

.activity-info ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.activity-info ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--glacier-blue);
    font-weight: 600;
}

.disclaimers {
    background: rgba(0, 155, 158, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 155, 158, 0.2);
    margin-bottom: 2rem;
}

.disclaimers h3 {
    color: var(--glacier-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.disclaimer-section {
    margin-bottom: 2rem;
}

.disclaimer-section h4 {
    color: var(--deep-ice);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.disclaimer-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--deep-ice);
}

.footer-impresszum {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 155, 158, 0.2);
}

.footer-impresszum p {
    font-size: 0.9rem;
    color: rgba(42, 54, 74, 0.7);
    margin-bottom: 0.5rem;
}

/* CONTACT FORM */
#contact-form {
    max-width: 600px;
    margin: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

#contact-form input:focus, #contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--glacier-blue);
    background: var(--snow-white);
}

.btn {
    display: inline-block;
    background: var(--glacier-blue);
    color: var(--snow-white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 155, 158, 0.5);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 155, 158, 0.7);
}

.btn.btn-light {
    background: var(--snow-white);
    color: var(--glacier-blue);
    box-shadow: 0 5px 15px rgba(42, 54, 74, 0.2);
}

.btn.btn-light:hover {
    box-shadow: 0 10px 20px rgba(42, 54, 74, 0.3);
}


/* FOOTER */
footer {
    background: var(--deep-ice);
    color: var(--windy-sky);
    padding: 4rem 0 2rem 0;
}
.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}
.footer-contact h4, .footer-social h4 {
    color: var(--snow-white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.footer-contact p .icon {
    margin-right: 0.75rem;
}
.footer-contact a {
    color: var(--windy-sky);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-contact a:hover {
    color: var(--snow-white);
}
.footer-social a {
    display: inline-block;
    margin-right: 1rem;
}
.footer-social svg {
    width: 30px;
    height: 30px;
    fill: var(--windy-sky);
    transition: fill 0.3s ease, transform 0.3s ease;
}
.footer-social a:hover svg {
    fill: var(--snow-white);
    transform: scale(1.1);
}
.footer-bottom {
    border-top: 1px solid rgba(62, 193, 191, 0.2);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* RESPONSIVE DESIGN */

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-content {
        padding: 2.5rem 3rem;
        border-radius: 18px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }
}
@media (min-width: 769px) {
    .cursor-trail {
        display: block;
        position: fixed;
        width: 20px;
        height: 20px;
        background: var(--glacier-blue);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        opacity: 0;
        transform: translate(-50%, -50%);
        transition: opacity 0.3s, transform 0.1s linear, width 0.3s, height 0.3s;
    }
    body:hover .cursor-trail {
        opacity: 0.4;
    }
    .cursor-trail.hovered {
        width: 40px;
        height: 40px;
        opacity: 0.2;
    }
}

@media (max-width: 768px) {
    body {
        background-color: var(--light-color); /* Set a solid background for mobile */
    }

    .perspective-container {
        perspective: none;
    }
    section {
        padding: 4rem 1rem; /* Consistent padding */
        min-height: auto;
        transform: none !important;
        opacity: 1 !important;
        overflow-x: hidden;
    }
    .container {
        padding: 0;
        width: 100%;
    }

    /* Ensure text is readable on glass backgrounds */
    .hero-content {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 15px;
        padding: 2rem 1.5rem;
        margin: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        color: var(--dark-color);
        text-shadow: none;
    }

    .hero h1, .hero p {
        color: var(--dark-color);
    }

    .video-overlay, #hero-video {
        display: block; /* Keep video on mobile for glass effect */
    }

    .hero {
        background: transparent; /* Allow video to show through */
        height: auto;
        min-height: 70vh;
    }

    .glass-card {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: none;
        box-shadow: 0 4px 15px var(--shadow-color);
    }

    .contact-details, .contact-form-container {
        color: var(--dark-color);
    }

    #contact-form input,
    #contact-form select,
    #contact-form textarea {
        background: var(--light-color);
        color: var(--dark-color);
        border-color: rgba(0,0,0,0.2);
    }

    #contact-form .input-icon {
        color: rgba(0,0,0,0.4);
    }

    #contact-form .checkbox-group label {
        color: var(--dark-color);
    }

    #contact-form .checkbox-group label::before {
        background: var(--bg-light-2);
        border-color: rgba(0,0,0,0.2);
    }

    #contact-form .checkbox-group a {
        color: var(--primary-color);
    }

    footer {
        background: var(--dark-color);
        color: var(--light-color);
    }

    .footer-contact a, .footer-social svg {
        color: var(--accent-color);
        fill: var(--accent-color);
    }

    .footer-contact a:hover, .footer-social a:hover svg {
        color: var(--light-color);
        fill: var(--light-color);
    }

    .footer-bottom {
        border-top-color: rgba(255,255,255,0.1);
    }
    
    .logo img { height: 60px; }
    header.scrolled .logo img { height: 45px; }

    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.2rem; }
    
    /* Hero content responsive adjustments */
    .hero-content {
        padding: 2rem 1.5rem !important;
        margin: 1rem !important;
        border-radius: 15px !important;
    }
    .section-title { font-size: 2.2rem; margin-bottom: 2.5rem; }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        cursor: pointer;
        background: none;
        border: none;
    }
    .menu-toggle .hamburger {
        display: block;
        width: 30px;
        height: 2px;
        background: var(--dark-color); /* Use dark color for hamburger */
        position: relative;
        transition: all 0.3s ease-in-out;
    }
    .menu-toggle .hamburger::before,
    .menu-toggle .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--dark-color); /* Use dark color for hamburger */
        transition: all 0.3s ease-in-out;
    }
    .menu-toggle .hamburger::before { top: -8px; }
    .menu-toggle .hamburger::after { bottom: -8px; }

    .nav-open .hamburger { background: transparent; }
    .nav-open .hamburger::before { transform: rotate(45deg) translate(5px, 6px); }
    .nav-open .hamburger::after { transform: rotate(-45deg) translate(5px, -6px); }

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-details {
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-icon {
    font-size: 2rem;
    margin-right: 1rem;
    width: 3rem;
    text-align: center;
}

.contact-text h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-text p {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.contact-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-text small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* New Contact Form Styles */
.contact-form-container {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.contact-form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--snow-white);
}

#contact-form {
    width: 100%;
}

#contact-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

#contact-form .form-group label {
    display: block;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#contact-form .input-wrapper {
    position: relative;
}

#contact-form .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    pointer-events: none;
}

/* Unified contact form fields (lighter, accessible) */
#contact-form input,
#contact-form select,
#contact-form textarea {
    width:100%;
    padding:0.9rem 1rem 0.9rem 2.8rem;
    border:1px solid rgba(26,95,122,0.25);
    border-radius:10px;
    background:linear-gradient(145deg,rgba(255,255,255,0.9),rgba(245,250,252,0.85));
    color:var(--deep-ice);
    font-family:'Poppins',sans-serif;
    font-size:1rem;
    box-shadow:0 2px 4px rgba(0,0,0,0.06) inset;
    transition:background .3s,border-color .3s,box-shadow .3s,transform .2s;
}

#contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

#contact-form textarea { padding:1rem 1rem 1rem 2.8rem; resize:vertical; min-height:140px; }

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline:none;
    background:#fff;
    border-color:var(--accent-color);
    box-shadow:0 0 0 4px rgba(67,198,172,0.35),0 6px 18px -6px rgba(26,95,122,0.35);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder { color:rgba(23,37,42,0.45); }

#contact-form select option {
    background: var(--deep-ice);
    color: var(--snow-white);
}

/* Checkbox styling */
#contact-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

#contact-form .checkbox-group input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

#contact-form .checkbox-group label {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

#contact-form .checkbox-group label::before {
    content:'';width:20px;height:20px;flex-shrink:0;
    background:linear-gradient(135deg,#ffffff,#f1f7f8);
    border:1px solid rgba(26,95,122,0.35);
    border-radius:5px;margin-right:.75rem;transition:all .25s ease;
    box-shadow:0 1px 2px rgba(0,0,0,0.08) inset;
}

#contact-form .checkbox-group input[type="checkbox"]:checked + label::before {
    background:linear-gradient(135deg,var(--accent-color),var(--primary-color));
    border-color:var(--primary-color);color:#fff;content:'✓';
    display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;box-shadow:0 4px 12px -4px rgba(26,95,122,0.5);
}

#contact-form .checkbox-group a { color:var(--primary-color); text-decoration:none; font-weight:600; }

#contact-form .checkbox-group a:hover { text-decoration:underline; }

#contact-form .btn-primary { width:100%; padding:1rem; font-size:1.05rem; font-weight:600; letter-spacing:.5px; }

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* Service Areas */
.areas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem;
    margin-top: 2rem;
}

.area-column h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.area-column ul {
    list-style: none;
    padding: 0;
}

.area-column li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.area-column li:hover {
    color: var(--accent-color);
}

.area-column li:last-child {
    border-bottom: none;
}

/* Impresszum Page Styles */
.impresszum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.impresszum-card {
    padding: 2rem;
}

.impresszum-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-group p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.info-group strong {
    color: var(--accent-color);
}

.info-group ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.info-group li {
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

.info-group li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Privacy Content */
.privacy-content {
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-section:last-of-type {
    border-bottom: none;
}

.privacy-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.privacy-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.privacy-section ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.privacy-section li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.privacy-section li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.last-updated {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Additional Responsive Design for Contact and Impresszum */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .privacy-content {
        padding: 2rem 1rem;
    }
    
    .impresszum-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-icon {
        font-size: 1.5rem;
        width: 2.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}


    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    }

    nav.nav-open { transform: translateX(0); }

    nav ul {
        flex-direction: column;
        text-align: center;
    }
    nav ul li { margin: 0; }
    nav ul li a {
        display: block;
        padding: 1.5rem;
        font-size: 1.5rem;
        font-weight: 600;
    }
    nav ul li a:hover::after {
        width: 50%;
        left: 25%;
    }
    
    .introduction-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .introduction-content img { max-width: 250px; }

    .service-card {
        width: 100%;
        max-width: 350px;
        transform: translateY(50px) !important;
        opacity: 0;
    }
    .service-card.visible {
        transform: translateY(0) !important;
        opacity: 1;
    }
    .services-grid { padding: 0; }
    
    .offer-card { padding: 2.5rem 2rem; }
    .offer-card h2 { font-size: 2rem; }
    .offer-highlights { flex-direction: column; gap: 2rem; }

    .impresszum-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .impresszum-grid > div {
        padding: 1.5rem;
    }
    
    .disclaimers {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-contact, .footer-social {
        width: 100%;
    }
    .footer-contact p {
        justify-content: center;
    }
    .footer-social a {
        margin: 0 0.5rem;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.show {
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    max-width: 600px;
    width: 90%;
    background: rgba(26, 32, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    transform: translateY(50px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.show .cookie-content {
    transform: translateY(0) scale(1);
}

.cookie-text {
    color: #ffffff;
}

.cookie-consent .cookie-text h4 {
    margin: 0 0 1rem 0;
    color: #ffffff !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cookie-text p {
    margin: 0 0 2rem 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-text {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.btn-text:hover {
    color: var(--accent-color);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: var(--card-bg);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-category-header h4 {
    margin: 0;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.cookie-category p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--accent-color);
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

input:disabled + .cookie-slider {
    background-color: var(--primary-color);
    cursor: not-allowed;
}

.cookie-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(45deg, #218838, #1fa386);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Responsive Cookie Consent */
@media (max-width: 768px) {
    .cookie-content {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .cookie-text h4 {
        font-size: 1.3rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        min-width: 200px;
        text-align: center;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1.5rem 1rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Contact Form Enhancements */
.alert {
    padding: 1.5rem 3rem 1.5rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
    animation: slideInDown 0.5s ease-out;
    position: relative;
}

.alert-close {
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.alert-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-left: 5px solid #2E7D32;
}

.alert-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border-left: 5px solid #C62828;
}

.alert h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.alert p {
    margin: 0;
    opacity: 0.95;
}

.alert a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    margin-top: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--windy-sky);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--windy-sky);
    border-color: var(--glacier-blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.checkbox-label a {
    color: var(--windy-sky);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Math CAPTCHA Styling */
.math-captcha-label {
    display: block;
    font-size: 1rem;
    color: #0d47a1;
    margin-bottom: 0.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.15));
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.form-group input[name="math_captcha"] {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ff9800;
    color: #0d47a1;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.form-group input[name="math_captcha"]:focus {
    border-color: #f57c00;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.3);
    background: rgba(255, 255, 255, 1);
}

.form-group input[name="math_captcha"]::placeholder {
    color: rgba(13, 71, 161, 0.6);
    font-weight: 500;
}

.btn-loading {
    opacity: 0.7;
}

/* Offer Section Enhancements */
.offer-section {
    background: linear-gradient(135deg, var(--glacier-blue), var(--windy-sky));
    color: white;
    position: relative;
    overflow: hidden;
}

.offer-section::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="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.15)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.premium-offer {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.offer-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF4444;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

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

.offer-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 2rem 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.offer-subtitle {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.offer-description {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.premium-highlight {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.premium-highlight:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.highlight-content span {
    font-size: 0.95rem;
    opacity: 0.9;
}

.highlight-content small {
    font-size: 0.8rem;
    opacity: 0.8;
    font-style: italic;
}

.offer-cta-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.urgency-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.urgency-icon {
    font-size: 1.3rem;
    animation: bounce 1s infinite;
}

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

.btn-cta {
    background: linear-gradient(45deg, #FF4444, #FF6666);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255, 68, 68, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 68, 68, 0.4);
    background: linear-gradient(45deg, #FF3333, #FF5555);
}

.pulse-animation {
    animation: pulseButton 3s infinite;
}

@keyframes pulseButton {
    0% { box-shadow: 0 8px 20px rgba(255, 68, 68, 0.3); }
    50% { box-shadow: 0 8px 30px rgba(255, 68, 68, 0.5); }
    100% { box-shadow: 0 8px 20px rgba(255, 68, 68, 0.3); }
}

.btn-icon {
    font-size: 1.1rem;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.cta-note a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.cta-note a:hover {
    text-decoration: underline;
}

/* Enhanced Mobile-First Contact Form Styles */

/* Form Labels - Apply to all screen sizes */
.form-group label {
    display: block !important;
    margin-bottom: 0.5rem;
    color: #1565c0 !important; /* Dark blue */
    background: rgba(255, 255, 255, 0.95) !important; /* White background for contrast */
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-shadow: none;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10;
    position: relative;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #1565c0;
}

/* Ensure labels are visible on mobile */
.contact-form-container .form-group label {
    display: block !important;
    color: #1565c0 !important; /* Dark blue */
    background: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600 !important;
    margin-bottom: 0.8rem !important;
    font-size: 1rem !important;
}

@media (max-width: 768px) {
    /* Fix container padding for contact section on mobile */
    #contact .container {
        padding: 0 1rem !important;
        max-width: 100% !important;
    }
    
    /* Remove max-width constraint on contact form for mobile */
    #contact-form {
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0;
        padding: 0;
    }
    
    .contact-form-container {
        padding: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    .contact-details {
        padding: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    #contact-form {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }
    
    .form-row {
        display: block !important;
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .form-group label {
        display: block !important;
        margin-bottom: 0.8rem !important;
        color: #1565c0 !important; /* Dark blue instead of white */
        background: rgba(255, 255, 255, 0.98) !important; /* Strong white background */
        font-weight: 700 !important;
        font-size: 1.1rem !important;
        text-shadow: none !important; /* Remove text shadow for better readability */
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 100 !important;
        position: relative !important;
        padding: 0.6rem 1rem !important; /* Better padding */
        border-radius: 8px !important;
        border: 2px solid #1565c0 !important; /* Visible border */
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 1rem 1.2rem !important;
        border-radius: 12px !important;
        min-height: 50px !important; /* Better touch target */
        transition: all 0.3s ease;
        box-sizing: border-box !important;
        margin: 0 !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    .form-group textarea {
        min-height: 120px !important;
        resize: vertical;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .checkbox-group {
        margin-bottom: 1.5rem;
        width: 100% !important;
    }
    
    .checkbox-group label {
        font-size: 0.95rem !important;
        line-height: 1.5;
        gap: 0.8rem;
        background: transparent !important;
        border: none !important;
        padding: 0.5rem !important;
        width: auto !important;
    }
    
    .btn.btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 50px !important;
        border-radius: 12px !important;
        margin: 1rem 0 0 0 !important;
        transition: all 0.3s ease;
        box-sizing: border-box !important;
    }
    
    .contact-item {
        padding-bottom: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-text h3 {
        font-size: 1.1rem;
    }
    
    .contact-text p {
        font-size: 1rem;
    }
    
    .contact-text small {
        font-size: 0.85rem;
    }
    
    /* Alert styles for mobile */
    .alert {
        margin: 1rem 0;
        padding: 1rem;
        border-radius: 8px;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure section has full width */
    #contact {
        padding: 2rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    #contact .section-content-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    .contact-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .contact-text p {
        font-size: 1rem;
    }
    
    .contact-text small {
        font-size: 0.85rem;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    /* Further reduce container padding for very small screens */
    #contact .container {
        padding: 0 0.5rem !important;
        max-width: 100% !important;
    }
    
    .contact-form-container,
    .contact-details {
        padding: 1rem 0.8rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem 1rem;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .checkbox-group label {
        font-size: 0.9rem;
    }
    
    .btn.btn-primary {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .contact-icon {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@keyframes slideInDown {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Turn off all animations on impresszum page */
body.impresszum-page .glass-card,
body.impresszum-page .service-card,
body.impresszum-page .timeline-item,
body.impresszum-page .value-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

body.impresszum-page .glass-card.visible,
body.impresszum-page .service-card.visible {
    opacity: 1 !important;
    transform: none !important;
}

/* DEBUGGING - Force all form labels to be visible */
form label,
#contact-form label,
.contact-form-container label,
.form-group label,
label[for="name"],
label[for="email"],
label[for="phone"],
label[for="service"],
label[for="message"] {
    display: block !important;
    color: #1565c0 !important; /* Dark blue color */
    background: rgba(255, 255, 255, 0.95) !important; /* Strong white background for contrast */
    font-size: 16px !important;
    font-weight: bold !important;
    margin: 10px 0 !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;
    position: relative !important;
    text-shadow: none !important;
    border: 2px solid #1565c0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

/* Ensure labels are above background video and other elements */
@media (max-width: 768px) {
    /* Form labels positioned ABOVE inputs on mobile */
    form label,
    #contact-form label,
    .contact-form-container label,
    .form-group label,
    label[for="name"],
    label[for="email"],
    label[for="phone"],
    label[for="service"],
    label[for="message"] {
        display: block !important;
        color: #1565c0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        font-size: 16px !important; 
        font-weight: 700 !important; 
        margin: 0 0 8px 0 !important; /* Space below label, above input */
        padding: 8px 12px !important; 
        border-radius: 8px !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 999999 !important; 
        position: relative !important;
        text-shadow: none !important;
        border: 2px solid #1565c0 !important; 
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: left !important;
        line-height: 1.4 !important;
        min-height: auto !important;
        order: -1 !important; /* Ensure label appears before input in flexbox */
    }
    
    /* Ensure form groups display labels above inputs */
    .form-group {
        display: flex !important;
        flex-direction: column !important; /* Stack label above input */
        background: transparent !important;
        position: relative !important;
        z-index: 1002 !important;
        margin-bottom: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Input fields positioned BELOW labels */
    .form-group input,
    .form-group select,
    .form-group textarea {
        margin-top: 0 !important; /* No gap between label and input */
        order: 1 !important; /* Input comes after label */
    }
    
    /* Hide or style placeholders since we have visible labels */
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #111 !important; /* Dark for visibility */
        font-style: normal !important;
        font-size: 15px !important;
        opacity: 0.8 !important;
    }
    
    /* Or completely remove placeholders on mobile if preferred */
    /* 
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: transparent !important;
    }
    */
    
    /* Additional mobile form fixes */
    .contact-form-container {
        background: rgba(255, 255, 255, 0.95) !important;
        z-index: 1000 !important;
        position: relative !important;
    }
    
    #contact-form {
        background: transparent !important;
        position: relative !important;
        z-index: 1001 !important;
    }
    
    /* Special handling for checkbox labels - keep inline */
    .checkbox-group label {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        background: transparent !important;
        border: none !important;
        padding: 8px 0 !important;
        margin: 10px 0 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        width: 100% !important;
        order: initial !important;
    }
}

/* Subtle Background Fan Animation */
.background-fan {
    position: fixed;
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    opacity: 0.03; /* Very subtle */
    z-index: -1;
    pointer-events: none;
    transition: transform 0.1s ease-out;
    background: radial-gradient(circle, transparent 30%, rgba(100, 149, 237, 0.1) 35%, transparent 40%),
                radial-gradient(circle, transparent 30%, rgba(100, 149, 237, 0.1) 35%, transparent 40%),
                radial-gradient(circle, transparent 30%, rgba(100, 149, 237, 0.1) 35%, transparent 40%);
    background-size: 100% 100%;
    background-position: center;
    border-radius: 50%;
}

.background-fan::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    margin: -90px 0 0 -90px;
    background: 
        linear-gradient(0deg, transparent 45%, rgba(100, 149, 237, 0.05) 47%, rgba(100, 149, 237, 0.08) 50%, rgba(100, 149, 237, 0.05) 53%, transparent 55%),
        linear-gradient(60deg, transparent 45%, rgba(100, 149, 237, 0.05) 47%, rgba(100, 149, 237, 0.08) 50%, rgba(100, 149, 237, 0.05) 53%, transparent 55%),
        linear-gradient(120deg, transparent 45%, rgba(100, 149, 237, 0.05) 47%, rgba(100, 149, 237, 0.08) 50%, rgba(100, 149, 237, 0.05) 53%, transparent 55%);
    border-radius: 50%;
}

.background-fan::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    background: rgba(100, 149, 237, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(100, 149, 237, 0.2);
}

/* Additional fan for larger screens */
.background-fan-2 {
    position: fixed;
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: 5%;
    opacity: 0.02;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.15s ease-out;
    background: radial-gradient(circle, transparent 30%, rgba(135, 206, 235, 0.08) 35%, transparent 40%);
    border-radius: 50%;
}

.background-fan-2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 130px;
    margin: -65px 0 0 -65px;
    background: 
        linear-gradient(30deg, transparent 45%, rgba(135, 206, 235, 0.04) 47%, rgba(135, 206, 235, 0.06) 50%, rgba(135, 206, 235, 0.04) 53%, transparent 55%),
        linear-gradient(90deg, transparent 45%, rgba(135, 206, 235, 0.04) 47%, rgba(135, 206, 235, 0.06) 50%, rgba(135, 206, 235, 0.04) 53%, transparent 55%),
        linear-gradient(150deg, transparent 45%, rgba(135, 206, 235, 0.04) 47%, rgba(135, 206, 235, 0.06) 50%, rgba(135, 206, 235, 0.04) 53%, transparent 55%);
    border-radius: 50%;
}

.background-fan-2::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    margin: -7.5px 0 0 -7.5px;
    background: rgba(135, 206, 235, 0.08);
    border-radius: 50%;
}

/* Hide fans on mobile to avoid clutter */
@media (max-width: 768px) {
    .background-fan,
    .background-fan-2 {
        display: none;
    }
}

/* Subtle Background Video */
.background-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10; /* Much lower z-index */
    overflow: hidden;
    pointer-events: none;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    opacity: 0.15; /* Increased visibility */
    object-fit: cover;
    filter: blur(1px) brightness(0.4) contrast(0.9); /* Slightly brighter */
}

/* Overlay to further reduce video prominence */
.background-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(13, 71, 161, 0.5) 0%, 
        rgba(25, 118, 210, 0.4) 50%, 
        rgba(13, 71, 161, 0.6) 100%
    );
    z-index: 1;
}

/* Hide background video on mobile to avoid clutter */
@media (max-width: 768px) {
    .background-video-container { display: none; }

    /* Force high-contrast mobile offer (Akció) section */
    #offer { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    #offer .offer-card {
        background: linear-gradient(170deg,#082027 0%,#0F3945 40%,#1A5F7A 85%) !important;
        color: var(--light-color) !important;
        box-shadow: 0 8px 28px rgba(0,0,0,0.35) !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
    }
    #offer .offer-card h2,
    #offer .offer-card .subtitle,
    #offer .offer-card .highlight,
    #offer .offer-card .highlight span,
    #offer .offer-card .highlight .icon,
    #offer .offer-card p,
    #offer .offer-card li {
        color: var(--light-color) !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.45);
    }
    #offer .offer-card .highlight .icon { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
    #offer .offer-card .subtitle { font-weight: 400 !important; opacity: .95 !important; }
    #offer .offer-card .offer-highlights { gap: 1.5rem !important; }
    #offer .offer-card .highlight { background: rgba(255,255,255,0.07); padding: 1rem .75rem; border-radius: 14px; backdrop-filter: blur(4px); }
    #offer .offer-card .highlight:hover { background: rgba(255,255,255,0.12); }
    /* Improve tap target for any CTA buttons inside offer */
    #offer .offer-card .btn, #offer .offer-card a.btn { min-height: 54px; font-size: 1.05rem; letter-spacing:.5px; }
}

    /* --------------------------------------------------
         Consolidated Mobile Alignment & Spacing Cleanup
         (Reduces scattered overrides; last in cascade)
    --------------------------------------------------- */
    @media (max-width: 768px) {
        body { line-height:1.6; }
        section { padding-top:3rem; padding-bottom:3rem; }
        .section-title { margin-bottom:2rem !important; text-align:center !important; }
        .services-grid { grid-template-columns:1fr !important; gap:1.5rem !important; }
        .service-card { text-align:center; }
        #contact-form { padding:1.75rem 1.25rem !important; }
        #contact-form .form-group input,
        #contact-form .form-group textarea { font-size:1rem; }
        header .container { padding:0 1rem; }
        nav ul { gap:1rem; }
        .offer-card { margin-left:auto; margin-right:auto; }
        .intro-layout { flex-direction:column !important; }
        .intro-image img { max-width:100%; height:auto; }
    }

/* Enhanced Feature Cards */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::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-in-out;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Stats Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-card {
    animation: countUp 0.8s ease-out forwards;
}

.stats-card:nth-child(1) { animation-delay: 0.2s; }
.stats-card:nth-child(2) { animation-delay: 0.4s; }
.stats-card:nth-child(3) { animation-delay: 0.6s; }

/* Pulse Animation for Stars */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.tw-animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Enhanced CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
    z-index: 0;
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

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

/* Enhanced Benefits Checklist */
.benefits-checklist {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefits-checklist.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.benefit-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.benefit-item:nth-child(1) { transition-delay: 0.1s; }
.benefit-item:nth-child(2) { transition-delay: 0.2s; }
.benefit-item:nth-child(3) { transition-delay: 0.3s; }
.benefit-item:nth-child(4) { transition-delay: 0.4s; }

.benefit-icon svg {
    animation: checkmarkDraw 0.8s ease-out forwards;
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
}

.benefit-item:hover .benefit-icon svg {
    animation: checkmarkPulse 0.6s ease-in-out;
}

@keyframes checkmarkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

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

/* Animated Tags */
.benefit-content span {
    animation: tagSlideIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

.benefit-content span:nth-child(1) { animation-delay: 0.5s; }
.benefit-content span:nth-child(2) { animation-delay: 0.6s; }
.benefit-content span:nth-child(3) { animation-delay: 0.7s; }

@keyframes tagSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}