/* Base & Reset */
:root {
    --primary-color: #4db6ac;
    --primary-dark: #00897b;
    --secondary-color: #263238;
    --text-color: #37474f;
    --text-light: #78909c;
    --bg-light: #f5f7fa;
    --bg-dark: #1f2933;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* UI Colors */
    --glass-bg: #ffffff;
    --glass-teal: #4db6ac;
    --glass-border: rgba(77, 182, 172, 0.2);
    --glass-blur: none;
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --gold: #d4af37;
    --gold-dark: #aa8d2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 100px;
    /* Space for sticky navbar */
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section {
    padding: 2.5rem 0;
    /* Reduced from 4rem */
    /* overflow: hidden; Removed to fix 3D animations clipping */
}

/* Reduce gap between Process and Testimonials */
#spolupraca {
    padding-bottom: 0;
}

#referencie {
    padding-top: 2.5rem;
    /* Standard, but explicit */
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Alternating Content (Accessories) */
.alternating-content {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 2rem;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* Reverse order for even rows */
.feature-row.reverse {
    flex-direction: row-reverse;
}

.text-col {
    flex: 1;
}

.image-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    /* Enable 3D space */
}

.image-col img,
.image-col .video-wrapper {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 24px;
    border: 2px solid rgba(77, 182, 172, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    background: #000;
    width: 100%;
    display: block;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
    display: block;
}

.video-wrapper video.video-loaded {
    opacity: 1;
}

.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 1s ease;
}

.video-loaded~.video-poster {
    opacity: 0;
    pointer-events: none;
}

.image-col img:hover,
.image-col .video-wrapper:hover {
    transform: rotateY(-5deg) rotateX(5deg) scale(1.02);
    box-shadow: 0 45px 90px rgba(0, 0, 0, 0.25);
}

.text-col h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.text-col p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.2;
}

@media (max-width: 991px) {
    .feature-row {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .feature-row.reverse {
        flex-direction: column;
    }

    .feature-list li {
        text-align: left;
        display: inline-block;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--white);
    position: relative;
    font-size: 1.05rem;
    padding-bottom: 5px;
}

.navbar.scrolled .nav-link {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(77, 182, 172, 0.4);
}

.btn-primary::after {
    display: none;
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .bar {
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    /* margin-top: -80px; Removed for fullscreen fix */
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#rainCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    /* Subtle effect */
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.pulse-btn {
    background: var(--primary-color);
    color: var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(77, 182, 172, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(77, 182, 172, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(77, 182, 172, 0);
    }
}

/* Floating Reward Circle Pulse */
#promoCard {
    animation: slideInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, circlePulse 3s infinite ease-in-out;
}

@keyframes circlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        border-color: var(--primary-color);
    }
}

/* Floating Referral Card - PREMIUM */
.floating-promo-card {
    position: fixed;
    top: 110px;
    /* Below navbar */
    right: 30px;
    z-index: 999;
    max-width: 380px;
    background: var(--white);
    border-radius: 24px;
    display: flex;
    overflow: visible;
    /* Changed from hidden to show ribbon */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(77, 182, 172, 0.3);
    animation: slideInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.floating-promo-card.second {
    top: 355px;
    /* Fine-tuned gap */
    animation-delay: 0.2s;
}

/* Floating Action Badge */
.promo-action-badge {
    position: absolute;
    top: -15px;
    right: 25px;
    background: var(--gold);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
    z-index: 20;
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.floating-promo-card.hidden {
    opacity: 0 !important;
    transform: translateX(50px) scale(0) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.floating-promo-card.second.hidden {
    transform: translateX(50px) !important;
}

.promo-card-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 24px 0 0 24px;
    /* Added because parent overflow is now visible */
}

.promo-card-icon.partner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.promo-card-content {
    padding: 1.5rem;
    flex: 1;
}

.promo-card-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.promo-card-tag.partner {
    background: rgba(77, 182, 172, 0.1);
    color: var(--primary-color);
}

.promo-card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--secondary-color);
}

.promo-card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.promo-card-btn {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

.promo-card-btn:hover {
    color: var(--gold-dark);
    transform: translateX(5px);
}

.promo-card-btn.partner {
    color: var(--primary-color);
}

.promo-card-btn.partner:hover {
    color: var(--primary-dark);
}

.promo-card-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.promo-card-close:hover {
    color: var(--secondary-color);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1200px) {
    #promoCardPartner {
        display: none !important;
    }

    #promoCard {
        position: fixed !important;
        top: 100px !important;
        right: 15px !important;
        width: 90px !important;
        height: 90px !important;
        border-radius: 50% !important;
        background: var(--white) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
        border: 3px solid var(--gold) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        z-index: 1100 !important;
        cursor: pointer !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s !important;
        animation: circlePulse 3s infinite ease-in-out !important;
    }

    #promoCard .promo-card-icon {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background: transparent !important;
        color: var(--gold) !important;
        font-size: 2.8rem !important;
        margin: 0 !important;
    }

    #promoCard .promo-card-content,
    #promoCard .promo-card-close,
    #promoCard .promo-card-tag {
        display: none !important;
    }

    #promoCard .promo-action-badge {
        display: block !important;
        font-size: 0.9rem !important;
        padding: 6px 14px !important;
        right: -8px !important;
        top: -12px !important;
        z-index: 1101 !important;
        white-space: nowrap !important;
        box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4) !important;
    }
}

