:root {
    --primary-blue: #0B2E6B;
    --primary-red: #C8102E;
    --primary-gold: #D4A017;
    --white: #FFFFFF;
    --dark-bg: #051633;
    --light-bg: #F8F9FA;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    overflow-x: hidden;
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
}
.text-primary-blue { color: var(--primary-blue) !important; }
.text-primary-red { color: var(--primary-red) !important; }
.text-primary-gold { color: var(--primary-gold) !important; }
.bg-primary-blue { background-color: var(--primary-blue) !important; }
.bg-primary-red { background-color: var(--primary-red) !important; }
.bg-primary-gold { background-color: var(--primary-gold) !important; }

.subtitle {
    color: var(--primary-red);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: #a00d24;
    color: var(--white);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.btn-outline-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
}

.btn-dark-blue {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-dark-blue:hover {
    background-color: var(--dark-bg);
    color: var(--white);
}

/* Navbar overrides */
.navbar-nav .nav-link {
    font-weight: 700;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: var(--primary-red) !important;
}

/* Hero Section */
.hero-new {
    height: 85vh;
    min-height: 700px;
    background: radial-gradient(circle at center, rgba(11, 46, 107, 0.4) 0%, rgba(5, 22, 51, 0.85) 100%), url('../img/hero-bg.png') center/cover fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-new::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 0;
}

.hero-logo-container {
    width: 280px;
    height: 140px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 50% / 50%;
    border: 6px solid var(--primary-gold);
    box-shadow: 0 0 0 4px var(--primary-red), inset 0 5px 15px rgba(0,0,0,0.1), 0 20px 40px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px auto;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-logo-text {
    color: var(--primary-blue);
    font-size: 4.5rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -2px;
}

.hero-logo-badge {
    position: absolute;
    bottom: -15px;
    background: var(--primary-red);
    color: white;
    font-size: 0.7rem;
    padding: 3px 15px;
    border-radius: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.hero-title {
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
    letter-spacing: 1px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-fade-in-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Features Bar */
.features-bar {
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid #eee;
    z-index: 10;
    position: relative;
}
.feature-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-right: 1px solid #eee;
}
.feature-item:last-child {
    border-right: none;
}
.feature-icon {
    font-size: 2rem;
    margin-right: 15px;
}
.feature-text {
    line-height: 1.2;
}
.feature-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-blue);
}
.feature-text span {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

/* Product Cards */
.product-card-new {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card-new:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}
.product-card-new img {
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}
.product-card-new h5 {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 20px;
    margin-top: auto;
}

/* Certification Cards */
.cert-card {
    background: transparent;
    border: none;
    display: flex;
    align-items: flex-start;
}
.cert-icon {
    width: 80px;
    height: 80px;
    border: 3px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 20px;
}
.cert-text h4 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 5px;
}
.cert-text h6 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 10px;
}
.cert-text p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Inquiry Section */
.inquiry-section {
    position: relative;
    background: #fff;
    overflow: hidden;
}
.inquiry-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%), url('../img/factory-bg.png') center/cover;
    z-index: 1;
}

/* Footer Links Override */
.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.3s;
}
.footer-link:hover {
    opacity: 0.7;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    /* Hero */
    .hero-new {
        min-height: 500px;
        height: auto;
        padding: 100px 0 50px 0;
    }
    .hero-logo-container {
        width: 200px;
        height: 100px;
        margin-bottom: 30px;
    }
    .hero-logo-text {
        font-size: 3rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Global Spacing */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    .section-padding {
        padding: 40px 0;
    }
    
    /* Features Bar (to allow wrapping) */
    .feature-item {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    /* About Us Factory Image */
    .bg-secondary.d-flex {
        min-width: 100% !important;
    }
    
    /* Inquiry section background */
    .inquiry-bg-image {
        display: none !important; /* Hide image on mobile for better form readability */
    }
}

/* Loading Screen */
#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: var(--primary-blue);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--primary-gold);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
