/* CSS Design System & Theme for Terranex Technologies */

/* --- Custom Variables & Tokens --- */
:root {
    --bg-primary: #060913;
    --bg-secondary: #0c1225;
    --bg-tertiary: #121b35;
    --bg-glass: rgba(12, 18, 37, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 240, 255, 0.2);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accents & Gradients */
    --color-cyan: #00f0ff;
    --color-emerald: #05ffc4;
    --color-blue: #3b82f6;
    --color-purple: #a855f7;
    --color-green: #4ade80;

    --gradient-primary: linear-gradient(135deg, var(--color-blue) 0%, var(--color-cyan) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(0, 240, 255, 0.15) 100%);
    --gradient-dark: linear-gradient(180deg, #060913 0%, #0c1225 100%);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow-cyan: 0 0 20px rgba(0, 240, 255, 0.25);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset & Scrollbar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

/* --- Typography Utilities --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-cyan);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--color-cyan);
    padding: 0;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-link i {
    transition: transform var(--transition-fast);
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-cyan);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-underline {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 8px 0;
    background: rgba(6, 9, 19, 0.95);
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.logo-icon {
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    animation: rotateLogo 10s linear infinite;
}

@keyframes rotateLogo {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-normal);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.08) 0%, rgba(6, 9, 19, 0.95) 70%);
    z-index: 2;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 3;
    pointer-events: none;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-cyan);
    box-shadow: 0 0 8px var(--color-cyan);
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-cyan);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator .mouse {
    display: block;
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator .wheel {
    display: block;
    width: 4px;
    height: 8px;
    background-color: var(--color-cyan);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* --- About Section --- */
.about-section {
    background-color: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.body-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Tabs Container */
.tabs-container {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    gap: 16px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--color-cyan);
    border-bottom-color: var(--color-cyan);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInTab 0.3s ease-in;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.mission-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.mission-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
}

.mission-list li i {
    color: var(--color-emerald);
    margin-top: 4px;
}

/* Strengths Grid */
.strengths-title {
    font-size: 1.35rem;
    margin-bottom: 24px;
    color: #ffffff;
    font-family: var(--font-heading);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.strength-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-normal);
}

.strength-card:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

.strength-icon {
    font-size: 1.35rem;
    color: var(--color-cyan);
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.strength-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 500;
}

.strength-card:last-child:nth-child(odd) {
    grid-column: span 2;
}

@media (max-width: 576px) {
    .strengths-grid {
        grid-template-columns: 1fr;
    }

    .strength-card:last-child:nth-child(odd) {
        grid-column: span 1;
    }
}

/* --- Bento Grid / Verticals --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 24px;
}

.bento-card {
    background: rgba(16, 26, 54, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    padding: 28px;
    display: flex;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

/* Background SVGs precision vectors */
.card-bg-graphic {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 180px;
    height: 180px;
    opacity: 0.04;
    color: #ffffff;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.card-bg-graphic svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Specific Card Theme Color Configurations */
.bento-card.color-cyan .card-icon {
    background: rgba(0, 240, 255, 0.1);
    color: var(--color-cyan);
}

.bento-card.color-cyan:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.25), 0 0 1px 1px rgba(0, 240, 255, 0.15);
}

.bento-card.color-cyan:hover .card-bg-graphic {
    opacity: 0.1;
    color: var(--color-cyan);
    transform: scale(1.1) rotate(15deg);
}

.bento-card.color-blue .card-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-blue);
}

.bento-card.color-blue:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.25), 0 0 1px 1px rgba(59, 130, 246, 0.15);
}

.bento-card.color-blue:hover .card-bg-graphic {
    opacity: 0.1;
    color: var(--color-blue);
    transform: scale(1.1) rotate(-15deg);
}

.bento-card.color-emerald .card-icon {
    background: rgba(5, 255, 196, 0.1);
    color: var(--color-emerald);
}

.bento-card.color-emerald:hover {
    border-color: rgba(5, 255, 196, 0.4);
    box-shadow: 0 10px 30px -10px rgba(5, 255, 196, 0.25), 0 0 1px 1px rgba(5, 255, 196, 0.15);
}

.bento-card.color-emerald:hover .card-bg-graphic {
    opacity: 0.1;
    color: var(--color-emerald);
    transform: scale(1.1) translateY(-10px);
}

