/* --- CSS Reset & Variables --- */
:root {
    --color-primary: #1e3a8a;
    /* Deep Blue */
    --color-primary-dark: #172554;
    --color-accent: #facc15;
    /* Safety Yellow */
    --color-accent-hover: #eab308;
    --color-text-main: #0f172a;
    --color-text-muted: #475569;
    --color-light-bg: #f8fafc;
    --color-white: #ffffff;
    --border-radius: 12px;
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    gap: 8px;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: #f1f5f9;
}

.btn-text {
    background: none;
    color: #2563eb;
    padding: 0;
    box-shadow: none;
    white-space: nowrap;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Section header row: title block + 'View All' link (responsive) */
.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 20px;
}

@media (max-width: 768px) {
    .section-head-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text-main);
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* --- Section Containers --- */
.section-light {
    background: var(--color-light-bg);
    padding: 80px 0;
}

.section-white {
    background: white;
    padding: 80px 0;
}

.section-dark {
    background: var(--color-primary);
    padding: 60px 0;
    text-align: center;
}

.section-dark h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.section-dark p {
    color: #bfdbfe;
}

.section-dark .section-dark-desc {
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


.card-body {
    padding: 25px;
}

.card-body-sm {
    padding: 20px;
}

/* --- Card Images --- */
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-img-tall {
    width: 100%;
    height: 250px;
}

.card-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Card Text Patterns --- */
.card-tagline,
.card .card-tagline {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 10px;
}

.text-meta,
.card .text-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 5px;
}

.text-meta-sm,
.card .text-meta-sm {
    font-size: 0.75rem;
    color: #64748b;
}

