


/* ==========================================================================
   MOBILE NAVIGATION - NO GRAY OVERLAY & RIGHT ALIGNED
   ========================================================================== */

@media screen and (max-width: 768px) {
    /* Side Panel - Ngayon ay nasa KANAN na */
    nav#main-nav {
        position: fixed !important;
        top: 70px; /* Sukat ng header height mo */
        right: -100%; /* Nakatago sa kanang labas ng screen */
        left: auto;   /* Siguraduhing hindi naka-set sa left */
        width: 280px;
        height: calc(100vh - 70px); 
        background: #ffffff !important;
        z-index: 999; 
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
        display: block !important;
        overflow-y: auto;
        
    }
.has-dropdown {
        position: relative;
    }
    /* Pag lumabas ang menu, papasok siya galing kanan */
    nav#main-nav.active {
        right: 0 !important;
    }

    /* Overlay - Ginawang transparent para clickable ang paligid */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent; 
        z-index: 998;
        display: none;
    }

    .menu-overlay.active {
        display: block;
    }

    /* Alignment ng text at arrow */
    nav ul li a {
        display: flex !important;
        justify-content: space-between; 
        align-items: center;
        padding: 18px 25px;
        text-align: left;
    }
}

    /* Ilipat ang dropdown list sa kanan */
    .sub-menu {
        position: absolute;
        top: 100%;       /* Lalabas sa ilalim ng Products text */
        right: 0;        /* Ito ang maglilipat sa kanya sa gawing kanan */
        left: auto;      /* I-reset ang left alignment */
        min-width: 200px;
        background: #ffffff;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
        z-index: 1000;
        display: none;    /* Tago muna, lalabas lang pag clinick */
    }

    .sub-menu.open {
        display: block !important;
    }

    /* Alignment ng bawat item sa loob */
    .sub-menu li a {
        text-align: right; /* Kung gusto mo pati text ay nasa kanan */
        padding: 12px 20px;
        display: block;
    }

    /* Arrow Icon Rotation */
    .active-drop i {
        transform: rotate(180deg);
        transition: 0.3s;
    }


/* Header fix para hindi lumubog ang logo */
header {
    position: sticky;
    top: 0;
    z-index: 1000 !important;
    background: #ffffff;
    height: 70px;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&family=Oswald:wght@700&display=swap');

.main-hero-wrapper {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #000;
    font-family: 'Inter', sans-serif;
}

/* Background Logic */
.background-slider, .bg-slide {
    position: absolute;
    inset: 0;
}
.bg-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.bg-slide.active { opacity: 1; }

/* Static Overlays */
.static-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 60%);
}

/* Pinaliit na Hero Text */
.hero-text-area {
    padding-left: 8%;
    color: #fff;
    margin-bottom: 30px;
}
.hero-text-area .sub-title {
    font-size: 0.9rem;
    letter-spacing: 4px;
    margin-bottom: 5px;
}
.hero-text-area h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 15px;
}
.btn-modern {
    display: inline-block;
    padding: 10px 25px;
    background: #bd1818;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
}


.mission-vision-section {
    padding: 100px 0;
    background: #f4f4f4; /* O gamitin ang dark bg kung gusto mo ng tech look */
    position: relative;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.mv-card {
    background: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px #0000000d;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
}

.mv-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: #E21B24; /* Brand Red */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(226, 27, 36, 0.3);
}

.mv-content h2 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.red-line {
    width: 50px;
    height: 4px;
    background: #E21B24;
    margin: 0 auto 20px;
}

.mv-content p {
    line-height: 1.8;
    color: #666;
    font-size: 1rem;
}
/* --- MISSION & VISION MOBILE VIEW --- */
@media (max-width: 768px) {
    .mission-vision-section {
        padding: 70px 40px;
    }

    .standard-header h3 {
        font-size: 1.8rem;
    }

    /* Gagawing single column ang Mission at Vision */
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mv-card {
        flex-direction: column; /* Icon sa itaas, text sa baba */
        text-align: center;
        padding: 30px 20px;
    }

    .mv-content .red-line {
        margin: 15px auto; /* I-center ang red line */
    }
}

