/* General styling for the About section */
#two {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    box-sizing: border-box;
}

/* Background Canvas */
#two canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background: transparent;
}

/* Content box */
.about-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    opacity: 1;
    transform: translateX(0);
    transition: none;
    box-sizing: border-box;
}

/* Title Styling */
#two h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    
    letter-spacing: 2px;
    color: white;
    position: relative;
    z-index: 2;
}

/* Paragraph Styling */
.about-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1em;
}

/* Disable inherited transitions */
.about-content * {
    transition: none !important;
}


/* Tablet-friendly adjustments */
@media (max-width: 768px) {
    #two {
        padding: 30px 25px;
        min-height: auto;
    }

    .about-content {
        padding: 10px;
    }

    #two h1 {
        font-size: 2rem;
    }

    .about-content p {
        font-size: 1.05rem;
    }
}

/* Mobile optimization */
@media (max-width: 480px) {
    #two {
        padding: 25px 15px;
        min-height: auto;
        align-items: stretch;
    }

    #two h1 {
        font-size: 1.6rem;
        text-align: center; /* Optional: center the heading */
    }

    .about-content {
        text-align: justify; /* ✅ the key fix */
        padding: 0 10px;
    }

    .about-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: justify; /* ✅ applies to paragraphs */
    }
}