/* Stats Section */
.stats-section {
    background: var(--white);
    padding: 3rem 0;
    margin-top: -3rem;
    /* Overlap hero */
    position: relative;
    z-index: 10;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.stat-item .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item .label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Feature Rows & About */
.section-header {
    margin-bottom: 2rem;
    /* Reduced from 3rem */
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--primary-color);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    /* Also reduced gap slightly */
    margin-bottom: 3rem;
    /* Reduced from 4rem */
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.col-text {
    flex: 1;
}

.col-image {
    flex: 1;
    perspective: 1000px;
}

.col-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.col-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.check-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.check-list i {
    color: var(--primary-color);
    background: rgba(77, 182, 172, 0.1);
    padding: 8px;
    border-radius: 50%;
    font-size: 0.9rem;
}

/* 3D Card Effect (Images) - Fill mode */
.card-3d {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    border-radius: 24px;
    overflow: hidden;
    /* Safe here as no protruding badges */
    border: 2px solid rgba(77, 182, 172, 0.3);
    box-shadow: var(--shadow-lg);
    transform-style: preserve-3d;
    perspective: 1200px;
    padding: 0 !important;
    background: var(--bg-dark);
}

.card-3d:hover {
    transform: perspective(1200px) rotateX(1.5deg) rotateY(1.5deg) translateY(-5px) translateZ(10px);
}

/* Systems Grid */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    perspective: 1000px;
}

@media (max-width: 768px) {
    .systems-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Key Benefits Grid & Cards */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
    margin-top: 4rem;
}

/* --- SHARED GLASS CARD DESIGN --- */
.benefit-card,
.system-card,
.service-card,
.nabor-card,
.usage-card,
.testimonial-card,
.feature-item,
.step-item,
.franchise-cta {
    background: var(--white);
    border-radius: 24px;
    padding: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease, border-color 0.4s ease, background 0.4s ease;
    border: 2px solid rgba(77, 182, 172, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform-style: preserve-3d;
    perspective: 1200px;
    will-change: transform;
}

/* Card-3d padding override already handled above */

.benefit-card {
    color: var(--text-color);
    padding: 2.5rem;
}



/* Ensure AOS transition doesn't block hover effects on Desktop */
@media (min-width: 1201px) {
    [data-aos] {
        transition-property: transform, opacity !important;
    }
}

[data-aos] {
    backface-visibility: hidden;
}

.benefit-card h4 {
    color: var(--secondary-color) !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--text-color);
}

/* Consistent Glass Background for all Cards */
.system-card,
.service-card,
.nabor-card,
.usage-card,
.testimonial-card {
    background: var(--white);
    border: 2px solid rgba(77, 182, 172, 0.2);
}

