/* Base Styles for About Section */
.About {
    position: relative;
    /* min-height: 100vh; */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 50px; /* Add enough top padding to avoid overlapping with the navbar */
    transition: all 0.3s ease-in-out;
    box-sizing: border-box; /* Ensure padding does not overflow the Aboutcontainer */
}
.highlight {
    color: var(--primary);
    font-weight: bold;
}
.Aboutcontainer {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px; /* Increased padding for better spacing */
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    border-radius: 20px;
    margin-top: 20px;
    transition: all 0.8s ease;
    box-sizing: border-box; /* Prevent overflow */
}

.Aboutcontainer::after {
    content: '';
    position: absolute;
    left: 25%;
    top: 100%;
    width: 50%;
    height: 2px;
    background-color: var(--secondary);
    box-shadow: 0px 0px 16px 2px var(--secondary);
    margin-top: 40px;
}

.Aboutcontainer:hover {
    background: var(--surface-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.AboutTitle {
    font-size: 40px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-align: center;
}

.AboutDescription {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify; /* Improve readability */
    margin-top: 20px;
}

/* Responsive Styles for About Section */
@media (max-width: 1024px) {
    .About {
        padding: 90px 20px; /* Ensure adequate spacing from navbar */
    }

    .Aboutcontainer {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .AboutTitle {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .AboutDescription {
        font-size: 16px;
        line-height: 1.6;
    }

    .Aboutcontainer::after {
        left: 30%;
        width: 40%;
        box-shadow: 0px 0px 12px 2px var(--secondary);
    }
}

@media (max-width: 768px) {
    .About {
        padding: 110px 15px; /* Increased padding for smaller screens */
    }

    .Aboutcontainer {
        padding: 25px 15px;
    }

    .AboutTitle {
        font-size: 24px;
    }

    .AboutDescription {
        font-size: 16px;
        margin-top: 15px;
    }

    .Aboutcontainer::after {
        left: 25%;
        width: 50%;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .About {
        padding: 110px 10px; /* More padding to prevent overlap */
    }

    .Aboutcontainer {
        padding: 20px 10px;
        border: 1.5px solid var(--border);
    }

    .AboutTitle {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .AboutDescription {
        font-size: 16px;
        line-height: 1.4;
    }

    .Aboutcontainer::after {
        left: 20%;
        width: 60%;
        margin-top: 20px;
    }
}