/* Performance & Optimization Styles */
@import url('nav-button.css');

/* Main Style Definition */


.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.img-loading {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.img-loaded {
    opacity: 1;
}

:root {
    /* Premium Palette - Darker Deep Royal Blue & Vibrant Metallic Gold */
    --primary-color: #001833;
    /* Darker, more premium base */
    --primary-light: #002a5c;
    --primary-dark: #000c1a;

    --accent-color: #D4AF37;
    /* True Metallic Gold */
    --accent-hover: #b5952f;
    --accent-light: #f5d76e;

    --text-dark: #141414;
    /* Deeper text for contrast */
    --text-light: #F8F9FA;
    --text-muted: #7A7A7A;

    --bg-light: #FFFFFF;
    --bg-off-white: #F8F9FA;
    /* Slightly cooler off-white */
    --bg-dark: #05080c;
    /* Near Pitch Black with blue tint */
    --bg-section: #F1F4F8;
    /* Refined section bg */

    /* Gradients & Premium Glassmorphism */
    --gradient-hero: linear-gradient(135deg, rgba(0, 24, 51, 0.4), rgba(0, 12, 26, 0.6));
    /* Richer gradient */
    --gradient-gold: linear-gradient(135deg, #D4AF37, #f5d76e);
    --glass-bg: rgba(255, 255, 255, 0.08);
    /* Slightly more visible glass */
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);

    /* Typography - More spacing/height for premium feel */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    /* Increased breathing room */
    --spacing-xl: 9rem;

    /* Premium Transitions - Smoother curves */
    --transition-fast: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-base: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.flex {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

.font-bold {
    font-weight: 700;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Spacing & Layout Utilities */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.max-600 {
    max-width: 600px;
}

.accent-line {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* Responsive Utilities */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .container {
        width: 95%;
    }
    .section {
        padding: var(--spacing-md) 0;
    }
}

@media (max-width: 768px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
    }
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 24, 51, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    box-shadow: 0 8px 25px rgba(0, 24, 51, 0.3);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

/* Page Header (Internal Pages) */
.page-header {
    background: linear-gradient(rgba(0, 38, 77, 0.95), rgba(0, 38, 77, 0.8)), url('../assets/images/hero-bg.png') center/cover no-repeat;
    padding: 140px 0 60px;
    /* Top padding accounts for fixed header */
    text-align: center;
    color: #fff;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--accent-light);
    max-width: 600px;
    margin: 0 auto;
}

.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header.header-shadow {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    flex-shrink: 0;
    white-space: nowrap !important;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap !important;
    display: inline-block;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-cta {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 1rem;
    }
    .nav-link {
        font-size: 0.8rem;
    }
    .nav-cta .btn-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
        color: var(--primary-color);
        z-index: 1001;
    }
}

/* Hero Section */
/* Hero Section */
/* Hero Section - Hybrid Layout (Desktop Side-by-Side / Mobile Stacked) */
/* Hero Section - Full Width Split Layout */
.hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    background-color: #001428;
    color: #ffffff;
    min-height: 90vh;
    padding-top: 80px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 80px;
    right: 0;
    width: 50%;
    /* Strictly 50% width */
    height: calc(100% - 80px);
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    /* Ensure image covers the full square */
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero .container {
    position: relative;
    z-index: 10;
    width: 50%;
    /* Occupy left half */
    max-width: 50%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    background-color: #001428;
    /* Solid background for text area */
}

.hero-content {
    width: 100%;
    max-width: 100%;
    /* Occupies full container width */
    background: transparent;
    padding: 4rem 4rem 4rem 6rem;
    /* Generous padding, extra left for visual balance */
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle divider */
    pointer-events: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile & Tablet Adjustments (Stacked Layout) */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        padding-top: 80px;
    }

    .hero-slider {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%;
        /* 16:9 aspect ratio */
        top: 0;
        overflow: hidden;
    }

    .hero-slide {
        background-position: center center;
        background-size: contain;
        background-color: #f5f5f5;
    }

    .hero .container {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        pointer-events: auto;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
        margin-top: 0;
        padding: 2.5rem 1.5rem;
        background: #001428;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: none;
        position: relative;
        z-index: 12;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

.hero .text-accent {
    text-shadow: none;
    /* Box provides contrast now */
    background: transparent;
    padding: 0;
    color: var(--accent-color);
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

/* Features/Benefits */
.features {
    background: var(--bg-section);
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card {
    background: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 24, 51, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-top: 4px solid transparent;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    border-top-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 24, 51, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Products Preview */
.product-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--bg-light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    /* Sophisticated lift */
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.3);
    /* Gold tint on hover */
}

.product-image {
    width: 100%;
    height: 250px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: var(--spacing-md);
}

.product-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

/* About Section Preview */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
    background-color: #ddd;
    /* Placeholder */
}

.about-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Contact Strip */
.cta-strip {
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding-top: var(--spacing-lg);
}

.footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #aaa;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Pages Specifics */
.page-header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    text-align: center;
}

.contact-grid {
    grid-template-columns: 1fr 2fr;
}

.contact-info {
    background: var(--bg-section);
    padding: var(--spacing-md);
    border-radius: 10px;
}

.contact-form {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    margin-bottom: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Background & Parallax Utilities */
.bg-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Fix parallax on iOS (doesn't support background-attachment: fixed) */
@supports (-webkit-touch-callout: none) {
    .bg-parallax {
        background-attachment: scroll;
    }
}

/* Background Variations */
.bg-tech-overlay {
    background: linear-gradient(rgba(249, 250, 251, 0.1), rgba(249, 250, 251, 0.2)), url('../assets/images/bg-tech-pattern.png');
    background-size: cover;
    background-attachment: fixed;
}

.bg-industrial-dark {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: #001a33;
    /* Fallback */
}

.bg-industrial-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 38, 77, 0.4), rgba(0, 20, 40, 0.5)), url('../assets/images/bg-industry-dark.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

.bg-gears-abstract {
    background: linear-gradient(rgba(197, 160, 89, 0.9), rgba(197, 160, 89, 0.8)), url('../assets/images/bg-gears.jpg');
    /* Gold Overlay */
    background-size: cover;
    background-attachment: fixed;
}


.bg-blue-overlay {
    background: linear-gradient(rgba(0, 38, 77, 0.2), rgba(0, 38, 77, 0.3)), url('../assets/images/bg-cta.png');
    background-size: cover;
    background-position: center;
}

/* Animations found in Premium designs */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive */
/* Responsive Grid Utilities */
.grid-2-cols {
    grid-template-columns: 1fr 1fr;
}

.grid-product {
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
}

.grid-product-reverse {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
}

/* Mobile Nav Styles - Specific Scope */
@media (max-width: 1024px) {
    .nav.active .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav.active .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav.active .nav-links li:last-child {
        border-bottom: none;
    }

    .nav.active .nav-links .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
    }

    .nav.active .nav-links .nav-btn-store {
        margin-left: 0;
        margin-top: 0.5rem;
        display: block;
        text-align: center;
    }

    .nav.active .nav-cta {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Responsive Media Queries */
@media (max-width: 992px) {

    .grid-product,
    .grid-product-reverse,
    .grid-2-cols {
        grid-template-columns: 1fr !important;
        /* Force stack on smaller screens */
        gap: 2rem;
    }

    /* Hero adjustments handled in specific Hero block above */
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
        color: var(--primary-color);
    }
}

@media (max-width: 768px) {

    /* Grid Stacking Verification */
    .grid-product,
    .grid-product-reverse,
    .contact-grid,
    .about-preview {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .grid-product .product-image,
    .grid-product-reverse .product-image {
        order: -1;
        height: 250px;
    }

    .section {
        padding: 3rem 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Ensure no horizontal overflow */
    body,
    html {
        overflow-x: hidden;
    }

    /* Hero text responsive fix */
    .hero h1 {
        font-size: 1.6rem !important;
        line-height: 1.25 !important;
    }

    .hero p {
        font-size: 0.95rem !important;
    }

    .hero .text-accent {
        font-size: 0.8rem;
    }

    /* Buttons touch-friendly size */
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.85rem;
        min-height: 44px;
    }

    /* Hero buttons stack on mobile */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Page header mobile */
    .page-header h1 {
        font-size: 1.8rem;
    }

    /* Footer mobile stacking */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col .flex {
        justify-content: center;
    }

    /* About image mobile */
    .about-image {
        height: 250px;
    }

    /* CTA section mobile */
    .cta-strip h2 {
        font-size: 1.6rem !important;
    }

    .cta-strip p {
        font-size: 1rem !important;
    }

    /* Contact grid mobile */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    /* Filter buttons wrap nicely */
    .filter-group {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
    }

    /* Video card mobile */
    .video-card {
        margin-bottom: 1rem;
    }

    /* Fix background-attachment: fixed on mobile (breaks on iOS) */
    .bg-tech-overlay,
    .bg-gears-abstract,
    .bg-parallax {
        background-attachment: scroll !important;
    }

    /* Product names on mobile */
    .text-primary[style*="font-size: 2rem"] {
        font-size: 1.4rem !important;
    }

    /* Section padding fix for CTA */
    .cta-strip {
        padding: 3rem 0 !important;
    }

    /* Prevent any inline font-size from being too large */
    h2[style*="font-size: 2.5rem"] {
        font-size: 1.6rem !important;
    }

    /* Adjust hero slider aspect ratio on small screens */
    .hero-slider {
        padding-bottom: 65%;
        /* Slightly taller ratio for phones */
    }
}

/* Product Filter Styles */
.filter-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    /* Modern rounded look */
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(10, 37, 88, 0.3);
}

/* --- PERFORMANCE & ANIMATION STYLES (Added by Senior Dev) --- */

/* 1. Preloader Logic Handle by JS */
.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 2. Scroll Reveal Animations */
.reveal-on-scroll,
.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-on-scroll.reveal-active,
.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Image Load Fade */
img.img-loading {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

img.img-loaded {
    opacity: 1;
}

.video-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 24, 51, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.video-card:hover {
    box-shadow: 0 25px 60px rgba(0, 24, 51, 0.15);
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 200px;
    /* Fallback for slow thumbnails */
    background: #000;
    overflow: hidden;
}

.custom-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide native controls that might overlap with custom UI on mobile/WebKit */
.custom-video::-webkit-media-controls,
.custom-video::-webkit-media-controls-play-button,
.custom-video::-webkit-media-controls-start-playback-button,
.custom-video::-webkit-media-controls-enclosure,
.custom-video::-webkit-media-controls-panel {
    display: none !important;
    -webkit-appearance: none;
}

.video-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 20 !important;
    /* Force on top */
    pointer-events: none;
}

/* Pause mode shows a permanent play button */
.video-wrapper.paused .video-controls-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.video-wrapper.playing .video-controls-overlay {
    opacity: 0;
}

.video-wrapper.playing:hover .video-controls-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 40%);
}

.play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
    pointer-events: auto;
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-pause-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent-hover);
}

