/*
========================================
    TABLE OF CONTENTS
========================================
1.  VARIABLES & RESET
2.  GENERAL STYLES & UTILITIES
3.  HEADER & NAVIGATION
4.  HERO SECTION
5.  STATS SECTION
6.  SERVICES (TABS) SECTION
7.  PROCESS TIMELINE SECTION
8.  INDUSTRIES SECTION
9.  TESTIMONIALS SECTION
10. CTA SECTION
11. FOOTER
12. PAGE-SPECIFIC STYLES (Contact, Legal)
13. ANIMATIONS & KEYFRAMES
14. RESPONSIVE DESIGN (Media Queries)
========================================
*/

/* ======================================== 1. VARIABLES & RESET ======================================== */
:root {
    --color-primary: #7C3AED;
    /* Vibrant Violet for CTAs and highlights */
    --color-primary-dark: #5B21B6;
    /* Deep Royal Purple for hover states */
    --color-secondary: #8B5CF6;
    /* Soft Lavender Accent */
    --color-background: #F9FAFB;
    /* Clean neutral background */
    --color-surface: #FFFFFF;
    /* Pure white for cards and panels */
    --color-text-primary: #1F1F28;
    /* Deep charcoal for maximum contrast */
    --color-text-secondary: #6B7280;
    /* Cool gray for body/subtext */
    --color-border: #E5E7EB;
    /* Light gray border */
    --color-white: #FFFFFF;

    --font-family-primary: 'Inter', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;

    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;

    --container-width: 1140px;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05),
        0 4px 6px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ======================================== 2. GENERAL STYLES & UTILITIES ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3,
