/* VARIABLES & RESET */
:root {
    /* Palette: Dusk & Glass */
    --primary-navy: #0F172A;
    /* Deepest Navy */
    --primary-light-navy: #1E293B;
    /* Lighter Navy for Cards */
    --primary-electric: #3B82F6;
    /* Vibrant Blue */
    --primary-cyan: #06B6D4;
    /* Cyan Accent */

    --neutral-charcoal: #334155;
    --neutral-white: #ffffff;
    --neutral-off-white: #F8FAFC;
    --neutral-light: #F1F5F9;

    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--neutral-charcoal);
    line-height: 1.6;
    background-color: var(--neutral-off-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* UTILITIES */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--neutral-light);
}

.bg-white {
    background-color: var(--neutral-white);
}

.bg-navy {
    background-color: var(--primary-navy);
    color: var(--neutral-white);
    position: relative;
    overflow: hidden;
}

/* Add subtle pattern overlay to navy sections if desired */
.bg-navy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('pattern-network.png');
    /* Ensure this path is correct if using the image */
    opacity: 0.1;
    pointer-events: none;
    background-size: cover;
}

.bg-navy h2,
.bg-navy h3,
.bg-navy p {
    color: var(--neutral-white);
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--neutral-white) !important;
}

.text-justify {
    text-align: justify;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748B;
    max-width: 600px;
    margin: 0 auto;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-electric) 0%, #2563EB 100%);
    color: var(--neutral-white);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-electric);
    color: var(--primary-electric);
}

.btn-secondary:hover {
    background-color: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--neutral-white);
    backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
    background-color: var(--neutral-white);
    color: var(--primary-navy);
    border-color: var(--neutral-white);
}

/* HEADER & NAV */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 48px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.desktop-nav a {
    font-weight: 500;
    color: var(--neutral-charcoal);
    font-size: 0.95rem;
    position: relative;
}

.desktop-nav a:not(.btn):hover {
    color: var(--primary-electric);
}

.desktop-nav a.active {
    color: var(--primary-electric);
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--neutral-charcoal);
    margin: 5px 0;
    transition: var(--transition);
}

/* MOBILE NAV */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--neutral-white);
    padding: 24px;
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    border-top: 1px solid #e5e7eb;
}

.mobile-nav.active {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    font-size: 1.125rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    padding: 160px 0 140px;
    /* Use the new Dusk Image */
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.7)), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: var(--neutral-white);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--neutral-white);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-sub {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 32px;
}

.hero-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

/* GLASSCARDS & GRIDS */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--neutral-white);
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-8px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: inline-block;
    padding: 12px;
    background-color: rgba(59, 130, 246, 0.1);
    /* Light Blue bg for icon */
    border-radius: 12px;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-navy);
}

.service-list {
    margin-top: 20px;
}

.service-list li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    color: #4b5563;
}

.service-list li::before {
    content: "✓";
    color: var(--primary-electric);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* INDUSTRY ICONS (Modernized) */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.industry-card {
    background: rgba(255, 255, 255, 0.05);
    /* Glass effect on dark bg */
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--neutral-white);
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-electric);
}

.industry-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

/* PRICING (Clean) */
.pricing-table-container {
    overflow-x: auto;
    background: var(--neutral-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

table.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.pricing-table th {
    background-color: var(--primary-navy);
    color: var(--neutral-white);
    font-weight: 600;
    padding: 20px 24px;
    text-align: left;
}

.pricing-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    color: var(--neutral-charcoal);
}

.pricing-table tr:hover td {
    background-color: #f8fafc;
}

/* FORMS */
.contact-form {
    background: var(--neutral-white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e5e7eb;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-electric);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* TABBED NAVIGATION */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: 1px solid transparent;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    border-radius: 50px;
}

.tab-btn:hover {
    color: var(--primary-navy);
    background-color: #f1f5f9;
}

.tab-btn.active {
    color: var(--neutral-white);
    background-color: var(--primary-electric);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FOOTER */
footer {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.98)), url('footer-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #94a3b8;
    padding: 100px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    color: var(--neutral-white);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.footer-links h4 {
    color: var(--neutral-white);
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 14px;
}

.footer-links a:hover {
    color: var(--primary-electric);
    padding-left: 4px;
    /* subtle shift */
}

/* PROCESS TIMELINE */
.timeline-step {
    position: relative;
    padding-left: 60px;
    padding-bottom: 60px;
    /* Spacing between items */
    margin-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 20px;
    /* Center with number circle */
    top: 50px;
    bottom: 0;
    width: 2px;
    background-color: #e2e8f0;
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-electric) 0%, #2563EB 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
    z-index: 2;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .pricing-table-container {
        margin: 0 -20px;
        /* Bleed on mobile */
        border-radius: 0;
    }
}

/* =========================================
   NEW SECTIONS (Team, Testimonials, Projects, Clients)
   ========================================= */

/* TEAM SECTION */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.team-card {
    background: var(--neutral-white);
    padding: 24px;
    border-radius: 16px;
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
}

.team-card:hover {
    transform: translateY(-8px);
}

.initials-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a3b55 100%);
    color: var(--neutral-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0 auto 24px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
    position: relative;
}

.initials-circle::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary-cyan);
    border-radius: 50%;
    border: 3px solid var(--neutral-white);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.9rem;
    color: var(--primary-electric);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: block;
}

.team-bio {
    font-size: 0.95rem;
    color: var(--neutral-charcoal);
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 10px;
}

.team-social {
    color: #94a3b8;
    font-size: 1.2rem;
}

.team-social:hover {
    color: #0077b5;
}

/* TESTIMONIALS SECTION */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--neutral-white);
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.2);
}

.quote-content {
    font-size: 1.1rem;
    color: var(--primary-light-navy);
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
    flex-grow: 1;
}

.quote-author {
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.author-name {
    font-weight: 700;
    color: var(--primary-navy);
    display: block;
    margin-bottom: 2px;
}

.author-role {
    font-size: 0.85rem;
    color: #64748B;
}

/* PROJECTS / CASE STUDIES */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--neutral-white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 4px solid transparent;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-left-color: var(--primary-electric);
}

.project-tags {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-navy);
}

.project-desc {
    color: var(--neutral-charcoal);
    font-size: 1rem;
    line-height: 1.5;
}

/* CLIENTS SECTION */
.clients-text-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 60px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.client-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: #6b7280;
    transition: var(--transition);
    cursor: default;
}

.client-name:hover {
    color: var(--primary-navy);
}

/* RESPONSIVE ADJUSTMENTS FOR NEW SECTIONS */
@media (max-width: 1024px) {

    .team-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .team-grid,
    .testimonial-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 24px;
        scroll-snap-type: x mandatory;
        gap: 20px;
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .team-card,
    .testimonial-card {
        min-width: 85%;
        scroll-snap-align: center;
    }

    .clients-text-grid {
        gap: 20px 40px;
    }
}