:root {
    --ocean-blue: #0077be; /* A vibrant blue */
    --teal: #008080; /* A strong teal */
    --dark-green: #004d40; /* A deep, rich green */
    --gold: #ffd700; /* A bright gold */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}
.hero-section {
    background: linear-gradient(45deg, var(--ocean-blue), var(--teal));
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    animation: hero-wave 15s infinite linear;
}
@keyframes hero-wave {
    0% { transform: rotate(30deg) translate(-25%, -25%); }
    100% { transform: rotate(30deg) translate(25%, 25%); }
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically if container has height */
}
.hero-content h1 {
    margin-bottom: 20px;
    text-align: center; /* Ensure text itself is centered within its own box */
}
.hero-content .sub-heading {
    font-size: 1vw; /* Smaller responsive font size for sub-heading */
    color: white; /* Example color, adjust as needed */
    white-space: nowrap;
    text-transform: uppercase;
    margin-top: -10px; /* Adjust as needed to position below h1 */
}
@media (max-width: 768px) {
    .hero-content .sub-heading {
        font-size: 2vw; /* Adjust for smaller screens */
    }
}
.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    animation: text-pop-up-top 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation-delay: 0.3s;
}
@keyframes text-pop-up-top {
    0% {
        transform: translateY(0);
        transform-origin: 50% 50%;
        text-shadow: none;
    }
    100% {
        transform: translateY(-50px);
        transform-origin: 50% 50%;
        text-shadow: 0 1px 0 #cccccc, 0 2px 0 #cccccc, 0 3px 0 #cccccc, 0 4px 0 #cccccc, 0 5px 0 #cccccc, 0 6px 0 #cccccc, 0 7px 0 #cccccc, 0 8px 0 #cccccc, 0 9px 0 #cccccc, 0 50px 30px rgba(0, 0, 0, 0.3);
    }
}

.service-card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden;
    position: relative;
}
.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}
.service-card img {
    max-height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}
.service-card:hover img {
    transform: scale(1.05);
}
.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 128, 128, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.service-card:hover .service-card-overlay {
    opacity: 1;
}
.service-card-overlay h5 {
    margin: 0;
    font-size: 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--teal);
    border-radius: 5px;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll.scale-in {
    transform: scale(0.9);
}
.animate-on-scroll.scale-in.is-visible {
    transform: scale(1);
}
.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}
.animate-on-scroll.slide-left.is-visible {
    transform: translateX(0);
}
.animate-on-scroll.slide-right {
    transform: translateX(50px);
}
.animate-on-scroll.slide-right.is-visible {
    transform: translateX(0);
}



@media (max-width: 768px) {
    .hero-content h1.effect-animated-gradient {
        font-size: 15vw; /* Larger font size for smaller screens */
    }
}
@keyframes animated-gradient-flow {
    to { background-position: 200% center; }
}

.navbar-dark.bg-primary {
    background: linear-gradient(90deg, royalblue, teal, royalblue);
    background-size: 400% auto;
    animation: animated-gradient-flow 10s linear infinite;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Added drop-shadow */
}

.btn-primary {
    background-color: var(--ocean-blue);
    border-color: var(--ocean-blue);
}

.btn-info {
    background-color: var(--teal);
    border-color: var(--teal);
}

.card-header.bg-info {
    background-color: var(--teal) !important;
}

.card-header.bg-success {
    background-color: var(--dark-green) !important;
}

.hero-content h1.effect-animated-gradient {
    font-size: 10vw; /* Responsive font size */
    font-weight: bold;
    background: linear-gradient(90deg, var(--gold), orangered, var(--gold));
    background-size: 400% auto; /* Increased for smoother animation */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent !important;
    color: transparent; /* Added for broader compatibility */
    animation: animated-gradient-flow 10s linear infinite; /* Increased duration for smoother animation */
    display: inline-block;
    line-height: 1;
    white-space: nowrap; /* Ensure text stays on one line */
    text-transform: uppercase; /* Ensure text is all caps */
}

.hero-content .sub-heading {
    font-size: 2.5vw; /* Bigger responsive font size */
    color: white;
    white-space: nowrap;
    text-transform: uppercase;
    margin-top: 10px; /* Adjust as needed */
    text-shadow: none; /* Remove any text effects */
    font-weight: bold;
}