/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold-primary: #FFD700;
    --gold-secondary: #FFC107;
    --gold-dark: #B8860B;
    --gold-light: #FFF8DC;
    --black-primary: #0A0A0A;
    --black-secondary: #1A1A1A;
    --black-light: #2A2A2A;
    --white: #FFFFFF;
    --gray: #888888;
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFC107 50%, #B8860B 100%);
    --gradient-dark: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
    --shadow-gold: 0 0 15px rgba(255, 215, 0, 0.3);
    --shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black-primary);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--gold-primary);
    animation: float 15s infinite linear;
}

.bg-particle:nth-child(2) {
    animation-delay: 3s;
    width: 4px;
    height: 4px;
}

.bg-particle:nth-child(3) {
    animation-delay: 7s;
    width: 2px;
    height: 2px;
}

.bg-particle:nth-child(4) {
    animation-delay: 11s;
    width: 5px;
    height: 5px;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
    50% {
        transform: translateY(10px) translateX(-10px);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-10px) translateX(-5px);
        opacity: 1;
    }
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }
}

/* Navigation */
.navbar {
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: var(--white);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    color: var(--gold-primary);
    margin-right: 10px;
    font-size: 2rem;
}

.logo-highlight {
    color: var(--gold-primary);
    text-shadow: var(--shadow-gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--gold-primary);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

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

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

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

.nav-actions {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
}

.btn-outline {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--gold-primary);
    background: transparent;
    color: var(--gold-primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: var(--black-primary);
    box-shadow: var(--shadow-gold);
}

.btn-gold {
    padding: 0.5rem 1.5rem;
    background: var(--gradient-gold);
    color: var(--black-primary);
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 300px);
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
}

.footer-tagline {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--black-light);
    color: var(--gold-primary);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--gold-primary);
    color: var(--black-primary);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--gold-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
}

.footer-link {
    display: block;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--gold-primary);
    margin-right: 10px;
    margin-top: 3px;
}

.newsletter h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem;
    background-color: var(--black-light);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-right: none;
    border-radius: 30px 0 0 30px;
    color: var(--white);
    outline: none;
}

.newsletter-btn {
    background: var(--gradient-gold);
    color: var(--black-primary);
    border: none;
    border-radius: 0 30px 30px 0;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--gold-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-actions {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .nav-actions {
        flex-direction: column;
        width: 80%;
        margin-top: 2rem;
    }
    
    .btn-outline, .btn-gold {
        width: 100%;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}



/* Custom Styles for Your Specific Images */

/* 3D Element as Background */
.bg-3d-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.03;
    z-index: -1;
    filter: sepia(1) hue-rotate(10deg) saturate(2) brightness(0.8);
}

/* Abstract Logo Styling */
.logo-img {
    height: 45px;
    width: auto;
    margin-right: 12px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
}

/* Typography Logo in Footer */
.footer-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* Hero Section with your hero-section-bg */
.hero-with-bg-image {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: -1;
    filter: contrast(1.2) brightness(0.7) sepia(0.3) hue-rotate(10deg);
}

/* Feature Icons - Extract individual icons from your feature-icons.png */
.feature-icon-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.feature-icon-item {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-icon-item:hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: var(--gold-primary);
    transform: translateY(-10px);
}

.feature-icon-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Using CSS sprite technique for your feature-icons.png */
.feature-icon-sprite {
    background-image: url('../images/features/feature-icons.png');
    background-size: 400% 100%; /* Assuming 4 icons in a row */
    width: 50px;
    height: 50px;
}

.feature-icon-ai { background-position: 0 0; }
.feature-icon-analytics { background-position: 33.33% 0; }
.feature-icon-automation { background-position: 66.66% 0; }
.feature-icon-strategy { background-position: 100% 0; }

/* Data Visualization Section */
.data-viz-section {
    position: relative;
    padding: 5rem 2rem;
    background: rgba(10, 10, 10, 0.8);
    margin: 4rem 0;
    border-radius: 20px;
    overflow: hidden;
}

.data-viz-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: -1;
}

