/* 
   ----------------------------------------
   The SaaS Transformation v1.0
   Design System & Config
   ----------------------------------------
*/
:root {
    /* --- Modern SaaS Palette --- */
    --bg-main: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --bg-footer: #030303;

    --text-main: #0a0a0a;
    --text-muted: #666666;
    --text-on-dark: #ffffff;
    --text-on-dark-muted: #a3a3a3;

    --accent-primary: #0a0a0a;
    --accent-secondary: #475569; /* Cool Slate for a subtle, minimalist look */
    --accent-hover: #334155;
    --accent-glow: rgba(71, 85, 105, 0.05);

    /* --- High-Definition Glassmorphism --- */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.6);
    --blur-intensity: 40px;

    /* --- Precision Shadows --- */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.06);
    --shadow-premium: 0 24px 48px -12px rgba(0, 0, 0, 0.1);

    /* --- Sophisticated Typography --- */
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --base-font-size: 16px;

    /* --- Layout & Spacing --- */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    --section-padding: clamp(5rem, 10vw, 8rem) 0;
    --container-width: 1200px;

    /* --- Gradients --- */
    --gradient-text: linear-gradient(135deg, #030303 0%, #404040 100%);
    --gradient-glow: radial-gradient(circle at 50% 0%, rgba(71, 85, 105, 0.05) 0%, transparent 70%);
}

:root[data-theme="dark"] {
    --bg-main: #030303;
    --bg-secondary: #080808;
    --bg-card: #0c0c0c;
    --bg-footer: #000000;

    --text-main: #fcfcfc;
    --text-muted: #888888;

    --accent-primary: #ffffff;
    --accent-secondary: #94a3b8; /* Lighter slate for contrast in dark mode */
    --accent-hover: #e5e5e5;
    --accent-glow: rgba(148, 163, 184, 0.1);
    
    --glass-bg: rgba(10, 10, 10, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.03);

    --shadow-premium: 0 40px 64px -12px rgba(0, 0, 0, 0.6);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
    --gradient-glow: radial-gradient(circle at 50% 0%, rgba(148, 163, 184, 0.05) 0%, transparent 70%);
}

/* 
   ----------------------------------------
   Global Reset & Refined Base
   ----------------------------------------
*/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 
   ----------------------------------------
   Animations 
   ----------------------------------------
*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s forwards ease-out;
}

/* 
   ----------------------------------------
   Utilities 
   ----------------------------------------
*/
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--section-padding);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid var(--glass-border);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Buttons (Clean Unified Definitions) --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: var(--bg-main) !important;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--accent-hover);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-hover);
}

.hero .btn-primary {
    background: #ffffff;
    color: #030303 !important;
}

.hero .btn-primary:hover {
    background: #e5e5e5;
}

.hero .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* 
   ----------------------------------------
   About Us Specific & Additions 
   ----------------------------------------
*/
.mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(at 0% 0%, rgba(0, 0, 0, 0.03) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(0, 0, 0, 0.05) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 0, 0, 0.03) 0, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

:root[data-theme="dark"] .mesh-gradient {
    background: radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.02) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(255, 255, 255, 0.03) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 255, 255, 0.02) 0, transparent 50%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .mesh-gradient {
        background: radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.02) 0, transparent 50%),
            radial-gradient(at 50% 0%, rgba(255, 255, 255, 0.03) 0, transparent 50%),
            radial-gradient(at 100% 0%, rgba(255, 255, 255, 0.02) 0, transparent 50%);
    }
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.value-card {
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--navbar-border);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease-out;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--text-muted);
    box-shadow: var(--shadow-premium);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 16px;
    color: var(--text-main);
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--navbar-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
    border-color: var(--text-muted);
}

.team-image-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-info {
    padding: 3rem;
    text-align: center;
}

.team-role {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.team-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.team-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* 
   ----------------------------------------
   High-End CTA Section 
   ----------------------------------------
*/
.cta-section {
    position: relative;
    overflow: hidden;
    padding: 10rem 0;
    background: var(--bg-secondary);
}

.cta-card {
    position: relative;
    padding: 7rem 4rem;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.12);
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.12), 0 4px 20px rgba(0, 0, 0, 0.05);
}

:root[data-theme="dark"] .cta-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.03);
}

/* Subtle top border highlight */
.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15), transparent);
    pointer-events: none;
}

:root[data-theme="dark"] .cta-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.cta-card h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
}

.cta-card p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 3.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.cta-card .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: var(--bg-main) !important;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.cta-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--accent-hover);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 6rem 0;
    }
    .cta-card {
        padding: 4rem 1.5rem;
    }
}

/* 
   ----------------------------------------
   Navbar 
   ----------------------------------------
*/
/* 
   ----------------------------------------
   Navigation (Precision Glass)
   ----------------------------------------
*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

:root[data-theme="dark"] .navbar.scrolled {
    background: rgba(3, 3, 3, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.brand-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin: -15px 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.03));
    transition: all 0.4s ease;
}

.navbar.scrolled .brand-logo {
    height: 80px;
    margin: -10px 0;
}

.nav-links {
    display: flex;
    gap: 3.5rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-main);
    letter-spacing: 0.1px;
    opacity: 0.7;
}

.nav-links a:not(.btn-primary):hover {
    opacity: 1;
    color: var(--accent-secondary);
}

.theme-toggle-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: var(--bg-main);
    box-shadow: var(--shadow-sm);
    transform: rotate(12deg);
}

/* 
   ----------------------------------------
   Mobile Navigation
   ----------------------------------------
*/
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

