/* === BAGONG DAGDAG: Gawing full-height (100vh) at i-center vertically === */
#about {
    min-height: 100vh;
    display: flex;       /* Gamit ng flex para sa alignment */
    align-items: center; /* I-center yung content (yung .container) */
    justify-content: center;
}

#about .container {
    width: 100%; /* Siguraduhin na 100% width yung container sa loob */
}
/* === END NG BAGONG DAGDAG === */


.about-main-content {
    position: relative;
    width: 100%;
    height: 75vh; 
    min-height: 650px;
    border-radius: 16px; 
    overflow: hidden;
    margin-top: 3rem; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: #1a1a1a; 
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    visibility: hidden;
}

.about-slide.active {
    opacity: 1;
    visibility: visible;
}

.about-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay para mabasa ang text */
    transition: transform 10s linear;
}

.about-slide.active .about-bg-image {
    transform: scale(1.1);
}

/* =======================================
   DESKTOP STYLES
   ======================================= */
.about-slide-content {
    position: absolute;
    top: 15%;
    right: 5%;
    left: auto;
    max-width: 550px; 
    
    z-index: 10;
    opacity: 0;
    
    transform: translateY(-30px);
    transition: opacity 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
    
    padding: 0;
    background: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
}

.about-slide.active .about-slide-content {
    opacity: 1;
    transform: translateY(0);
}

.about-slide-content .about-icon {
    font-size: 2.5rem; 
    margin-bottom: 0.75rem; 
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* === BAGO: GINAWANG PUTI ANG TITLE === */
.about-slide-content h2 {
    font-size: 2.25rem; 
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;

    color: #FFFFFF; /* Laging puti */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Shadow para mabasa */
    
    /* Inalis ang gradient properties */
    /* background: none; */
    /* -webkit-background-clip: initial; */
    /* background-clip: initial; */
    /* display: inline-block; */ 
}

.about-slide-content p {
    font-size: 0.95rem; 
    font-weight: 400;
    color: #FFFFFF; 
    opacity: 0.9; 
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}


/* Controls sa baba */
.about-controls-wrapper {
    position: absolute;
    bottom: 5%;
    left: 5%;
    right: 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 10;
    gap: 1.5rem;
}

.about-thumb-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.about-thumb-item {
    width: 150px;
    height: 85px;
    border-radius: 8px;
    border: 3px solid transparent;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-thumb-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.about-thumb-item.active {
    opacity: 1;
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.about-thumb-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: var(--color-primary);
}

.about-thumb-item.active .about-thumb-progress {
    width: 100%;
    transition: width 5s linear; /* 5s = AUTOPLAY_DELAY */
}

.about-control-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border: none;
    font-size: 1.5rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 150, 255, 0.3);
}

/* =======================================
   Mobile Styles
   ======================================= */
@media screen and (max-width: 992px) { 
    
    .about-slide-content {
        left: 1rem;
        right: 1rem;
        bottom: 25%; 
        top: auto;
        max-width: calc(100% - 2rem); 
        text-align: center;
        
        padding: 0;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;

        transform: translateY(30px);
    }
    
    .about-slide.active .about-slide-content {
        transform: translateY(0); 
    }

    /* === BAGO: GINAWANG PUTI DIN SA MOBILE === */
    .about-slide-content h2 {
        color: #FFFFFF; /* Laging puti */
        text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Shadow para mabasa */
        
        /* Inalis ang gradient */
        /* background: none; */
        /* -webkit-background-clip: initial; */
        /* background-clip: initial; */
        /* display: inline-block; */
    }

    .about-slide-content p {
        color: #FFFFFF; 
        opacity: 0.9; 
        text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
        text-align: justify;
    }

    .about-controls-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: 100%;
    }

    .about-thumb-list {
        justify-content: center;
    }
}


@media screen and (max-width: 768px) {
    .about-main-content {
        height: 80vh; 
        min-height: 600px;
        margin-top: 2rem; 
    }
    
    .about-slide-content .about-icon {
        font-size: 2.25rem; 
        margin-bottom: 0.5rem; 
    }

    .about-slide-content h2 {
        font-size: 1.5rem; 
        margin-bottom: 0.5rem;
    }
    
    .about-slide-content p {
        font-size: 0.85rem; 
        line-height: 1.6;
    }

    .about-thumb-item {
        width: 100px;
        height: 60px;
    }

    .about-control-btn {
        margin-top: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .about-slide-content {
        bottom: 30%; 
        padding: 0; 
    }

    .about-slide-content .about-icon {
        font-size: 2rem; 
    }

    .about-slide-content h2 {
        font-size: 1.35rem; 
    }

    .about-thumb-item {
        width: 80px;
        height: 50px;
    }
}