/* ============================================
   XGEOSPACE - Premium Enhancements
   Professional Corporate UI/UX
   ============================================ */

:root {
    --premium-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --nasa-glow: 0 0 20px rgba(252, 61, 33, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

/* Navbar Premium Polish */
.navbar {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.4)) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

.navbar.scrolled {
    background: rgba(0,0,0,0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* Dropdown styles moved to layout.css for better control */

/* Hero Section Refinement */
.hero {
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: left !important;
    margin-left: 0 !important;
}

.hero-badge {
    justify-content: flex-start !important;
    margin-bottom: 2rem !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    background: rgba(252, 61, 33, 0.08) !important;
}

.hero-title {
    text-shadow: 0 0 30px rgba(0,210,255,0.2) !important;
    margin-bottom: 2rem !important;
}

.hero-description {
    font-size: 1.25rem !important;
    line-height: 1.8 !important;
    margin-bottom: 3.5rem !important;
    opacity: 0.8 !important;
    max-width: 700px !important;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    animation: fadeInOut 2s infinite ease-in-out;
    z-index: 20;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, white, transparent);
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(10px); }
}

/* Stats Strip Refinement */
.stats-strip {
    background: #000;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}

.stat-item {
    border-right: 1px solid #1a1a1a;
    padding: 60px 20px;
    transition: background 0.4s ease;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color:#bbb;
    font-weight: 600;
}

/* Partners Marquee */
.partners-section {
    padding: 80px 0;
    background: #000;
    border-bottom: 1px solid #111;
    overflow: hidden;
    position: relative;
}

.partners-section::before,
.partners-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-section::before {
    left: 0;
    background: linear-gradient(to right, #000, transparent);
}

.partners-section::after {
    right: 0;
    background: linear-gradient(to left, #000, transparent);
}

.marquee-container {
    display: flex;
    white-space: nowrap;
    animation: marquee 60s linear infinite; /* Much slower and more formal */
    width: max-content;
    align-items: center;
    gap: 20px; /* Added gap for better control */
}

.partner-logo {
    margin: 0 1rem; /* Tight spacing */
    padding: 10px 15px; 
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 80px; /* Slightly more compact height */
    min-width: 140px; /* Tight width */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid transparent;
    cursor: pointer;
}

.partner-logo img {
    height: 60px; /* Better visibility for complex logos */
    width: auto;
    filter: grayscale(0.6) brightness(0.9); /* More visible by default */
    object-fit: contain;
    transition: all 0.5s ease;
}

.partner-logo:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05); /* Quadrant highlight */
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(-4px);
}

.partner-logo:hover img {
    filter: grayscale(0) brightness(1.2); /* Full color and glow */
    transform: scale(1.05);
}

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

/* Featured Solution Section */
.featured-solution {
    background: #050505;
    padding: 120px 0;
}

.mockup-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.05);
}

.mockup-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

/* Info Cards */
.info-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nasa-red);
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding: 6px 16px;
    border: 1px solid rgba(252,61,33,0.3);
    background: rgba(252,61,33,0.05);
}

/* Service Card Enhancements */
.svc-card-premium {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    border: 2px solid var(--svc-color, rgba(255,255,255,0.15));
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    display: block;
}

.svc-card-premium:hover {
    border-color: var(--svc-color);
    box-shadow: 0 0 30px rgba(var(--svc-glow-rgb, 255,255,255), 0.3);
}

.svc-card-premium img {
    width: 100%;
    height: 400px; /* Increased height for better presence */
    object-fit: cover;
    opacity: 1; /* Full opacity */
    filter: contrast(1.1) brightness(0.7); /* Subtle darkening for text readability without transparency */
    transition: filter 0.4s ease;
}

.svc-card-premium:hover img {
    filter: contrast(1.1) brightness(0.9); /* Brighten on hover instead of disappearing */
}

/* Added gradient overlay for text readability on full opacity images */
.svc-card-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.svc-card-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem; /* Reduced horizontal padding from 2.5rem to 1.5rem */
    z-index: 2;
    box-sizing: border-box;
}

.svc-top-line {
    position: absolute;
    top: 0;
    left: 1.5rem; /* Aligned with new padding */
    width: 40px;
    height: 2px;
    background: var(--svc-color, #fff);
}

.svc-number {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.svc-title {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: white;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.svc-desc {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.7; /* Always visible but slightly dimmed */
    transition: opacity 0.3s ease;
}

.svc-card-premium:hover .svc-desc {
    opacity: 1;
}

.svc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    opacity: 0.6;
}

.svc-card-premium:hover .svc-link {
    opacity: 1;
}

/* About Section Refinement */
.about-summary {
    background: linear-gradient(to bottom, #000, #060606) !important;
    padding: 60px 0 !important;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nasa-red);
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding: 6px 16px;
    border: 1px solid rgba(252, 61, 33, 0.3);
    background: rgba(252, 61, 33, 0.05);
}

.about-title {
    font-size: clamp(2rem, 5vw, 3.2rem) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.1 !important;
    color: white !important;
}

.about-text {
    font-size: 1.05rem !important;
    color: #ddd !important;
    line-height: 1.9 !important;
    margin-bottom: 2.5rem !important;
    border-left: 2px solid #1e1e1e;
    padding-left: 1.5rem;
}

.mission-card {
    background: rgba(252, 61, 33, 0.04);
    border: 1px solid rgba(252, 61, 33, 0.15);
    padding: 22px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.vision-card {
    background: rgba(0, 210, 255, 0.04);
    border: 1px solid rgba(0, 210, 255, 0.15);
    padding: 22px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Featured Solution Section */
.featured-solution {
    background: #000;
    padding: 60px 0;
    border-top: 1px solid #111;
}

.mockup-image {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,210,255,0.1);
}

/* Service Grid Overlay */
#servicesGrid {
    background: #111 !important;
    gap: 1px !important;
}

/* --- Mobile Refinements --- */
@media (max-width: 1024px) {
    .stat-item {
        padding: 40px 15px;
    }
    .stat-value {
        font-size: 2.8rem;
    }
    .svc-card-premium img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item {
        border-bottom: 1px solid #1a1a1a;
    }
    .stat-item:nth-child(even) {
        border-right: none;
    }
    .stat-value {
        font-size: 2.5rem;
    }
    .svc-card-premium img {
        height: 320px;
    }
    .svc-card-inner {
        padding: 1.5rem;
    }
    .hero-description {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
    }
    .partners-section::before,
    .partners-section::after {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-item {
        border-right: none;
    }
    .svc-card-premium img {
        height: 280px;
    }
    .mockup-container {
        border-radius: 4px;
    }
}