/* --- CORE VALUES MOBILE VIEW --- */
@media (max-width: 992px) {
    .values-container {
        flex-direction: column; /* Stack ang text info at visual grid */
        gap: 50px;
    }

    .values-info, .values-visual-grid {
        width: 100%;
    }

    .glitch-title {
        font-size: 3rem;
        text-align: center;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .modern-values {
        padding: 60px 15px;
    }

    /* Ayusin ang rows ng values (01, 02, etc.) */
    .value-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .value-number {
        font-size: 2rem;
        border-bottom: 2px solid #a00;
        padding-bottom: 5px;
    }

    /* Glass Cards (CSSI) sa Mobile */
    .glass-grid-layout {
        grid-template-columns: 1fr 1fr; /* Magkatabi pa rin pero 2x2 layout */
        gap: 15px;
    }

    .glass-card {
        padding: 20px 10px;
    }

    .glass-card p {
        font-size: 0.85rem;
    }

    .branding-title {
        font-size: 1.5rem;
        text-align: center;
    }
}




.modern-hero {
    width: 100%;
    height: 600px; /* Taas ng banner */
    
    /* BACKGROUND IMAGE CODE */
  
    background-size: cover;      /* Pinupuno ang buong space ng banner */
    background-position: center; /* Pinapagitna ang focus ng litrato */
    background-repeat: no-repeat;
    background-attachment: scroll; /* Gawing 'fixed' kung gusto mo ng parallax effect */
    
    position: relative;
    display: block;
}

/* Overlay para magmukhang modern at mabasa ang text */
.hero-overlay {
    width: 100%;
    height: 100%;
    /* Gradient: Nagpapadilim sa kaliwa para lumitaw ang puting text */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
}

.hero-container {
    padding-left: 10%;
    color: #ffffff;
}

.hero-container h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
}

.hero-container p {
    font-size: 1.2rem;
    margin-top: 5px;
    opacity: 0.9;
}
/* --- MOBILE VIEW PARA SA HERO --- */
@media screen and (max-width: 768px) {
    .modern-hero {
        height: 400px; /* Mas maikli na taas para sa mobile */
        /* Optional: background-attachment: scroll; - mas okay ito sa mobile kaysa fixed */
    }

    .hero-overlay {
        /* Gradient: Sa mobile, mas maganda kung pantay ang dilim (to bottom o full overlay) */
        background: rgba(0, 0, 0, 0.5); 
        justify-content: center; /* I-center ang content horizontal */
        text-align: center;      /* I-center ang text alignment */
    }

    .hero-container {
        padding-left: 0;         /* Alisin ang 10% padding */
        width: 90%;              /* Bigyan ng saktong lapad */
        margin: 0 auto;          /* I-center ang container */
    }

    .hero-container h1 {
        font-size: 2.2rem;       /* Paliitin ang text para kumasya sa isang screen */
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .hero-container p {
        font-size: 1rem;         /* Mas readable na sukat sa mobile */
        padding: 0 10px;
    }
}

/* Para sa mas liliit pang screens (Small Phones) */
@media screen and (max-width: 480px) {
    .modern-hero {
        height: 350px;
    }

    .hero-container h1 {
        font-size: 1.8rem;
    }
}

/* --- Desktop (Hayaan nating gumana gaya ng dati) --- */
.sub-menu-bar {
    background-color: #ffffff;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 70px;
    z-index: 999;
}

.sub-menu-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0; padding: 0;
}

.custom-select-box { display: none; }

