:root {
    /* Core brand palette — dark "agency-tech" theme */
    --primary-color: #05070d;
    --secondary-color: #284b63;
    --accent-color: #ff6b6b;
    --accent-color-2: #6366f1;
    --text-color: #ffffff;
    --light-text: #ffffff;
    --muted-text: rgba(255, 255, 255, 0.7);
    --background-color: #05070d;
    --surface-color: #0E1A2B;
    --section-padding: 5rem 0;
    --nav-text-color: #ffffff;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-bg-hover: rgba(255, 255, 255, 0.98);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --white-color: white;
    --card-bg: #0E1A2B;

    /* Shared component tokens used across pages (forms, glass cards, radii) */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-pill: 50px;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-strong: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.12);
    --form-label-color: rgba(255, 255, 255, 0.85);
    --list-label-color: rgba(255, 255, 255, 0.85);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.18);
    --transition-base: 0.3s ease;
    --card-logo: #1a1a1a;

    /* AURAVIS service card gradients */
    --card-3d-studio: linear-gradient(135deg, #1e3a8a, #38bdf8); /* deep blue → sky — CAD/blueprint feel */
    --card-social: linear-gradient(135deg, #db2777, #8b5cf6); /* magenta → violet — social/creative */
    --card-digital: linear-gradient(135deg, #4338ca, #3b82f6); /* indigo → blue — web/tech */
    --card-sports: linear-gradient(135deg, #ea580c, #ff6b6b); /* orange → coral — energy/speed */
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

/* Standardized pill button used by both CTA and form submit buttons */
.btn-pill {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--light-text);
    text-decoration: none;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.35);
}

/* Standardized glass surface used by forms/cards across pages */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px var(--shadow-light);
}

/* Standardized form controls — shared by contact.html and book.html */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--form-label-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-base);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-group select option {
    background: var(--surface-color);
    color: var(--text-color);
}

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

.submit-button {
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    width: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.35);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Make navbar toggler icon white */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler {
    border: none !important;
    /* Optional: add some padding instead */
    padding: 8px;
}

/* Just change icon color on hover/focus */
.navbar-toggler:hover .navbar-toggler-icon,
.navbar-toggler:focus .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 107, 107, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Optional: add background on hover/focus instead of border */
.navbar-toggler:hover,
.navbar-toggler:focus {
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 4px;
}

/* Navigation - Glass Morphism (kept deliberately simple: one static glass
   state, no scroll-driven class toggling or entrance animations — those
   were forcing repeated backdrop-filter repaints and layout reads on every
   scroll tick, which is what caused the lag) */
.navbar {
    background: rgba(255, 255, 255, 0.1) !important; /* True glass — content shows through */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px) saturate(180%); /* Glass blur effect */
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Subtle glass edge */
    transition: transform 0.4s ease;
    padding: 0.5rem 1rem !important;
    position: fixed !important; /* Bootstrap's .fixed-top already sets this, but it was
        getting silently overridden to "relative" by this same-specificity rule loading
        after Bootstrap's CSS — that took the navbar out of fixed/floating mode entirely */
    top: 0;
    left: 0;
    right: 0;
}

.logo-img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); /* Subtle logo shadow */
}

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

