/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables / Brand Color Palette --- */
:root {
    /* Light Mode Variables (Default) */
    --primary: #2546efff;      
    --primary-dark: #1a32b8;  
    --accent: #e5b026ff;      
    --dark: #0f172a;          
    --light: #f8fafc;         
    --white: #ffffff;
    --text-muted: #64748b;    
    --card-border: rgba(37, 70, 239, 0.05);
    --header-bg: rgba(255, 255, 255, 0.85); /* Slightly transparent for blur effect */
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --font-main: 'Inter', sans-serif;
}

/* --- Dark Mode Override Variables --- */
[data-theme="dark"] {
    --primary: #3b82f6;        
    --primary-dark: #090d16;   
    --accent: #f59e0b;         
    --dark: #f8fafc;           
    --light: #0d1321;          
    --white: #131c31;          
    --text-muted: #94a3b8;    
    --card-border: rgba(255, 255, 255, 0.06);
    --header-bg: rgba(13, 19, 33, 0.85);
    --input-bg: #1e293b;
    --input-border: #334155;
}

/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
    MOTION LOGIC: PREMIUM iOS-STYLE SCROLL REVEALS
   ========================================================================== */
.reveal-element {
    opacity: 0;
    transform: translateY(35px) scale(0.98);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* --- Navigation Bar --- */
header {
    background-color: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
    padding: 15px 0;
    border-bottom: 1px solid transparent;
    
    /* Hardware-Accelerated Fluid Transition Profile */
    transition: 
        transform 0.6s cubic-bezier(0.25, 1, 0.2, 1),
        background-color 0.5s ease,
        backdrop-filter 0.5s ease,
        -webkit-backdrop-filter 0.5s ease,
        border-radius 0.6s cubic-bezier(0.25, 1, 0.2, 1),
        padding 0.5s ease,
        box-shadow 0.5s ease,
        border-color 0.5s ease;
    
    will-change: transform, background-color, backdrop-filter, box-shadow;
    transform-origin: top center;
}

/* --- The Seamless Floating Transformation --- */
header.scrolled {
    background-color: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* Elegant Translate/Scale compression replaces position layout snapping */
    transform: translateY(20px) scaleX(0.9); 
    
    border-radius: 50px;
    border-color: var(--card-border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
    padding: 0 35px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transform-origin: center center;
    transition: height 0.4s ease, transform 0.6s cubic-bezier(0.25, 1, 0.2, 1);
}

/* Counter-scale inside content so text/logo do not stretch horizontally */
header.scrolled .nav-container {
    height: 65px;
    transform: scaleX(1.1111); 
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 52px;
    height: 52px;
    object-fit: contain;  
    filter: drop-shadow(0 2px 8px rgba(37, 70, 239, 0.15)); 
    transition: transform 0.3s ease, width 0.4s ease, height 0.4s ease;
}

header.scrolled .logo-image {
    width: 40px;
    height: 40px;
}

.logo:hover .logo-image {
    transform: rotate(5deg) scale(1.05);
}

.logo-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
    transition: font-size 0.4s ease;
}

header.scrolled .logo-text h1 {
    font-size: 1.1rem;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: opacity 0.3s ease, height 0.3s ease;
}

header.scrolled .logo-text p {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Hamburger Trigger Style Rules */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--dark);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    outline: none;
}
.nav-toggle .close-icon { display: none; }
.nav-toggle.menu-active .burger-icon { display: none; }
.nav-toggle.menu-active .close-icon { display: block; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    transition: all 0.3s ease;
    padding: 8px 4px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

/* --- Fixed Position Theme Toggle Button Module --- */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--dark);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;  
    height: 40px; 
    vertical-align: middle;
}

.theme-toggle-btn:hover {
    background-color: rgba(37, 70, 239, 0.08);
    color: var(--primary);
}

html[data-theme="light"] .theme-toggle-btn .fa-sun {
    display: none;
}
html[data-theme="light"] .theme-toggle-btn .fa-moon {
    display: block;
}
html[data-theme="dark"] .theme-toggle-btn .fa-moon {
    display: none;
}
html[data-theme="dark"] .theme-toggle-btn .fa-sun {
    display: block;
    color: #ffb703;
}

/* --- Page Hero Structure --- */
.page-hero {
    padding: 160px 0 60px 0;
    background: linear-gradient(135deg, rgba(37, 70, 239, 0.08) 0%, rgba(229, 176, 38, 0.04) 100%);
    text-align: center;
    border-bottom: 1px solid var(--card-border);
}

.page-hero h2 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

main {
    flex: 1;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
}