/* Infographic Style Section */
.infographic-section {
    background: linear-gradient(135deg, var(--black-secondary), var(--black-primary));
    padding: 4rem 2rem;
    border-radius: 20px;
    margin: 4rem 0;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.infographic-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Service Image Section */
.service-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}

.service-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.service-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.service-image-wrapper:hover .service-main-image {
    transform: scale(1.05);
}

/* Team Section with your team-about.jpg */
.team-about-section {
    position: relative;
    padding: 5rem 2rem;
    margin: 4rem 0;
    border-radius: 20px;
    overflow: hidden;
}

.team-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
    z-index: -1;
    filter: grayscale(1) contrast(1.2);
}

.team-content-overlay {
    position: relative;
    z-index: 1;
    background: rgba(10, 10, 10, 0.85);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Image Gallery for multiple uses */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.grid-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.grid-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .service-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .feature-icon-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-content-overlay {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .feature-icon-wrapper {
        grid-template-columns: 1fr;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* Gold overlay effect for images */
.gold-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(184, 134, 11, 0.1), rgba(255, 215, 0, 0.05));
    pointer-events: none;
}

/* Image caption styling */
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 1.5rem;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.grid-item:hover .image-caption {
    transform: translateY(0);
}

/* Feature Cards with Font Awesome Icons */
.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(20, 20, 20, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
    background: rgba(20, 20, 20, 0.9);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold-primary);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::before {
    opacity: 0.2;
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--gold-primary);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1) rotate(5deg);
    color: var(--gold-primary);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* ========== PRELOADER STYLES - FIXED CENTERING ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

/* Preloader Content - Fixed centering */
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
}

/* Logo Container */
.preloader-logo {
    margin-bottom: 2rem;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

/* Abstract Logo Image */
.preloader-logo-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: 
        drop-shadow(0 0 25px rgba(255, 215, 0, 0.8))
        brightness(1.1)
        contrast(1.1);
    animation: logoPulse 2.5s infinite ease-in-out;
}

/* Optional: Add glow effect around logo */
.preloader-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, rgba(255,215,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 3s infinite ease-in-out;
}

