/* General styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em;
}

/* Hero Section */
.hero {
    background: url('https://assets.bacancytechnology.com/main-boot-5/images/ecommerce-development/banner.jpg?v-1') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 6em 0;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.6);
    display: inline-block;
    padding: 3em;
    border-radius: 10px;
    animation: fadeIn 2s ease-in-out;
}

.hero h1 {
    font-size: 4em;
    margin: 0 0 0.5em 0;
}

.hero p {
    font-size: 1.5em;
    margin: 0;
}

/* About Section */
.about {
    background-color: #f9f9f9;
    padding: 4em 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 1em;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2em;
    flex-wrap: wrap;
}

.about p {
    flex: 1;
    font-size: 1.2em;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    max-width: 50%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.about-image:hover {
    transform: scale(1.05);
}

.about .btn-primary {
    display: block;
    width: fit-content;
    margin: 2em auto;
    padding: 0.5em 1.5em;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.about .btn-primary:hover {
    background-color: #0056b3;
}

/* Services Section */
.services {
    padding: 4em 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 2em;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

.service {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 2em;
    width: calc(25% - 2em);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1em;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service h3 {
    margin-top: 0;
    color: #007bff;
}

.service p {
    font-size: 1.1em;
    line-height: 1.8;
}

/* Testimonials Section */
.testimonials {
    background-color: #f9f9f9;
    padding: 4em 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2em;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

.testimonial {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 2em;
    width: calc(33% - 2em);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
}

.testimonial p {
    font-size: 1.1em;
    line-height: 1.8;
}

.testimonial h4 {
    margin-top: 1em;
    color: #007bff;
}

/* Team Section */
.team {
    padding: 4em 0;
}

.team h2 {
    text-align: center;
    margin-bottom: 2em;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

.team-member {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 2em;
    width: calc(25% - 2em);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.team-member-image {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1em;
    border-radius: 50%;
}

.team-member h3 {
    margin: 1em 0 0.5em 0;
    color: #007bff;
}

.team-member p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 4em 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2em;
}

.contact p {
    text-align: center;
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2em auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.contact-form input, .contact-form textarea {
    padding: 0.5em;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    padding: 0.5em 1em;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #0056b3;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
}

.footer p {
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideIn {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

/* Values Section */
.values {
    background-color: #fff;
    padding: 4em 0;
}

.values h2 {
    text-align: center;
    margin-bottom: 2em;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

.value-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 2em;
    width: calc(25% - 2em);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.value-item h3 {
    margin-top: 0;
    color: #ff5722;
}

.value-item p {
    font-size: 1.1em;
    line-height: 1.8;
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4em 0;
}

.timeline h2 {
    text-align: center;
    margin-bottom: 2em;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #ddd;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 2em 0;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    padding-right: 2em;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding-left: 2em;
}

.timeline-item.left::before {
    content: ' ';
    height: 0;
    position: absolute;
    top: 15px;
    right: -15px;
    width: 0;
    z-index: 1;
    border: medium solid #ddd;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #ddd;
}

.timeline-item.right::before {
    content: ' ';
    height: 0;
    position: absolute;
    top: 15px;
    left: -15px;
    width: 0;
    z-index: 1;
    border: medium solid #ddd;
    border-width: 10px 10px 10px 0;
    border-color: transparent #ddd transparent transparent;
}

.timeline-item .timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timeline-item.left .timeline-content {
    right: 0;
    animation: slideInFromLeft 0.5s forwards;
}

.timeline-item.right .timeline-content {
    left: 0;
    animation: slideInFromRight 0.5s forwards;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.timeline-content h3 {
    margin-top: 0;
    color: #ff5722;
}

.timeline-content p {
    font-size: 1.1em;
    line-height: 1.8;
}
