/* General Styles */
* {
    margin-left: 0.625rem;
    margin-right: 0.625rem;
    margin-top: 0.2rem;
}

body {
    margin-top: 0.5rem;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 85%;
    margin: auto;
    overflow: hidden;
}

/* Header */
.header {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    color: rgb(165, 7, 7);
    padding: 0.625rem 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
}

.logo img {
    width: 3.2rem;
}

.logo-text {
    color: #33b9b9f0;
    font-weight: bold;
    font-size: 1.4rem;
    margin-right: 0;
    padding-right: 0;
}

.logo-subtext {
    color: rgb(6, 15, 83);
    margin-left: 0;
    padding-left: 0;
}

/* Night Mode for Logo */
body.night-mode .logo-text {
    color: #ff0303;
}

body.night-mode .logo-subtext {
    color: #ffffff;
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    transition: color 0.3s;
}

.nav a:hover {
    color: #33b9b9f0;
}

.nav a.active {
    color: red;
    font-weight: bold;
    text-decoration: underline;
}

.night-mode-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Toggle Button (for mobile) */
.toggle-button {
    display: none;
}

/* About Section */
.about {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 2rem 0;
}

.about-image {
    flex: 1;
    min-width: 300px;
    margin-right: 2rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

.about-text {
    flex: 2;
    padding-top: 1rem;
}

.about-text h2 {
    font-size: 2rem;
    color: #000000;
}

.about-text p {
    color: #000000;
    line-height: 1.8;
}

/* Features Section */
.features {
    margin-top: 40px;
}

.feature-box {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

.feature-box img {
    width: 40px;
    margin-right: 15px;
}

/* Contact Form */
.contact-form {
    background: #ffffff;
    color: #322f2f;
    padding: 2rem;
    text-align: center;
}

.contact-form h3 {
    margin-bottom: 1rem;
}
.contact-form p {
   font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
}

.contact-form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 115%;
    height: 390%;
    background-color: rgba(255, 255, 255, 0.205);
    border-radius: 80%;
    animation: beating 3.5s infinite;
    z-index: 0;
}

.contact-form button:hover {
    background-color: #0056b3;
}

.contact-form button span {
    position: relative;
    z-index: 1;
}

@keyframes beating {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Social Media Links */
.social-links {
    text-align: center;
    padding: 2rem 0;
}

.social-links img {
    width: 30px;
    margin: 0 1rem;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #ffffff;
    color: #000000;
    font-size: 0.9rem;
}

/* Night Mode */
body.night-mode {
    background-color: #121213;
    color: #f0f0f0;
}

body.night-mode .header {
    background-color: #0e0d0d;
    color: #f0f0f0;
}

body.night-mode .nav a {
    color: #fff;
}

body.night-mode .nav {
    color: #fffcfc;
    background-color: #0000008f;
}

body.night-mode .nav a {
    color: #ffffff;
}

body.night-mode .about-text,
body.night-mode .feature-box,
body.night-mode .contact-form {
    background-color: #121314;
    color: #fff;
}

body.night-mode .about-text p,
body.night-mode .about-text h2 {
    color: #f4f4f4;
}

body.night-mode .footer{
    background-color: #000000;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    * {
        margin-left: 0rem;
        margin-right: 0rem;
        margin-top: 0rem;
    }

    .logo img {
        display: none;
    }

    .Menu {
        padding: 0.625rem;
        text-align: right;
        position: relative;
    }

    .toggle-button {
        display: block;
        background-color: transparent;
        color: rgb(255, 35, 35);
        border: none;
        padding: 0.625rem;
        cursor: pointer;
        font-size: 1.2rem;
    }

    .nav {
        display: none;
        flex-direction: column;
        background-color: #f0f0f0b3;
        padding: 0.625rem;
        margin-top: 0.4rem;
        border-radius: 0.4rem;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.6);
        position: absolute;
        top: 70%;
        right: 0;
        z-index: 1;
        width: 50%;
    }

    .nav a {
        margin-left: 0;
        margin-bottom: 0.625rem;
        color: rgb(0, 0, 0);
        display: block;
    }

    .show-nav {
        display: flex;
    }
}
