/* Base & Reset */
:root {
    --primary-color: #2563eb;
    /* Modern Tech Blue */
    --primary-dark: #1e40af;
    --text-color: #0f172a;
    /* Deeper dark for premium text */
    --text-light: #64748b;
    /* Softer gray */
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    /* Very subtle cool gray */
    --bg-dark: #0f172a;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth premium ease */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    /* Increased for readability */
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.025em;
    /* Tight tracking for modern look */
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        /* More space on mobile */
    }
}

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

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

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

.btn-outline:hover {
    background-color: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    /* Prevents distortion */
    max-width: 100%;
    /* Ensures it fits container */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid #e5e7eb;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.client-login {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid #e5e7eb;
}

.client-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.employee-login {
    background-color: var(--bg-dark);
    color: var(--white);
    border: 1px solid var(--bg-dark);
}

.employee-login:hover {
    background-color: #000;
    border-color: #000;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 850px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.6);
    /* Semi-transparent white */
    backdrop-filter: blur(12px);
    /* Glass blur */
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    /* Spacing inside the glass card */
    border-radius: 24px;
    /* Rounded corners */
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Subtle border */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    /* Soft shadow */
}

.hero-title {
    font-size: 4rem;
    /* Larger */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.35rem;
    /* Larger */
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 650px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

/* Sections Common */
.section {
    padding: 7rem 0;
    /* More breathing room */
}

.section-header {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-desc {
    color: var(--text-light);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin: 1.5rem auto 0;
    border-radius: 4px;
}

/* About Section */
.about-text .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-light);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem;
    /* More internal spacing */
    border-radius: 16px;
    /* Softer corners */
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    /* Deep tailored shadow */
    border-color: rgba(37, 99, 235, 0.1);
}

.service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

/* Why Choose Us & Industries */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.feature-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.industry-card {
    background-color: var(--white);
    border: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    cursor: default;
}

.industry-card:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.contact-info p {
    color: #9ca3af;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin-bottom: 0;
    color: #9ca3af;
}

.contact-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.full-width {
    width: 100%;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    color: rgba(37, 99, 235, 0.1);
    font-family: serif;
    line-height: 1;
}

.quote {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.client-info h4 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.client-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Tech Stack */
.tech-section {
    padding: 3rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.text-muted {
    color: #94a3b8;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    font-weight: 600;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    align-items: center;
    opacity: 0.6;
}

.tech-item {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    /* Grayscale look */
    filter: grayscale(100%);
    transition: var(--transition);
    cursor: default;
}

.tech-item:hover {
    filter: grayscale(0%);
    color: var(--primary-color);
    transform: translateY(-2px);
    opacity: 1;
}

/* Process Timeline */
.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 4rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 2px;
    background-color: #e2e8f0;
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 0 5px var(--white);
    /* Gap from line */
}

.process-step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.process-step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Mobile Process */
.mobile-only {
    display: none !important;
}

.big-screen-only {
    display: flex;
}

.process-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.process-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-Badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: var(--transition);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f8fafc;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Arbitrary large height */
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

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

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transition: var(--transition);
    z-index: 900;
}

.floating-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

/* Mega Footer */
.mega-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-logo .logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
}

.brand-col p {
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    /* High contrast light gray */
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: #94a3b8;
}

.legal-links a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
        /* Compact header for mobile */
    }

    /* Force Toggle Visibility */
    .mobile-toggle {
        display: block;
        z-index: 1002;
        /* Above everything */
        position: relative;
        padding: 0.5rem;
        margin-right: -0.5rem;
    }

    .bar {
        background-color: var(--text-color);
        /* Ensure contrast */
    }

    /* Fix Sizing & Spacing "Too Big" */
    .hero {
        padding: 7rem 0 2rem;
        /* Tighter top/bottom padding */
    }

    .hero-title {
        font-size: 1.85rem;
        /* Compact professional size */
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        /* Reduced from 3rem */
        padding: 0 0.5rem;
    }

    .hero-content {
        padding: 1.5rem 1rem;
        /* Compact glass card */
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
        gap: 0.75rem;
        /* Tighter button gap */
    }

    /* Section Formatting */
    .section {
        padding: 3rem 0;
        /* Standardized tight spacing */
    }

    .section-header {
        margin-bottom: 2rem;
        /* Bring content closer to title */
        text-align: center;
        /* Enforce center align */
    }

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

    .section-desc {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    /* Layout Fixes */
    .container {
        padding: 0 1.25rem;
        /* Balanced side padding */
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 1.25rem;
    }

    /* Hide the menu container by default */
    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 1rem 1.5rem 2rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: flex-start;
        border-top: 1px solid #f3f4f6;
        animation: slideDown 0.3s ease forwards;
        max-height: 80vh;
        /* Prevent overflow */
        overflow-y: auto;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .floating-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .contact-wrapper {
        gap: 3rem;
    }

    /* Mobile Process Switch */
    .big-screen-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .process-timeline::before {
        display: none;
    }

    .tech-grid {
        gap: 1.5rem;
    }

    .tech-item {
        font-size: 1rem;
    }

    .service-card,
    .feature-item {
        padding: 1.5rem;
        /* Compact cards */
    }
}

/* Animations - Global */
/* Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    /* Dark background for contrast */
    padding: 0.75rem 0;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 3rem;
    font-size: 1rem;
    color: var(--white);
    font-weight: 500;
    letter-spacing: 0.05em;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assumes duplication for seamless loop */
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

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