.nav-link {
    color: var(--nav-text-color, #333) !important;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px; /* Rounded corners for links */
    margin: 0 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color, #ff6b6b), transparent);
    transition: transform 0.4s ease;
}

.nav-link:hover {
    color: var(--accent-color, #ff6b6b) !important;
    background: rgba(255, 255, 255, 0.15); /* Light background on hover */
    transform: translateY(-1px);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Override Bootstrap's active state */
.nav-link.active {
    color: var(--accent-color, #ff6b6b) !important;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2) !important; /* Slightly more opaque */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Language switcher button - glass effect */
.language-switcher {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
}

.language-switcher:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px);
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .navbar {
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(14px) saturate(180%);
        -webkit-backdrop-filter: blur(14px) saturate(180%);
        padding: 0.35rem 0.75rem !important;
    }

    .logo-img {
        height: 58px;
    }

    /* The dropdown menu itself can afford to be a touch more opaque for
       readability, since it overlaps page content rather than the hero.
       Blur is intentionally light here (not 20px) — animating a heavy
       backdrop-filter on the same element Bootstrap is height-animating
       caused real jank/lag on mobile GPUs during open/close. */
    .navbar-collapse {
        background: rgba(20, 24, 36, 0.75);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }

    .nav-link.active {
        background: rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 8px;
    }

    .nav-link:hover:not(.active) {
        background: rgba(255, 255, 255, 0.2) !important;
    }
    
    .language-switcher {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--background-color) !important;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-top: 0;
}

.hero-content {
    max-width: 100%;
    background: var(--background-color);
    margin: 0;
    position: relative;
    z-index: 2;
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0;
}

/* Hero backdrop — CSS-only glow blobs + grid (replaces the old looping logo
   video, and also replaces an earlier Vanta.js/WebGL attempt that turned out
   to be too heavy: it kept a continuous 60fps render loop running forever
   plus loaded three.js/p5.js, which was the real source of the lag) */
.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--background-color);
}

/* Hero gets its own slightly larger/slower-drifting glow pair so it reads as
   the "hero" version of the same atmosphere used on the CTA/contact/booking
   sections. Pure CSS transform animation — cheap, GPU-composited, no JS. */
.hero-backdrop .bg-glow-1 {
    animation: hero-glow-drift-1 22s ease-in-out infinite alternate;
}

.hero-backdrop .bg-glow-2 {
    animation: hero-glow-drift-2 26s ease-in-out infinite alternate;
}

@keyframes hero-glow-drift-1 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(6%, 8%) scale(1.12); }
}

@keyframes hero-glow-drift-2 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-7%, -5%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-backdrop .bg-glow-1,
    .hero-backdrop .bg-glow-2 {
        animation: none;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    pointer-events: none;
}

.hero-overlay-content {
    max-width: 760px;
    pointer-events: auto;
}

.hero-overlay-content > * {
    opacity: 0;
    animation: hero-rise 0.8s ease-out forwards;
}

.hero-badge { animation-delay: 0.05s; }
.hero-overlay h1 { animation-delay: 0.2s; }
.hero-overlay p { animation-delay: 0.35s; }
.hero-cta-group { animation-delay: 0.5s; }
.hero-tags { animation-delay: 0.65s; }

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass "live" badge — eyebrow replacement, mainstream SaaS-landing pattern */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    animation: badge-pulse 2s ease-out infinite;
}

