.hero {
    padding: 80px 0;
    font-family: 'Segoe UI', sans-serif;
}

.hero-container {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.grid-2 > div {
    flex: 1 1 45%;
    min-width: 300px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    background: linear-gradient(to right, #2d8bff, #00c9a7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.6;
}

.buttons {
    margin-bottom: 30px;
}

.btn-custom-primary,
.btn-custom-secondary {
    display: inline-block;
    padding: 8px 12px;

    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
    color: white;
}

.bg-blue-600 {
    --tw-bg-opacity: 1;
    background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}

.btn-custom-primary:hover {
    background-color: #1e6dd6;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.stats span:nth-child(2) {
    color: #00c853; /* green for 99% uptime */
}

.text-blue-600 {
    --tw-text-opacity: 1;
    color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}

.text-teal-500 {
    --tw-text-opacity: 1;
    color: rgb(20 184 166 / var(--tw-text-opacity, 1));
}

.text-green-500 {
    --tw-text-opacity: 1;
    color: rgb(34 197 94 / var(--tw-text-opacity, 1));
}

.stats span:nth-child(3) {
    color: #00b0ff; /* blue for 24/7 support */
}

.hero-img img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.font-lg {
    font-size: x-large;
}

.text-hero-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-weight-500 {
    font-weight: 500 !important;
}

/* Hero Image Carousel Styles */
.hero-img {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.image-carousel {
    width: 100%;
    max-width: 650px;
    height: 460px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    /* Making shadow more pronounced */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid #EAEAEA;
    cursor: pointer;
    transition: box-shadow 0.3s ease, border 0.3s ease;
    z-index: 2;
    margin: 0 auto;
}

.image-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
            ellipse at center,
            transparent 40%,
            rgba(0, 0, 0, 0.05) 70%,
            rgba(0, 0, 0, 0.15) 85%,
            rgba(0, 0, 0, 0.25) 100%
    );
    border-radius: 12px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
            135deg,
            rgba(45, 139, 255, 0.1) 0%,
            transparent 25%,
            transparent 75%,
            rgba(0, 201, 167, 0.1) 100%
    );
    border-radius: 12px;
    z-index: 6;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.image-carousel:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border-color: #C9C9C9;
}

.image-carousel:hover::before {
    opacity: 0.7;
}

.image-carousel:hover::after {
    opacity: 0.8;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    border-radius: 12px;
}

.carousel-image.active {
    opacity: 1;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.image-carousel:hover .carousel-image.active {
    transform: scale(1.02);
}

/* Vignette Effect for Professional Look */
.carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, transparent 15%, transparent 85%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, transparent 15%, transparent 85%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 12px;
    z-index: 7;
    pointer-events: none;
}

/* Navigation Controls */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    color: #2d8bff;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
    opacity: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #1e6dd6;
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.image-carousel:hover .carousel-nav {
    opacity: 1;
}

/* Dot Indicators */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(45, 139, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Professional fade-out edges effect - seamless page integration */
.hero-img::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    background: radial-gradient(
            ellipse 650px 650px at center,
            transparent 0%,
            transparent 45%,
            rgba(248, 250, 252, 0.1) 60%,
            rgba(248, 250, 252, 0.3) 75%,
            rgba(248, 250, 252, 0.6) 85%,
            rgba(248, 250, 252, 0.9) 95%,
            rgba(248, 250, 252, 1) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Additional outer fade for better integration */
.hero-img::after {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    right: -60px;
    bottom: -60px;
    background: radial-gradient(
            ellipse 700px 700px at center,
            transparent 0%,
            transparent 55%,
            rgba(248, 250, 252, 0.2) 75%,
            rgba(248, 250, 252, 0.8) 92%,
            rgba(248, 250, 252, 1) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .image-carousel {
        max-width: 550px;
        height: 380px;
    }
}

@media (max-width: 992px) {
    .image-carousel {
        max-width: 100%;
        height: 350px;
        margin-bottom: 2rem;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .image-carousel {
        height: 280px;
        border-radius: 8px;
    }

    .image-carousel::before,
    .image-carousel::after,
    .carousel-container {
        border-radius: 8px;
    }

    .carousel-image {
        border-radius: 8px;
    }

    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .carousel-prev {
        left: 8px;
    }

    .carousel-next {
        right: 8px;
    }

    .carousel-dots {
        bottom: 15px;
        gap: 8px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .image-carousel {
        height: 240px;
        border-radius: 6px;
    }

    .image-carousel::before,
    .image-carousel::after,
    .carousel-container {
        border-radius: 6px;
    }

    .carousel-image {
        border-radius: 6px;
    }

    .carousel-nav {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    .carousel-dots {
        bottom: 12px;
        gap: 6px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 400px) {
    .image-carousel {
        height: 200px;
    }

    .carousel-nav {
        opacity: 0.8;
        width: 25px;
        height: 25px;
        font-size: 10px;
    }

    .image-carousel:hover .carousel-nav {
        opacity: 1;
    }
}
