:root {
    /* Color Palette - Modern Navy & Gold */
    --primary-color: #0f172a; /* Deep Slate Navy */
    --secondary-color: #eab308; /* Vibrant Golden Yellow */
    --accent-color: #2563eb; /* Electric Blue for links/active states */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    
    /* Subtle industrial background texture */
    background-image: linear-gradient(rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.95)), url('../../uploads/Photos/Photos (12).jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* Glassmorphism Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white); /* High contrast for the dark hero image */
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for even better legibility */
}

.navbar.scrolled .nav-links a {
    color: var(--primary-color); /* Turns dark when the navbar background becomes white/glass */
    text-shadow: none;
}

/* Hardened Mobile Menu Text Colors (No scroll switching) */
@media (max-width: 991px) {
    .nav-overlay .nav-links a {
        color: var(--white) !important;
        text-shadow: none;
    }
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links i {
    font-size: 0.75rem;
    margin-left: 5px;
    transition: var(--transition);
}

.stat-item h2, .section-title h2, .footer h3, .footer-col p {
    text-align: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Page Style - Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../../uploads/Hero/hero_bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.94); /* Added slight transparency to show the background texture */
}

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

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
}

/* Infinite Horizontal Marquee for Partners */
.marquee-container {
    width: 100%;
    overflow: hidden; /* Strict clipping */
    padding: 60px 0;
    background: var(--bg-light);
    position: relative;
    max-width: 100vw; /* Hard limit for mobile */
}

.marquee-content {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex: 0 0 180px;
    height: 120px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.marquee-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.marquee-item img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition);
}

.marquee-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile specific Marquee adjustments */
@media (max-width: 768px) {
    .marquee-content {
        animation: marquee-scroll 20s linear infinite; /* Faster on mobile for better flow */
    }
    .marquee-item {
        flex: 0 0 150px;
        height: 100px;
    }
}

.client-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid #ededed;
    height: 140px;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.client-item img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(1);
    opacity: 0.7;
    transition: var(--transition);
}

.client-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Page Intro Header (Already defined but refined) */
.page-intro {
    background: linear-gradient(135deg, var(--primary-color), #1e293b);
    padding: 100px 0;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05); /* Added subtle texture */
}

.page-intro h1 {
    color: var(--secondary-color); /* Premium brand Gold for 'Project Portfolio' and 'Partners' */
    font-size: 3.5rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.page-intro::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(234, 179, 8, 0.05);
    border-radius: 50%;
}

/* --- Mobile Perfection & Centering (Priority) --- */
@media (max-width: 991px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title, .hero-content, .footer-col, .service-item-box, .contact-item, .detail-grid, .mission-grid, .footer, .footer h3 {
        text-align: center !important;
    }
    
    .service-icon-wrap, .card-icon, .stat-item, .footer-logo {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .contact-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 35px !important;
    }
    
    .contact-item i {
        margin-bottom: 12px;
        margin-right: 0 !important;
        font-size: 1.8rem;
    }

    .contact-item div, .contact-item p, .contact-item span, .contact-item .emails {
        text-align: center !important;
        display: block;
        width: 100%;
    }

    .footer h3::after, .section-title h2::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .social-links-footer { justify-content: center !important; }
    .nav-links li a { font-size: 1.5rem; text-align: center; }
    .hero h1 { font-size: 2.5rem; text-align: center !important; }
    .hero p { font-size: 1rem; text-align: center !important; }
    .page-intro h1 { font-size: 2.2rem; text-align: center !important; }
}
