/* ==========================================
   HOMEPAGE HERO
========================================== */

.home-hero {
    width: 100%;
    min-height: 620px;
    position: relative;
    overflow: hidden;
    background: var(--primary-gradient);
    font-family: 'Poppins', sans-serif;
    color: var(--light-text);
}

.hero-container {
    width: 100%;
    max-width: 1320px;
    min-height: 620px;
    margin: auto;
    padding: 70px 50px 65px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ==========================================
   BACKGROUND DECORATIONS
========================================== */

.hero-background-shape {
    position: absolute;
    left: -8%;
    top: 24%;
    width: 65%;
    height: 190px;
    background: color-mix(in srgb, var(--primary-color) 48%, transparent);
    transform: rotate(17deg);
    border-radius: 10px;
    z-index: 0;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.hero-circle-one {
    width: 11px;
    height: 11px;
    background: var(--primary-light);
    top: 35px;
    left: 26%;
}

.hero-circle-two {
    width: 25px;
    height: 25px;
    border: 1px solid var(--primary-color);
    top: 105px;
    left: 63%;
}

.hero-circle-three {
    width: 17px;
    height: 17px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    bottom: 90px;
    right: 35%;
}

/* ==========================================
   LEFT CONTENT
========================================== */

.hero-content {
    width: 52%;
    position: relative;
    z-index: 5;
    padding-left: 48px;
}

.hero-heading h1 {
    font-size: clamp(42px, 4vw, 58px);
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--light-text);
    margin: 0 0 28px;
}

.highlight-text {
    color: var(--accent-color);
    display: inline;
}

.hero-description {
    max-width: 600px;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;
    color: color-mix(in srgb, var(--light-text) 90%, transparent);
    margin: 0 0 42px;
}

/* ==========================================
   GET STARTED BUTTON
========================================== */

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    min-width: 185px;
    padding: 8px 8px 8px 25px;
    background: var(--primary-color);
    color: var(--light-text);
    border-radius: 17px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 8px 25px color-mix(in srgb, var(--secondary-color) 30%, transparent);
    transition: var(--transition);
}

.hero-button:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-4px);
}

.hero-button-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.17);
    border-radius: 10px;
    font-size: 17px;
}

/* ==========================================
   RIGHT SIDE IMAGE
========================================== */

.hero-image-wrapper {
    position: absolute;
    width: 51%;
    height: 100%;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 2;
}

.hero-image-bg {
    position: absolute;
    width: 85%;
    height: 90%;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--primary-light) 10%, transparent),
            color-mix(in srgb, var(--primary-light) 30%, transparent));
    border-radius: 50% 0 0 0;
}

.hero-main-image {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
    display: block;
}

/* ==========================================
   SMALL CIRCULAR IMAGE
========================================== */

.hero-small-image {
    position: absolute;
    top: -10px;
    right: -200px;
    width: 80px;
    height: 80px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    z-index: 6;
}

.hero-small-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================
   SLIDER CONTROLS
========================================== */

.hero-slider-controls {
    position: absolute;
    left: 0;
    top: 60%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.hero-slider-controls button {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: transparent;
    color: var(--accent-color);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.hero-slider-controls button:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
}

/* ==========================================
   BOTTOM DECORATION
========================================== */

.hero-bottom-decoration {
    position: absolute;
    bottom: -65px;
    right: -40px;
    width: 48%;
    height: 130px;
    border-radius: 50% 0 0 0;
    background: color-mix(in srgb, var(--primary-light) 24%, transparent);
    transform: rotate(-5deg);
}

/* ==========================================
   FLOATING CHAT BUTTON
========================================== */

.floating-chat-button {
    position: fixed;
    bottom: 45px;
    left: 25px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--light-text);
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.floating-chat-button:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-5px);
}

/* ==========================================
   BACK TO TOP
========================================== */

.hero-back-top {
    position: fixed;
    right: 25px;
    bottom: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    z-index: 999;
    transition: var(--transition);
}

.hero-back-top:hover {
    color: var(--accent-color);
}

