/* CSS Variables */
:root {
    --primary-color: #0f172a;
    /* Deep Blue/Black */
    --secondary-color: #1e293b;
    /* Slightly lighter dark */
    --accent-color: #FF8C00;
    /* Dark Orange */
    --accent-hover: #e07b00;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --transition: all 0.3s ease;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--white);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.dark-section {
    background-color: var(--secondary-color);
}

.text-center {
    text-align: center;
}

/* Highlighting */
.highlight {
    color: var(--accent-color);
}

.highlight-text {
    background: linear-gradient(120deg, var(--accent-color), #ff5e00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons - Fluent & Interactive */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #ff6a00);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.5);
}

.btn-secondary {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-nav {
    background-color: var(--accent-color);
    padding: 8px 20px !important;
    border-radius: 20px;
    color: white !important;
    margin-left: 10px;
    transition: transform 0.3s ease !important;
}

.btn-nav::after {
    display: none;
    /* No underline for button */
}

.btn-nav:hover {
    transform: scale(1.05);
    background-color: var(--accent-hover);
}

/* Page Headers (for sub-pages) */
.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('../images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    text-align: center;
    color: var(--white);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.career-header {
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.4)), url('../images/career-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 250px 0 150px !important;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 8px;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    font-family: var(--font-heading) !important;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
    /* White glow effect */
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.5)) contrast(1.3) saturate(1.5) brightness(1.1);
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    white-space: nowrap;
}

.logo-text .highlight {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero,
.hero-about {
    height: 200vh;
    /* Scroll track height - reduced for fewer frames */
    width: 100%;
    position: relative;
    /* Removed background-image as canvas will now provide the visual */
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#hero-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100vw;
    min-height: 100vh;
    width: auto;
    height: auto;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.hero-buttons {
    animation: fadeInUp 1.2s ease-out;
    display: flex;
    gap: 20px;
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

#services,
#career {
    position: relative;
    overflow: hidden;
}

#services::before,
#career::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-attachment: fixed;
    z-index: 0;
}

#services::before {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6)), url('../images/services-bg.jpg') no-repeat center center;
    opacity: 0.65;
}

#career::before {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6)), url('../images/career-bg.png') no-repeat center center;
    opacity: 0.5;
    /* Slightly less opacity as it's a lighter image */
}

#services .container,
#career .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Grid Layout */
.grid-layout {
    display: grid;
    gap: 30px;
}

.three-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Cards */
.card,
.service-item,
.blog-post {
    background: #1e293b;
    padding: 32px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.card:hover,
.service-item:hover,
.blog-post:hover {
    transform: translateY(-6px);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 42px;
    color: #ffb347;
    /* accent color */
    margin-bottom: 16px;
}

.service-item h3,
.blog-post h3,
.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-color);
    font-weight: 600;
}

.read-more:hover {
    color: var(--accent-hover);
}

/* Footer */
.footer {
    background-color: #020617;
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.footer-links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.footer-links ul li {
    margin-bottom: 0;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-contact h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.contact-icon {
    flex-shrink: 0;
}

.contact-info a {
    color: var(--text-light);
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent-color);
}

/* Our Clients Section */
.clients-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 40px 0;
}

.slider-arrow {
    background: white;
    border: 2px solid var(--dark-bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.slider-arrow svg {
    transition: transform 0.3s ease;
}

.slider-arrow:hover svg {
    transform: scale(1.2);
}

.clients-slider {
    overflow: hidden;
    flex: 1;
}

.clients-track {
    display: flex;
    gap: 60px;
    transition: transform 0.5s ease;
}

.client-logo {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-with-explore {
    position: relative;
    text-align: center;
}

.explore-link {
    color: #f59e0b;
    /* accent orange */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.explore-link:hover {
    color: #fbbf24;
    transform: translateY(-50%) translateX(4px);
}

.explore-link::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s;
}

.explore-link:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .header-with-explore {
        text-align: center;
    }

    .explore-link {
        position: static;
        transform: none;
        display: inline-block;
        margin-top: 15px;
    }

    .explore-link:hover {
        transform: translateX(4px);
    }
}

/* Application Form */
.application-container {
    max-width: 800px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* File Upload Design */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
}

.file-upload-wrapper:hover {
    border-color: var(--accent-color);
    background: rgba(255, 140, 0, 0.05);
}

.file-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-design {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.upload-icon {
    font-size: 2rem;
}

.upload-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Job Openings */
.light-section {
    background-color: #f8fafc;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.job-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.job-card:hover {
    transform: translateY(-8px);
}

.job-title {
    font-family: "Space Grotesk", sans-serif;
    color: #0f172a;
    margin-bottom: 10px;
}

.job-subtitle {
    color: #475569;
    margin-bottom: 16px;
}

.job-list {
    padding-left: 18px;
    margin-bottom: 24px;
}

.job-list li {
    margin-bottom: 10px;
    color: #334155;
    line-height: 1.6;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--accent-color);
}

.btn-apply {
    background-color: var(--accent-color);
    color: white !important;
    padding: 6px 20px;
    border-radius: 5px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-apply:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

.light-section {
    background-color: #e2e8f0;
    color: var(--primary-color);
}

.job-list.text-light-list li {
    color: var(--text-light);
}

/* Expanded Card Logic */
.card.expanded {
    grid-column: span 3;
    background: #0f172a;
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

@media (max-width: 900px) {
    .card.expanded {
        grid-column: span 1;
    }
}

.card.expanded:hover {
    transform: none;
    background-color: #0f172a;
}

.card-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.card.expanded .card-details {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
}

.card-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    width: fit-content;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

.card.expanded .card-btn {
    background: var(--accent-color);
    color: #fff;
}


/* Testimonial Styles */
.testimonial-card {
    min-width: 400px;
    margin: 0 20px;
    background: #1e293b;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .quote {
    font-size: 1.05rem;
    font-style: italic;
    color: #e2e8f0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-card .author {
    display: flex;
    flex-direction: column;
}

.testimonial-card .author strong {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.testimonial-card .author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}