/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-color: #E21B24;
    --dark-color: #222;
    --light-color: #f4f4f4;
    --white: #ffffff;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    background-color: #fff;
}

.container {
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (DESKTOP)
   ========================================================================== */
.top-bar {
    background-color: #d31411; /* CSI Red */
    color: #ffffff;
    width: 100%;
    padding: 8px 0;
    font-family: 'Poppins', sans-serif;
}

.top-bar-container {
    max-width: 1790px; /* Pantay sa grid mo */
    margin: 0 auto;
    padding: 0 5%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-bar-item {
    font-size: 13px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* 3. Main Header (Logo & Nav) */
header {
    background: #ffffff;
    height: 80px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
}

.header-content {
    max-width: 1790px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}


/* --- MOBILE VIEW FIX --- */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 0;
    }
    
    .top-bar-container {
        flex-direction: column; /* I-stack ang items para hindi mag-overlap */
        gap: 8px;
        padding: 0 10px;
    }

    .top-bar-left {
        flex-direction: column; /* Stack phone and email */
        gap: 5px;
    }

    .top-bar-item {
        font-size: 12px; /* Bahagyang liitan sa mobile */
    }
    
    /* Itago ang email sa sobrang liit na screen kung kailangan */
    /* .top-bar-left .top-bar-item:nth-child(2) { display: none; } */
}

/* Nav Desktop */
nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 0 15px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: var(--nav-height);
    display: block;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

/* Sub-menu Desktop (Hover) */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none; /* Tago muna */
    flex-direction: column;
}

/* Desktop Hover logic */
@media (min-width: 769px) {
    .has-dropdown:hover .sub-menu {
        display: flex;
    }
    .sub-menu li a {
        line-height: 45px;
        border-bottom: 1px solid #f0f0f0;
    }
}

.menu-toggle {
    display: none;
}



/* ==========================================================================
   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%);
}

/* Modern Centered Categories */
.categories-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glass-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 900px; /* Eksaktong size para sa 3 items */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    text-decoration: none;
    border-right: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}
.cat-card:last-child { border-right: none; }
.cat-card:hover { background: rgba(232, 10, 10, 0.05); }

.img-box {
    height: 95px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}