/* Preloader Text */
.preloader-text {
    margin-bottom: 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.preloader-text span {
    color: var(--gold-primary);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

/* Progress Bar Container */
.preloader-progress-container {
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Progress Bar */
.preloader-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.8rem;
}

.preloader-progress-bar {
    height: 100%;
    background: var(--gradient-gold);
    width: 0%;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.3s ease;
}

.preloader-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: shine 2.5s ease-in-out infinite;
}

/* Percentage Text */
.preloader-percentage {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

/* Status Text */
.preloader-status {
    font-size: 0.95rem;
    color: var(--gray);
    min-height: 1.2rem;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

/* Spinner - Centered under everything */
.preloader-spinner {
    width: 60px;
    height: 60px;
    position: relative;
    margin-top: 1rem;
}

.preloader-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top: 3px solid var(--gold-primary);
    border-right: 3px solid var(--gold-primary);
    animation: spin 1s linear infinite;
}

.preloader-spinner::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top: 3px solid var(--gold-secondary);
    border-right: 3px solid var(--gold-secondary);
    animation: spinReverse 1.5s linear infinite;
}

/* ========== PRELOADER ANIMATIONS ========== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8)) brightness(1.1);
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 35px rgba(255, 215, 0, 1)) brightness(1.2);
    }
}

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

@keyframes glowPulse {
    0%, 100% { 
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    50%, 100% { transform: translateX(200%); }
}

/* ========== RESPONSIVE PRELOADER ========== */
@media (max-width: 768px) {
    .preloader-content {
        max-width: 400px;
        padding: 0 15px;
    }
    
    .preloader-logo-img {
        width: 140px;
        height: 140px;
    }
    
    .preloader-text {
        font-size: 1.5rem;
    }
    
    .preloader-logo::before {
        width: 180px;
        height: 180px;
    }
    
    .preloader-spinner {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .preloader-content {
        max-width: 320px;
        padding: 0 10px;
    }
    
    .preloader-logo-img {
        width: 120px;
        height: 120px;
    }
    
    .preloader-text {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .preloader-logo::before {
        width: 150px;
        height: 150px;
    }
    
    .preloader-spinner {
        width: 45px;
        height: 45px;
    }
    
    .preloader-progress {
        height: 5px;
    }
}

/* ========== PAGE LOADED STYLES ========== */
.page-loaded .hero-title,
.page-loaded .hero-subtitle,
.page-loaded .hero-actions {
    animation: fadeInUp 0.8s ease forwards;
}

.page-loaded .hero-title {
    animation-delay: 0.3s;
}

.page-loaded .hero-subtitle {
    animation-delay: 0.5s;
}

.page-loaded .hero-actions {
    animation-delay: 0.7s;
}

/* custom.css - Additional styles for MarketBrainers structure */

/* ========== LEADERSHIP BANNER ========== */
.leadership-banner {
    background: linear-gradient(90deg, var(--black-primary), var(--black-secondary));
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    text-align: center;
}

.leadership-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.ceo-name, .cfo-name {
    color: var(--gold-primary);
    font-weight: 600;
}

.ceo-name::before {
    content: '👑 ';
}

.cfo-name::before {
    content: '💰 ';
}

/* ========== NAVIGATION UPDATES ========== */
.nav-menu {
    gap: 1.5rem;
}

.nav-actions .btn-gold {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-secondary) 100%);
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--white), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 3rem;
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Trust Banners */
.trust-banners {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.trust-banners h4 {
    text-align: center;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', sans-serif;
}

.trust-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    text-align: center;
}

.trust-category {
    padding: 1rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.trust-category i {
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    padding: 5rem 2rem;
    background: var(--black-primary);
}

.service-category {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-category:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
}

.service-category h3 {
    color: var(--gold-primary);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-category h3 i {
    font-size: 1.5rem;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.service-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--gold-primary);
}

.service-item:hover {
    background: rgba(255, 215, 0, 0.05);
}

/* ========== PLATFORMS SECTION ========== */
.platforms-section {
    padding: 5rem 2rem;
    background: var(--black-secondary);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.platform-category {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.platform-category h4 {
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', sans-serif;
}

.platform-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.platform-logo {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray);
}

/* ========== CASE STUDIES ========== */
.case-studies-section {
    padding: 5rem 2rem;
    background: var(--black-primary);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.case-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.case-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--gold-primary);
}

.case-content {
    padding: 1.5rem;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.metric {
    text-align: center;
    padding: 0.8rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 8px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    display: block;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ========== ABOUT SECTION ========== */
.about-section {
    padding: 5rem 2rem;
    background: var(--black-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    padding: 5rem 2rem;
    background: var(--black-primary);
}

.typeform-container {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
}

.typeform-note {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* ========== FOOTER ENHANCEMENTS ========== */
.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.footer-logo-text {
    flex: 1;
}

.footer-logo-text span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    line-height: 1;
}

.mission-statement {
    background: rgba(255, 215, 0, 0.05);
    border-left: 3px solid var(--gold-primary);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.contact-note {
    color: var(--gold-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 0.5rem 0;
    color: var(--gray);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.values-list li:last-child {
    border-bottom: none;
}

.community-channels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.channel-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.channel-link i {
    width: 20px;
    text-align: center;
}

.contact-cta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.legal-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.legal-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--gold-primary);
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 0.9rem;
}

.trust-badge i {
    color: var(--gold-primary);
}

.footer-bottom .disclaimer {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0.5rem 0;
    text-align: center;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
    .leadership-banner .container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-tagline {
        font-size: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .mission-statement {
        text-align: center;
        border-left: none;
        border-top: 3px solid var(--gold-primary);
        border-radius: 8px;
    }
    
    .community-channels,
    .legal-links {
        grid-template-columns: 1fr;
    }
    
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-tagline {
        font-size: 1.3rem;
    }
    
    .trust-categories {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional Styles for New Structure */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.btn-xlarge {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Stats Section */
.stats-section {
    padding: 4rem 2rem;
    background: var(--black-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.stat-value span {
    font-size: 1.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Graphic Section */
.graphic-section {
    padding: 4rem 2rem;
    background: var(--black-primary);
}

.graphic-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.graphic-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================
   MOBILE OPTIMIZATION
   ============================ */

/* Base responsive fixes */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

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

/* Mobile-specific viewport adjustments */
@media (max-width: 768px) {
    /* Fix for navbar logo cutting off */
    .logo-text {
        font-size: 1.5rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }
    
    /* Fix CEO/CFO banner visibility */
    .leadership-banner {
        font-size: 0.7rem !important;
        padding: 8px 10px !important;
        line-height: 1.3 !important;
        flex-wrap: wrap;
    }
    
    .leadership-banner .container {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    /* Make hamburger menu more visible */
    .menu-toggle {
        z-index: 1000;
        position: relative;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 4px;
        padding: 8px;
    }
    
    /* Fix navbar layout for mobile */
    .nav-container {
        padding: 10px 15px !important;
    }
    
    .logo {
        flex-shrink: 1;
        min-width: 0;
    }
    
    /* Fix services page top section */
    .services-section .container {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    /* Further reduce logo size */
    .logo-text {
        font-size: 1.2rem !important;
        max-width: 140px;
    }
    
    /* Fix hero section on mobile */
    .hero-title {
        font-size: 2.5rem !important;
        word-break: break-word;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
    }
    
    .hero-tagline {
        font-size: 1rem !important;
        padding: 0 10px;
    }
    
    /* Fix hero buttons stacking */
    .hero-actions {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .hero-actions .btn-large {
        width: 100%;
        text-align: center;
    }
    
    /* Fix CEO/CFO banner for very small screens */
    .leadership-banner {
        font-size: 0.6rem !important;
        padding: 6px 8px !important;
    }
}

/* for home */
@media (max-width: 768px) {
    /* Fix stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .stat-card {
        padding: 15px !important;
    }
    
    .stat-value {
        font-size: 1.8rem !important;
    }
    
    /* Fix trust banners */
    .trust-categories {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .trust-category {
        flex: 0 0 calc(50% - 10px);
        margin: 5px 0;
    }
    
    /* Fix graphic section */
    .graphic-container {
        padding: 10px !important;
    }
}

/* Improve mobile touch experience */
@media (max-width: 768px) {
    .btn-gold, .btn-outline, .nav-link {
        min-height: 44px; /* Apple's minimum touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        padding: 12px 15px !important;
    }
    
    /* Fix footer for mobile */
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .community-channels, .legal-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    /* Fix preloader for mobile */
    .preloader-content {
        padding: 20px !important;
        transform: scale(0.8);
    }
}

/* Fix for navbar on mobile */
@media (max-width: 768px) {
    .navbar {
        position: relative;
    }
    
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 15px;
    }
    
    .logo-container {
        flex-shrink: 1;
        min-width: 0;
    }
    
    .logo-text {
        display: inline-block;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1.4rem;
    }
    
    .menu-toggle {
        flex-shrink: 0;
        margin-left: 10px;
        background: var(--gold-primary);
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 4px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 1001;
    }
    
    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--black-primary);
        margin: 3px 0;
        transition: 0.3s;
    }
    
    /* Fix nav menu for mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--black-primary);
        padding-top: 80px;
        transition: 0.3s;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        display: flex;
        flex-direction: column;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.1rem;
    }
    
    .nav-menu .nav-actions {
        padding: 20px;
        margin-top: auto;
    }
    
    /* Overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 999;
    }
    
    .nav-overlay.active {
        display: block;
    }
}


@media (max-width: 768px) {
    .package-badge {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        display: inline-block !important;
        margin-bottom: 1rem !important;
        margin-top: 0 !important;
        width: auto !important;
    }
    
    .package-card {
        padding-top: 2.5rem !important;
        position: relative !important;
    }
    
    .package-card.featured {
        padding-top: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1rem !important;
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        max-width: none !important;
        overflow: visible !important;
    }
    
    .logo-text-container {
        display: inline-block !important;
        width: auto !important;
        max-width: none !important;
    }
    
    .logo {
        flex-shrink: 1;
        overflow: visible;
    }

    
    .menu-toggle {
        min-width: 44px;
        flex-shrink: 0;
    }
}