/* SURGE PROTECTOR - Luxury Minimalist (White & Gold)
   Optimized for centered Overlay and Industrial Elegance
*/

:root {
    --bg-white: #ffffff;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f1d38e 50%, #b38b47 100%);
    --gold-solid: #c5a059;
    --charcoal: #1a1a1a;
    --slate-bg: #f9f9f9;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ================= RESET & BASE ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg-white); 
    color: var(--text-main);
    line-height: 1.6;
}

/* ================= PERFECTLY CENTERED OVERLAY ================= */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-white);
    display: flex;
    flex-direction: column; /* Stacks logo over label */
    align-items: center;    /* Horizontal Center */
    justify-content: center; /* Vertical Center */
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-logo {
    width: 100px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 10px 15px rgba(197, 160, 89, 0.2));
    animation: breathe 2s infinite ease-in-out;
}

.overlay-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold-solid);
    text-transform: uppercase;
    letter-spacing: 12px;
    /* text-indent offsets the last letter's spacing to ensure true center */
    text-indent: 12px; 
    white-space: nowrap;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.7; }
}

/* ================= NAVIGATION ================= */
.nav {
    position: fixed;
    width: 100%;
    top: 0; left: 0;
    padding: 25px 8%;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nav.shrink { padding: 15px 8%; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }

.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    font-weight: 700; 
    color: var(--charcoal);
    letter-spacing: 1px;
}

.logo-icon { width: 32px; margin-right: 12px; }

.nav-actions a {
    margin-left: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--charcoal);
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-actions a:hover { color: var(--gold-solid); }

.btn-gallery { color: var(--gold-solid) !important; border-bottom: 2px solid var(--gold-solid); }

/* ================= BUTTONS ================= */
.btn-primary, .btn-buy-main {
    background: var(--gold-gradient);
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 4px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.3);
    transition: var(--transition);
}

.btn-primary:hover, .btn-buy-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(197, 160, 89, 0.5);
}

.btn-outline {
    border: 2px solid var(--charcoal);
    padding: 10px 28px;
    border-radius: 4px;
    color: var(--charcoal) !important;
}


    @media (max-width: 900px) {
    .btn-gallery {
        border-bottom: none !important; /* Remove the underline on mobile */
        color: var(--gold-solid) !important;
        margin-bottom: 20px !important;
    }
}
/* ================= CONTENT SECTIONS ================= */
section { padding: 100px 8%; }

.pinoy-container, .intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pinoy-text h2, .intro-content h1 {
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
}

.pinoy-text h2 span, .intro-content h2 span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* ================= CARDS ================= */
.pinoy-cards, .intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.pinoy-card, .intro-card {
    background: var(--slate-bg);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.pinoy-card:hover {
    background: #fff;
    transform: translateY(-8px);
    border-color: var(--gold-solid);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.pinoy-card h3 { color: var(--gold-solid); margin-bottom: 10px; font-size: 1.1rem; }
.pinoy-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ================= IMAGES ================= */
.pinoy-image img, .intro-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    cursor: zoom-in;
    transition: var(--transition);
}

.pinoy-image img:hover { transform: scale(1.02); }

/* ================= BUY NOW SECTION (Adjusted Spacing) ================= */
.buy-now-section {
    background: var(--slate-bg);
    text-align: center;
    margin: 60px 8%;
    padding: 100px 40px;
    border-radius: 30px;
}

.buy-now-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.buy-now-container p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 50px; /* 50px space below the text before the button */
    font-size: 1.1rem;
}

#mainBuyBtn {
    margin-top: 20px; /* Extra safety margin on top of the button */
}

.promo-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--gold-solid);
    color: var(--gold-solid);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

/* ================= LIGHTBOX ================= */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
}

#lightbox.show { opacity: 1; pointer-events: auto; }

#lightbox-img {
    max-width: 85%;
    max-height: 85%;
    border: 2px solid var(--gold-solid);
    border-radius: 10px;
    box-shadow: 0 30px 100px rgba(0,0,0,0.15);
}

/* ================= FOOTER ================= */
.site-footer {
    padding: 60px 8%;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ================= RESPONSIVE & MOBILE MENU ================= */
@media (max-width: 900px) {
    .nav { padding: 15px 5%; }

    .nav-toggle { 
        display: flex !important; 
        flex-direction: column;
        gap: 5px;
        z-index: 2000; 
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--charcoal);
        transition: 0.3s;
    }

    /* THE ANIMATED MENU PANEL */
    .nav-actions {
        display: flex !important; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        /* ADD THIS TO CENTER EVERYTHING */
        align-items: center; 
        justify-content: center;

        padding: 120px 0 60px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 1500;

        /* Animation Start */
        transform: translateY(-100%); 
        opacity: 0;
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
        pointer-events: none;
    }

    .nav-actions.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-actions a {
        /* ADD THESE TO CONTROL THE BUTTON WIDTH */
        width: 80%;            /* Width of the button on mobile */
        max-width: 280px;      /* Prevents it from getting too wide on tablets */
        text-align: center;    /* Centers the text inside the button */
        display: inline-block; /* Essential for padding/width to work */

        margin: 15px 0 !important;
        margin-left: 0 !important;
        font-size: 1.1rem;
        opacity: 0;
        transform: translateY(10px);
        transition: 0.4s ease;
    }

    .nav-actions.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* STAGGERED LINKS EFFECT */
    .nav-actions.active a:nth-child(1) { transition-delay: 0.2s; }
    .nav-actions.active a:nth-child(2) { transition-delay: 0.3s; }
    .nav-actions.active a:nth-child(3) { transition-delay: 0.4s; }

    /* HAMBURGER TO 'X' ANIMATION */
    .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* LAYOUT ADJUSTMENTS */
    .pinoy-container, .intro-container { grid-template-columns: 1fr; text-align: center; }
    section { padding: 60px 5%; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .pinoy-container, .intro-container { grid-template-columns: 1fr; text-align: center; }
    .nav-actions { display: none; }
    section { padding: 60px 5%; }
}

@media (max-width: 900px) {
    .nav-actions { display: none; }
}