/* Modern Hero Redesign - Forest/Lime Theme (Savio Inspired) */
:root {
    --hero-bg-deep: #022c22;
    /* Deep Forest Green */
    --hero-bg-accent: #064e3b;
    /* Slightly lighter green */
    --hero-neon-green: #4ade80;
    /* Lime Green */
    --hero-neon-emerald: #10b981;
    /* Emerald */
    --hero-neon-glow: rgba(74, 222, 128, 0.4);
    --hero-text-primary: #ffffff;
    --hero-text-secondary: rgba(255, 255, 255, 0.8);
}

.main-slider-three {
    background-color: var(--hero-bg-deep);
    position: relative;
    overflow: hidden;
    padding-bottom: 0 !important;
}

/* Background Effects */
.main-slider-three::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 78, 59, 0.4) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.main-slider-three::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Slider Overrides */
.main-slider-three-bg {
    background-image: none !important;
    background: var(--hero-bg-deep);
    opacity: 0.95;
    display: none;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
    z-index: 2;
}

/* Container Layout */
.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

/* Text Side */
.hero-text-content {
    flex: 1;
    max-width: 650px;
    z-index: 10;
}

.hero-tagline {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 30px;
    color: var(--hero-neon-green);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--hero-text-primary);
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--hero-neon-green);
    background: none;
    -webkit-text-fill-color: initial;
    font-style: normal;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--hero-text-secondary);
    margin-bottom: 40px;
    max-width: 90%;
}

/* Modern Buttons - Fixed Styling */
.hero-btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-modern-primary {
    padding: 16px 36px !important;
    border-radius: 50px !important;
    background: var(--hero-neon-green) !important;
    color: #022c22 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    line-height: 1 !important;
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.5) !important;
    background: #22c55e !important;
}

.btn-modern-outline {
    padding: 16px 36px !important;
    border-radius: 50px !important;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    line-height: 1 !important;
}

.btn-modern-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: white !important;
    transform: translateY(-3px);
}

/* Visual Side - Floating Elements */
.hero-visual-content {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.card-main {
    width: 320px;
    z-index: 2;
}

.card-img-fit {
    width: 100%;
    border-radius: 16px;
    display: block;
}

/* Float Icons */
.float-icon {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #022c22;
    border: 1px solid rgba(74, 222, 128, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-neon-green);
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.float-1 {
    top: 5%;
    right: 10%;
    animation: float 5s ease-in-out infinite 0.5s;
}

.float-2 {
    bottom: 10%;
    left: 0%;
    animation: float 7s ease-in-out infinite 1s;
    border-color: var(--hero-neon-emerald);
    color: var(--hero-neon-emerald);
}

/* Grid Background */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 222, 128, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 222, 128, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
    pointer-events: none;
    z-index: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Smooth Fade In */
.fadeInUp {
    animation: fadeInUp 0.8s ease backwards;
}

.fadeInDown {
    animation: fadeInDown 0.8s ease backwards;
}

.fadeInRight {
    animation: fadeInRight 0.8s ease backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-btn-group {
        justify-content: center;
    }

    .hero-visual-content {
        height: 350px;
        width: 100%;
    }

    .card-main {
        width: 280px;
    }
}

/* Services Section - Forest Theme */
.services-section-forest {
    background: #011c16 !important;
    /* Darker Deep Forest */
    background: linear-gradient(180deg, #011c16 0%, #033025 100%) !important;
    padding-top: 50px !important;
    padding-bottom: 80px !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 10 !important;
}

.services-section-forest .section-title__tagline {
    color: #4ade80 !important;
}

.services-section-forest .section-title__title {
    color: #ffffff !important;
}

.services-section-forest .services-three__top-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

.service-card-premium {
    background: rgba(1, 20, 16, 0.8) !important;
    /* Darker, more opaque */
    border: 1px solid rgba(74, 222, 128, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
    border-radius: 15px !important;
    padding: 30px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}

.service-card-premium:hover {
    background: rgba(1, 20, 16, 0.95) !important;
    border-color: #4ade80 !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.15) !important;
}

.service-card-premium .services-three__icon {
    background: rgba(74, 222, 128, 0.05) !important;
    /* Subtle lime bg container */
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 25px !important;
    transition: all 0.3s ease !important;
}

.service-card-premium:hover .services-three__icon {
    background: rgba(74, 222, 128, 0.15) !important;
    transform: scale(1.1);
}

.service-card-premium .services-three__icon span {
    color: #4ade80 !important;
    /* Lime Green Icon */
    font-size: 35px !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.service-card-premium .services-three__title a {
    color: white !important;
}

.service-card-premium .services-three__title a:hover {
    color: #4ade80 !important;
}

.service-card-premium .services-three__text {
    color: rgba(255, 255, 255, 0.7) !important;
}

.service-card-premium .services-three__learn-more a {
    color: #4ade80 !important;
    font-weight: 600 !important;
}

.service-card-premium .services-three__learn-more a:hover {
    color: white !important;
}

/* 
=============================================
RESPONSIVE FIXES (Mobile & Tablet) 
Added to ensure Forest Green/Savio Theme integrity on smaller screens
=============================================
*/

/* Global Fixes to prevent horizontal scroll */
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* TABLET FIXES (768px - 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {

    /* Hero Section */
    .hero-savio-title {
        font-size: 38px !important;
        line-height: 1.3 !important;
        max-width: 90% !important;
    }

    .hero-savio-subtitle {
        font-size: 16px !important;
        max-width: 100% !important;
    }

    .hero-savio-buttons {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-bottom: 30px !important;
    }

    /* Prevent intersection */
    .main-slider-three__content {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }

    /* Services Section */
    .services-section-forest {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .service-card-premium {
        margin-bottom: 25px !important;
        min-height: auto !important;
        /* Allow auto height */
    }
}

/* MOBILE FIXES (< 768px) */
@media only screen and (max-width: 767px) {

    /* Hero Section */
    .hero-savio-badge {
        font-size: 10px !important;
        padding: 5px 10px !important;
        white-space: normal !important;
        /* Allow wrapping if needed */
        display: inline-block !important;
        width: auto !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    .hero-savio-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    .hero-savio-subtitle {
        font-size: 14px !important;
        margin-bottom: 25px !important;
    }

    .hero-savio-buttons {
        flex-direction: column !important;
        width: 100% !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .hero-savio-btn-primary,
    .hero-savio-btn-secondary {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
    }

    .main-slider-three__content {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Services Section */
    .services-section-forest {
        padding: 40px 15px !important;
    }

    .service-card-premium {
        padding: 20px !important;
        margin-bottom: 20px !important;
        background: rgba(2, 44, 34, 0.85) !important;
        /* Stronger opacity for readability */
    }

    .service-card-premium .services-three__icon {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }

    .service-card-premium .services-three__title {
        font-size: 18px !important;
    }
}