.img-box img {
    height: 115%;
    object-fit: contain;
    transition: 0.5s ease;
}
/* MOBILE SIDE-SCROLLING OPTIMIZATION (768px and below) */
@media (max-width: 768px) {
    /* 1. Header & Hero Adjustments */
    .hero-text-area h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    /* 2. Side-Scrolling Container */
    .categories-container {
        padding-bottom: 20px;
    }

    .glass-grid, .cat-grid-centered {
        display: flex; /* Mula Grid, gawing Flex */
        overflow-x: auto; /* Enable horizontal scroll */
        scroll-snap-type: x mandatory; /* Para mag-snap ang card sa gitna */
        gap: 15px;
        padding: 0 20px 15px 20px; /* Space sa gilid para makita ang susunod na card */
        background: transparent; /* Alisin ang background ng main container */
        backdrop-filter: none;
        border: none;
        scrollbar-width: none; /* Itago ang scrollbar sa Firefox */
    }

    .glass-grid::-webkit-scrollbar {
        display: none; /* Itago ang scrollbar sa Chrome/Safari */
    }

    /* 3. Individual Cards as Swipeable Items */
    .cat-card, .cat-item {
        flex: 0 0 75%; /* Ang bawat card ay sasakop ng 75% ng screen width */
        scroll-snap-align: center; /* Snap effect */
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        flex-direction: column; /* Image sa taas, Text sa baba */
        align-items: center;
        padding: 25px 15px;
    }

    .cat-card:last-child {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .img-box, .product-img {
        height: 100px !important;
        margin-bottom: 15px;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    /* 4. Contact Footer Adjustment */
    .info-strip, .contact-footer {
        flex-direction: column;
        gap: 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    /* Siguraduhin na hindi mag-wrap o mag-scroll ang grid */
    .glass-grid, .cat-grid-centered {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Pinipilit na maging 3 columns */
        width: 95%; /* Konting allowance sa gilid */
        margin: 0 auto;
        gap: 5px; /* Pinaliit ang gap para kumasya */
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 10px;
        padding: 10px 5px;
    }

    /* Pinaliit ang bawat card */
    .cat-card, .cat-item {
        display: flex;
        flex-direction: column; /* Icon sa taas, Text sa baba para tipid sa lapad */
        align-items: center;
        justify-content: center;
        padding: 10px 5px;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    .cat-card:last-child {
        border-right: none;
    }

    /* Image adjustment para sa siksik na row */
    .img-box {
        height: 40px !important; /* Pinaliit para kumasya sa isang row */
        margin-bottom: 8px;
    }

    .img-box img, .product-img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }

    /* Text adjustment - kailangang maliit lang para hindi mag-wrap */
    .brand-name {
        font-size: 0.65rem; /* Pinaliit ang font size */
        font-weight: bold;
        letter-spacing: 0.5px;
        white-space: nowrap; /* Iwasan ang pag-cut ng text */
    }

    /* Itago ang sub-text sa mobile para malinis tignan */
    .cat-label p {
        display: none; 
    }
}
/* Label Section */
.cat-label { text-align: center; color: #fff; }
.brand-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #fff;
    display: block;
}
.cat-label p { font-size: 0.7rem; opacity: 0.7; margin: 0; }

.cat-card:hover .img-box img { transform: translateY(-8px) scale(1.1); }

/* Bottom Info Strip */
.info-strip {
    width: 100%;
    background: rgba(255,255,255,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 8px 0;
    font-size: 0.75rem;
}
.divider { width: 1px; height: 15px; background: #ccc; }

.services-section {
    padding: 80px 10%;
    background-color: #f8f9fa;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: #0b1d44;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Card Styling */
.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none; /* Alisin ang underline ng link */
    color: inherit;
    display: block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Image Zoom Effect */
.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-info {
    padding: 25px;
    text-align: left;
}

.service-info h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.learn-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #171716; /* Goodyear Yellow */
    transition: color 0.3s;
}

/* HOVER EFFECTS */
.service-card:hover {
    transform: translateY(-15px); /* Card lifts up */
    box-shadow: 0 20px 40px rgba(5, 4, 4, 0.868);
}

.service-card:hover .service-image img {
    transform: scale(1.1); /* Image zooms in slightly */
}

.service-card:hover .learn-more {
    color: #cc110ef9; /* Yellow turns to Navy blue */
}



/* --- MOBILE RESPONSIVE --- */
@media screen and (max-width: 992px) {
    .product-grid { gap: 40px; } /* Paliitin ang gap sa tablet */
}


.category-label {
    /* SAME FONT AND SIZE AS LINKS */
    font-size: 1rem; 
    font-weight: 800; /* Bold para sa distinction pero same size */
    color: white; /* Gray muna, mag-re-red sa hover */
    
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 29px;
    transition: 0.3s ease;
    width: fit-content;
}


/* Hover Effect para sa main categories */
.category-label:hover {
    color: #cc0606; /* Magpapalit sa puti para mag-pop */
    letter-spacing: 3px; /* Konting "stretch" effect sa hover */
    cursor: pointer;
}
/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}
/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav { display: none; width: 100%; }
    nav.active { display: block; position: absolute; top: 100%; left: 0; background: var(--white); }
    nav ul { flex-direction: column; }
    .hero h2 { font-size: 2.2rem; }
    .top-bar .container { flex-direction: column; text-align: center; gap: 5px; }
}

/* Hero Section */
.about-hero {
    background: linear-gradient(rgba(0, 45, 98, 0.8), rgba(0, 45, 98, 0.8)), 
                url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&q=80&w=1500');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    color: white;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0;
}

/* Intro */
.intro-section {
    padding: 80px 0;
    text-align: center;
}

.intro-section h2 {
    font-size: 2.5rem;
    color: var(--goodyear-blue);
    margin-bottom: 20px;
}

.intro-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Feature Blocks */
.feature-block {
    padding: 100px 0;
}

.bg-light { background-color: var(--bg-light); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-2.reverse .image-content { order: 1; }
.grid-2.reverse .text-content { order: 2; }

.eyebrow {
    color: var(--goodyear-blue);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.text-content h3 {
    font-size: 2.2rem;
    margin: 15px 0;
    color: var(--goodyear-blue);
}

.image-content img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: var(--goodyear-blue);
    font-weight: 700;
    border-bottom: 2px solid var(--goodyear-yellow);
    padding-bottom: 5px;
    transition: 0.3s;
}

.btn-link:hover {
    color: var(--#ff3700);
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background: var(--goodyear-blue);
    color: white;
    text-align: center;
}

.values-section h3 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    padding: 30px;
    background: rgba(255,255,255,0.05);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--#ff3700);
    margin-bottom: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .grid-2.reverse .text-content { order: 1; }
    .grid-2.reverse .image-content { order: 2; }
    .about-hero h1 { font-size: 2.5rem; }
}
/*aboutus tab */
/* Intro Section Styling */
.intro-section {
    background-color: #f4f5f7; /* Light gray background gaya ng screenshot */
    padding: 80px 20px;
    text-align: center;
}

.intro-container {
    max-width: 900px; /* Mas makitid para maganda ang bagsak ng text */
    margin: 0 auto;
}

.intro-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #000000;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    font-weight: 400;
}
/* Eto ang code para sa background image */
.modern-hero {
    width: 100%;
    height: 600px; /* Taas ng banner */
    
   
    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;
}


/* Sub-Menu Styling */
.sub-menu-bar {
    background-color: #ffffff;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sub-menu-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sub-menu-list a {
    display: block;
    padding: 22px 25px;
    text-decoration: none;
    color: #0b1d44;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Ang Yellow Indicator */
.sub-menu-list li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #ff3700;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f5f7;
}

.timeline-section {
    padding: 100px 0;
    overflow-x: hidden;
}

.timeline-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.scroll-guide {
    text-align: center;
    color: #0b1d44;
    letter-spacing: 2px;
    margin-bottom: 80px;
    font-size: 14px;
}

/* Vertical line sa gitna */
.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background-color: #0b1d44;
    z-index: 1;.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px; /* Ginawa nating mas makapal para mas solid */
    background-color: #0b1d44;
    z-index: 1; /* LAYER 1 (Nasa ilalim) */
}

    /* ITO ANG PINAKA-SAFE NA SETTING */
    top: 5%;
    height: 75%; /* Gawin itong 80% o 85% para siguradong bitin siya sa dulo */

}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 300px; /* Malaking space para sa focus */
    width: 100%;
    position: relative;
    opacity: 0.2; /* Malabo pag hindi tinitingnan */
    transition: opacity 0.6s ease-in-out;
    z-index: 100; /* LAYER 2 (Dapat mas mataas sa line) */
}