.text-caption {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* --- Layout Utilities --- */
.flex-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.flex-wrap-center {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
    background: var(--color-light-bg);
    border-radius: 8px;
    margin-bottom: 20px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #334155;
    border-radius: 50%;
    color: #94a3b8;
    margin-top: 15px;
    transition: all var(--transition-speed);
}

.icon-circle-sm {
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Typography & Spacing Utilities --- */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-25 {
    margin-bottom: 25px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-25 {
    margin-top: 25px;
}

.mr-5 {
    margin-right: 5px;
}

.text-center {
    text-align: center;
}

.card.text-center {
    align-items: center;
}

.text-left {
    text-align: left;
}

.text-sm {
    font-size: 0.85rem;
}

.text-md {
    font-size: 0.95rem;
}

.text-lg {
    font-size: 1.1rem;
}

.text-xl {
    font-size: 2rem;
}

.icon-lg {
    font-size: 20px;
}

.fw-bold {
    font-weight: 700;
}

.text-white {
    color: white;
}

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

/* --- Footer & Shared Components --- */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    font-size: 0.85rem;
}

.article-badge {
    background: var(--color-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.article-meta {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Animation --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
    padding: 11px 0;
}

header.scrolled {
    background-color: var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 11px 0;
}

/* Header on light backgrounds */
header.header-light {
    background-color: var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 11px 0;
}

header.header-light .logo {
    color: var(--color-primary);
}

header.header-light .nav-link {
    color: var(--color-text-muted);
}

header.header-light .nav-link:hover {
    color: #2563eb;
}

header.header-light .mobile-toggle {
    color: var(--color-text-main);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    cursor: pointer;
}

.logo-icon {
    background-color: var(--color-accent);
    color: var(--color-primary);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.logo-img {
    height: 46px;
    width: auto;
    display: block;
}

header.scrolled .logo {
    color: var(--color-primary);
}

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

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.2s;
}

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

header.scrolled .nav-link {
    color: var(--color-text-muted);
}

header.scrolled .nav-link:hover {
    color: #2563eb;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

header.scrolled .mobile-toggle {
    color: var(--color-text-main);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(15, 23, 42, 0.9)), url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 10;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--color-accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-stats {
    margin-top: 3rem;
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-img-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #334155;
}

.hero-img-container img {
    width: 100%;
    height: auto;
}

/* --- Page Hero (for sub-pages) --- */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary), #0f172a);
    color: white;
    padding-top: 140px;
    padding-bottom: 60px;
    text-align: center;
}

.page-hero .section-title {
    color: white;
}

.page-hero .section-subtitle {
    color: #bfdbfe;
    margin-bottom: 0;
}

/* --- Page Header (alternative style) --- */
.page-header {
    background: var(--color-light-bg);
    padding: 140px 0 60px 0;
    margin-bottom: 60px;
    border-bottom: 1px solid #e2e8f0;
}

.page-header.page-header-dark {
    background: var(--color-primary);
    color: white;
}

.page-header.page-header-dark .section-title {
    color: white;
}

.page-header.page-header-dark .section-subtitle {
    color: #bfdbfe;
}

/* --- Platforms Section --- */
.platforms {
    padding: 80px 0;
    background: white;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    background: var(--color-light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card-icon {
    background: #dbeafe;
    color: #1d4ed8;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.card p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- Card Variants (must appear after .card for specificity) --- */
.card-flush {
    padding: 0;
    overflow: hidden;
}

.card-flush-block {
    padding: 0;
    overflow: hidden;
    display: block;
    border: none;
}

/* --- Process Section --- */
.process {
    padding: 80px 0;
    background: #f8fafc;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.process-step {
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1;
    margin-bottom: 15px;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.step-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- Engineering Section --- */
.engineering {
    padding: 80px 0;
    background: white;
}

.eng-split {
    display: flex;
    align-items: center;
    gap: 60px;
}

.eng-text {
    flex: 1;
}

.eng-img {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.eng-list {
    margin: 25px 0;
}

.eng-list-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.eng-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* --- Incentives Section --- */
.incentives {
    padding: 80px 0;
    background: #f8fafc;
}

.incentives-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}

.incentives-content {
    flex: 1;
}

.incentives-card {
    width: 400px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.incentives-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 40px;
}

.inc-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.inc-icon {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-top: -2px;
}

/* --- Industries Section --- */
.industries {
    padding: 80px 0;
    background: white;
}

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

.ind-card {
    cursor: pointer;
    height: 100%;
}

.ind-img-wrap {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.ind-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ind-card:hover img {
    transform: scale(1.1);
}

.ind-card:hover h3 {
    color: #2563eb;
}

.ind-link {
    color: #2563eb;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
}

.ind-card:hover .ind-link {
    transform: translateX(5px);
}

/* --- Partners Section --- */
.partners-section {
    padding: 80px 0;
    background: #f8fafc;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-top: 40px;
}

.partner-logo {
    transition: transform 0.3s;
}

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

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

/* --- Spec Rows (Platforms Page) --- */
.spec-row {
    display: flex;
    gap: 40px;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.spec-icon {
    width: 120px;
    height: 120px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #cbd5e1;
    flex-shrink: 0;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.spec-item {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
}

/* --- Contact Page --- */
.contact-layout {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background: var(--color-primary);
    color: white;
    padding: 40px;
    width: 40%;
}

.contact-form {
    padding: 40px;
    width: 60%;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px #bfdbfe;
}

/* --- About Page --- */
.about-section {
    padding: 80px 0;
    background: white;
}

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

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.about-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stats-section {
    padding: 80px 0;
    background: var(--color-primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-box h3 {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.stat-box p {
    color: #bfdbfe;
}

.team-section {
    padding: 80px 0;
    background: #f8fafc;
}

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

.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.team-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-card-content {
    padding: 20px;
}

.team-card h3 {
    margin-bottom: 5px;
}

.team-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- Careers Page --- */
.careers-culture {
    padding: 80px 0;
    background: white;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.culture-card {
    background: var(--color-light-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.culture-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.culture-card h3 {
    margin-bottom: 10px;
}

.culture-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.jobs-section {
    padding: 80px 0;
    background: #f8fafc;
}

.jobs-list {
    max-width: 800px;
    margin: 0 auto;
}

.job-card {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.job-info h3 {
    margin-bottom: 5px;
}

.job-meta {
    display: flex;
    gap: 20px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.benefits-section {
    padding: 80px 0;
    background: white;
}

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

.benefit-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    margin-bottom: 5px;
}

.benefit-item p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- Resources Page --- */
.resources-section {
    padding: 60px 0 80px 0;
    background: white;
    margin-top: -60px;
}

.resources-section .container>.section-title {
    margin-top: 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background: var(--color-light-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.resource-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.resource-card h3 {
    margin-bottom: 10px;
}

.resource-card p {
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.downloads-section {
    padding: 80px 0;
    background: white;
}

.downloads-list {
    max-width: 800px;
    margin: 0 auto;
}

.download-item {
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-info i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.download-info h4 {
    margin-bottom: 3px;
}

.download-info p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.faq-section {
    padding: 80px 0;
    background: #f8fafc;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-light-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
}

.faq-item h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- Footer --- */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 40px 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--color-accent);
}

/* --- Platform Image Container --- */
.platform-image-container {
    flex: 0 0 350px;
    max-width: 350px;
}

/* --- Responsive --- */
@media (max-width: 900px) {

    .platform-image-container {
        flex: 1 1 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .hero-content,
    .eng-split,
    .incentives-layout,
    .spec-row,
    .contact-layout,
    .about-grid {
        flex-direction: column;
    }

    .hero-text,
    .hero-image,
    .eng-text,
    .eng-img,
    .incentives-content,
    .incentives-card,
    .spec-icon,
    .contact-info,
    .contact-form {
        width: 100%;
    }

    .hero {
        text-align: center;
        padding-top: 120px;
    }

    .hero-stats {
        justify-content: center;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        padding: 0 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    .mobile-toggle {
        display: block;
    }

    /* Mobile Menu Active State */
    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
        padding: 20px;
    }

    .nav-menu .nav-link {
        color: var(--color-text-main);
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-menu .nav-link:last-of-type {
        border-bottom: none;
    }

    .nav-menu.active .nav-link {
        color: var(--color-text-main);
    }

    .nav-menu .btn {
        margin-top: 16px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

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

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

    .spec-row {
        gap: 20px;
    }

    .incentives-card {
        margin-top: 40px;
    }

    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* Technology & AI grid mobile fix */
    .technology>.container>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* Form Validation Styles */
.required {
    color: #dc2626;
}

.error-message {
    display: block;
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 1.2em;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    outline-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #16a34a;
}

.form-group input.valid:focus,
.form-group textarea.valid:focus {
    outline-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-success {
    background: #dcfce7;
    color: #166534;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.form-success i {
    font-size: 24px;
}

#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#submit-btn.loading {
    position: relative;
    color: transparent;
}

#submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #0f172a;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* FAQ Accordion Styles */
.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 16px;
    background: white;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    transition: background-color 0.2s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question span {
    flex: 1;
    padding-right: 15px;
}

.faq-icon {
    font-size: 20px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 8px 16px;
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* =============================================
   PHASE 2: Visual Polish & Micro-Interactions
   ============================================= */

/* 2.1 Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* 2.2 Enhanced Button Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.4);
}

.btn-secondary:active {
    background: #e2e8f0;
}

/* Button loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* 2.3 Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

/* =============================================
   PHASE 3: Advanced Features
   ============================================= */

/* 3.2 Partner Slider (Infinite Marquee) */
.partners-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 30px 20px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    margin-top: 20px;
}

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

.partners-slider::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.partners-slider::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.partners-track {
    display: flex;
    gap: 40px;
    width: max-content;
    cursor: grab;
    touch-action: pan-y;
    /* Allow vertical scroll but handle horizontal in JS */
}

.partners-track:active {
    cursor: grabbing;
}

.partner-logo {
    flex-shrink: 0;
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    user-select: none;
    /* Prevent selection during drag */
    -webkit-user-drag: none;
    /* Prevent native image drag */
}

.partner-logo img {
    pointer-events: none;
    /* Prevent image dragging issues */
}

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

/* 3.3 Quote Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--color-heading);
    background-color: #f1f5f9;
}

/* 4.3 News Category Filters */
.filter-btn {
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.filter-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.news-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Ensure card images fill their containers */
.card>div:first-child img,
.news-card>div:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure card image containers stretch full width */
.card>div:first-child,
.news-card>div:first-child {
    width: 100%;
}

.news-card.hidden {
    display: none !important;
}

/* News Grid - Fixed column widths to prevent stretching when filtering */
#news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

#news-grid .news-card {
    max-width: none;
    width: 100%;
}

@media (max-width: 1200px) {
    #news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    #news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #news-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer LinkedIn hover effect */
.icon-circle:hover {
    background: #0077b5 !important;
    color: white !important;
}