/* --- Home / Hero Section --- */
.hero {
    padding: 180px 0 100px 0;
    background: linear-gradient(135deg, rgba(37, 70, 239, 0.06) 0%, rgba(229, 176, 38, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-content h2 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-features {
    margin-bottom: 35px;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-features i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 70, 239, 0.3);
}

.btn:hover {
    background-color: var(--accent);
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 176, 38, 0.4);
}

.hero-image-mock {
    border-radius: 20px;
    height: 380px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    background-size: cover;
    background-position: center;
    border: 4px solid var(--white);
}

/* --- Services Display --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
    border: 1px solid var(--card-border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 70, 239, 0.06);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 70, 239, 0.08);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Gallery Section --- */
.features-gallery-bg {
    background-color: var(--white);
}

.features-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.gallery-card {
    background-color: var(--light);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 70, 239, 0.06);
    border-color: var(--primary);
}

.gallery-img-wrapper {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #cbd5e1;
    border-bottom: 1px solid var(--card-border);
}

.gallery-card h4 {
    margin-top: 15px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    padding: 0 10px;
}

/* --- Custom Build Panels --- */
.builds {
    background-color: var(--white);
}

.builds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.build-item {
    text-align: center;
    padding: 35px 20px;
    border-radius: 14px;
    background-color: var(--light);
    border: 1px solid var(--card-border);
}

.build-item:hover {
    background-color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(37, 70, 239, 0.05);
    transform: translateY(-3px);
}

.build-item i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.build-item:hover i {
    color: var(--accent);
}

.build-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
}

/* --- About Modules --- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.history-main-title {
    font-size: 2.2rem; 
    color: var(--dark); 
    margin-bottom: 20px;
}

.history-link-btn {
    margin-top: 15px;
}

.explore-btn-wrapper {
    text-align: center; 
    margin-top: 45px;
}

.values-showcase-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: stretch; 
}

.v-m-box {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.vm-card {
    background-color: var(--white);
    padding: 35px 40px; 
    border-radius: 20px;
    border-left: 6px solid var(--primary);
    border-top: 1px solid var(--card-border);
    border-right: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.vm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(37, 70, 239, 0.08);
}

.vm-card h4 {
    font-size: 1.5rem; 
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--primary);
}

.vm-card h4 i {
    font-size: 1.4rem; 
    opacity: 0.9;
}

.vm-card p {
    font-size: 1.05rem; 
    line-height: 1.65;
    color: var(--text-muted); 
    margin-bottom: 0;
}

.hero-image-mock-about {
    width: 100%;
    height: 100%; 
    min-height: 440px; 
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
    background-size: cover;
    background-position: center;
    border: 4px solid var(--white);
    transition: transform 0.4s ease;
}

.hero-image-mock-about:hover {
    transform: scale(1.02);
}
        
/* --- Contact / Form Modules --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-header-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.badge-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(37, 70, 239, 0.03);
    border: 1px solid var(--card-border);
}

.badge-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(37, 70, 239, 0.08);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.badge-details h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.badge-details p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-form-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-field input, .form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--dark);
    border: 1px solid var(--input-border);
    font-family: inherit;
    outline: none;
}

.form-field input:focus, .form-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 70, 239, 0.15);
}

/* --- Premium Footer --- */
footer {
    background-color: rgba(15, 23, 42, 0.98); 
    color: #cbd5e1;
    padding: 80px 0 30px 0;
    margin-top: auto;
    border-top: 1px solid var(--card-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #94a3b8;
}

.footer-membership-title {
    font-size: 0.85rem; 
    color: #94a3b8; 
    font-style: italic; 
    margin-bottom: 15px;
}

.footer-subsidiary-list {
    font-size: 0.85rem; 
    margin-bottom: 20px; 
    padding-left: 5px;
}

.footer-subsidiary-list li {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.footer-subsidiary-list i {
    color: var(--accent);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.footer-socials a:hover {
    background-color: var(--accent);
    color: #0f172a;
    transform: translateY(-3px);
}

.footer-links h4, .footer-form h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-form p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #94a3b8;
}

.footer-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-input-group input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.footer-input-group button {
    background-color: var(--accent);
    color: #0f172a;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.footer-call-tag {
    margin-top: 25px; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: #94a3b8;
}

.footer-contact-info {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 700;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.85rem;
    color: #64748b;
}

/* --- Chat Box Widget --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
}

.chat-button {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 70, 239, 0.4);
}

.chat-button:hover {
    background-color: var(--accent);
    color: #0f172a;
    box-shadow: 0 8px 25px rgba(229, 176, 38, 0.4);
}

.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.chat-header {
    background-color: var(--primary);
    color: #ffffff;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-body {
    padding: 20px;
    height: 200px;
    overflow-y: auto;
    background-color: var(--light);
}

.chat-msg {
    background-color: var(--white);
    padding: 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    max-width: 85%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    border: 1px solid var(--card-border);
}

.chat-msg[style*="flex-end"] {
    z-index: 10;
}

.chat-footer {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--card-border);
    background-color: var(--white);
}

.chat-footer input {
    flex: 1;
    padding: 10px;
    background-color: var(--input-bg);
    color: var(--dark);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    outline: none;
}

.chat-footer button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 6px;
    cursor: pointer;
}
/* --- Corporate Preloader Styles --- */
#site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--light); /* Sumusunod sa Light/Dark theme mo */
    z-index: 99999; /* Siguradong nasa pinakaharap ng lahat */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: pulseLogo 2s infinite ease-in-out;
    filter: drop-shadow(0 4px 12px rgba(37, 70, 239, 0.2));
}

/* Spinner indicator sa ilalim ng logo */
.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--card-border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spinLoader 1s linear infinite;
}