.bento-card.color-purple .card-icon {
    background: rgba(168, 85, 247, 0.1);
    color: var(--color-purple);
}

.bento-card.color-purple:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.25), 0 0 1px 1px rgba(168, 85, 247, 0.15);
}

.bento-card.color-purple:hover .card-bg-graphic {
    opacity: 0.08;
    color: var(--color-purple);
    transform: scale(1.05) translateX(-10px);
}

.bento-card.color-green .card-icon {
    background: rgba(74, 222, 128, 0.1);
    color: var(--color-green);
}

.bento-card.color-green:hover {
    border-color: rgba(74, 222, 128, 0.4);
    box-shadow: 0 10px 30px -10px rgba(74, 222, 128, 0.25), 0 0 1px 1px rgba(74, 222, 128, 0.15);
}

.bento-card.color-green:hover .card-bg-graphic {
    opacity: 0.1;
    color: var(--color-green);
    transform: scale(1.1) rotate(15deg);
}

/* Teal — Hydro Power */
.bento-card.color-teal .card-icon {
    background: rgba(20, 184, 166, 0.12);
    color: #14b8a6;
}

.bento-card.color-teal:hover {
    border-color: rgba(20, 184, 166, 0.45);
    box-shadow: 0 10px 30px -10px rgba(20, 184, 166, 0.28), 0 0 1px 1px rgba(20, 184, 166, 0.18);
}

.bento-card.color-teal:hover .card-bg-graphic {
    opacity: 0.12;
    color: #14b8a6;
    transform: scale(1.08) translateY(-6px);
}

/* Amber — Drone */
.bento-card.color-amber .card-icon {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

.bento-card.color-amber:hover {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 10px 30px -10px rgba(251, 191, 36, 0.28), 0 0 1px 1px rgba(251, 191, 36, 0.18);
}

.bento-card.color-amber:hover .card-bg-graphic {
    opacity: 0.14;
    color: #fbbf24;
    transform: scale(1.12) rotate(10deg);
}

/* Hydro Services Sub-grid */
.hydro-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}

.hydro-service-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.12);
    border-radius: 10px;
    padding: 14px;
    transition: var(--transition-fast);
}

.hydro-service-item:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.28);
    transform: translateY(-2px);
}

.hydro-svc-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(20, 184, 166, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14b8a6;
    font-size: 0.85rem;
}

.hydro-svc-body h4 {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.hydro-svc-body p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 900px) {
    .hydro-services-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Content Structure styling */
.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    z-index: 2;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.card-title {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 600;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.card-footer {
    margin-top: auto;
}

/* --- Solution Mini Icon-Box Grid (Geospatial Large Card) --- */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.solution-box {
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 10px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.solution-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-box:hover {
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px -6px rgba(0, 240, 255, 0.3);
}

.solution-box:hover::before {
    opacity: 1;
}

.sol-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--color-cyan);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.solution-box:hover .sol-icon {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.sol-label {
    font-size: 0.72rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.2;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.solution-box:hover .sol-label {
    color: var(--color-cyan);
}

/* Slow rotation animation for Geospatial contour grid vector */
.bento-card.color-cyan .card-bg-graphic svg {
    animation: rotateBg 160s linear infinite;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Card sizes overrides */
.card-large {
    grid-column: span 2;
    grid-row: span 2;
    padding: 36px;
}

.card-large .card-title {
    font-size: 1.45rem;
}

.card-large .card-description {
    font-size: 0.92rem;
    -webkit-line-clamp: 4;
}

.card-small {
    grid-column: span 1;
    grid-row: span 1;
}

.card-small .card-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.card-wide {
    grid-column: span 3;
    grid-row: span 1;
    padding: 32px 36px;
}

.card-wide .card-bg-graphic {
    width: 300px;
    height: 100px;
    bottom: 0;
    right: 0;
}

.wide-card-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
    height: 100%;
}

.wide-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wide-main .card-header {
    margin-bottom: 12px;
}

.wide-main .card-description {
    margin-bottom: 0;
}

.wide-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.wide-side .tag-container {
    margin-bottom: 12px;
}

/* Card Double (Spans 2 columns, 1 row) */
.card-double {
    grid-column: span 2;
    grid-row: span 1;
    padding: 32px 36px;
}

.card-double .card-bg-graphic {
    width: 200px;
    height: 100px;
    bottom: 0;
    right: 0;
}

.double-card-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
    height: 100%;
}

.double-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.double-main .card-header {
    margin-bottom: 12px;
}

.double-main .card-description {
    margin-bottom: 0;
}

.double-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

/* --- Simulation Dashboard (Interactive Hub) --- */
.command-center-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.simulation-dashboard {
    display: grid;
    grid-template-columns: 300px 1fr;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
}

.dash-sidebar {
    background: rgba(0, 0, 0, 0.15);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.dash-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.dash-tab-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.dash-tab-btn.active {
    background: rgba(0, 240, 255, 0.04);
    color: var(--color-cyan);
    border-left: 3px solid var(--color-cyan);
}

.dash-tab-btn i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.dash-tab-btn .btn-text h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.dash-tab-btn .btn-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dash-tab-btn.active .btn-text p {
    color: rgba(0, 240, 255, 0.7);
}

.dash-viewport {
    padding: 32px;
    background: rgba(0, 0, 0, 0.05);
    min-height: 450px;
    display: flex;
}

.sim-pane {
    display: none;
    width: 100%;
    flex-direction: column;
}

.sim-pane.active {
    display: flex;
    animation: fadeInTab 0.4s ease-out;
}

.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.pane-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pane-title h3 {
    font-size: 1.25rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 1s infinite alternate;
}

.pulse-dot.green {
    background-color: var(--color-emerald);
    box-shadow: 0 0 10px var(--color-emerald);
}

.pulse-dot.cyan {
    background-color: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan);
}

.pulse-dot.purple {
    background-color: var(--color-purple);
    box-shadow: 0 0 10px var(--color-purple);
}

.dash-select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-heading);
    cursor: pointer;
}

.pane-body.split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    height: 100%;
}

