/* Hero Section */

.text-container {
    height: auto;
    position: relative;
}

.text-group {
    display: none;
    opacity: 0;
}

.text-group.active {
    display: block;
    animation: fadeIn 1s forwards;
}

.text-group.active h1 {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.text-group.active p {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    border-right: 2px solid #fff;
    animation: typing 3.5s steps(40, end) forwards,
               blink 0.75s step-end infinite;
    animation-delay: 1s;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: #fff }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}



.hero-content {
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    z-index: 3;
    color: white;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: white;
    opacity: 1;
    font-weight: bold;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    padding: 1rem;
    opacity: 1;
}

.cta-button {
    background: linear-gradient(45deg, #007bff, #00bfff);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg, #0056b3, #0098ff);
}
.hero {
    min-height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Wave and overlay styles */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 2;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(140% + 1.3px);
    height: 150px;
    animation: wave-animation 18s linear infinite;
}

.custom-shape-divider-bottom .shape-fill {
    fill: #FFFFFF;
}

@keyframes wave-animation {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-50px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 6rem 1.5rem 2rem;
    }

    .hero-content {
        width: 100%;
    }

    .text-container {
        width: 100%;
    }

    .text-group h1 {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
        line-height: 1.3;
    }

    .text-group p {
        font-size: clamp(1rem, 2vw, 1.2rem);
        margin-top: 1rem;
    }

    .highlight-text {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }

    .hero-buttons {
        margin-top: 2rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .custom-shape-divider-bottom {
        bottom: -2px;
    }

    .custom-shape-divider-bottom svg {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 2rem;
    }

    .text-group h1 {
        font-size: 1.6rem;
    }

    .text-group p {
        font-size: 0.9rem;
    }

    .highlight-text {
        font-size: 1.6rem;
    }

    .hero-buttons {
        margin-top: 1.5rem;
    }
}
