/* =========================================
   PREMIUM CSS VARIABLES & DESIGN SYSTEM
   ========================================= */
:root {
    /* Premium Color Palette */
    --color-primary: #008c96; /* Teal */
    --color-primary-dark: #006a72;
    --color-primary-light: #e6f3f4;
    --color-accent: #1e242b; /* Strong, professional dark gray */
    --color-text: #5a6162;
    --color-text-light: #8e9596;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    
    /* Typography */
    --font-main: 'Plus Jakarta Sans', sans-serif;
    
    /* Shadows - softer and deeper for premium feel */
    --shadow-sm: 0 2px 4px rgba(69, 75, 76, 0.04);
    --shadow-md: 0 4px 12px rgba(69, 75, 76, 0.06);
    --shadow-lg: 0 12px 24px rgba(69, 75, 76, 0.08);
    --shadow-xl: 0 24px 48px rgba(69, 75, 76, 0.12);
    --shadow-glow: 0 0 30px rgba(0, 140, 150, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother easing */
    --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-accent);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 8rem 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), #00b4b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   BUTTONS (Premium styling)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px; /* Pill shape is modern */
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 140, 150, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 140, 150, 0.3);
    color: white;
}

.btn-primary i {
    transition: transform var(--transition-fast);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-glass {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* =========================================
   HEADER & NAVIGATION (Glassmorphism)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all var(--transition-normal);
    padding: 1.25rem 0;
}

.header.scrolled {
    padding: 0.75rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    height: 85px;
    transition: height var(--transition-normal);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.header.scrolled .logo {
    height: 65px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-accent);
    font-size: 0.9375rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

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

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-accent);
    cursor: pointer;
}

/* =========================================
   HERO SECTION (Premium Full Width Overlay)
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero_bg_premium.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

/* Elegant overlay that starts transparent to keep the nav clear */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 36, 43, 0) 0%, rgba(30, 36, 43, 0) 120px, rgba(30, 36, 43, 0.8) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    background: rgba(30, 36, 43, 0.35); /* More subtle semi-transparent */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--color-primary-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-badge i {
    color: var(--color-primary);
}

.hero-title {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 250px;
    transition: transform var(--transition-normal);
}

.stat-card:hover {
    transform: translateX(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 140, 150, 0.4);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-title {
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

.stat-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-subtitle {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.section-header {
    margin-bottom: 5rem;
    max-width: 650px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.section-title span {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

/* Decorative underline for emphasized text */
.section-title span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text);
}

/* =========================================
   PREMIUM SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.premium-card {
    background-color: var(--color-surface);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 140, 150, 0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
    transform: translate(30%, -30%);
    transition: transform var(--transition-normal);
}

.premium-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-light);
}

.premium-card:hover .card-glow {
    transform: scale(1.5) translate(10%, -10%);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary-light), white);
    color: var(--color-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.premium-card:hover .service-icon {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

.premium-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.premium-card p {
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.service-list i {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.highlight-item {
    background-color: var(--color-primary-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--color-primary-dark);
    margin-left: -1rem;
    margin-right: -1rem;
}

/* =========================================
   BEFORE/AFTER SLIDER (The "Wow" feature)
   ========================================= */
.comparison-section {
    background-color: var(--color-accent);
    color: white;
}

.comparison-section .section-title,
.comparison-section .section-desc {
    color: white;
}

.comparison-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.comparison-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.comp-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.comp-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 140, 150, 0.2);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.comp-feature h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.comp-feature p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    margin: 0;
}

/* Slider CSS */
.comparison-slider-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    aspect-ratio: 4/3;
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.ba-image-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Initial width */
    height: 100%;
    overflow: hidden;
}

.ba-image-before {
    /* Exact pixel dimensions are set via JS to perfectly match the container */
    max-width: none; /* override max-width so it can overflow wrapper */
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: white;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.ba-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: var(--color-accent);
    font-size: 1.25rem;
}

.ba-labels {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 5;
}