.hero-back-top i {
    display: block;
    height: 32px;
    width: 3px;
    background: var(--secondary-color);
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media (max-width: 1100px) {

    .home-hero,
    .hero-container {
        min-height: 570px;
    }

    .hero-container {
        padding: 60px 35px;
    }

    .hero-content {
        width: 58%;
        padding-left: 25px;
    }

    .hero-heading h1 {
        font-size: 45px;
    }

    .hero-image-wrapper {
        width: 48%;
    }

    .hero-small-image {
        right: -100px;
    }

    .hero-slider-controls {
        left: 0;
    }
}

@media (max-width: 767px) {

    .home-hero,
    .hero-container {
        min-height: 780px;
    }

    .hero-container {
        display: block;
        padding: 65px 25px 0;
    }

    .hero-content {
        width: 100%;
        padding: 0 10px;
        text-align: center;
    }

    .hero-heading h1 {
        font-size: clamp(35px, 8vw, 48px);
        line-height: 1.25;
        letter-spacing: -1px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.7;
        margin: 0 auto 25px;
        max-width: 500px;
    }

    .hero-button {
        font-size: 15px;
        min-width: 165px;
        justify-content: space-between;
    }

    .hero-image-wrapper {
        width: 100%;
        height: 390px;
        right: 0;
        bottom: 0;
        justify-content: center;
    }

    .hero-main-image {
        object-position: center bottom;
        max-width: 100%;
    }

    .hero-small-image {
        width: 60px;
        height: 60px;
        top: 20px;
        right: 15%;
    }

    .hero-slider-controls {
        display: none;
    }

    .hero-background-shape {
        width: 100%;
        top: 20%;
    }

    .hero-back-top {
        right: 10px;
        bottom: 20px;
        font-size: 9px;
    }

    .floating-chat-button {
        bottom: 20px;
        left: 15px;
    }
}

@media (max-width: 480px) {

    .home-hero,
    .hero-container {
        min-height: 700px;
    }

    .hero-container {
        padding: 55px 18px 0;
    }

    .hero-heading h1 {
        font-size: 35px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-image-wrapper {
        height: 330px;
    }

}
/* =========================================
   ATTRACTIVE HOMEPAGE HERO ANIMATIONS
========================================= */

.home-hero {
    position: relative;
    overflow: hidden;
}

/* Background shape entrance */

.hero-background-shape {
    transform: scale(0.85);
    opacity: 0;
    animation: heroShapeReveal 1.4s ease forwards;
}

/* Decorative circles */

.hero-decoration {
    will-change: transform;
}

.hero-circle-one {
    animation:
        heroCircleReveal 1s ease 0.2s forwards,
        heroFloatOne 7s ease-in-out 1.2s infinite;
}

.hero-circle-two {
    animation:
        heroCircleReveal 1s ease 0.4s forwards,
        heroFloatTwo 9s ease-in-out 1.4s infinite;
}

.hero-circle-three {
    animation:
        heroCircleReveal 1s ease 0.6s forwards,
        heroFloatThree 8s ease-in-out 1.6s infinite;
}

/* Hero heading */

.hero-heading {
    opacity: 0;
    transform: translateX(-60px);
    animation: heroTextReveal 1s cubic-bezier(.22, 1, .36, 1) 0.25s forwards;
}

.hero-heading h1 {
    overflow: hidden;
}

/* Highlight text */

.highlight-text {
    display: inline-block;
    position: relative;
    transition: color 0.4s ease;
}

.hero-heading h1 .highlight-text:first-of-type {
    animation: highlightReveal 0.8s ease 0.7s both;
}

.hero-heading h1 .highlight-text:last-of-type {
    animation: highlightReveal 0.8s ease 0.95s both;
}

/* Description */

.hero-description {
    opacity: 0;
    transform: translateY(25px);
    animation: heroTextReveal 0.8s ease 0.65s forwards;
}

/* Button */

.hero-button {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(25px);
    animation: heroTextReveal 0.8s ease 0.85s forwards;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.hero-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -120%;
    width: 70%;
    height: 200%;
    background: linear-gradient(110deg,
            transparent,
            rgba(255, 255, 255, 0.35),
            transparent);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.hero-button:hover::before {
    left: 150%;
}

.hero-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Main image */

.hero-image-wrapper {
    opacity: 0;
    transform: translateX(70px) scale(0.92);
    animation: heroImageReveal 1.2s cubic-bezier(.22, 1, .36, 1) 0.35s forwards;
}

.hero-main-image {
    transform-origin: center;
    animation: heroImageFloat 6s ease-in-out 1.6s infinite;
    transition: filter 0.5s ease;
}

.hero-image-wrapper:hover .hero-main-image {
    filter: brightness(1.04);
}

/* Image background */

.hero-image-bg {
    animation: heroBgPulse 6s ease-in-out infinite;
}

/* Small team image */

.hero-small-image {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: heroSmallImageReveal 0.9s ease 1.1s forwards;
}

.hero-small-image img {
    transition: transform 0.6s ease;
}

.hero-small-image:hover img {
    transform: scale(1.08);
}

/* Slider controls */

.hero-slider-controls {
    opacity: 0;
    transform: translateY(20px);
    animation: heroTextReveal 0.8s ease 1.2s forwards;
}

.hero-slider-controls button {
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.hero-slider-controls button:hover {
    transform: translateY(-4px) scale(1.05);
}

/* Bottom decoration */

.hero-bottom-decoration {
    animation: heroBottomFloat 5s ease-in-out infinite;
}

/* =========================================
   HERO KEYFRAMES
========================================= */

@keyframes heroTextReveal {
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes heroImageReveal {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes heroSmallImageReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroShapeReveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heroCircleReveal {
    to {
        opacity: 1;
    }
}

@keyframes highlightReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes heroFloatOne {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -18px);
    }
}

@keyframes heroFloatTwo {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-18px, 15px);
    }
}

@keyframes heroFloatThree {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(12px, -20px);
    }
}

@keyframes heroBgPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}

