/* Base Styles */
:root {
    --black: #1A1A1A;
    --gold: #D4AF37;
    --light-gold: #E5C760;
    --dark-gold: #B69329;
    --deep-black: #111111;
    --text-light: #FFFFFF;
    --text-muted: #CCCCCC;
}

body.dark-theme {
    font-family: 'Montserrat', sans-serif;
    background: var(--black);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Navbar */
.navbar {
    background: rgba(26,26,26,0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    background: var(--deep-black);
}

.logo {
    height: 40px;
    width: auto;
}

.nav-link {
    color: var(--text-light);
    margin: 0 15px;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    position: relative;
    background: linear-gradient(to right, rgba(26,26,26,0.95), var(--black));
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/heroleft.png');
    background-size: cover;
    background-position: left center;
    opacity: 0.3;
    z-index: 0;
}

.content-left {
    padding-right: 60px;
    position: relative;
    z-index: 1;
}

.content-right {
    text-align: right;
    position: relative;
    z-index: 1;
}

/* Center Logo */
.center-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    z-index: 2;
}

.center-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 2s;
}

.center-logo:hover img {
    animation: spin 2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Content */
.hero-image {
    max-width: 100%;
    height: auto;
    animation: heroImageFloat 6s ease-in-out infinite;
    border-left:2px solid gold;
    border-radius:25px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--deep-black);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--black);
    padding: 30px;
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

/* Trust Section */
.trust-section {
    padding: 100px 0;
    background: var(--black);
}

.stat-card {
    text-align: center;
    padding: 30px;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gold {
    background: var(--gold);
    color: var(--black);
    border: none;
}

.btn-gold:hover {
    background: var(--light-gold);
    transform: translateY(-2px);
}

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

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
}

/* Badges */
.badge.bg-gold {
    background-color: var(--gold) !important;
    color: var(--black);
    padding: 8px 16px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(1080deg); }
}

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

/* Utility Classes */
.text-gold {
    color: var(--gold) !important;
}

.bg-dark {
    background-color: var(--deep-black) !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(26,26,26,0.95);
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .content-left {
        padding-right: 0;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .content-right {
        text-align: center;
    }
    
    .center-logo {
        width: 180px;
        height: 180px;
    }
    
    .d-flex.gap-3 {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 100px 0 40px;
    }
    
    .center-logo {
        width: 150px;
        height: 150px;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .features-section,
    .trust-section {
        padding: 60px 0;
    }
}

/* Print Styles */
@media print {
    .hero-section::before {
        display: none;
    }
    
    .hero-image {
        print-color-adjust: exact;
    }
}
/* Safety & Quality Standards Section */
.standards-section {
    padding: 100px 0;
    background: var(--black);
}

.standard-card {
    background: rgba(26,26,26,0.5);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
}

.standard-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212,175,55,0.1);
}

.standard-card .icon-box {
    width: 70px;
    height: 70px;
    background: rgba(212,175,55,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.standard-card .icon-box i {
    font-size: 28px;
    color: var(--gold);
}

.standard-card h3 {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.standard-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Common Use Cases Section */
.use-cases-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--black), var(--deep-black));
}

.use-case-card {
    background: rgba(26,26,26,0.5);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(212,175,55,0.1);
}

.use-case-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212,175,55,0.1);
}

.use-case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.use-case-card h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.use-case-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(45deg, rgba(26,26,26,0.95), var(--deep-black)),
                url('../img/contact-bg.jpg') center/cover;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(212,175,55,0.1), transparent);
    pointer-events: none;
}

.contact-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-options .btn {
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-width: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-options .btn:hover {
    transform: translateY(-5px);
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.contact-options .btn i {
    font-size: 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .standards-section,
    .use-cases-section,
    .contact-section {
        padding: 60px 0;
    }

    .standard-card,
    .use-case-card {
        margin-bottom: 30px;
    }

    .contact-options {
        flex-direction: column;
    }

    .contact-options .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .standard-card,
    .use-case-card {
        padding: 20px;
    }

    .use-case-card img {
        height: 160px;
    }

    .contact-section h2 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.standard-card:hover .icon-box,
.use-case-card:hover img {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.contact-options .btn:active {
    transform: translateY(0);
}
/* Base CSS Reset and Box Sizing */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* Root Variables with Fallbacks */
:root {
    --black: #1A1A1A;
    --gold: #D4AF37;
    --light-gold: #E5C760;
    --dark-gold: #B69329;
    --deep-black: #111111;
    --text-light: #FFFFFF;
    --text-muted: #CCCCCC;

    /* Fallback colors for older browsers */
    color-scheme: dark;
}

/* Cross-browser Optimizations */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px; /* Base font size */
}

body.dark-theme {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    background: var(--black);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Performance Optimizations */
.hero-section,
.standards-section,
.use-cases-section,
.contact-section {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Image Optimizations */
img {
    max-width: 100%;
    height: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Flexbox Optimizations */
.d-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

/* Device-specific Media Queries */

/* Large Desktops (1400px and up) */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section {
        min-height: 90vh;
    }
}

/* Standard Desktops (1200px to 1399px) */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* Small Desktops and Laptops (992px to 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    html {
        font-size: 15px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
}

/* Tablets (768px to 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    html {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .content-left {
        padding-right: 0;
    }
}

/* Large Phones (576px to 767px) */
@media screen and (min-width: 576px) and (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
    }
}

/* Small Phones (575px and below) */
@media screen and (max-width: 575px) {
    html {
        font-size: 13px;
    }
    
    .display-4 {
        font-size: calc(1.2rem + 3vw);
    }
}

/* iOS Specific Styles */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        min-height: -webkit-fill-available;
    }
    
    .btn {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Safari Specific Styles */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .hero-image {
            -webkit-transform: translateZ(0);
        }
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .standard-card:hover,
    .use-case-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* High-DPI Screen Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image,
    .use-case-card img {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* Print Styles */
@media print {
    .hero-section::before,
    .contact-section::before {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid #000;
        color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* Modal Styling */
.modal-content {
    background: var(--black);
    border: 1px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(212,175,55,0.1);
}

.modal-header {
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.border-gold {
    border-color: var(--gold) !important;
}

/* Login Form Styling */
.login-form {
    padding: 20px;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.login-form .form-control {
    height: 48px;
    padding-left: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.login-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    background-color: #fff;
}

.login-form .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.login-form .btn-primary {
    height: 48px;
    width: 100%;
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    margin-top: 1rem;
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    border: none;
    transition: all 0.3s ease;
}

.login-form .btn-primary:hover {
    background: linear-gradient(45deg, #0b5ed7, #0d6efd);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.login-form .toggle-password {
    position: absolute;
    right: 15px;
    top: 40px;
    cursor: pointer;
    color: #6c757d;
}

.login-form .toggle-password:hover {
    color: #0d6efd;
}

.modal-header {
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    font-weight: 600;
}

.close {
    color: white;
}

#loginError {
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Animation for form elements */
.login-form .form-control {
    transform: translateY(10px);
    opacity: 0;
    animation: slideUp 0.3s ease forwards;
}

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

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-form {
        padding: 15px;
    }
    
    .login-form .form-control {
        height: 44px;
    }
    
    .login-form .btn-primary {
        height: 44px;
    }
}