.preloader-text {
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Fade-out class pag tapos na mag-load */
#site-preloader.preload-finish {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Animations --- */
@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}
/* ==========================================================================
   PREMIUM RICH MEDIA ENHANCEMENTS (MANAGER FEEDBACK)
   ========================================================================== */
.hero-media-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-container {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid var(--white);
    background-color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.media-container:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 25px 50px rgba(37, 70, 239, 0.12);
}

.media-asset {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-badge i {
    color: var(--accent);
    font-size: 0.7rem;
}

.video-feature-block {
    background-color: var(--white);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.video-lightbox-placeholder {
    position: relative;
    max-width: 900px;
    height: 480px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    border: 6px solid var(--light);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.05);
    background-color: #0f172a;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.4s ease, scale 0.4s ease;
}

.video-lightbox-placeholder:hover .video-thumb {
    opacity: 0.65;
    scale: 1.02;
}

.play-trigger-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(37, 70, 239, 0.4);
    animation: pulseRing 2s infinite;
    transition: background-color 0.3s, scale 0.3s ease;
}

.play-trigger-btn i {
    transform: translateX(3px); 
}

.video-lightbox-placeholder:hover .play-trigger-btn {
    background-color: var(--accent);
    color: #0f172a;
    scale: 1.1;
}

.video-duration-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(37, 70, 239, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(37, 70, 239, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 70, 239, 0); }
}

.asset-shadow {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

/* ==========================================================================
    RESPONSIVENESS CORES AND OVERRIDES
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-features {
        display: inline-block;
        text-align: left;
    }
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .values-showcase-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        align-items: normal; 
    }
    .hero-image-mock-about {
        height: 380px;      
        min-height: unset;  
    }
    .hero-image-mock {
        height: 350px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .contact-header-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .contact-header-badges .badge-card:first-child {
        grid-column: span 2;
    }

    /* Swipe Engine for Products Filter Caps */
    .product-filter-controls {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        padding: 15px 20px !important;
        margin: -25px -20px 40px -20px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .product-filter-controls::-webkit-scrollbar {
        display: none !important;
    }

    .product-filter-controls::before,
    .product-filter-controls::after {
        content: '';
        padding-left: 10px;
    }
    
    .filter-btn {
        padding: 8px 20px !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 768px) {
    header {
        position: fixed; 
        padding: 10px 0;
    }

    header.scrolled {
        width: 95%;
        top: 10px;
        left: 2.5%;
        border-radius: 30px;
        padding: 0 20px;
        transform: none !important; 
    }

    .nav-container {
        flex-direction: row !important;
        justify-content: space-between;
        height: 60px;
        gap: 0;
        padding: 0;
        transform: none !important;
    }

    header.scrolled .nav-container {
        height: 60px;
        transform: none !important;
    }

    .logo-text {
        display: none; 
    }

    /* Micro-interactions positioning fixes based on manager feedback */
    .logo {
        padding-left: 15px; 
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding-right: 15px; 
    }

    /* Slide Out Drawer Engine */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: 90px 30px 40px 30px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
        overflow-y: auto; /* Allow scrolling inside the menu drawer for landscape views */
    }

    .nav-menu.mobile-open {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--card-border);
    }

    .nav-menu li:last-child {
        border-bottom: none;
        padding-top: 20px;
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: flex-start;
        position: relative;
        z-index: 1200; /* Force overlay on top of standard window layout systems */
    }

    .theme-toggle-btn {
        width: 44px;
        height: 44px;
        background-color: var(--light);
        border-radius: 50%;
    }

    .nav-link {
        display: block;
        width: 100%;
        font-size: 1.05rem;
        padding: 15px 0;
    }

    .nav-link::after {
        display: none; 
    }

    .hero, .page-hero {
        padding-top: 140px !important;
        padding-bottom: 60px !important;
    }

    .services-grid, .builds-grid, .footer-grid, .features-gallery-grid, .contact-header-badges {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .contact-header-badges .badge-card:first-child {
        grid-column: span 1;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .page-hero h2 {
        font-size: 2rem;
    }

    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
    }

    .media-container {
        height: 260px;
    }

    .video-lightbox-placeholder {
        height: 280px;
    }

    .play-trigger-btn {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .footer-input-group {
        flex-direction: column;
    }
    .footer-input-group button {
        padding: 12px;
    }
}