/* Color Variables */
:root {
    --primary-bg: #001233;  /* Dark navy blue background */
    --secondary-bg: #001845; /* Slightly lighter navy for sections */
    --text-color: #ffffff;  /* White text */
    --accent-color: #c4185b; /* Bright magenta accent */
    --accent-hover: #e6246e; /* Lighter magenta for hover states */
    --card-bg: #002055; /* Dark blue for cards */
    --light-bg: #0a2463; /* Lighter blue for alternate sections */
    --footer-bg: #000c24; /* Darkest blue for footer */
    --shadow-color: rgba(0, 0, 0, 0.2);
    --home-link-color: #e6246e; /* Home link in navigation */
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

main {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 1 !important;
}

section {
    padding: 80px 0;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

h2::after {
    display: none;
}

h2.animate::after {
    width: 80px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Button Animation */
.btn, .cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.btn:hover, .cta-button:hover {
    transform: translateY(-3px);
}

.btn::before, .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn:hover::before, .cta-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Navigation */
header {
    background-color: var(--footer-bg);
    width: 100%;
    position: relative;
    z-index: 10;
    height: auto !important;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: 100%;
    background-color: var(--footer-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    width: 45px;
    height: auto;
    margin-right: 12px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-color);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-right: 80px;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links li:first-child a {
    color: var(--home-link-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.burger {
    display: none;
    cursor: pointer;
    margin-right: 20px;
    z-index: 30;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    background: url('images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -4px; /* Fix any gap */
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 18, 51, 0.8), rgba(0, 18, 51, 0.9)); /* More transparent overlay */
    z-index: 1;
}

.hero {
    position: relative;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding: 0 20px;
    z-index: 2;
    background-color: transparent;
}

.hero::before,
.hero::after {
    display: none; /* Remove any potential pseudo elements */
}

.hero h1, 
.hero p, 
.hero .cta-button {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 5;
    background: none;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero .cta-button {
    position: relative;
    z-index: 5;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 16px 32px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 5px 20px rgba(196, 24, 91, 0.4);
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 8px 25px rgba(196, 24, 91, 0.4);
    transform: translateY(-3px);
}

.cta-button .btn-arrow {
    display: inline-block;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.cta-button:hover .btn-arrow {
    transform: translateX(5px);
}

/* Fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* About Section */
.about-section {
    background-color: var(--secondary-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text, 
.about-image, 
.team-image {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.about-text {
    flex: 1;
}

.about-text.animate {
    animation: fadeInLeft 0.8s ease forwards;
}

.about-image {
    flex: 1;
}

.about-image.animate {
    animation: fadeInRight 0.8s ease forwards 0.3s;
}

.team-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Why Choose Section */
.why-choose-section {
    background-color: var(--primary-bg);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1 !important;
    transform: none !important;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.feature:nth-child(1).animate {
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.feature:nth-child(2).animate {
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

.feature:nth-child(3).animate {
    animation: fadeInUp 0.6s ease forwards 0.6s;
}

/* Reviews Section */
.reviews-section {
    background-color: var(--light-bg);
}

.reviews-intro {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1 !important;
    transform: none !important;
}

.review:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.review:nth-child(1).animate {
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.review:nth-child(2).animate {
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

.review:nth-child(3).animate {
    animation: fadeInUp 0.6s ease forwards 0.6s;
}

.stars {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.reviewer {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.reviews-link {
    display: block;
    text-align: center;
    margin-top: 40px;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    opacity: 1 !important;
    transform: none !important;
}

.reviews-link.animate {
    animation: fadeInUp 0.6s ease forwards 0.8s;
}

.reviews-link:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* Services Section */
.services-section {
    background-color: var(--secondary-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1 !important;
    transform: none !important;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.service:nth-child(1).animate {
    animation: fadeInUp 0.6s ease forwards 0.1s;
}

.service:nth-child(2).animate {
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.service:nth-child(3).animate {
    animation: fadeInUp 0.6s ease forwards 0.3s;
}

.service:nth-child(4).animate {
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

.service:nth-child(5).animate {
    animation: fadeInUp 0.6s ease forwards 0.5s;
}

.service:nth-child(6).animate {
    animation: fadeInUp 0.6s ease forwards 0.6s;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 8px var(--shadow-color);
    opacity: 1 !important;
    transform: none !important;
}

.contact-info:hover {
    box-shadow: 0 8px 20px var(--shadow-color);
}

.map {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-color);
    opacity: 1 !important;
    transform: none !important;
}

.map:hover {
    box-shadow: 0 8px 20px var(--shadow-color);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.footer-logo-container {
    display: flex;
    align-items: center;
}

.footer-logo-image {
    width: 45px;
    height: auto;
    margin-right: 12px;
    filter: brightness(0) invert(1); /* Makes the logo white for dark background */
    transition: transform 0.5s ease;
}

.footer-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-color);
    white-space: nowrap;
}

.footer-logo:hover .footer-logo-image {
    transform: scale(1.1);
}

footer p {
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
}

footer p:nth-child(2) {
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

footer p:nth-child(3) {
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .features,
    .reviews-container,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo-text {
        font-size: 1.1rem;
    }

    .logo {
        margin-left: 40px;
    }

    .nav-links {
        margin-right: 40px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: var(--footer-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 20;
        margin-right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .logo {
        margin-left: 20px;
    }
    
    .logo-image {
        width: 40px;
        margin-right: 10px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-links li {
        opacity: 0;
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }
    
    .burger {
        display: block;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    
    .features,
    .reviews-container,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        white-space: normal;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
}

/* Nav Animation Classes */
.nav-active {
    transform: translateX(0%) !important;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Remove Preloader Styles */
.preloader {
    display: none !important;
}

.loader {
    display: none !important;
}

/* Remove preloader animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

body.loaded {
    animation: none;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* BBB Badge */
.bbb-badge {
    position: fixed;
    top: 120px;
    left: 20px;
    z-index: 100;
    opacity: 1 !important;
    animation: none !important;
    transition: transform 0.3s ease;
}

.bbb-image {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
    background-color: white;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bbb-badge a:hover .bbb-image {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.bbb-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    right: -220px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bbb-tooltip::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(0, 0, 0, 0.85);
}

.bbb-tooltip p {
    margin: 5px 0;
    font-size: 0.9rem;
    text-align: center;
}

.bbb-badge a:hover .bbb-tooltip {
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 768px) {
    .bbb-badge {
        top: auto;
        bottom: 20px;
        left: 20px;
    }
    
    .bbb-image {
        width: 70px;
    }
    
    .bbb-tooltip {
        right: auto;
        top: auto;
        bottom: 90px;
        left: 0;
        transform: translateY(10px);
    }
    
    .bbb-tooltip::before {
        left: 20px;
        top: auto;
        bottom: -8px;
        transform: none;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 8px solid rgba(0, 0, 0, 0.85);
        border-bottom: none;
    }
    
    .bbb-badge a:hover .bbb-tooltip {
        transform: translateY(0);
    }
}

/* Fix all remaining animation issues */
.footer-logo,
footer p,
h2::after,
.feature:nth-child(1),
.feature:nth-child(2),
.feature:nth-child(3),
.review:nth-child(1),
.review:nth-child(2),
.review:nth-child(3),
.service:nth-child(1),
.service:nth-child(2),
.service:nth-child(3),
.service:nth-child(4),
.service:nth-child(5),
.service:nth-child(6) {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Reset h2 animation */
h2::after {
    width: 80px !important;
}

/* Fix overflow issues */
.hero-section {
    overflow: hidden;
}

/* Make sure container is visible */
.container {
    opacity: 1 !important;
}

/* Contact Links Styling */
.contact-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
}

.contact-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Ensure proper display on mobile */
@media screen and (max-width: 768px) {
    .contact-link {
        display: inline-block;
        margin-bottom: 5px;
    }
}

/* Accent Link for BBB mention */
.accent-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.accent-link:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.accent-link:hover {
    color: var(--accent-hover);
}

.accent-link:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Center section titles & dividers */
.section-divider {
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 40px auto;
    display: block;
    position: relative;
    overflow: hidden;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Micro-animations */

/* Subtle hover effect for navigation links */
.nav-links a {
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    transform: translateY(-2px);
}

/* Subtle image hover effects */
.team-image, .service, .feature, .review {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Button hover animation */
.cta-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 24, 91, 0.4);
}

.cta-button .btn-arrow {
    display: inline-block;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.cta-button:hover .btn-arrow {
    transform: translateX(5px);
}

/* BBB badge subtle hover animation */
.bbb-badge:hover {
    transform: translateY(-3px);
}

/* Subtle focus animations for form elements */
input, textarea, select, button {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Service icon subtle animation */
.service h3 {
    position: relative;
    display: inline-block;
}

.service h3::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.service:hover h3::before {
    width: 100%;
}

/* Subtle Fade-in Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero elements fade in */
.hero h1 {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero p {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0; /* Start invisible */
}

.hero .cta-button {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0; /* Start invisible */
}

/* Section headers fade in */
h2 {
    animation: fadeIn 0.6s ease-out forwards;
}

.section-divider {
    animation: fadeIn 0.6s ease-out 0.1s forwards;
    opacity: 0; /* Start invisible */
}

/* Staggered fade-in for cards */
.feature:nth-child(1) {
    animation: fadeIn 0.6s ease-out 0.1s forwards;
}

.feature:nth-child(2) {
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

.feature:nth-child(3) {
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}

.service:nth-child(1) {
    animation: fadeIn 0.6s ease-out 0.1s forwards;
}

.service:nth-child(2) {
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

.service:nth-child(3) {
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}

.service:nth-child(4) {
    animation: fadeIn 0.6s ease-out 0.4s forwards;
}

.service:nth-child(5) {
    animation: fadeIn 0.6s ease-out 0.5s forwards;
}

.service:nth-child(6) {
    animation: fadeIn 0.6s ease-out 0.6s forwards;
}

.review:nth-child(1) {
    animation: fadeIn 0.6s ease-out 0.1s forwards;
}

.review:nth-child(2) {
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

.review:nth-child(3) {
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}

/* Contact section fade in */
.contact-info {
    animation: fadeIn 0.6s ease-out forwards;
}

.map {
    animation: fadeIn 0.6s ease-out 0.2s forwards;
    opacity: 0; /* Start invisible */
}

/* BBB badge fade in */
.bbb-badge {
    animation: fadeIn 0.6s ease-out 1s forwards;
    opacity: 0; /* Start invisible */
}

/* Footer elements fade in */
footer .footer-logo {
    animation: fadeIn 0.6s ease-out forwards;
}

footer p:nth-child(2) {
    animation: fadeIn 0.6s ease-out 0.1s forwards;
    opacity: 0; /* Start invisible */
}

footer p:nth-child(3) {
    animation: fadeIn 0.6s ease-out 0.2s forwards;
    opacity: 0; /* Start invisible */
}

/* Add scroll-triggered animations using IntersectionObserver in JavaScript */

/* Scroll-triggered animations */
.feature, .service, .review, .contact-info, .map, h2, .section-divider {
    animation-play-state: paused;
}

/* Fade in animation timing - used by scroll observer */
h2 {
    animation: fadeIn 0.6s ease-out forwards;
    animation-play-state: paused;
}

.section-divider {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
    animation-play-state: paused;
}

/* Prevent BBB badge and hero elements from being affected by scroll observer */
.hero h1, .hero p, .hero .cta-button, .bbb-badge, footer .footer-logo, footer p {
    animation-play-state: running !important;
} 