.play-pause-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-ui-bottom {
    padding: 1.5rem 1rem 0.5rem;
    pointer-events: auto;
}

.video-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 10px;
    position: relative;
}

.video-progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    border-radius: 2px;
}

.video-actions {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.video-actions button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px 10px;
    transition: color 0.2s;
}

.video-actions button:hover {
    color: var(--accent-color);
}

.video-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-time {
    color: #fff;
    font-size: 0.85rem;
    margin-left: 10px;
    font-family: 'Roboto', sans-serif;
}

.video-actions-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-video-speed {
    font-weight: 700;
    font-size: 0.9rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px;
    min-width: 40px;
}

/* Video Subtitles (VTT) Styling */
video::cue {
    background-color: rgba(0, 20, 40, 0.85);
    /* Synthoil Dark Blue */
    color: var(--accent-color);
    /* Synthoil Gold */
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    video::cue {
        font-size: 0.9rem;
    }
}

/* Responsive Utilities (Bootstrap-style) */
.d-none {
    display: none !important;
}

@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }

    .d-md-flex {
        display: flex !important;
    }

    .d-md-grid {
        display: grid !important;
    }
}

@media (max-width: 767px) {
    .text-center-mobile {
        text-align: center !important;
    }

    .w-100-mobile {
        width: 100% !important;
    }
}

/* --- Conversion-Focused Refinements (Pro Max Content) --- */

/* Accessibility Focus States */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* Static Button Hovers */
.btn {
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Product Card Focus */
.product-card {
    transition: border-color 0.3s ease;
    border: 1px solid transparent;
}

.product-card:hover {
    border-color: rgba(197, 160, 89, 0.3);
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 1.4rem !important;
    }

    .hero-content {
        padding: 2rem 1rem !important;
    }

    .hero-slider {
        padding-bottom: 75%;
        /* Taller ratio for small phones */
    }

    .section-title,
    h2 {
        font-size: 1.4rem;
    }

    .nav {
        height: 65px;
    }

    .logo img {
        height: 40px;
    }

    .hero {
        padding-top: 65px;
    }
}