/* Root Variables for Theme Colors */
:root {
    --primary-color: #FF5A5F;
    --secondary-color: #333;
    --background-color: #f9f9f9;
    --cta-button-hover: #d1494e;
    --section-bg-color: white;
    --footer-bg-color: #333;
    --text-color-light: #555;
    --text-color-dark: #333;
}

/* Universal Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: rgb(180,181,115);
    background: radial-gradient(circle, rgba(180,181,115,1) 0%, rgba(208,213,218,1) 100%);
    color: var(--text-color-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Hero Section */
.hero {
    background-image: url('./images/crousel4.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    opacity: 0;
    animation: slideIn 1s ease-out forwards;
}

.hero-content p {
    font-size: 1.5rem;
    margin: 20px 0;
    opacity: 0;
    animation: fadeInText 2s ease-out forwards;
    animation-delay: 0.5s;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    opacity: 0;
    animation: fadeInButton 2s ease-out forwards;
    animation-delay: 1s;
}

.cta-button:hover {
    background-color: var(--cta-button-hover);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1.5s;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color-dark);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-color-light);
}

/* About Section */
.about {
    padding: 50px 20px;
    background: rgb(180,181,115);
    background: radial-gradient(circle, rgba(180,181,115,1) 0%, rgba(208,213,218,1) 100%);
    margin-bottom: 30px;
    animation: fadeInSection 1.5s ease-out forwards;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-image {
    flex: 1;
    position: relative;
    animation: slideInLeft 1.5s ease-out;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.about-image img:hover {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
    text-align: left;
    padding: 20px;
    animation: slideInRight 1.5s ease-out;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

/* Services Section */
.services {
    padding: 50px 20px;
    background: rgb(180,181,115);
    background: radial-gradient(circle, rgba(180,181,115,1) 0%, rgba(208,213,218,1) 100%);
    margin-bottom: 30px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: rgb(180,181,115);
    background: radial-gradient(circle, rgba(180,181,115,1) 0%, rgba(208,213,218,1) 100%);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 1rem;
    color: var(--text-color-light);
}

/* Infographics Section */
.infographics {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 2s;
}

.infographic {
    text-align: center;
    padding: 20px;
    animation: bounceIn 1s ease-out;
}

.infographic p {
    font-size: 1.1rem;
    margin-top: 10px;
    color: var(--text-color-light);
}

/* Call-to-Action Section */
.cta {
    padding: 50px 20px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    background-color: white;
    color: var(--primary-color);
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--cta-button-hover);
    color: white;
}

/* Footer Section */
footer {
    background-color: var(--footer-bg-color);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1;
    padding: 10px;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInButton {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInSection {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        width: 100%;
        height: auto;
    }

    .about-text {
        padding: 20px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .infographics {
        grid-template-columns: 1fr; /* Stack on small screens */
    }

    .hero-content h1 {
        font-size: 2.5rem; /* Smaller heading for mobile */
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 20px;
    }

    footer p {
        font-size: 0.9rem;
    }
}