/* --- MOBILE "FAIL-PROOF" CSS --- */
@media screen and (max-width: 768px) {
    /* SIGURADUHIN NA HINDI NAKATAGO ANG BAR */
    .sub-menu-bar {
        position: relative !important;
        overflow: visible !important; /* PINAKAMAHALAGA: Para lumabas ang dropdown */
        display: block !important;
        background: #f4f5f7 !important;
        padding: 10px 0 !important;
        z-index: 2000 !important;
    }

    .sub-menu-container {
        overflow: visible !important;
        position: relative;
    }

    /* Ang Select Box (About Us) */
    .custom-select-box {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        background: #fff;
        padding: 12px 15px;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin: 0 20px;
        cursor: pointer;
    }

    /* Ang Dropdown List */
    .sub-menu-list {
        display: none !important; /* Default: Tago */
        flex-direction: column !important;
        position: absolute !important; /* Nakatali sa sub-menu-bar */
        top: 100% !important; /* Lalabas sa mismong ilalim ng box */
        left: 20px !important;
        right: 20px !important;
        background: #ffffff !important;
        border: 1px solid #ccc !important;
        border-top: none !important;
        border-radius: 0 0 5px 5px !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
        z-index: 99999 !important; /* Higit pa sa timeline at hero */
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Class na itotoggle ng JS */
    .sub-menu-list.is-open {
        display: block !important;
    }

    .sub-menu-list li {
        width: 100% !important;
        border-bottom: 1px solid #eee !important;
    }

    .sub-menu-list li a {
        display: block !important;
        padding: 15px 20px !important;
        color: #333 !important;
        text-transform: none !important; /* Mas malinis tignan sa mobile */
    }
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f5f7;
}

.timeline-section {
    padding: 80px 0; /* Binawasan ang padding sa taas/baba para lumapit sa header */
    overflow-x: hidden;
}

/* Container ng buong Timeline */
.timeline-container {
    position: relative;
    max-width: 700px; /* Mas pinaliit mula 800px para mas dikit ang elements */
    margin: 0 auto;
    padding: 20px 0;
}

.scroll-guide {
    text-align: center;
    color: #0b1d44;
    letter-spacing: 2px;
    margin-bottom: 50px; /* Binawasan mula 100px para mas malapit sa timeline */
    font-size: 14px;
    font-weight: 700;
}

/* Vertical line sa gitna */
.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px; /* Ginawang manipis gaya ng sample */
    background-color: #0b1d44;
    z-index: 1; 
    top: 0;
    height: 100%; 
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: center; /* Pinagdidikit ang left at right side sa gitna */
    margin-bottom: 60px; /* Binawasan mula 200px para maging siksik ang timeline */
    width: 100%;
    position: relative;
    opacity: 0.2; 
    transition: opacity 0.6s ease-in-out;
    z-index: 2; 
}

/* Salit-salit na layout (Left-Right) */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Content at Image Box - Magkalapit na Settings */
.timeline-content, .timeline-image-box {
    width: 48%; /* Tumaas ang width pero dahil naka-center, mas dikit sila sa linya */
    padding: 0 10px; /* Binawasan ang padding para dikit sa gitna */
}

.timeline-content {
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.year-text {
    font-size: 2.8rem; /* Inayos ang size para proportion sa siksik na layout */
    font-weight: 900;
    color: #070502; /* Light gray-blue base sa image */
    margin: 0;
}

/* Bilog sa gitna */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 35px; /* Itinapat sa level ng Year text */
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background-color: #ffffff; 
    border: 2px solid #0b0a0a;
    border-radius: 50%;
    z-index: 3; 
    transition: all 0.3s ease;
}

/* ACTIVE STATE */
.timeline-item.active {
    opacity: 1;
}

.timeline-item.active .timeline-dot {
    background-color: #E21B24; /* Red color base sa logo */
    border-color: #E21B24;
    transform: translateX(-50%) scale(1.3);
}