/* Canvas / Orbiter */
.canvas-container {
    width: 100%;
    height: 300px;
    background: #040711;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

#satellite-orbit-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Telemetry lists */
.telemetry-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.telemetry-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tel-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tel-value {
    font-weight: 600;
}

.font-mono {
    font-family: monospace;
}

.text-green {
    color: var(--color-emerald);
}

.text-cyan {
    color: var(--color-cyan);
}

.text-purple {
    color: var(--color-purple);
}

.telemetry-status {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(5, 255, 196, 0.05);
    border: 1px solid rgba(5, 255, 196, 0.15);
    padding: 12px;
    border-radius: 8px;
}

/* Clock Simulation Pane */
.clock-display-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #040711;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.large-clock .clock-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.large-clock .clock-time {
    font-size: 2rem;
    color: var(--color-cyan);
    font-weight: 700;
}

.clock-stats {
    display: flex;
    gap: 20px;
}

.timing-stat {
    border-left: 2px solid var(--border-color);
    padding-left: 16px;
}

.stat-small-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stat-small-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Terminal logs console */
.log-console {
    background: #020308;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 180px;
}

.console-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.console-body {
    padding: 16px;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    overflow-y: auto;
    flex: 1;
}

.log-line {
    margin-bottom: 6px;
    line-height: 1.4;
}

.log-time {
    color: var(--color-blue);
    margin-right: 8px;
}

.log-text.success {
    color: var(--color-emerald);
}

/* Weather Balloon Graph */
.sounding-graph-container {
    background: #040711;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.sonde-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.balloon-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: bottom 0.2s linear;
}

.weather-balloon {
    animation: balloonFloat 2s ease-in-out infinite alternate;
}

@keyframes balloonFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

.altitude-marker {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 8px;
}

.altitude-line {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.progress-bar-container {
    margin-top: auto;
}

.progress-bar-container label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-purple);
    width: 0%;
    transition: width 0.3s ease;
}