/* Animated Hamburger Icon to X */
.mobile-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 
   ----------------------------------------
   Hero 
   ----------------------------------------
*/
/* 
   ----------------------------------------
   Hero (Maximum Impact)
   ----------------------------------------
*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--bg-footer);
    color: var(--text-on-dark);
    text-align: center;
    overflow: hidden;
    padding-top: 90px;
}

.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) contrast(1.1);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    padding: 0 2rem;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #030303;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding-top: 90px;
}

/* Force Light text in Hero regardless of theme */
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
    font-weight: 700;
}

/* Force Light text in Hero regardless of theme */
.hero h1.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.6;
    letter-spacing: -0.2px;
}

.hero-trust {
    margin-top: 5rem;
    opacity: 0.6;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
}

.hero .badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 
   ----------------------------------------
   Cards (Services & Portfolio) 
   ----------------------------------------
*/
.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h2 {
    font-size: 3.5rem;
    letter-spacing: -1.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* 
   ----------------------------------------
   SaaS Multi-Layer Cards
   ----------------------------------------
*/
.service-card,
.portfolio-item,
.benefit-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.portfolio-item a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.service-card:hover,
.portfolio-item:hover,
.benefit-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow-premium);
}

.service-image,
.portfolio-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-image,
.portfolio-item:hover .portfolio-image {
    transform: scale(1.08);
}

.service-info,
.portfolio-info {
    padding: 3rem;
}

.service-info h3,
.portfolio-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.service-info p,
.portfolio-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}


/* 
   ----------------------------------------
   Contact 
   ----------------------------------------
*/
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

#contact {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.contact-info h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    transform: scale(1.1);
    background: var(--accent-primary);
    color: var(--bg-main);
    border-color: transparent;
}

/* 
   ----------------------------------------
   Tour Modal 
   ----------------------------------------
*/
.tour-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.tour-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.tour-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tour-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.tour-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.tour-modal-close:hover {
    background: #ff3333;
}

.tour-modal-body {
    flex-grow: 1;
    width: 100%;
    height: 100%;
}

.tour-modal-body iframe, .tour-modal-body script {
    width: 100%;
    height: 100%;
    border: none;
}

/* Portfolio Hover Cursor */
.portfolio-item[data-kuula-id] {
    cursor: pointer;
}

/* 
   ----------------------------------------
   Loading Spinner
   ----------------------------------------
*/
.tour-modal-body.is-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.tour-modal-body.is-loading::after {
    content: "";
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-primary, #fff);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tour-modal-body iframe {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tour-modal-body:not(.is-loading) iframe {
    opacity: 1;
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.info-text a,
.info-text p {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-text a:hover {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
    background: var(--text-main);
    color: var(--bg-main);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.contact-form {
    padding: 4rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.08), 0 20px 40px -20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
}

:root[data-theme="dark"] #contact {
    background: var(--bg-main);
    /* Deep black for dark mode */
}

:root[data-theme="dark"] .contact-form {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.03), var(--shadow-premium);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) #contact {
        background: var(--bg-main);
    }

    :root:not([data-theme="light"]) .contact-form {
        background: #0f0f0f;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.03), var(--shadow-premium);
    }
}

.form-group {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input:not([type="checkbox"]),
.form-group textarea {
    width: 100%;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--navbar-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.15s ease-out;
    resize: none;
}

.form-group input:not([type="checkbox"]):focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-muted);
    background: var(--bg-main);

    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

.checkbox-group input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    margin-top: 0.15rem;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

/* --- Marketing Section Components --- */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent-glow);
    color: var(--accent-secondary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(71, 85, 105, 0.1);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.benefit-card {
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
}

.benefit-card:hover {
    box-shadow: var(--shadow-premium);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    color: var(--text-main);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.benefit-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.hero-trust {
    margin-top: 4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-on-dark-muted);
}

.item-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

/* 
   ----------------------------------------
   Footer 
   ----------------------------------------
*/
:root {
    --footer-bg: #f3f4f6;
    --footer-text: var(--text-muted);
    --footer-anchor: var(--text-main);
    --footer-anchor-hover: var(--accent-primary);
}

:root[data-theme="dark"] {
    --footer-bg: var(--bg-footer);
    --footer-text: var(--text-on-dark-muted);
    --footer-anchor: var(--text-on-dark-muted);
    --footer-anchor-hover: var(--text-on-dark);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --footer-bg: var(--bg-footer);
        --footer-text: var(--text-on-dark-muted);
        --footer-anchor: var(--text-on-dark-muted);
        --footer-anchor-hover: var(--text-on-dark);
    }
}