@keyframes heroBottomFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* =========================================
   MOBILE ANIMATION ADJUSTMENTS
========================================= */

@media (max-width: 767px) {

    .hero-heading {
        transform: translateY(30px);
        animation-name: heroTextReveal;
    }

    .hero-image-wrapper {
        transform: translateY(40px) scale(0.95);
        animation-name: heroMobileImageReveal;
    }

    .hero-main-image {
        animation-duration: 7s;
    }

    .hero-circle-one,
    .hero-circle-two,
    .hero-circle-three {
        animation-duration: 1s, 10s;
    }
}

@keyframes heroMobileImageReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .home-hero *,
    .home-hero *::before,
    .home-hero *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-heading,
    .hero-description,
    .hero-button,
    .hero-image-wrapper,
    .hero-small-image,
    .hero-slider-controls,
    .hero-background-shape {
        opacity: 1 !important;
        transform: none !important;
    }
}
/* =========================================
   HOMEPAGE SCROLL REVEAL
========================================= */

.js-scroll-ready [data-scroll-reveal] {
    opacity: 0;
    transform: translateY(45px);
    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(.22, 1, .36, 1);
}

.js-scroll-ready [data-scroll-reveal].scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional stagger for repeated cards */

.service-card[data-scroll-reveal],
.project-card[data-scroll-reveal],
.why-feature[data-scroll-reveal] {
    transition-delay: var(--scroll-delay, 0ms);
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    [data-scroll-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* =====================================
   FAQ MAIN HEADING
===================================== */

.faq-main-heading {
    width: 100%;
    position: relative;

    margin:0 auto 15px;
    padding: 10px 15px;

    font-family: 'Poppins', sans-serif;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;

    color: #222222;
    text-align: center;
}

/* Green highlight underline */
.faq-main-heading::after {
    content: "";
    display: block;

    width: 75px;
    height: 4px;

    margin: 18px auto 0;

    background: #4c75ce;
    border-radius: 50px;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.6s ease;
}

/* Underline animation on hover */
.faq-main-heading:hover::after {
    transform: scaleX(1);
}

/* FAQ heading responsive */
@media (max-width: 768px) {
    .faq-main-heading {
        font-size: 34px;
        margin-bottom: 25px;
        letter-spacing: -0.5px;
    }

    .faq-main-heading::after {
        width: 60px;
        height: 3px;
        margin-top: 14px;
    }
}

@media (max-width: 480px) {
    .faq-main-heading {
        font-size: 28px;
        line-height: 1.3;
        padding: 0 10px;
    }
}

/* =====================================
   HERO SLIDE TRANSITION
===================================== */

.home-hero .hero-content,
.home-hero .hero-image-wrapper {
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.home-hero.hero-slide-changing .hero-content {
    opacity: 0;
    transform: translateY(15px);
}

.home-hero.hero-slide-changing .hero-image-wrapper {
    opacity: 0;
    transform: translateX(25px);
}

/* Heading line layout */

.hero-heading h1 .hero-title-line,
.hero-heading h1 .highlight-text {
    display: block;
}

/* Slider button hover */

.hero-slider-controls button {
    cursor: pointer;
    transition: var(--transition);
}

.hero-slider-controls button:hover {
    background: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-4px);
}