/* UNIFIED Softer Hover Effects for Web (Subtle 3D) */
.benefit-card:hover,
.system-card:hover,
.service-card:hover,
.nabor-card:hover,
.usage-card:hover,
.testimonial-card:hover,
.feature-item:hover,
.step-item:hover,
.franchise-cta:hover,
.card-3d:hover {
    transform: perspective(1200px) rotateX(1.5deg) rotateY(-1.5deg) translateY(-8px) translateZ(10px) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12) !important;
    border-color: var(--primary-color) !important;
    background: var(--white);
    /* Slight pop of white on hover for clarity */
}

.benefit-card:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.service-card,
.feature-item,
.step-item,
.franchise-cta {
    padding: 2.5rem;
}

/* Card Components */
.benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(77, 182, 172, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background: var(--primary-color);
    color: var(--white);
}

/* Shine effect removed */

/* Global hover handles 3D tilt */

.card-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    /* Match parent radius minus border */
}

.card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Usage Grid */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    perspective: 1000px;
    margin-top: 4rem;
    padding: 20px;
}

@media (max-width: 992px) {
    .usage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .usage-grid {
        grid-template-columns: 1fr;
    }
}

.usage-card {
    /* Base styles inherited from SHARED GLASS CARD DESIGN */
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Shine effect removed */
.usage-card:hover::before {
    display: none;
}

.usage-image {
    height: 220px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.usage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.usage-card:hover .usage-image img {
    transform: scale(1.1);
}

.usage-content {
    padding: 2.5rem;
    text-align: left;
}

.usage-content h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.usage-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Career / Recruitment Section */
.nabor-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f1f8f7 100%);
}

.nabor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
    perspective: 1000px;
}

.nabor-card {
    /* Base styles inherited from SHARED GLASS CARD DESIGN */
    padding: 4.5rem 2rem 2.8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: 1.5rem;
}

/* Shine effect removed */
.nabor-card:hover::before {
    display: none;
}