/* --- Research Section --- */
.research-section {
    background-color: var(--bg-secondary);
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.tech-graphic {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.tech-circle {
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(0, 240, 255, 0.15);
}

.tech-circle.outer {
    width: 320px;
    height: 320px;
    animation: rotateCircle 30s linear infinite;
}

.tech-circle.middle {
    width: 240px;
    height: 240px;
    border-style: solid;
    border-color: rgba(59, 130, 246, 0.1);
    animation: rotateCircle 20s linear infinite reverse;
}

.tech-circle.inner {
    width: 160px;
    height: 160px;
    border-color: rgba(5, 255, 196, 0.2);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.05);
}

@keyframes rotateCircle {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.floating-tech-card {
    position: absolute;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.floating-tech-card i {
    color: var(--color-cyan);
}

.floating-tech-card:hover {
    border-color: var(--color-cyan);
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-5px);
}

.ft-1 {
    top: 10%;
    left: -10%;
}

.ft-2 {
    bottom: 10%;
    right: -10%;
}

.ft-3 {
    top: 75%;
    left: 0%;
}

.focus-areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.focus-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
}

.focus-icon {
    font-size: 1.5rem;
    color: var(--color-cyan);
}

.focus-item h4 {
    font-size: 1rem;
}

/* --- Industries We Serve --- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.industry-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 12px;
    transition: var(--transition-normal);
}

.industry-card:hover {
    border-color: var(--color-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.ind-icon {
    font-size: 2.25rem;
    color: var(--color-blue);
    margin-bottom: 20px;
}

.ind-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.ind-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Leadership quote */
.leadership-callout {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.leadership-callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.lc-quote-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.lc-content blockquote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.lc-content cite {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-cyan);
    font-weight: 500;
}

/* --- Contact Section --- */
.contact-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-col h3 {
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.contact-sub {
    color: var(--color-cyan);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cd-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-cyan);
}

.cd-text {
    display: flex;
    flex-direction: column;
}

.cd-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cd-value {
    font-weight: 500;
    color: var(--text-primary);
}

.cd-value:hover {
    color: var(--color-cyan);
}

/* Styled map grid placeholder */
.map-placeholder {
    height: 160px;
    background: #040711;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.map-grid {
    width: 100%;
    height: 100%;
    background-size: 20px 20px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.map-marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.map-marker-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-cyan);
    animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(5);
        opacity: 0;
    }
}

.map-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.map-label i {
    color: var(--color-cyan);
}

/* Forms */
.modern-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.form-error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #ef4444;
}

.form-group.invalid .form-error-msg {
    display: block;
}

.btn-block {
    width: 100%;
}

.form-success-box {
    display: none;
    align-items: flex-start;
    gap: 16px;
    background: rgba(5, 255, 196, 0.05);
    border: 1px solid rgba(5, 255, 196, 0.15);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.form-success-box i {
    font-size: 1.5rem;
    color: var(--color-emerald);
}

.form-success-box h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.form-success-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Inline Product Showcase Section --- */
.products-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Category Filter Tabs */
.product-filter-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

.product-filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.product-filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 100px;
}