.ba-label {
    background: rgba(30, 36, 43, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* =========================================
   WHY US SECTION
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

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

.feature-icon-wrapper {
    width: 90px;
    height: 90px;
    background: var(--color-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    position: relative;
    transition: all var(--transition-normal);
}

.feature-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed var(--color-primary-light);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.feature-item:hover .feature-icon-wrapper {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-item:hover .feature-icon-wrapper::before {
    transform: rotate(45deg);
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* =========================================
   CONTACT SECTION (Premium Split Layout)
   ========================================= */
.contact-section {
    background-color: var(--color-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background-color: var(--color-surface);
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.contact-info-panel {
    background: var(--color-accent);
    color: white;
    padding: 4rem;
    position: relative;
}

/* Subtle pattern for contact panel */
.contact-info-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.2;
    z-index: 0;
}

.contact-info-panel h2,
.contact-info-panel p,
.contact-list {
    position: relative;
    z-index: 1;
}

.contact-info-panel h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info-panel h2 span {
    color: var(--color-primary);
}

.contact-info-panel p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-link-item .c-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-primary);
    transition: all var(--transition-fast);
}

.contact-link-item:hover .c-icon {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.contact-link-item .c-text span {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.contact-link-item .c-text strong {
    display: block;
    font-size: 1.125rem;
    color: white;
}

.contact-form-panel {
    padding: 4rem;
    background-color: var(--color-surface);
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.premium-form label {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    display: block;
}

.premium-form input,
.premium-form select,
.premium-form textarea {
    width: 100%;
    padding: 1.125rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--color-bg);
    transition: all var(--transition-fast);
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-surface);
    box-shadow: 0 0 0 4px var(--color-primary-light);
}

.btn-submit {
    margin-top: 1rem;
    padding: 1.25rem;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--color-accent);
    color: rgba(255, 255, 255, 0.9);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand p {
    margin-top: 1.5rem;
}

.footer-logo {
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* =========================================
   CALCULATOR / CONFIGURATOR SECTION
   ========================================= */
.calculator-section {
    background-color: var(--color-bg);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    background-color: var(--color-surface);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    border: 1px solid var(--color-border);
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-label {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 1.125rem;
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.calc-option {
    cursor: pointer;
}

.calc-option input {
    display: none;
}

.calc-option-content {
    background-color: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.calc-option-content i {
    font-size: 2.5rem;
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

.calc-option-content span {
    font-weight: 600;
    color: var(--color-accent);
}

.calc-option-content small {
    color: var(--color-text-light);
    font-weight: 500;
}

.calc-option input:checked + .calc-option-content {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
    box-shadow: 0 4px 12px rgba(0, 140, 150, 0.1);
}

.calc-option input:checked + .calc-option-content i {
    color: var(--color-primary);
}

.calc-area-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.calc-slider {
    flex: 1;
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--color-border);
    outline: none;
    transition: background 0.3s;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 140, 150, 0.4);
    transition: transform var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 140, 150, 0.4);
    border: none;
}

.calc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 140px; /* fixed width to look good next to slider */
    flex-shrink: 0;
}

.calc-input-wrapper input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-accent);
    background-color: var(--color-bg);
    transition: all var(--transition-fast);
}

.calc-input-wrapper input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-surface);
}

.calc-unit {
    position: absolute;
    right: 1.5rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.calc-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    background-color: var(--color-primary-light);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 140, 150, 0.2);
}

.calc-checkbox-wrapper input {
    display: none;
}

.calc-checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.calc-checkbox-wrapper input:checked + .calc-checkbox-custom::after {
    content: "\2714"; /* Checkmark */
    color: var(--color-primary);
    font-size: 16px;
    font-weight: bold;
}

.calc-checkbox-text {
    font-weight: 600;
    color: var(--color-primary-dark);
}

.calc-result-panel {
    background-color: var(--color-accent);
    border-radius: 24px;
    padding: 3rem;
    color: white;
    display: flex;
    flex-direction: column;
}

.calc-result-panel h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.calc-price-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary-light);
}

.calc-total {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #4fd1c5, #008b8b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calc-currency {
    font-size: 2rem;
    font-weight: 700;
}

.calc-summary-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.calc-summary-list li {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.calc-summary-list li span:last-child {
    font-weight: 600;
    color: white;
}

.calc-note-item {
    color: rgba(255, 255, 255, 0.8) !important;
}

.calc-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.calc-disclaimer {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 3rem;
    }
    .calc-result-panel {
        padding: 2rem;
    }
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MODALS (Impressum, Datenschutz, AGB)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(69, 75, 76, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.95);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: var(--color-surface);
    border-radius: 20px;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--color-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-accent);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal-content-inner {
    padding: 3rem;
    overflow-y: auto;
    color: var(--color-text);
}

.modal-content-inner h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    padding-right: 2rem;
}

.modal-content-inner h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-content-inner p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-note {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
    font-size: 0.875rem;
    color: var(--color-accent);
    border-radius: 0 8px 8px 0;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .hero-content-wrapper { flex-direction: column; text-align: center; }
    .hero-stats { flex-direction: row; justify-content: center; width: 100%; }
    .comparison-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .footer-top { flex-direction: column; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .calculator-wrapper {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }
    
    .hero-bg-image {
        background-attachment: scroll;
        background-position: top center;
    }

    .calculator-section .container {
        padding: 0;
    }
    
    .calculator-section .section-header {
        padding: 0 1.5rem;
    }

    .calculator-wrapper {
        padding: 2rem 1.5rem;
        gap: 2.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .comparison-slider-container {
        aspect-ratio: 1/1;
        border-radius: 16px;
    }

    .ba-handle-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .ba-labels span {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

    .calc-options {
        grid-template-columns: 1fr;
    }
    
    .calc-total {
        font-size: 3rem;
    }
    
    .calc-currency {
        font-size: 1.5rem;
    }
    
    .calc-area-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .calc-input-wrapper {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        background: rgba(30, 36, 43, 0.45);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .main-nav {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left var(--transition-normal);
        gap: 2rem;
    }
    .main-nav.active { left: 0; }
    .nav-list { flex-direction: column; text-align: center; }
    .mobile-toggle { display: block; }
    .hero-title { font-size: 2.75rem; }
    .hero-stats { flex-direction: column; align-items: center; }
    .form-row { grid-template-columns: 1fr; }
    .contact-info-panel, .contact-form-panel { padding: 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
