/*--------------------------------------------------------------
# General & Typography
--------------------------------------------------------------*/
:root {
    --primary-color: #D49A3D; /* Brand Gold */
    --primary-rgb: 212, 154, 61; /* RGB for opacity utilities */
    
    --primary-dark: #b88635;  /* Button Hover Gold */
    --primary-text-on-light: #9e6d23; /* Darker Gold for text accessibility on white (WCAG AA) */
    
    --secondary-color: #1e293b; /* Midnight Slate */
    --dark-color: #0f172a;      /* Deepest Slate */
    
    --light-color: #f8f9fa;
    --soft-light-bg-1: #f8fafc; 
    --soft-light-bg-2: #f1f5f9; 
    --border-color: #e2e8f0;
    
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.15);
    
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Bootstrap Override: Force Brand Gold for Primary & Warning */
    --bs-primary: var(--primary-color);
    --bs-primary-rgb: var(--primary-rgb);
    --bs-warning: var(--primary-color);
    --bs-warning-rgb: var(--primary-rgb);
}

body {
    font-family: var(--bs-font-sans-serif);
    line-height: 1.6;
    background-color: var(--soft-light-bg-1);
    color: #334155; 
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: -0.01em; 
}

a { color: var(--primary-text-on-light); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--primary-dark); }

.text-gold { color: var(--primary-color) !important; }
.text-gold-accessible { color: var(--primary-text-on-light) !important; }

.bg-soft-light-1 { background-color: var(--soft-light-bg-1); }
.bg-soft-light-2 { background-color: var(--soft-light-bg-2); }

.lead { 
    font-weight: 400; 
    color: #475569;   
}

.tracking-wide { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; font-weight: 700; }
.text-gradient-gold {
    background: linear-gradient(135deg, #D49A3D 0%, #ffe08a 50%, #D49A3D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# SOP Image Handling (Distortion Prevention)
--------------------------------------------------------------*/
img { max-width: 100%; height: auto; }

/* Support for both wrapper class and direct image class */
.img-cover img, img.img-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.img-contain img, img.img-contain {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* Specific styling for brand logos */
.logo-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logo-card img {
    padding: 1.75rem; 
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.5s ease;
}

.logo-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    padding: 1.5rem; 
}

/*--------------------------------------------------------------
# Hero Glassmorphism
--------------------------------------------------------------*/
.hero-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.header-logo img {
    max-width: 130px; 
    height: auto;
    transition: transform 0.3s ease;
}
.header-logo:hover img { transform: scale(1.05); }

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px; 
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.nav-link:hover, .nav-link.active { 
    background: rgba(212, 154, 61, 0.2); 
    border-color: var(--primary-color);
    color: #fff !important;
    transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Components & Cards
--------------------------------------------------------------*/
.tech-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1) !important;
    border-color: var(--primary-color);
}

.feature-icon-circle {
    width: 5rem;
    height: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}
.feature-icon-circle i { font-size: 2.25rem; color: var(--primary-color); }

.hover-lift:hover .feature-icon-circle {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}
.hover-lift:hover .feature-icon-circle i { color: #fff; }

.icon-list-font { font-size: 2rem; color: var(--primary-color); margin-right: 1rem; width: 2.5rem; text-align: center; }

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn { 
    border-radius: 50px; 
    padding: 0.75rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-color);
}
.btn-warning:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 154, 61, 0.3);
}

/*--------------------------------------------------------------
# Tech-Forward Reveal Engine Styles
--------------------------------------------------------------*/
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up.visible, .slide-in-left.visible, .slide-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* Delays for staggered animations */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/*--------------------------------------------------------------
# Footer Overhaul (High Contrast)
--------------------------------------------------------------*/
footer.tech-footer {
    background-color: var(--dark-color);
    color: #cbd5e1; /* Slate-300: High Contrast Body Text */
    padding-top: 5rem;
    border-top: 5px solid var(--primary-color);
}

footer.tech-footer .footer-logo-text {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

footer.tech-footer h5 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

footer.tech-footer a {
    color: #cbd5e1; 
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.75rem;
}

footer.tech-footer a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Handle specific Bootstrap muted/light classes inside footer */
footer.tech-footer .text-muted, 
footer.tech-footer .text-light-50 {
    color: #94a3b8 !important; /* Slate-400 for accessible muted text on dark */
}

footer.tech-footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    margin-right: 0.75rem;
    transition: all 0.3s;
    color: #fff;
    font-size: 1.2rem;
}
footer.tech-footer .social-link:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

footer.tech-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 2.5rem 0;
    margin-top: 4rem;
}

/*--------------------------------------------------------------
# Section Styling
--------------------------------------------------------------*/
section { padding: 6rem 0; position: relative; }

.dark-section {
    background-color: var(--dark-color);
    color: #fff;
}
.dark-section .lead { color: #cbd5e1; }

.credibility-bar .logo-wrap {
    height: 140px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (min-width: 992px) {
    .lead { font-size: 1.25rem; }
    .hero-glass { max-width: 800px; margin: 0 auto; }
}