/* Salit-salit na layout (Left-Right) */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content, .timeline-image-box {
    width: 44%;
}

.timeline-content {
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.year-text {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0b1d44;
    margin: 0 0 10px 0;
}

/* Bilog sa gitna */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%; /* Center relative to the item */
    transform: translateX(-50%);
    width: 25px;
    height: 25px;
    background-color: #ffffff; /* Puti sa simula */
    border: 4px solid #0b1d44;
    border-radius: 50%;
    z-index: 1; /* LAYER 1 (Pinakailalim) */
    transition: all 0.2s ease;
    box-shadow: 0 0 0 4px #f4f5f7; /* Halo effect para may 'gap' sa pagitan ng line at dot */
}

/* ACTIVE STATE: Pag tumapat sa gitna */
.timeline-item.active {
    opacity: 1;
}

.timeline-item.active .timeline-dot {
    background-color: #E21B24; /* Nagiging Pula */
    transform: translateX(-50%) scale(1.4);
    box-shadow: 0 0 15px rgba(226, 27, 36, 0.6);
}

/* Photo style */
.circle-img-wrapper {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 10px solid #ff3700; 
    overflow: hidden;
    margin: 0 auto;
}

.circle-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Dagdag sa dulo ng timeline line */
.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-line {
        bottom: 250px; /* Mas malaking gap para sa mobile */
    }
}

.product-categories {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.category-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 30px;
}

/* Tabs Styling */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    border: none;
    background: none;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    padding: 10px 20px;
    transition: 0.3s;
    font-size: 1rem;
}

.tab-btn.active {
    background-color: #E21B24; /* Red base sa branding mo */
    color: #fff;
    border-radius: 50px;
}

/* Grid Styling */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns sa desktop */
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.brand-card {
    background: #fff;
    border: 1px solid #eee;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #E21B24;
}

.brand-img-box img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: 0.3s;
}

.brand-card:hover .brand-img-box img {
    filter: grayscale(0%);
}

/* Special styling para sa VK Tyre (Red BG base sa image mo) */
.brand-card.red-bg {
    background-color: #fff;
    border: 1px solid #eee;
    
  
}

/* Responsive */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .product-grid { grid-template-columns: 1fr; }
    .brand-card { height: 160px; }
}
/* Container logic */
.category-nav-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* --- MOBILE VIEW --- */
@media (max-width: 767px) {
    .mobile-select-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #fff;
        padding: 12px 20px;
        border: 1px solid #ccc;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 500;
    }

    .category-tabs {
        display: none; /* Tago muna sa mobile */
        flex-direction: column;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 8px;
        position: absolute;
        width: 100%;
        top: 55px;
        z-index: 100;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .category-tabs.show {
        display: flex;
    }

    .category-tabs .tab-btn {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        text-align: left;
        background: none;
        color: #333;
    }

    .category-tabs .tab-btn.active {
        background-color: #f9f9f9;
        color: #E21B24;
    }
}

/* --- DESKTOP VIEW --- */
@media (min-width: 768px) {
    .mobile-select-trigger {
        display: none; /* Tago sa desktop */
    }

    .category-tabs {
        display: flex !important;
        justify-content: center;
        gap: 15px;
    }

    .tab-btn {
        padding: 10px 25px;
        text-decoration: none;
        color: #666;
        font-weight: 600;
        border-radius: 50px;
        transition: 0.3s;
    }

    .tab-btn.active {
        background: #E21B24;
        color: #fff !important;
    }
}
/* Container para sa search bar sa gitna */
.middle-search-wrapper {
    display: flex;
    justify-content: center; /* I-center ang search bar horizontally */
    width: 100%;
    margin-top: 20px;    /* Space mula sa Category tabs */
    margin-bottom: 40px; /* Space bago ang mga logo/pictures */
}

.modern-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #E21B24; /* Red border para match sa Tires button */
    padding: 10px 20px;
    border-radius: 50px;
    width: 100%;
    max-width: 450px; /* Sukat ng search bar sa gitna */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.modern-search-bar input {
    border: none;
    outline: none;
    margin-left: 10px;
    width: 100%;
    font-size: 15px;
}

.modern-search-bar i {
    color: #999;
}
.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; }