.product-filter-btn:hover {
    border-color: rgba(0, 240, 255, 0.4);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.product-filter-btn.active {
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.product-filter-btn.active::before {
    opacity: 1;
}

.product-filter-btn span {
    position: relative;
    z-index: 1;
}

/* Products Showcase Grid */
.products-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 2;
}

/* Individual Product Card */
.showcase-product-card {
    background: rgba(16, 26, 54, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.showcase-product-card.hidden {
    display: none;
}

.showcase-product-card.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.showcase-product-card.fade-in {
    animation: productFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes productFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

.showcase-product-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 12px 40px -10px rgba(0, 240, 255, 0.15),
        0 0 1px 1px rgba(0, 240, 255, 0.08);
    transform: translateY(-4px);
}

.showcase-product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.showcase-product-card:hover::after {
    opacity: 1;
}

/* Product Image Container — Dark themed for bg-removed images */
.showcase-img-container {
    width: 100%;
    height: 20px;
    background: linear-gradient(145deg, rgba(18, 27, 53, 0.9) 0%, rgba(10, 16, 35, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-img-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.showcase-img-container .showcase-product-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.showcase-product-card:hover .showcase-product-img {
    transform: scale(1.06);
}

/* Category Badge on card */
.showcase-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--color-cyan);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* Product Info Area */
.showcase-product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.showcase-product-name {
    font-size: 1.05rem;
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
}

.showcase-product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Expandable Specs */
.specs-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--color-cyan);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.specs-toggle-btn:hover {
    color: var(--color-emerald);
}

.specs-toggle-btn i {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.specs-toggle-btn.expanded i {
    transform: rotate(180deg);
}

.specs-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.specs-collapsible.expanded {
    max-height: 300px;
}

.showcase-specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-specs-list li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.35;
}

.showcase-specs-list li i {
    color: var(--color-cyan);
    font-size: 0.7rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Product Card Actions */
.showcase-product-actions {
    padding: 0 24px 24px;
    margin-top: auto;
}

.showcase-brochure-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-size: 0.82rem;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.showcase-brochure-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-brochure-btn span,
.showcase-brochure-btn i {
    position: relative;
    z-index: 1;
}

.showcase-brochure-btn:hover {
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.25);
    transform: translateY(-1px);
}

.showcase-brochure-btn:hover::before {
    opacity: 1;
}

/* Products Showcase Responsive */
@media (max-width: 1024px) {
    .products-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .showcase-img-container {
        height: 180px;
    }
}

/* Also update existing modal product image containers to match */
.product-img-container {
    background: linear-gradient(145deg, rgba(18, 27, 53, 0.9) 0%, rgba(10, 16, 35, 0.95) 100%) !important;
}

.product-img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* --- Modal Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content-details h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.modal-content-details h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--color-cyan);
}

.modal-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.modal-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-list li::before {
    content: '▪';
    color: var(--color-cyan);
}

/* --- Modal Large Overrides --- */
.modal-card.modal-large {
    max-width: 950px;
    width: 95%;
}

/* --- Modal Tabs Bar --- */
.modal-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.modal-tabs::-webkit-scrollbar {
    height: 4px;
}

.modal-tabs::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 2px;
}

.modal-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.modal-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.modal-tab-btn.active {
    color: var(--color-cyan);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

/* --- Product Cards Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.product-card {
    background: rgba(18, 27, 53, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition-normal);
}

.product-card:hover {
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 8px 24px -8px rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
}

.product-img-container {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(6, 9, 19, 0.6);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img {
    transform: scale(1.04);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.product-name {
    font-size: 1.05rem;
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 600;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.product-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.product-specs li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.3;
}

.product-specs li i {
    color: var(--color-cyan);
    font-size: 0.75rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.product-actions {
    margin-top: auto;
    padding-top: 8px;
}

.btn-brochure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-size: 0.82rem;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-brochure:hover {
    background: var(--color-cyan);
    border-color: var(--color-cyan);
    color: #060913;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo-svg {
    color: var(--color-cyan);
}

.footer-slogan {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.footer-links-group a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links-group a:hover {
    color: var(--color-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--color-cyan);
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

/* --- Floating CTA --- */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-normal);
}

.floating-cta:hover {
    box-shadow: 0 12px 36px rgba(0, 240, 255, 0.5);
    transform: translateY(-5px);
}

.floating-cta span {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width var(--transition-normal);
}

.floating-cta:hover span {
    max-width: 100px;
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Classes for Hero */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.2s;
}

.fade-in.delay-2 {
    animation-delay: 0.4s;
}

.fade-in.delay-3 {
    animation-delay: 0.6s;
}

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

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.25rem;
    }

    .about-grid,
    .research-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .research-image-col {
        order: 2;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .card-wide {
        grid-column: span 2;
    }

    .card-wide .card-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-wide .card-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 24px;
        transition: var(--transition-normal);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-cta {
        display: none;
    }

    .nav-btn-mobile {
        display: block;
        background: var(--gradient-primary);
        color: white !important;
        padding: 10px 24px !important;
        border-radius: 8px;
    }

    .nav-btn-mobile::after {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Bento Responsive */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: auto;
        min-height: 240px;
    }

    .solution-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wide-card-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-wide .card-content {
        flex-direction: column;
    }

    .card-wide .card-info-row {
        flex-direction: column;
        gap: 20px;
    }

    .double-card-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-double .card-content {
        flex-direction: column;
    }

    /* Dashboard Responsive */
    .simulation-dashboard {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .dash-tab-btn {
        flex: 0 0 auto;
        padding: 16px;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
    }

    .dash-tab-btn.active {
        border-left: none;
        border-bottom: 3px solid var(--color-cyan);
    }

    .dash-tab-btn i {
        font-size: 1.25rem;
    }

    .dash-tab-btn .btn-text h4 {
        font-size: 0.85rem;
    }

    .dash-tab-btn .btn-text p {
        display: none;
    }

    .pane-body.split {
        grid-template-columns: 1fr;
    }

    .strengths-grid,
    .industries-grid,
    .form-row,
    .modal-list {
        grid-template-columns: 1fr;
    }

    .lc-quote-icon {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}