/* ==========================================================================
   ABOUT PAGE SPECIFIC STYLES
   --------------------------------------------------------------------------
   Applies to: about.html ONLY
   Contains: Typography settings, text alignment, and background card layout 
             optimized for long-form reading and biography paragraphs.
   ========================================================================== */

.header-2 {
    min-height: 10vh;
    width: 100%;
    background-position: center;
    background-size: cover;
    position: relative;
    text-align: center;
}

.para-3x {
    text-align: center;
    font-size: 3.5rem;
    line-height: 1.6;
    color: white;
}

.para-4 {
    width: 80%;
    margin: 0 auto 40px auto; /* Centered with a 40px bottom margin to cleanly separate the grid */
    text-align: center;
    padding: 1px;
    line-height: 1.8;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.para-5 {
    margin: 20px 0;
    padding: 0 1px;
    font-size: 16.5px;
    word-spacing: 1px;
}

/* Fixes the internal top space inside the text block */
.para-4 .para-5:first-of-type {
    margin-top: 0;
}

/* New Project Card Styles */
.projectssection { 
    background-color: #000000; 
    padding: 20px 20px 60px 20px; /* Reduced top padding to pull the bio block up */
    margin-top: 10px;             /* Reduced from 50px to minimize the header gap */
}

.projectsgrid { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto; 
    flex-wrap: wrap; 
}

.projectcard { 
    flex: 1; 
    min-width: 2px; 
    max-width: 355px; 
    display: flex; 
    flex-direction: column; 
    text-align: left; 
    font-family: 'Poppins', sans-serif; 
}

.imagebox { 
    position: relative; 
    width: 100%; 
    height: 170px; 
    overflow: hidden; 
}


.imagebox img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.arrowbutton { 
    position: absolute; 
    bottom: 0; 
    right: 0; 
    background-color: #000000; 
    color: #ffffff; 
    width: 45px; 
    height: 45px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    font-size: 1.3rem; 
}

.cardtag { 
    display: block; 
    margin-top: 15px; 
    font-size: 0.55rem; 
    color: #777777; 
}

.cardtitle { 
    margin: 8px 0; 
    font-size: 1.0rem; 
    font-weight: 700; 
    color: #ffffff; 
}

.cardtext { 
    font-size: 0.70rem; 
    line-height: 1.5; 
    color: #555555; 
    margin-bottom: 20px; 
    flex-grow: 1; 
}

.cardlinks { 
    display: flex; 
    gap: 20px; 
    border-top: 1px solid #cccccc; 
    padding-top: 15px; 
}

.linkitem { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    color: #555555; 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 600; 
}

body {
    overflow: hidden;
}