footer {
    padding: 6rem 0;
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (prefers-color-scheme: light) {
    footer {
        border-top: 1px solid rgba(0, 0, 0, 0.15);
    }
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 900;
    color: var(--text-main);
}

.footer-links {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--footer-anchor);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    font-weight: 500;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--footer-anchor-hover);
}

.footer-links a:hover::after {
    width: 100%;
}

footer p {
    color: var(--footer-text);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 
   ----------------------------------------
   Responsive 
   ----------------------------------------
*/
/* 
   ----------------------------------------
   Responsive Consolidation
   ----------------------------------------
*/
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 992px) {
    :root {
        --base-font-size: 16px;
        --section-padding: 8rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }

    .nav-links {
        display: none !important;
    }

    .nav-links.is-open {
        display: flex !important;
        position: fixed !important;
        top: 90px !important;
        left: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 90px) !important;
        background: var(--bg-main) !important;
        backdrop-filter: blur(40px) !important;
        -webkit-backdrop-filter: blur(40px) !important;
        border-top: 1px solid var(--glass-border) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.75rem !important;
        padding: 3rem 2rem !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        box-shadow: var(--shadow-premium) !important;
        animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .navbar.scrolled .nav-links.is-open {
        top: 70px !important;
        height: calc(100vh - 70px) !important;
    }

    .nav-links li {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .nav-links a:not(.btn-primary) {
        display: block;
        font-size: 1.35rem;
        font-weight: 600;
        color: var(--text-main);
        padding: 0.5rem 1rem;
        transition: color 0.3s ease;
    }

    .nav-links a:not(.btn-primary):hover {
        color: var(--accent-secondary);
    }

    .nav-links .btn-primary {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 6rem 0;
    }

    .hero h1 {
        font-size: 3.2rem;
        letter-spacing: -2px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }
}

/* 
   ----------------------------------------
   Hardening Utilities & Components
   ----------------------------------------
*/
.delay-100ms {
    animation-delay: 0.1s;
}

.delay-200ms {
    animation-delay: 0.2s;
}

.delay-400ms {
    animation-delay: 0.4s;
}

.bg-secondary-section {
    background: var(--bg-secondary) !important;
}

.badge-limited {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.text-white {
    color: #fff !important;
}

.text-white-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.btn-white {
    background: #fff !important;
    color: #000 !important;
}

.contact-intro-text {
    margin-bottom: 3rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.mt-4rem {
    margin-top: 4rem;
}

.w-full {
    width: 100%;
}

.hero-about {
    height: 60vh !important;
    background: var(--gradient-hero) !important;
}

.relative-overflow-hidden {
    position: relative;
    overflow: hidden;
}

.about-intro-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 8rem;
}

.fs-4rem {
    font-size: 4rem !important;
    margin-bottom: 2rem !important;
}

.about-intro-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-main);
    font-weight: 500;
}

.btn-cta-white {
    background: #fff !important;
    color: #000 !important;
    padding: 1.25rem 3.5rem !important;
}

/* 
   ----------------------------------------
   Cookie Consent Banner
   ----------------------------------------
*/
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: calc(100% - 2rem);
    max-width: 600px;
    z-index: 9999;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cookie-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cookie-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.cookie-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-primary);
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-buttons button {
    flex: 1;
    min-width: 120px;
    background: var(--bg-card);
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    color: var(--text-main);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] .cookie-buttons button {
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-buttons button:hover {
    border-color: var(--text-main);
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cookie-buttons button#cookie-accept {
    font-weight: 700;
    border-color: var(--text-main);
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 1rem;
        padding: 1.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

/* 
   ----------------------------------------
   Custom Form Validation 
   ----------------------------------------
*/
.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.02) !important;
}

.error-message {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.4rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(-5px);
}

.error-message i {
    margin-top: 0.15rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 
   ----------------------------------------
   Tour Consent Overlay (2-Click)
   ----------------------------------------
*/
.tour-consent-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 2rem;
    text-align: center;
}

.tour-consent-inner {
    max-width: 500px;
    background: var(--bg-card);
    padding: 4rem 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
}

.tour-consent-inner h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* 
   ----------------------------------------
   Legal Pages (Impressum & Datenschutz)
   ----------------------------------------
*/
.legal-document {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    padding: 4rem 5rem;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .legal-document {
        padding: 2.5rem 1.5rem;
        border-radius: var(--radius-lg);
    }
}

/* Subtle background glow for the document */
.legal-document::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(71, 85, 105, 0.02), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

:root[data-theme="dark"] .legal-document::before {
    background: radial-gradient(circle at center, rgba(148, 163, 184, 0.03), transparent 70%);
}

.legal-section {
    position: relative;
    z-index: 1;
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

:root[data-theme="dark"] .legal-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    letter-spacing: -0.5px;
}

.legal-section h3 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.legal-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.legal-section p, 
.legal-section ul, 
.legal-section li {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.legal-section ul {
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    list-style: disc;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.legal-info-block {
    display: flex;
    flex-direction: column;
}

.legal-info-block h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.legal-info-block p {
    font-size: 1.1rem;
    color: var(--text-main);
}

.legal-info-block a {
    color: var(--accent-secondary);
    transition: color 0.3s ease;
}

.legal-info-block a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.legal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    flex-shrink: 0;
}