.hero {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    padding-right: 0;
    max-width: 100%;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero-grid > div:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--secondary);
    text-align: center;
    max-width: 600px;
}

.blue {
    color: var(--primary);
}

.hero-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 15%, black 30%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 15%, black 30%);
}

.scroll-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 161, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 161, 241, 0.2);
    animation: float 3s ease-in-out infinite;
    z-index: 100;
    cursor: pointer;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-btn {
        animation: none;
    }
}

.scroll-btn:hover {
    background: var(--bg);
    border-color: var(--primary);
}

.services {
    padding: 80px 0;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary);
}

.tabs input {
    display: none;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 15px;
}

.tab-buttons label {
    padding: 12px 24px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.tab-buttons label:hover {
    color: var(--primary);
    background: var(--bg-accent);
}

.tab-buttons label::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

#tab1:checked ~ .tab-buttons label:nth-child(1),
#tab2:checked ~ .tab-buttons label:nth-child(2),
#tab3:checked ~ .tab-buttons label:nth-child(3),
#tab4:checked ~ .tab-buttons label:nth-child(4) {
    color: var(--primary);
}

#tab1:checked ~ .tab-buttons label:nth-child(1)::after,
#tab2:checked ~ .tab-buttons label:nth-child(2)::after,
#tab3:checked ~ .tab-buttons label:nth-child(3)::after,
#tab4:checked ~ .tab-buttons label:nth-child(4)::after {
    transform: scaleX(1);
}

.tab-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

#tab1:checked ~ [data-tab="1"],
#tab2:checked ~ [data-tab="2"],
#tab3:checked ~ [data-tab="3"],
#tab4:checked ~ [data-tab="4"] {
    display: grid;
}

.tab-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.tab-panel p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.tab-panel img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.ecology {
    background: radial-gradient(circle at center, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    color: var(--bg);
    text-align: center;
    padding: 80px 0;
}

.ecology p {
    font-size: 2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.trust {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    padding: 80px 0;
}

.trust h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary);
}

.carousel {
    overflow: hidden;
    margin-bottom: 80px;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 30px;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 2)); }
}

.carousel-track:hover {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        animation: none;
    }
}

.carousel .card {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-gray) 100%);
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 200px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.carousel .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.carousel .card img {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.carousel .card:hover img {
    filter: grayscale(0%);
}

.carousel .card p {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.testimonials {
    padding-top: 40px;
}

.testimonial-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-cards {
    position: relative;
    height: 400px;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 700px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 244, 248, 0.95));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 161, 241, 0.15);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 161, 241, 0.2);
    text-align: center;
    opacity: 0;
    animation: testimonialRotate 18s infinite;
}

.testimonial:nth-child(1) { animation-delay: 0s; }
.testimonial:nth-child(2) { animation-delay: 6s; }
.testimonial:nth-child(3) { animation-delay: 12s; }

@keyframes testimonialRotate {
    0%, 33.33% { opacity: 1; z-index: 1; }
    36.33%, 100% { opacity: 0; z-index: 0; }
}

.testimonial-icon {
    width: 80px;
    height: 80px;
    color: var(--primary);
    display: block;
    margin: 0 auto 20px;
}

.quote {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.stars {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 20px;
}

.star-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #f1d536;
}

.author {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.note {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary);
    background: rgba(0, 161, 241, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 5px;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.dots {
    display: flex;
    gap: 12px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    animation: dotPulse 18s infinite;
}

.dots span:nth-child(1) { animation-delay: 0s; }
.dots span:nth-child(2) { animation-delay: 6s; }
.dots span:nth-child(3) { animation-delay: 12s; }

@keyframes dotPulse {
    0%, 33.33% { background: var(--primary); transform: scale(1.3); }
    36.33%, 100% { background: var(--border); transform: scale(1); }
}

.testimonial-links {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.testimonial-links a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 0 0;
    }

    .hero .container {
        height: auto;
        padding: 0;
        max-width: 100%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 30px;
    }

    .hero-grid > div:first-child {
        order: 1;
        padding: 80px 20px 40px;
    }

    .hero h1 {
        font-size: 2rem;
        max-width: 100%;
    }

    .hero-img {
        order: 2;
        height: 70vh;
        min-height: 500px;
        mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 15%, black 30%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 15%, black 30%);
    }

    .scroll-btn {
        bottom: 20px;
    }

    .tab-panel {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tab-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .tab-buttons label {
        white-space: normal;
        text-align: center;
        padding: 15px 20px;
    }

    .services h2 {
        font-size: 2rem;
    }
}
