 /* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    margin: auto;
    max-width: 1200px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ff5e57;
    padding: 10px 20px;
    color: #fff;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-links a:hover {
    background: #ff8364;
}

.btn {
    background: #fff;
    color: #ff5e57;
    padding: 8px 15px;
    border-radius: 5px;
}

.btn:hover {
    background: #ff8364;
    color: #fff;
}

/* Hero Section */
.hero {
    background: #ff5e57;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
}

.hero h1 {
    font-size: 2.5rem;
}

.hero p {
    margin: 20px 0;
    font-size: 1.2rem;
}

.btn-primary {
    background: #fff;
    color: #ff5e57;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    animation: bounce 2s infinite;
}

.btn-primary:hover {
    background: #ff8364;
    color: #fff;
}

/* Features Section */
.features {
    padding: 50px 20px;
    background: #f4f4f4;
}

.features h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    animation: slideInLeft 1.5s ease-in-out;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default 3 columns */
    gap: 20px;
    justify-items: center; /* Ensures cards are centered horizontally */
    align-items: stretch; /* Ensures cards stretch to fill space vertically */
}

.card {
    width: 100%; /* Full width of grid cell */
    max-width: 350px; /* Maximum width of card */
    padding: 20px;
    background: #fff;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures proper spacing inside the card */
}

.card:hover {
    transform: scale(1.05);
}

.card i {
    font-size: 2rem;
    color: #ff5e57;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

/* Mobile Adjustments for the Features Section */
@media screen and (max-width: 768px) {
    .features h2 {
        font-size: 1.8rem;
    }

    .feature-cards {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 15px;
    }

    .card {
        max-width: 90%; /* Cards take up more width on tablets */
    }
}

@media screen and (max-width: 480px) {
    .features h2 {
        font-size: 1.5rem;
    }

    .feature-cards {
        grid-template-columns: 1fr; /* 1 column on small mobile devices */
        gap: 10px;
    }

    .card {
        max-width: 100%; /* Cards take full width on mobile */
        padding: 15px; /* Reduced padding for small screens */
    }
}



/* About Section */
.about {
    padding: 50px 20px;
    background: #ff5e57;
}

.about h2 {
    text-align: center;
    margin-bottom: 20px;
    animation: slideInRight 1.5s ease-in-out;
}

.about p {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-size: 1.2rem;
}

/* Connect Section */
.connect {
    padding: 50px 20px;
}

.connect h2 {
    text-align: center;
    margin-bottom: 20px;
    animation: slideInRight 1.5s ease-in-out;
}

.connect p {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-size: 1.2rem;
}

/* To Section */
.to {
    padding: 50px 20px;
    background: #ff5e57;
}

.to h2 {
    text-align: center;
    margin-bottom: 20px;
    animation: slideInRight 1.5s ease-in-out;
}

.to p {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 50px 20px;
    background: #f4f4f4;
}

.contact h2 {
    text-align: center;
    margin-bottom: 20px;
    animation: zoomIn 1.5s ease-in-out;
}

.contact form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.contact input,
.contact textarea {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact button {
    background: #ff5e57;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    animation: flash 2s infinite;
}

.contact button:hover {
    background: #ff8364;
}

/* Back-to-Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
}

#back-to-top:hover {
    background: #f4b400;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        margin-top: 10px;
    }

    .nav-links li {
        margin: 5px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features h2 {
        font-size: 1.8rem;
    }

    .feature-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        margin-bottom: 20px;
    }

    .about h2,
    .connect h2,
    .to h2 {
        font-size: 1.8rem;
    }

    .about p,
    .connect p,
    .to p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .contact form {
        width: 100%;
        padding: 0 20px;
    }

    .contact input,
    .contact textarea {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .navbar .logo {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .btn-primary {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .features h2 {
        font-size: 1.5rem;
    }

    .feature-cards .card {
        width: 100%;
        margin-bottom: 15px;
    }

    .footer {
        padding: 5px 0;
    }

    #back-to-top {
        bottom: 10px;
        right: 10px;
    }
}
