/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
}

/* Navigation Bar */
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav .logo a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    font-weight: bold;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    transition: color 0.3s ease-in-out;
}

header nav ul li a:hover {
    color: #007BFF;
}

/* Hero Section */
#hero {
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
}

#hero .hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    animation: slideIn 1s ease-in-out forwards;
}

#hero .hero-content p {
    font-size: 24px;
    margin-bottom: 20px;
    animation: fadeInText 1.5s ease-in-out forwards;
}

.cta-button {
    background-color: #007BFF;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out, transform 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* Services Overview Section */
#services-overview {
    text-align: center;
    padding: 40px 0;
    background-color: #fff;
}

#services-overview h2 {
    margin-bottom: 40px;
    font-size: 32px;
}

.service-card {
    display: inline-block;
    background-color: #f8f8f8;
    margin: 15px;
    padding: 20px;
    width: 250px;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 40px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Timeline */
.history-timeline {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
}

.timeline-item {
    background-color: #f8f8f8;
    padding: 20px;
    width: 250px;
    border-radius: 10px;
    text-align: center;
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 250px;
    height: 300px;
    perspective: 1000px; /* Adds perspective for the 3D effect */
    margin: 20px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d; /* Ensures both front and back are in 3D */
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg); /* The flip effect when hovered */
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Ensures hidden side is not visible */
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds shadow to cards */
    padding: 20px;
}

.flip-card-front {
    background-color: #f1f1f1; /* Front card background color */
    color: black;
}

.flip-card-back {
    background-color: #4CAF50; /* Back card background color */
    color: white;
    transform: rotateY(180deg); /* Back of the card starts flipped */
}

/* Success Message Box */
.success-message {
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    padding: 15px; /* Padding for spacing */
    margin: 20px 0; /* Margin for spacing around the box */
    border-radius: 5px; /* Rounded corners */
    font-size: 18px; /* Larger font size */
    text-align: center; /* Center the text */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
    transition: opacity 0.5s ease-in-out; /* Smooth fade-in effect */
    opacity: 0; /* Hidden by default */
}

.success-message.show {
    opacity: 1; /* Show when the class "show" is added */
}