/* Photo style - Stamp Look */
.circle-img-wrapper {
    width: 180px; /* Saktong size para magkadikit */
    height: 180px;
    border-radius: 50%;
    border: 5px solid rgba(248, 5, 5, 0.934); 
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-img-wrapper img {
    width: 85%;
    height: 85%;
    object-fit: contain; /* Para magmukhang stamp watermark */
    filter: grayscale(100%) opacity(0.4); /* Faded look gaya ng reference */
}

.timeline-item.active .circle-img-wrapper img {
    filter: grayscale(0%) opacity(0.8);
}

.timeline-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: #0b1d44;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .timeline-container { max-width: 95%; }
    .circle-img-wrapper { width: 130px; height: 130px; }
    .year-text { font-size: 2rem; }
}
.modern-values {
    background: #ffffff;
    padding: 100px 0;
    font-family: 'Inter', sans-serif;
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    padding: 0 20px;
}

/* Left Content */
.values-info { flex: 1; }

.glitch-title {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    line-height: 1;
    color: #1a1a1a;
    margin-bottom: 40px;
}

.glitch-title span { color: #E21B24; }

.value-row {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    border-left: 3px solid transparent;
    transition: 0.3s;
    padding-left: 0;
}

.value-row:hover {
    border-left: 3px solid #E21B24;
    padding-left: 15px;
}

.value-number {
    font-weight: 900;
    color: #E21B24;
    font-size: 1.2rem;
    opacity: 0.5;
}

.value-text h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
}

/* Right Visual Section */
.values-visual-grid {
    flex: 1.2;
    background: #0b1d44; /* Dark Navy */
    border-radius: 30px;
    padding: 60px;
    color: #fff;
    position: relative;
    box-shadow: 0 25px 50px rgba(11, 29, 68, 0.3);
}

.branding-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    letter-spacing: 5px;
}

.branding-title span { color: #E21B24; }

.glass-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px; /* Cross line effect */
    background: rgba(255,255,255,0.1); /* Line color */
}

.glass-card {
    background: #0b1d44;
    padding: 40px 20px;
    text-align: center;
    transition: 0.4s;
}

.glass-card:hover {
    background: rgba(255,255,255,0.05);
}

.icon-bg {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(226, 27, 36, 0.5));
}

.glass-card p {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.glass-card p strong { color: #E21B24; font-size: 1.2rem; }

/* Responsive */
@media (max-width: 992px) {
    .values-container { flex-direction: column; }
    .glitch-title { font-size: 4rem; }
}
.standard-header {
    text-align: center;
    /* Ginawang 0 ang padding at gumamit ng negative margin para iangat */
    padding-top: 0 !important; 
    margin-top: -50px; /* Hihilahin nito ang text paitaas */
    margin-bottom: 60px; 
}

.standard-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    color: #0b1d44; /* Dark blue mula sa brand */
    text-transform: uppercase;
    /* Tinanggal ang top margin ng h3 mismo */
    margin-top: 0; 
    margin-bottom: 10px; 
    letter-spacing: 3px;
    font-weight: 800;
}

.standard-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 500px; 
    margin: 0 auto;
    line-height: 1.4; /* Mas siksik na line height */
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .standard-header {
        margin-top: -10px;
    }
    .standard-header h3 {
        font-size: 1.8rem;
    }
}
.contact-stack {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column-reverse; /* Pinapaangat ang listahan */
    align-items: center; /* Iisang linya lang lahat */
    z-index: 10000;
}

/* Main Button & Tooltip */
.main-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.tooltip {
    position: absolute;
    right: 80px; /* Sa kaliwa ng button lalabas ang text */
    background: #c00d0d;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    white-space: nowrap;
    transition: 0.4s ease; /* Transition para sa pagkawala */
}

/* Base Style para sa Circles */
.btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
     background-color: white;
}

.main-red { background: #ff1e1e; }

/* Social Icons Wrapper */
.social-icons-wrapper {
    display: flex;
    flex-direction: column-reverse; /* Iisang linya paangat */
    gap: 15px;
    margin-bottom: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Transition effect mula ilalim */
    transition: 0.5s ease;
}

/* Kapag Clinick na (Active State) */
.contact-stack.active .tooltip {
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
   
}

.contact-stack.active .social-icons-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    
}

.btn-circle img { width: 30px; height: 30px; }