/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
    /* Colors */
    --clr-primary: #111827; /* Deep Navy / Charcoal for primary text and backgrounds */
    --clr-primary-light: #1f2937;
    --clr-accent: #7c3aed; /* Strong Industrial Purple - premium & distinct */
    --clr-accent-hover: #6d28d9;
    --clr-text-main: #374151; /* Dark Gray for reading */
    --clr-text-muted: #6b7280;
    --clr-bg-light: #f8fafc;
    --clr-bg-white: #ffffff;
    --clr-border: #e5e7eb;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 2rem;     /* 32px */
    --space-lg: 4rem;     /* 64px */
    --space-xl: 6rem;     /* 96px */
    --space-xxl: 8rem;    /* 128px */
    
    /* Global Settings */
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Desktop Max Width */
    --max-width: 1280px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base 16px */
}

body {
    font-family: var(--font-main);
    color: var(--clr-text-main);
    line-height: 1.6;
    background-color: var(--clr-bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--clr-primary);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

ul {
    list-style: none;
}

.text-accent {
    color: var(--clr-accent);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

.section {
    padding: var(--space-xl) 0;
}

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

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

.bg-dark h2, .bg-dark h3 {
    color: var(--clr-bg-white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-bg-white);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-bg-white);
    color: var(--clr-bg-white);
}

.btn-outline:hover {
    background-color: var(--clr-bg-white);
    color: var(--clr-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--clr-primary);
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-text-main);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--clr-accent);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--clr-primary);
}

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

.nav-actions {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    font-size: 1.05rem;
}

.phone-link i {
    color: var(--clr-accent);
    font-size: 1.25rem;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--clr-primary);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .menu-toggle { display: none; }
    .nav-links { display: flex; }
    .nav-actions { display: flex; }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-bg-white);
    z-index: 1100;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-menu.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--clr-primary);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-primary);
}

.mobile-phone-link {
    margin-top: 1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem; /* For navbar */
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17, 24, 39, 0.80) 0%, rgba(17, 24, 39, 0.6) 50%, rgba(17, 24, 39, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0;
}

@media (min-width: 768px) {
    .hero-content {
        padding-left: var(--space-md);
    }
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--clr-bg-white);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    color: var(--clr-bg-white);
    font-size: clamp(3rem, 5vw + 1rem, 5.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: #cbd5e1;
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-ctas {
        flex-direction: row;
        align-items: center;
    }
}

/* ==========================================================================
   Trust Bar
   ========================================================================== */
.trust-bar {
    background-color: var(--clr-primary);
    padding: 1.5rem 0;
    border-bottom: 4px solid var(--clr-accent);
}

.trust-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .trust-container {
        justify-content: space-between;
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--clr-bg-white);
    font-weight: 600;
    font-size: 1rem;
}

.trust-item i {
    color: var(--clr-accent);
    font-size: 1.5rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

/* ==========================================================================
   Section Components
   ========================================================================== */
.section-header {
    margin-bottom: var(--space-lg);
}

.section-header.center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
}

.badge-dark {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: var(--clr-primary);
    color: var(--clr-bg-white);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 3rem; }

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background-color: var(--clr-bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--clr-border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.service-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-icon-box {
    position: absolute;
    bottom: -20px;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--clr-accent);
    color: var(--clr-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.75rem;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.4);
    z-index: 2;
}

.service-content {
    padding: 2.5rem 2rem 2rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--clr-text-muted);
}

/* Split Layout (Why Us & Others) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-list i {
    color: var(--clr-accent);
    font-size: 1.75rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-list h4 {
    font-size: 1.25rem;
    color: var(--clr-primary);
    margin-bottom: 0.25rem;
}

.feature-list p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.rounded-image {
    border-radius: var(--border-radius-lg);
    width: 100%;
    height: auto;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Reveal Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* ==========================================================================
   Projects Grid
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 380px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: var(--clr-bg-white);
}

.project-category {
    color: var(--clr-accent);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-overlay h3 {
    font-size: 1.5rem;
    color: var(--clr-bg-white);
    margin-bottom: 0.5rem;
}

.project-overlay p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* ==========================================================================
   Certifications Grid
   ========================================================================== */
.cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cert-card {
    background-color: var(--clr-bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--clr-border);
    border-left: 4px solid var(--clr-accent);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.cert-card i {
    font-size: 2rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
    display: block;
}

.cert-card h4 {
    margin-bottom: 0.5rem;
    color: var(--clr-primary);
}

.cert-card p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   Service Area
   ========================================================================== */
.service-area {
    background-color: var(--clr-bg-white);
    border-top: 1px solid var(--clr-border);
}

.area-content {
    max-width: 600px;
    margin: 0 auto;
}

.area-content h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Contact CTA & Form
   ========================================================================== */
.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    background-color: var(--clr-primary-light);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .cta-wrapper {
        grid-template-columns: 1fr 1fr;
        padding: 4rem;
    }
}

.mt-sm { margin-top: 1rem; }
.mt-lg { margin-top: 3rem; }

.cta-info h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin-bottom: 1rem;
    color: var(--clr-bg-white);
}

.cta-info p {
    color: #9ca3af;
    font-size: 1.125rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-accent);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-method .label {
    display: block;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.contact-method .value {
    color: var(--clr-bg-white);
    font-weight: 600;
    font-size: 1.1rem;
}

.cta-form-container {
    background-color: var(--clr-bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--clr-primary);
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

.contact-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--clr-bg-light);
    color: var(--clr-primary);
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    background-color: var(--clr-bg-white);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #0f172a;
    color: #9ca3af;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ==========================================================================
   Mobile Sticky CTA
   ========================================================================== */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--clr-bg-white);
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    text-align: center;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
        animation: slideUp 0.3s ease forwards;
    }
    
    body {
        padding-bottom: 5rem; /* Space for the fixed CTA */
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mobile-sticky-cta .btn {
    width: 100%;
    font-size: 1.125rem;
    padding: 0.875rem;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Added CRO Sections (Process & Testimonials)
   ========================================================================== */

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.process-card {
    background-color: var(--clr-bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--clr-border);
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform var(--transition), box-shadow var(--transition);
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.process-step {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--clr-accent);
    opacity: 0.15;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.process-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--clr-primary);
    position: relative;
    z-index: 1;
}

.process-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Projects Metrics Update */
.project-metrics {
    background: rgba(17, 24, 39, 0.6);
    padding: 1rem;
    border-left: 3px solid var(--clr-accent);
    margin-top: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

.project-metrics p {
    margin-bottom: 0.4rem;
    color: rgba(255,255,255,0.9);
}

.project-metrics p:last-child {
    margin-bottom: 0;
}

.project-metrics strong {
    color: var(--clr-bg-white);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    background-color: var(--clr-bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--clr-border);
    border-top: 4px solid var(--clr-accent);
}

.stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.25rem;
}

.review-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--clr-primary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--clr-border);
    padding-top: 1.5rem;
}

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

.reviewer-info h4 {
    margin-bottom: 0.1rem;
    font-size: 1rem;
    color: var(--clr-primary);
}

.reviewer-info span {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}
