:root {
    --color-primary: #6A0DAD;
    /* Royal Purple */
    --color-secondary: #191970;
    /* Midnight Blue */
    --color-accent: #C0C0C0;
    /* Silver */
    --color-text-dark: #1A1A1A;
    --color-text-light: #F5F5F5;
    --color-white: #FFFFFF;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: #F9FAFB;
    /* Clean off-white */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #550a8a;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Header */
header {
    background-color: var(--color-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Nav (Max-width 767px) */
@media (max-width: 767px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        /* Fixed to cover screen */
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        /* Full height */
        background-color: var(--color-white);
        box-shadow: none;
        padding: 3rem 1.5rem;
        /* More padding */
        text-align: center;
        z-index: 99999;
        /* Animation */
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        overflow-y: auto;
        /* Allow scrolling if needed */
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    /* Remove backdrop since menu causes full coverage */
    .nav-links.active::before {
        display: none;
    }

    .nav-links li {
        margin: 0 0 2rem 0;
        /* Big gap between links */
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 10px 0;
        font-size: 1.5rem;
        /* Much larger text */
        font-weight: 600;
        color: var(--color-secondary);
    }

    /* Mobile CTA Button Styling */
    .nav-links .btn-primary {
        display: block;
        width: 100%;
        margin-top: 1rem;
        padding: 1.2rem;
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 100000;
        margin-left: auto;
        /* Push to right */
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--color-secondary);
        margin: 5px auto;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hide Desktop CTA in header */
    .header-cta {
        display: none;
    }
}

/* Desktop Utilities */
@media (min-width: 768px) {
    .mobile-only-item {
        display: none;
    }

    .header-cta {
        display: inline-block;
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        box-shadow: none;
        padding: 0;
        background-color: transparent;
        list-style: none;
        /* Restore list-style: none */
        gap: 2rem;
        /* Restore gap */
    }

    .hamburger {
        display: none;
    }


    .nav-links a {
        position: relative;
        font-weight: 500;
        padding: 0.5rem 0;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--color-primary);
        transition: width 0.3s ease;
    }

    .nav-links a:hover {
        color: var(--color-primary);
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 100%;
    }

    .nav-links a.active {
        color: var(--color-primary);
        font-weight: 700;
    }
}

.logo img {
    height: 40px;
    width: auto;
    transition: height 0.3s ease;
}

@media (min-width: 768px) {
    .logo img {
        height: 60px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    background: linear-gradient(rgba(25, 25, 112, 0.7), rgba(106, 13, 173, 0.6)), url('../assets/hero_bg_meeting_1768161765618.png');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-sm);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

/* Inner Page Heroes */
.hero-inner {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    margin-bottom: var(--spacing-lg);
}

.hero-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.9), rgba(106, 13, 173, 0.8));
    z-index: 1;
}

.hero-inner .container {
    position: relative;
    z-index: 2;
}

.hero-inner h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: white;
}

.hero-inner p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-services {
    background-image: url('../assets/hero_bg_services.png');
}

.hero-industries {
    background-image: url('../assets/hero_bg_industries.png');
}

.hero-about {
    background-image: url('../assets/hero_bg_about.png');
}

/* Section Common */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Problem Section */
.problem {
    background-color: transparent;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.problem-card {
    padding: var(--spacing-md);
    border-left: 4px solid var(--color-primary);
    background-color: #f8f8f8;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.problem-card h3 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

/* Solution Section */
.solution {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.solution .section-title h2 {
    color: var(--color-white);
}

.solution .section-title p {
    color: #ccc;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.solution-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    /* Lighter glass */
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.solution-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 20px rgba(106, 13, 173, 0.15);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    /* Purple icons */
    background: rgba(106, 13, 173, 0.1);
    /* Light purple highlight */
    border-radius: 50%;
    padding: 1rem;
}

.solution-item h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
    /* Dark Blue text */
    font-size: 1.5rem;
}

.solution-item p {
    color: #4A4A4A;
    /* Dark Gray text matching Specialized Industries */
    flex-grow: 1;
    /* Pushes button down if lengths vary */
    margin-bottom: var(--spacing-sm);
}

.learn-more {
    color: var(--color-primary);
    /* Primary purple pop */
    font-weight: 600;
    font-size: 1rem;
    margin-top: auto;
    transition: color 0.3s ease;
}

.solution-item:hover .learn-more {
    color: #550a8a;
    /* Darker Purple on hover */
}

.learn-more:hover {
    text-decoration: underline;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

@media (min-width: 768px) {
    .service-card {
        flex-direction: row;
    }

    .service-card:nth-child(even) {
        flex-direction: row-reverse;
    }
}

.service-text {
    flex: 1;
}

.service-text h3 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.service-text ul {
    list-style: none;
    margin-top: var(--spacing-sm);
}

.service-text li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-text li::before {
    content: "✓";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Process */
.process {
    background-color: transparent;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto var(--spacing-sm);
}

/* Why Us */
.why-us {
    background-color: transparent;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.reason-card {
    text-align: center;
    padding: var(--spacing-md);
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    border-top: 5px solid var(--color-primary);
}

/* CTA Section */
.final-cta {
    background-color: var(--color-secondary);
    color: white;
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.final-cta h2 {
    margin-bottom: var(--spacing-sm);
}

/* Footer */
footer {
    background-color: #0f0f4a;
    color: #aaa;
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.9rem;
}