/* 3D Depth for inner elements with custom shadows */
.nabor-badge {
    transform: translateZ(40px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Consolidating .nabor-icon below */

.nabor-card h3 {
    transform: translateZ(30px);
}

.nabor-card p {
    transform: translateZ(20px);
    min-height: 4.5rem;
    /* Ensures lists start at the same height */
    margin-bottom: 0;
}

.nabor-benefits {
    transform: translateZ(20px);
}

.btn-nabor {
    transform: translateZ(40px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nabor-card:hover .btn-nabor {
    box-shadow: 0 10px 20px rgba(77, 182, 172, 0.2);
}


.nabor-badge {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00d1b2 0%, #00897b 100%);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 209, 178, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nabor-badge span {
    display: block;
    font-size: 1.1rem;
    line-height: 1;
}

/* Global hover handles 3D tilt */

.nabor-icon {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    perspective: 1000px;
}

.nabor-icon img.nabor-img-new {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.nabor-card:hover .nabor-img-new {
    transform: translateZ(50px) scale(1.1);
}

.nabor-icon img:not(.nabor-img-new) {
    display: none;
}
















.franchise-cta {
    /* Base styles inherited from SHARED GLASS CARD DESIGN */
    margin-top: 3rem;
    text-align: center;
}

.franchise-cta h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.franchise-description {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.franchise-question {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.btn-franchise {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.nabor-benefits {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    /* Added margin to push list lower */
    margin-bottom: 5px;
    text-align: left;
    width: auto;
    display: inline-block;
}

.nabor-benefits li {
    font-size: 0.98rem;
    margin-bottom: 1.2rem;
    /* Increased spacing between items */
    display: flex;
    align-items: flex-start;
    /* Better for multi-line text */
    gap: 15px;
    /* Slightly larger gap */
    color: var(--text-color);
    line-height: 1.4;
}

.nabor-benefits i {
    color: var(--primary-color);
    margin-right: 12px;
}

.btn-nabor {
    margin-top: auto;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    transform: translateZ(0);
    /* Flat to prevent parallax, but keeps own layer */
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    text-align: center;
}

.btn-nabor:hover {
    transform: translateZ(0) !important;
    /* Stable, no movement */
    box-shadow: 0 10px 20px rgba(77, 182, 172, 0.2);
}

@media (max-width: 992px) {
    .nabor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nabor-grid {
        grid-template-columns: 1fr;
    }
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00d1b2 0%, #00897b 100%);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0, 209, 178, 0.4);
    z-index: 10;
}

.card-content {
    padding: 2.5rem;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-content ul {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.card-content ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
}

.card-content ul li i {
    width: 24px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Contact Dark Section */
#contact {
    color: var(--white);
}

#contact h2 {
    color: var(--white);
}

.subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Contact Dark Section */
#contact {
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
    /* Ensure space top */
}

.contact-container-relative {
    position: relative;
}

.contact-worker-img {
    position: absolute;
    bottom: -20px;
    left: 8%;
    height: 380px;
    /* Further reduced */
    width: auto;
    z-index: 1;
    pointer-events: none;
    /* Transparent PNG doesn't need masking */
}

/* Adjust wrapper z-index to stay above worker */
.contact-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 992px) {
    .contact-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .contact-info {
        flex: 1;
        padding-top: 2rem;
    }

    /* Push form to right, worker is on left/center peek */
    .contact-form-wrapper {
        flex: 1.2;
        margin-top: 2rem;
        /* Optically align with left text */
    }

    /* Adjust worker position for desktop */
    .contact-worker-img {
        left: 20%;
        /* Positioned in the gap/behind form */
        bottom: -20px;
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .contact-worker-img {
        display: none;
        /* Hide on mobile/tablet as it might overlap text */
    }
}

/* Testimonials Layout */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.testimonial-card {
    text-align: center;
    padding: 2.5rem;
}

.testimonial-card .stars {
    color: #f1c40f;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.testimonial-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.testimonial-card .location {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(77, 182, 172, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    color: var(--white);
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-item p,
.info-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.0rem;
}

.info-item a:hover {
    color: var(--primary-color);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Big Form Styling */
.glass-form {
    background: rgba(255, 255, 255, 0.12);
    /* Slightly more visible glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    transition: none !important;
    transform: none !important;
}

.glass-form h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(77, 182, 172, 0.2);
    transform: translateY(-2px);
}

.btn-glow {
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.btn-glow:hover {
    background: #00897b;
    /* Darker teal */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(77, 182, 172, 0.4);
}

@media (max-width: 768px) {
    .glass-form {
        padding: 1.5rem 1rem;
        /* Less padding to stretch inputs to sides */
    }
}

/* Gallery Slider (Carousel) */
.gallery-slider {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 50px 20px 40px 20px;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    perspective: 1000px;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari and Opera */
}

.gallery-item {
    flex: 0 0 320px;
    /* Fixed width for slider cards */
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: center;
    position: relative;
    border: 2px solid rgba(77, 182, 172, 0.3);
    background: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease;
    cursor: zoom-in;
}

.gallery-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

/* Gallery Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 0.5rem;
    position: relative;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(77, 182, 172, 0.4);
}

/* Gallery Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.gallery-nav-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 30px rgba(77, 182, 172, 0.3);
}

.gallery-nav-btn.prev {
    left: -25px;
}

.gallery-nav-btn.next {
    right: -25px;
}

/* Alu Doors Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    perspective: 1000px;
    margin-bottom: 4rem;
    text-align: center;
}

.feature-item,
.step-item {
    background: var(--white);
    border: 2px solid rgba(77, 182, 172, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    transform-style: preserve-3d;
}

/* Global hover handles 3D tilt */

.feature-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    height: 160px;
    /* Matching the image height for consistency */
}

.feature-icon-wrapper img {
    max-width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item:hover .feature-icon-wrapper img,
.step-item:hover .feature-icon-wrapper img {
    transform: translateZ(40px) scale(1.1);
}

@media (max-width: 1300px) {
    .gallery-nav-btn.prev {
        left: 10px;
    }

    .gallery-nav-btn.next {
        right: 10px;
    }
}

.gallery-slider-wrapper {
    position: relative;
    width: 100%;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(77, 182, 172, 0.4);
}

.lightbox-nav-btn.prev {
    left: 40px;
}

.lightbox-nav-btn.next {
    right: 40px;
}

@media (max-width: 768px) {
    .lightbox-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .lightbox-nav-btn.prev {
        left: 15px;
    }

    .lightbox-nav-btn.next {
        right: 15px;
    }
}

/* Footer */
/* Footer Redesign */
footer {
    background: #0f161b;
    padding: 6rem 0 0;
    font-size: 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 35px;
    /* Optimal size */
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 1.2rem;
}

.footer-col ul li a {
    color: #b0bec5;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #0a0f12;
    padding: 2rem 0;
    margin-top: 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 968px) {
    .feature-row {
        flex-direction: column;
        gap: 3rem;
    }

    .feature-row.reverse {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    /* Stats removed previously but kept query just in case */

    .contact-wrapper {
        flex-direction: column;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 2rem 0;
    }

    /* Universal Mobile Grid & Card Fixes */
    /* Grids with protruding badges (Nabor & Servis) */
    .nabor-grid,
    .servis-grid {
        grid-template-columns: 1fr !important;
        gap: 5.5rem !important;
        /* Increased for high-protruding badges */
        margin-top: 4.5rem !important;
    }

    /* Standard Grids (Systems, Benefits, Usage, Features) */
    .systems-grid,
    .benefits-grid,
    .usage-grid,
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-top: 2rem !important;
    }

    .benefit-card,
    .service-card,
    .nabor-card,
    .testimonial-card,
    .feature-item,
    .step-item {
        padding: 1.25rem !important;
    }

    .system-card,
    .usage-card {
        padding: 0 !important;
    }

    .card-image,
    .usage-image {
        height: 200px !important;
    }

    .card-content,
    .usage-content {
        padding: 1.25rem !important;
    }

    .section-header h2 {
        font-size: 2rem !important;
    }

    /* Override AOS flip and fade-up-right to look like clean fade-right on mobile/tablet */
    [data-aos^="flip"],
    [data-aos="fade-up-right"] {
        transform: translateX(-20px) !important;
        opacity: 0 !important;
        transition-property: transform, opacity !important;
    }

    [data-aos^="flip"].aos-animate,
    [data-aos="fade-up-right"].aos-animate {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }
}

@media (max-width: 1200px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 3rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 2rem;
        transform: translateY(-100%);
        /* Slide up */
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        color: var(--secondary-color);
        font-size: 1.3rem;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }

    /* Animate Hamburger to X */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--secondary-color);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--secondary-color);
    }

    .hero {
        padding-top: 100px;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        /* Slightly larger for impact */
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .nabor-card {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nabor-benefits {
        text-align: left;
        display: inline-block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .nabor-benefits li {
        justify-content: flex-start;
    }
}

/* Google Reviews Autoscroll */
.testimonials-viewport {
    overflow-x: auto;
    position: relative;
    width: 100%;
    /* Removed mask for full visibility */
    padding: 2rem 0;
    perspective: 1000px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.testimonials-viewport::-webkit-scrollbar {
    display: none;
}

.testimonials-track {
    display: flex;
    align-items: stretch;
    /* Ensure cards stretch to match the tallest one */
    gap: 2rem;
    width: max-content;
    padding: 1rem 0;
}

/* Removed CSS animation to allow manual control via arrows */

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Google Card Design */
/* Google Card Adjustments */
.google-card {
    flex: 0 0 300px;
    /* Slightly wider for better balance */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto !important;
    /* Allow flex stretching */
}

.card-header-g {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 1rem;
    width: 100%;
}

.g-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
}

.g-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.g-name {
    font-weight: 700;
    font-size: 1rem;
    color: #202124;
    margin-bottom: 0;
}

.g-location {
    font-size: 0.8rem;
    color: #5f6368;
    margin-bottom: 3px;
}

.g-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #70757a;
}

.g-stars {
    color: #fbbc04;
    font-size: 0.8rem;
    display: flex;
    gap: 1px;
}

.g-text {
    font-size: 0.9rem;
    color: #3c4043;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}



/* Global hover handles 3D tilt */

.testimonial-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-card .stars i {
    margin-right: 3px;
}

/* Tech Specs List Style */
.tech-specs {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.tech-specs li {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
}

.tech-specs strong {
    font-weight: 600;
    color: var(--secondary-color);
    min-width: 90px;
}

.tech-specs i {
    width: 24px;
    text-align: center;
    color: var(--primary-color);
}

/* Process Section */
.process-section {
    margin-bottom: 6rem;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    perspective: 1000px;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(77, 182, 172, 0.4);
}

/* Connecting line removed for cleaner look */
.step-item:not(:last-child)::after {
    display: none;
}

.step-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .step-item:not(:last-child)::after {
        display: none;
    }

    .process-steps {
        flex-direction: column;
        gap: 3rem;
    }
}

/* --- CHATBOT UTILITY CLASSES (Missing Bootstrap) --- */
.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.w-100 {
    width: 100% !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

/* --- CHATBOT THEME CONFIGURATION --- */
:root {
    --chat-primary: #4db6ac;
    --chat-primary-gradient: linear-gradient(135deg, #4db6ac 0%, #00897b 100%);
    --chat-header-bg: linear-gradient(135deg, #4db6ac 0%, #00897b 100%);
    --chat-bot-bubble: #f5f7fa;
    --chat-text-on-primary: #ffffff;
    --chat-bg: #ffffff;
    --chat-body-bg: #ffffff;
}

/* --- CHATBOT STYLES --- */

.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: wiggle 5s infinite;
}

/* Chat Tooltip (Bubble) */
.chat-tooltip {
    position: absolute;
    top: 50%;
    right: 85px;
    /* Position to the left of the 70px button */
    transform: translateY(-50%) translateX(-20px) scale(0.8);
    background: #ffffff;
    color: #333;
    padding: 12px 20px;
    border-radius: 20px 20px 0 20px;
    /* Rounded, except bottom-right pointing to icon */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0) scale(1);
}

.chat-tooltip::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -8px;
    /* Arrow on the right side */
    width: 15px;
    height: 15px;
    background: #ffffff;
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
    /* Triangle corner */
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
    /* Fake shadow */
    border-radius: 0 0 5px 0;
}

/* Visualizer Bars */
.visualizer {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.visualizer span {
    display: block;
    width: 3px;
    background: #fff;
    border-radius: 3px;
    animation: sound 0ms -800ms linear infinite alternate;
    height: 5px;
}

.chat-toggle:hover .visualizer span {
    animation-duration: 400ms;
}

.visualizer span:nth-child(1) {
    height: 10px;
    animation-delay: -500ms;
}

.visualizer span:nth-child(2) {
    height: 16px;
    animation-delay: -400ms;
}

.visualizer span:nth-child(3) {
    height: 20px;
    animation-delay: -300ms;
}

.visualizer span:nth-child(4) {
    height: 14px;
    animation-delay: -200ms;
}

.visualizer span:nth-child(5) {
    height: 10px;
    animation-delay: -100ms;
}

@keyframes sound {
    0% {
        height: 5px;
        opacity: 0.5;
    }

    100% {
        height: 20px;
        opacity: 1;
    }
}

/* Old Badge Removed/Hidden */
.notification-badge {
    display: none;
}

.ai-chatbot {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: var(--chat-bg);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: var(--chat-header-bg);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 80px;
    /* Standard height */
    display: flex;
    align-items: center;
}

.bot-avatar {
    width: 55px;
    /* Balanced size */
    height: 55px;
    position: relative;
    background: transparent;
    margin-right: 15px !important;
}

.bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Natural position */
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    /* Transform removed */
}

.status-dot {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 16px;
    /* Slightly larger */
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #ffffff;
    /* White border matches avatar border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    /* Ensure it stays on top */
}


.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--chat-body-bg);
    scroll-behavior: smooth;
}

.bot-message-wrapper {
    margin-bottom: 15px;
    max-width: 85%;
    align-self: flex-start;
}

.bot-message {
    background: #f1f5f9;
    color: #334155;
    padding: 12px 16px;
    border-radius: 15px 15px 15px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-msg-container {
    margin-bottom: 15px;
    max-width: 85%;
    align-self: flex-end;
    margin-left: auto;
    /* Push to right */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-message {
    background: var(--chat-primary);
    color: var(--chat-text-on-primary);
    padding: 12px 16px;
    border-radius: 15px 15px 0 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.msg-time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 5px;
    display: block;
}

/* Testimonials Avatars */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.testimonial-header .location {
    font-size: 0.85rem;
    color: #666;
    display: block;
}

/* Override old header style inside card if any */
.testimonial-card h4 {
    margin: 0;
    /* Handled by header now, but keeping for safety */
}

.testimonial-card>h4 {
    display: none;
}

/* Hide old H4 if structure changed but CSS lingers */
.testimonial-card>.location {
    display: none;
}

/* Hide old location span */
.chat-footer {
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid #eef0f5;
}

.chat-input {
    border-radius: 25px !important;
    padding-left: 20px;
    border: 2px solid #eef0f5;
    background: #f8f9fa;
    font-size: 0.95rem;
}

.chat-input:focus {
    box-shadow: none;
    outline: none;
    border-color: var(--chat-primary);
    background: #fff;
}

/* Bot Avatar Image Zoom - Reset is handled above in .bot-avatar img block */

/* Attention Animation */
@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    10%,
    30% {
        transform: rotate(-10deg) scale(1.1);
    }

    20%,
    40% {
        transform: rotate(10deg) scale(1.1);
    }

    50% {
        transform: rotate(0deg) scale(1);
    }
}




/* Chat Footer Layout */
.chat-footer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.input-wrapper {
    flex: 1;
    /* Takes available space */
    position: relative;
    display: flex;
    align-items: center;
}

.chat-input {
    border-radius: 25px !important;
    padding-left: 20px;
    padding-right: 45px !important;
    /* Space for internal mic only */
    border: none;
    background: #f1f5f9;
    font-size: 0.95rem;
    height: 50px;
    width: 100%;
    transition: all 0.3s;
}

.chat-input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px var(--chat-primary);
    outline: none;
}

/* Actions inside the input (Mic / Send) */
.input-internal-actions {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* 1. Dictation Mic (Small, Internal) */
.mic-icon {
    font-size: 1.1rem;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.mic-icon:hover {
    color: var(--secondary-color);
    background: rgba(0, 0, 0, 0.05);
}

/* 2. Voice Mode Button (Big Circle, External) */
.voice-mode-btn {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    /* Don't squash */
    background: var(--primary-color);
    /* Teal Background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    /* Ignored by spans, but good logic */
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(77, 182, 172, 0.4);
    /* Colored shadow */
    border: none;
    transition: all 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Faster transition for press */
    user-select: none;
    /* Prevent selection on hold */
    -webkit-user-select: none;
    touch-action: manipulation;
    /* Improve touch handling */
}

.voice-mode-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.voice-mode-btn:active {
    transform: scale(0.95);
    /* Tactile press effect */
    background: var(--primary-dark);
    /* Darker teal on press */
    box-shadow: 0 2px 6px rgba(77, 182, 172, 0.4);
}

.voice-mode-active {
    background: var(--chat-primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(77, 182, 172, 0.2);
    animation: voice-pulse 2s infinite;
}

@keyframes voice-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.send-btn {
    color: var(--chat-primary);
    font-size: 1.2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Header Icons White */
.header-icons i {
    color: #ffffff !important;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.header-icons i:hover {
    opacity: 1;
}

.action-hidden {
    display: none !important;
}

/* Visualizer Animation (Radio Look) */
.visualizer-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 18px;
    /* Fit inside button */
}

.visualizer-bars span {
    display: block;
    width: 3px;
    background: white;
    /* White bars on Teal button */
    border-radius: 3px;
    animation: sound 0ms -800ms linear infinite alternate;
    height: 5px;
}

.voice-mode-btn:hover .visualizer-bars span {
    animation-duration: 400ms;
}

.visualizer-bars span:nth-child(1) {
    height: 10px;
    animation-delay: -500ms;
}

.visualizer-bars span:nth-child(2) {
    height: 16px;
    animation-delay: -400ms;
}

.visualizer-bars span:nth-child(3) {
    height: 20px;
    animation-delay: -300ms;
}

.visualizer-bars span:nth-child(4) {
    height: 14px;
    animation-delay: -200ms;
}

.visualizer-bars span:nth-child(5) {
    height: 10px;
    animation-delay: -100ms;
}

@keyframes sound {
    0% {
        height: 5px;
        opacity: 0.6;
    }

    100% {
        height: 20px;
        opacity: 1;
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 576px) {
    .ai-chatbot {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        z-index: 20000;
    }

    .chat-toggle {
        bottom: 15px;
        right: 15px;
        width: 75px;
        height: 75px;
    }
}

/* Service Section Styles */
.servis-section {
    background: #fdfdfd;
    /* Very subtle off-white to see card edges */
    padding: 2.5rem 0 5rem;
}

.servis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    perspective: 1000px;
    margin-top: 6rem;
}

.service-card {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 4.5rem;
    /* Push icons down */
}

.badge-warranty {
    position: absolute;
    top: -48px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00d1b2 0%, #00897b 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 12px 25px rgba(0, 209, 178, 0.4);
    z-index: 5;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-transform: uppercase;
}

.service-card:hover .badge-warranty {
    transform: translateX(-50%) translateZ(40px) translateY(-5px);
}

.badge-warranty span {
    display: block;
    font-size: 1.5rem;
    margin: 2px 0;
    font-weight: 800;
}

.badge-discount {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #00d1b2 0%, #00897b 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    flex-direction: column;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0, 209, 178, 0.4);
    text-transform: uppercase;
}

.service-icon-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-wrapper img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.service-card:hover .service-icon-wrapper img {
    transform: translateZ(50px) scale(1.1);
}

.service-card h3 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 0;
    line-height: 1.4;
    font-weight: 700;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    min-height: 3.2rem;
    /* Ensure same height for 1 and 2 lines */
    display: flex;
    align-items: flex-start;
    /* Align to top so first lines match */
    justify-content: center;
}

.service-card:hover h3 {
    transform: translateZ(30px);
}

@media (max-width: 1200px) {
    .servis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .servis-grid {
        grid-template-columns: 1fr;
    }
}

/* --- INFO MODAL (GDPR/COOKIES) - LIGHT THEME --- */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.info-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--white);
    border-top: 6px solid var(--primary-color);
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    border-radius: 20px;
    position: relative;
    padding: 3.5rem 3rem;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-color);
}

.info-modal.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f8fafc;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-title {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.modal-body {
    line-height: 1.8;
    font-size: 1.05rem;
}

.modal-body h5 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-body h5::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.modal-body p {
    margin-bottom: 1.2rem;
}

/* Custom Scrollbar for Light Modal */
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* FAQ SECTION - Premium Glassmorphism */
#faq {
    padding: 6rem 0;
    background: var(--bg-light);
}

.faq-container {
    max-width: 900px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background: var(--white);
    border-radius: 20px;
    border: 2px solid rgba(77, 182, 172, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.8rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.faq-question i {
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    padding: 0 2.5rem;
    background: rgba(77, 182, 172, 0.02);
}

.faq-answer p {
    padding-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Active State */
.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(77, 182, 172, 0.1);
}

.faq-item.active .faq-question h3 {
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Sufficient for answers */
    padding-top: 0.5rem;
}

.faq-item:hover:not(.active) {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1.5rem 1.8rem;
    }

    .faq-question h3 {
        font-size: 1.1rem;
        padding-right: 1rem;
    }

    .faq-answer {
        padding: 0 1.8rem;
    }
}