* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background: url('epel1.gif') no-repeat center center/cover;
    color: white;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    background-size: cover;
    animation: fadeIn 1.5s ease-in-out;
}
header h1 {
    font-size: 4.5rem; /* Responsive font size using rem */
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    animation: slideUp 1.5s ease-in-out;
}
header p {
    font-size: 1.375rem; /* Using rem for scalability */
    font-weight: 300;
    margin-bottom: 40px;
    animation: slideUp 1.8s ease-in-out;
}

/* Navigation */
nav {
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDown 1s ease-in-out;
}
nav a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 1.125rem;
    font-weight: 400;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #00bcd4;
}

/* Hero Section */
.hero {
    padding: 120px 20px;
    text-align: center;
    background-color: #00bcd4;
    animation: fadeIn 1.5s ease-in-out;
}
.hero h2 {
    font-size: 3.5rem; /* Responsive font size */
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
    animation: slideUp 1.5s ease-in-out;
}
.hero p {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 300;
    margin-bottom: 30px;
    animation: slideUp 1.8s ease-in-out;
}
.btn-main {
    padding: 15px 40px;
    background-color: #ff4081;
    color: white;
    font-size: 1.125rem;
    text-transform: uppercase;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    animation: bounceIn 2s ease-in-out;
}
.btn-main:hover {
    background-color: #ff80ab;
}

/* Services Section */
#services {
    padding: 100px 20px;
    text-align: center;
    background-color: #f9f9f9;
    animation: fadeIn 2s ease-in-out;
}
#services h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    font-weight: 600;
    color: #333;
}
.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.service-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeUp 1.5s ease-in-out forwards;
}
.service-card:nth-child(1) {
    animation-delay: 0.3s;
}
.service-card:nth-child(2) {
    animation-delay: 0.6s;
}
.service-card:nth-child(3) {
    animation-delay: 0.9s;
}
.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}
.service-card p {
    font-size: 1rem;
    color: #666;
}

/* Portfolio Section */
#portfolio {
    padding: 100px 20px;
    background-color: #fff;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
}
#portfolio h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    font-weight: 600;
    color: #333;
}
.portfolio-gallery {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 1.5s ease-in-out forwards;
}
.portfolio-item:nth-child(1) {
    animation-delay: 0.3s;
}
.portfolio-item:nth-child(2) {
    animation-delay: 0.6s;
}
.portfolio-item:hover img {
    transform: scale(1.05);
}
.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.portfolio-item .text {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
}

/* Team Section */
#team {
    padding: 100px 20px;
    background-color: #f9f9f9;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#team h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    font-weight: 600;
    color: #333;
}
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsively adjusts columns */
    gap: 30px;
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}
.team-member {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}
.team-member h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.team-member p {
    font-size: 1rem;
    color: #666;
}

/* Contact Section */
#contact {
    padding: 50px 20px;
    background-color: #fff;
    text-align: center;
}
#contact h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
}
form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
input, textarea {
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100%;
    transition: border-color 0.3s ease;
}
input:focus, textarea:focus {
    border-color: #00bcd4;
    outline: none;
}
/* Button */
.btn-main {
    padding: 15px 40px;
    background-color: #ff4081;
    color: white;
    font-size: 18px;
    text-transform: uppercase;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    animation: bounceIn 2s ease-in-out;
    display: inline-block;
    white-space: nowrap;
}

/* Button on Hover */
.btn-main:hover {
    background-color: #ff80ab;
}

/* Responsive Button */
@media (max-width: 768px) {
    .btn-main {
        padding: 12px 30px;  /* Adjust padding for mobile */
        font-size: 16px;      /* Reduce font size for mobile */
        width: 100%;          /* Make the button full width */
        box-sizing: border-box; /* Ensure padding is included in the width */
    }
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    header h1 {
        font-size: 40px;
    }
    header p {
        font-size: 18px;
    }
    .hero h2 {
        font-size: 40px;
    }
    .services-container {
        flex-direction: column;
        gap: 20px;
    }
    .portfolio-gallery {
        flex-direction: column;
        gap: 20px;
    }
    .team-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 30px;
    }
    .hero h2 {
        font-size: 30px;
    }
    .btn-main {
        font-size: 16px;
        padding: 10px 30px;
    }
    .service-card h3 {
        font-size: 20px;
    }
    .portfolio-item .text {
        font-size: 16px;
    }
    .team-member h3 {
        font-size: 20px;
    }
}
/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

footer a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #00bcd4;
}

footer p {
    font-size: 0.875rem;
    color: #ddd;
    margin-top: 10px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        padding: 15px 0;
    }
    footer a {
        font-size: 1rem;
        padding: 8px;
    }
    footer p {
        font-size: 0.75rem;
    }
}