h4 {
    color: var(--color-text-primary);
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 3.25rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn--secondary {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border: 2px solid var(--color-border);
}

.btn--secondary:hover {
    background-color: var(--color-background);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn--full-width {
    width: 100%;
    padding: 1rem;
}

/* ======================================== 3. HEADER & NAVIGATION ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background-color: var(--color-background);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-medium);
}

.header.scrolled {
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    border-bottom-color: var(--color-border);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    height: 55px;
}

.nav__list {
    display: flex;
    gap: 2.5rem;
}

.nav__link {
    color: var(--color-text-primary);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-medium);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* ======================================== 4. HERO SECTION ======================================== */
.hero {
    padding: 10rem 0 8rem;
    background-color: var(--color-background);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero__title .highlight {
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
}

.hero__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    position: relative;
    width: 400px;
    height: 400px;
}

.graphic-shape {
    position: absolute;
    border-radius: var(--border-radius);
}

.graphic-shape.shape1 {
    width: 100%;
    height: 100%;
    background-color: #eaf2ff;
    /* Light blue */
    transform: rotate(15deg);
}

.graphic-shape.shape2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background-color: #dff6fa;
    /* Light teal */
    transform: rotate(-10deg);
}

.graphic-shape.shape3 {
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    border: 2px dashed var(--color-primary);
    transform: rotate(5deg);
}

.graphic-icon {
    position: absolute;
    font-size: 3rem;
    background-color: var(--color-surface);
    padding: 1rem;
    border-radius: 50%;
    box-shadow: var(--box-shadow-lg);
    animation: float 5s ease-in-out infinite;
}

.icon1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.icon2 {
    top: 40%;
    right: -5%;
    animation-delay: 1s;
}

.icon3 {
    bottom: 5%;
    left: 30%;
    animation-delay: 2s;
}

/* ======================================== 5. STATS SECTION ======================================== */
.stats-section {
    background-color: var(--color-surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin: 0;
}

/* ======================================== 6. SERVICES (TABS) SECTION ======================================== */
.services-section {
    background-color: var(--color-background);
}

.service-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-tab-button {
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text-secondary);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.service-tab-button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.service-tab-button.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.service-tab-content {
    display: none;
    background-color: var(--color-surface);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.service-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.content-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content-text p {
    margin-bottom: 1.5rem;
}

.content-text ul {
    list-style: none;
    padding-left: 0;
}

.content-text ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

.content-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

.content-image img {
    border-radius: var(--border-radius);
    object-fit: cover;
    width: 100%;
    height: 300px;
}

/* ======================================== 7. PROCESS TIMELINE SECTION ======================================== */
.process-section {
    background-color: var(--color-surface);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* The vertical line */
.process-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 2rem 3rem;
    position: relative;
    width: 50%;
}

/* The circle on the timeline */
.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-surface);
    border: 4px solid var(--color-primary);
    top: 32px;
    border-radius: 50%;
    z-index: 1;
    transition: background-color var(--transition-medium);
}

/* Position items left and right */
.timeline-item:nth-child(odd) {
    left: 0;
    padding-left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-right: 0;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--color-primary);
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    position: relative;
    border: 1px solid var(--color-border);
    transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-content {
    transform: scale(1.03);
}

.timeline-step {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-title {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-description {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ======================================== 8. INDUSTRIES SECTION ======================================== */
.industries-section {
    background-color: var(--color-background);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    background-color: var(--color-surface);
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-medium);
    border: 2px solid transparent;
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--color-secondary);
}

.industry-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.industry-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* ======================================== 9. TESTIMONIALS SECTION ======================================== */
.testimonials-section {
    background-color: var(--color-surface);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-background);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    flex-grow: 1;
    position: relative;
    padding-left: 2rem;
}

.testimonial-quote::before {
    content: '“';
    position: absolute;
    left: -0.5rem;
    top: -1.5rem;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    color: var(--color-text-secondary);
}


/* ======================================== 10. CTA SECTION ======================================== */
.cta-section {
    padding: 5rem 0;
    background-color: var(--color-primary);
}

.cta-container {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    text-align: center;
    color: var(--color-white);
    padding: 4rem 2rem;
    border-radius: var(--border-radius);
}

.cta-title {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-section .btn--primary {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.cta-section .btn--primary:hover {
    background-color: var(--color-background);
}

/* ======================================== 11. FOOTER ======================================== */
.footer {
    background-color: #212529;
    color: var(--color-text-secondary);
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-logo img {
    height: 55px;
    margin-bottom: 1rem;
    filter: invert(1);
}

.footer-about-text {
    font-size: 0.9rem;
    margin: 0;
}

.footer-col-title {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a,
.footer-col p {
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--color-white);
}

.footer-col p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #343a40;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* ======================================== 12. PAGE-SPECIFIC STYLES ======================================== */
/* --- Contact Page --- */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: var(--color-surface);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: auto;
}

.contact-section {
    background-color: var(--color-background);
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper {
    background-color: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.info-group {
    margin-bottom: 1.5rem;
}

.info-group h4 {
    font-size: 1rem;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.info-group p {
    margin: 0;
}

/* --- Legal Pages --- */
.legal-section {
    padding-top: 8rem;
    background: var(--color-surface);
}

.legal-container {
    max-width: 800px;
}

.legal-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 1rem;
}

.legal-container h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.legal-container ul {
    list-style: disc;
    padding-left: 2rem;
    margin: 1rem 0;
}

.legal-container ul li {
    margin-bottom: 0.5rem;
}

/* ======================================== 13. ANIMATIONS & KEYFRAMES ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================== 14. RESPONSIVE DESIGN ======================================== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        order: 2;
    }

    .hero__image-wrapper {
        order: 1;
        margin-bottom: 3rem;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons {
        justify-content: center;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .content-inner {
        grid-template-columns: 1fr;
    }

    .content-image {
        order: 1;
        margin-bottom: 2rem;
    }

    .content-text {
        order: 2;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

    .header__cta {
        display: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-surface);
        padding-top: 6rem;
        transition: right 0.4s ease-in-out;
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav.open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav__link {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav.open+.nav-toggle .hamburger {
        background-color: transparent;
    }

    .nav.open+.nav-toggle .hamburger::before {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .nav.open+.nav-toggle .hamburger::after {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero__buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    .process-timeline::after {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 1px;
    }

    .service-tabs {
        justify-content: flex-start;
    }

    .service-tab-button {
        flex-grow: 1;
    }

    .service-tab-content {
        padding: 1.5rem;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}