@keyframes badge-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(255, 107, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

.hero-overlay h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

/* Gradient-clipped accent word — a staple of current SaaS/agency hero design */
.text-gradient {
    background: linear-gradient(100deg, var(--accent-color), var(--accent-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-overlay p {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--muted-text);
    margin-bottom: 2rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.btn-pill-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.4), 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-pill-glow:hover {
    box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.6), 0 14px 36px rgba(255, 107, 107, 0.45);
}

.btn-pill-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.btn-pill-glow:hover .btn-pill-icon {
    transform: translateX(4px);
}

.hero-tags {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-tag {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted-text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
}

/* Scroll-down cue */
.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 2.25rem;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    pointer-events: auto;
}

.hero-scroll-cue span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: scroll-cue-move 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-move {
    0% { opacity: 1; top: 8px; }
    70% { opacity: 0; top: 22px; }
    100% { opacity: 0; top: 8px; }
}

@media (max-width: 768px) {
    .hero-scroll-cue {
        bottom: 1.25rem;
        width: 22px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-overlay-content > * {
        animation: none;
        opacity: 1;
    }
    .hero-badge-dot,
    .hero-scroll-cue span {
        animation: none;
    }
}

.btn-pill-outline {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--light-text);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.btn-pill-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-badge {
        font-size: 0.62rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        padding: 0.4rem 0.8rem;
        gap: 0.4rem;
        max-width: 90%;
    }
}

/* Mobile adjustments — hero keeps a real viewport-based height so the
   absolutely-positioned backdrop/overlay layers always have a box to fill */
@media (max-width: 768px) {
    .hero {
        margin-top: 0;
        min-height: 100vh;
    }

    .hero-content {
        height: 100vh;
        min-height: 480px;
        align-items: center;
    }
}

/* Alternative: Maintain aspect ratio container */
/* If you want to maintain a specific aspect ratio for the video */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    /* Use 75% for 4:3, 50% for 2:1, etc. */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show entire video */
}
/* Features Section — 4 equal AURAVIS service cards, 2x2 on desktop/tablet,
   single column on mobile. Simpler than the old asymmetric 5-card layout
   since there are now exactly 4 services and they should read as equals. */
.features {
    padding: var(--section-padding);
    background-color: var(--background-color);
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* CARD LINK STYLES - FIXED */
.card-link {
    text-decoration: none;
    color: inherit; /* This is KEY - makes link inherit colors from parent */
    display: flex;
    transition: transform 0.4s ease;
    padding: 0;
    margin: 0;
}

.card-link:hover {
    transform: translateY(-15px);
    text-decoration: none; /* Remove underline */
}

.card-link:hover .feature-card {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.feature-card {
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px var(--shadow-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    min-height: 180px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    /* Remove cursor pointer since link handles click */
}

/* Glass shine animation - apply to card instead of link */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none; /* Don't interfere with clicking */
}

.card-link:hover .feature-card::after {
    transform: translateX(100%);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    color: var(--white-color);
}

.feature-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    color: var(--white-color);
}

.card-link:hover .feature-card h3 {
    transform: translateY(-5px);
}

.card-link:hover .feature-card p {
    transform: translateY(-3px);
}

/* Color each of the 4 AURAVIS service cards */
.card-link:nth-child(1) .feature-card {
    background: var(--card-3d-studio); /* AURAVIS 3D Studio — blueprint blue */
    color: var(--white-color);
}

.card-link:nth-child(2) .feature-card {
    background: var(--card-social); /* AURAVIS Social — magenta/violet */
    color: var(--white-color);
}

.card-link:nth-child(3) .feature-card {
    background: var(--card-digital); /* AURAVIS Digital — indigo/blue */
    color: var(--white-color);
}

.card-link:nth-child(4) .feature-card {
    background: var(--card-sports); /* AURAVIS Sports — coral/orange */
    color: var(--white-color);
}

@media (max-width: 1024px) {
    .features-grid {
        gap: 1.2rem;
        padding: 0 1.5rem;
    }

    .feature-card {
        padding: 2rem;
        min-height: 160px;
    }

    .feature-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .feature-card p {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    .features {
        padding: 3rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.8rem;
        min-height: 150px;
        border-radius: 12px;
    }

    .feature-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    .feature-card p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Adjust hover effects for touch devices */
    .card-link:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 480px) {
    .features {
        padding: 2.5rem 0;
    }

    .features-grid {
        gap: 0.8rem;
        padding: 0 0.8rem;
    }

    .feature-card {
        padding: 1.5rem;
        min-height: 130px;
        border-radius: 10px;
    }

    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .feature-card p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

@media (max-width: 360px) {
    .features-grid {
        gap: 0.6rem;
        padding: 0 0.6rem;
    }

    .feature-card {
        padding: 1.2rem;
        min-height: 120px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

/* Important: Reset link states for visited, hover, active */
.card-link:visited,
.card-link:active,
.card-link:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}

/* Optional: Add focus styles for accessibility */
.card-link:focus-visible .feature-card {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Shared dark-glass "atmosphere" — blurred glow blobs + faint masked grid.
   Used behind the CTA section, and behind the contact/booking forms, so every
   non-hero section still feels like part of the same design system instead of
   a flat dark rectangle. Drop a `.bg-glow.bg-glow-1` / `-2` pair plus a single
   `.bg-grid` inside any `position: relative; overflow: hidden;` section. */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    pointer-events: none;
}

.bg-glow-1 {
    width: 45vw;
    height: 45vw;
    max-width: 560px;
    max-height: 560px;
    top: -15%;
    left: -10%;
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
}

.bg-glow-2 {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--accent-color-2), transparent 70%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 85%);
    pointer-events: none;
}

/* CTA Section — same dark-glass language as the hero */
.cta-section {
    padding: var(--section-padding);
    background: var(--background-color);
    color: var(--light-text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.cta-content .hero-badge {
    margin-bottom: 1.5rem;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    margin-top: 2rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.35);
}

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

.hero-content,
.feature-card,
.video-placeholder {
    animation: fadeIn 0.8s ease-out forwards;
}

.language-switcher {
    margin-left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.language-switcher:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
}

@media (max-width: 768px) {
    .language-switcher {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
}

/* About Us Section */
.about-us {
    padding: 60px 0;
    background-color: var(--background-color);
    text-align: center;
}

.about-us h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-us p, .about-us ul {
    text-align: left;
    margin: 0 auto;
    max-width: 800px;
}

.about-us ul {
    padding-left: 20px;
}

.about-us h3 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-us ul li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--muted-text);
    margin-bottom: 10px;
}

.about-us p {
    color: var(--muted-text);
    font-size: 1.15rem;
}

.about-us .container {
    max-width: 800px;
    margin: 0 auto;
}

.about-us p {
    display: block;
    white-space: normal;
}

@media (max-width: 768px) {
    .about-us h2 {
        font-size: 2rem;
    }

    .about-us h3 {
        font-size: 1.5rem;
    }

    .about-us p, .about-us ul {
        font-size: 1rem;
    }
} 


/* THE SERVICES SECTION*/
.card-section {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

/* Icon badge shown above each service page's title — a glass circle holding
   a small line-art SVG that signals what the service actually does at a
   glance, before the visitor reads a word of copy. */
.service-icon-badge {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.service-icon-badge svg {
    width: 42px;
    height: 42px;
    color: var(--white-color);
}

@media (max-width: 768px) {
    .service-icon-badge {
        width: 72px;
        height: 72px;
        margin-bottom: 1.25rem;
    }

    .service-icon-badge svg {
        width: 34px;
        height: 34px;
    }
}

.card-section h2 {
    /* Fluid font sizing - scales perfectly between devices */
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
    font-weight: 700;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    position: relative;
    z-index: 2;
    
    /* Enhanced text shadow (clean and readable) */
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.1);
    
    /* Perfect letter spacing */
    letter-spacing: -0.02em;
    
    /* Line height optimized for readability */
    line-height: 1.1;
    
    /* Max width for better line length */
    max-width: 90%;
    
    /* Center alignment */
    text-align: center;
    
    /* Padding for mobile safety */
    padding: 0 1rem;
    
    /* Smooth font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1;
    
    /* Pure white color */
    color: #ffffff;
    
    /* Animation ready */
    transition: all 0.3s ease;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .card-section h2 {
        /* Slightly larger on mobile for impact */
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        
        /* Better line height for mobile */
        line-height: 1.15;
        
        /* Adjust margins for mobile */
        margin-bottom: 1.2rem;
        
        /* More padding for small screens */
        padding: 0 0.5rem;
        
        /* Lighter text shadow on mobile */
        text-shadow: 
            0 1px 3px rgba(0, 0, 0, 0.2);
        
        /* Slightly tighter letter spacing on mobile */
        letter-spacing: -0.01em;
        
        /* Word wrapping for long titles */
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .card-section h2 {
        font-size: clamp(2.5rem, 4vw, 3.2rem);
        line-height: 1.12;
        margin-bottom: 1.8rem;
    }
}

/* Desktop optimizations - CLEAN VERSION */
@media (min-width: 1025px) {
    .card-section h2 {
        /* Perfect desktop size */
        font-size: 3.5rem;
        
        /* Clean, crisp white text */
        color: #ffffff;
        
        /* Optional: Add subtle glow for depth */
        text-shadow: 
            0 2px 10px rgba(0, 0, 0, 0.3),
            0 4px 20px rgba(0, 0, 0, 0.15);
        
        /* Optional decorative underline (much subtler) */
        position: relative;
    }
    
    /* Optional: Very subtle underline - remove if not needed */
    .card-section h2::after {
        content: '';
        position: absolute;
        bottom: -0.8rem;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 2px;
        background: rgba(255, 255, 255, 0.2); /* Very subtle */
        border-radius: 1px;
    }
}

/* Extra large screens (4K+) */
@media (min-width: 2000px) {
    .card-section h2 {
        font-size: 4rem;
        line-height: 1.05;
        max-width: 1200px;
    }
}

/* Very small mobile devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .card-section h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 0 0.25rem;
    }
}

/* Portrait vs Landscape optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .card-section h2 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        margin-bottom: 1rem;
    }
}

/* Performance optimization - prevent layout shift */
.card-section h2 {
    min-height: 0.01vh; /* Prevent CLS */
}

.card-section p {
    font-size: clamp(1rem, 2.5vw, 1.3rem); /* Responsive font size */
    line-height: 1.6; /* Better readability */
    max-width: min(800px, 90%); /* Responsive max-width */
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    padding: 0 1rem; /* Side padding for mobile */
    
    /* Enhanced text rendering */
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Perfect spacing */
    letter-spacing: -0.01em;
    word-spacing: 0.02em;
    
    /* Paragraph spacing */
    margin-bottom: 1.5em;
}

/* Better line length for readability (ideal is 45-75 chars) */
.card-section p {
    max-width: 65ch; /* Character-based width (better than pixels) */
}

/* First paragraph special treatment */
.card-section p:first-of-type {
    font-size: clamp(1.1rem, 2.8vw, 1.4rem);
    line-height: 1.7;
    font-weight: 500;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .card-section p {
        line-height: 1.65; /* Slightly more spacing on mobile */
        font-size: clamp(1.05rem, 4vw, 1.2rem);
        padding: 0 0.5rem;
        text-align: left; /* Left-align for better mobile reading */
        hyphens: auto; /* Automatic hyphenation */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Better paragraph spacing on mobile */
    .card-section p + p {
        margin-top: 1.2rem;
    }
}

/* Desktop optimizations */
@media (min-width: 769px) {
    .card-section p {
        line-height: 1.75; /* More breathing room on desktop */
        text-align: justify; /* Justified text looks cleaner on desktop */
        text-justify: inter-word;
        hyphens: manual; /* Manual hyphenation control */
    }
    
    /* Add drop cap for first paragraph on desktop */
    .card-section p:first-of-type::first-letter {
        font-size: 3.5em;
        float: left;
        line-height: 0.8;
        padding-right: 0.1em;
        padding-top: 0.1em;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.9);
    }
}

/* Large desktop screens (4K+) */
@media (min-width: 1600px) {
    .card-section p {
        max-width: 70ch;
        font-size: 1.4rem;
        line-height: 1.8;
    }
}

/* For very small mobile devices */
@media (max-width: 480px) {
    .card-section p {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 0.25rem;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    /* Remove drop cap on mobile */
    .card-section p:first-of-type::first-letter {
        all: unset;
    }
}

/* Ensure good contrast and readability */
.card-section p {
    color: rgba(255, 255, 255, 0.95); /* Slightly off-white for less strain */
    font-weight: 400; /* Regular weight for body text */
}

/* Add smooth text scaling */
.card-section p {
    transition: font-size 0.3s ease, line-height 0.3s ease;
}

/* For long texts, add paragraph indentation on desktop */
@media (min-width: 769px) {
    .card-section p {
        text-indent: 1.5em; /* Traditional paragraph indentation */
    }

    .card-section p:first-of-type {
        text-indent: 0; /* First paragraph no indent */
    }
}

/* "Leistungen" capability grid — sits below each service hero, breaking the
   single-paragraph-on-a-gradient layout into something more scannable, with
   a glass card per capability so it still reads as the same component
   system used for forms/CTAs elsewhere on the site. */
.service-features {
    padding: var(--section-padding);
    background-color: var(--background-color);
}

/* When a gallery precedes the features section, its own bottom padding
   already creates separation, so trim the features section's top padding
   to avoid a doubled-up, unbalanced gap between the two. */
.service-gallery + .service-features {
    padding-top: 2.5rem;
}

.service-features-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.service-features-intro h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.service-features-intro p {
    color: var(--muted-text);
    font-size: 1.05rem;
}

.service-features-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.service-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 107, 0.4);
}

.service-feature svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--accent-color);
    margin-top: 0.1rem;
}

.service-feature span {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .service-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .service-feature {
        padding: 1.25rem;
    }
}

/* Service page photo gallery — 3 images per service, one large "lead" shot
   plus two stacked smaller ones, framed in the same glass-border language as
   the rest of the site so photography reads as part of the design system
   rather than a bolted-on stock-photo strip. */
.service-gallery {
    padding: 2.5rem 0;
    background-color: var(--background-color);
}

.service-gallery-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 30px var(--shadow-light);
    transition: transform var(--transition-base);
}

.service-gallery-grid img:hover {
    transform: scale(1.02);
}

.service-gallery-lead {
    grid-row: 1 / span 2;
    min-height: 420px;
}

.service-gallery-lead img {
    min-height: 420px;
}

.service-gallery-sub img {
    min-height: 200px;
}

@media (max-width: 768px) {
    .service-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 1rem;
        padding: 0 1rem;
    }

    .service-gallery-lead,
    .service-gallery-lead img {
        min-height: 260px;
    }

    .service-gallery-sub img {
        min-height: 180px;
    }
}