/* =========================================
   1. Variables & Design System
   ========================================= */
:root {
    /* Colors */
    --primary-hue: 220;
    /* Blue */
    --secondary-hue: 270;
    /* Purple */
    --accent-hue: 190;
    /* Cyan */

    --color-primary: hsl(var(--primary-hue), 90%, 60%);
    --color-primary-dark: hsl(var(--primary-hue), 90%, 45%);
    --color-secondary: hsl(var(--secondary-hue), 90%, 65%);
    --color-accent: hsl(var(--accent-hue), 90%, 60%);

    --color-bg-dark: #f8fafc;
    /* Slate 50 (Light Background) */
    --color-bg-card: rgba(255, 255, 255, 0.8);
    /* White Card */
    --color-bg-card-hover: rgba(255, 255, 255, 0.95);

    --color-text-main: #0f172a;
    /* Slate 900 (Dark Text) */
    --color-text-muted: #475569;
    /* Slate 600 (Muted Text) */
    --color-border: rgba(15, 23, 42, 0.1);

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-hover: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    --glass-border: 1px solid rgba(15, 23, 42, 0.05);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --backdrop-blur: blur(12px);

    /* Dark Mode Overrides for Header/Footer */
    --color-bg-dark-header: #020617;
    --color-text-header: #f8fafc;
    --color-border-header: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    /* 4px */
    --space-sm: 0.5rem;
    /* 8px */
    --space-md: 1rem;
    /* 16px */
    --space-lg: 1.5rem;
    /* 24px */
    --space-xl: 2rem;
    /* 32px */
    --space-2xl: 3rem;
    /* 48px */
    --space-3xl: 4rem;
    /* 64px */
    --space-4xl: 6rem;
    /* 96px */

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    /* Effects */
    --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);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* =========================================
   2. Reset & Base Styles
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* =========================================
   3. Typography
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-main);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-lg);
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

.highlight {
    color: var(--color-primary);
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* =========================================
   4. Layout Utilities
   ========================================= */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
}

.section-header p {
    font-size: 1.25rem;
}

/* =========================================
   5. Components
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition-normal);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hover);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text-main);
    margin-left: var(--space-md);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(59, 130, 246, 0.05);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(59, 130, 246, 0.2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* =========================================
   6. Header & Navigation
   ========================================= */
.header {
    height: var(--header-height);
    height: var(--header-height);
    background: rgba(2, 6, 23, 0.9);
    /* Dark Header Check */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 75px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: var(--space-xl);
}

.nav-list a {
    font-weight: 500;
    font-size: 1rem;
    color: #cbd5e1;
    /* Light text for dark header */
}

.nav-list a:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   7. Hero Section
   ========================================= */
.hero {
    padding-top: calc(var(--header-height) + var(--space-4xl));
    padding-bottom: var(--space-4xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background Elements */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-text h1 {
    line-height: 1.1;
}

.hero-buttons {
    margin-top: var(--space-xl);
    display: flex;
    align-items: center;
}

.trust-signals {
    margin-top: var(--space-2xl);
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-lg);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.trust-item i {
    color: var(--color-primary);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.abstract-shape {
    position: absolute;
    width: 120%;
    height: 120%;
    background: conic-gradient(from 0deg, transparent, var(--color-primary), transparent);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   8. Services Section
   ========================================= */
.services {
    padding: var(--space-4xl) 0;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    background: var(--color-bg-card);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-md);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 40px -5px rgba(59, 130, 246, 0.2), 0 0 15px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

.icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card h3 {
    margin-bottom: var(--space-sm);
}

.service-list {
    margin-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-lg);
}

.service-list li {
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
}

.service-list li::before {
    content: "\f00c";
    /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-primary);
    margin-right: var(--space-sm);
    font-size: 0.8rem;
}

/* =========================================
   9. About Section
   ========================================= */
.about {
    padding: var(--space-4xl) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image .image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.about-text h2 {
    margin-bottom: var(--space-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* =========================================
   10. CTA Section
   ========================================= */
.cta-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    margin-bottom: var(--space-md);
    color: #ffffff;
    /* Force white text on dark CTA */
}

.cta-section p {
    color: #94a3b8;
    /* Explicit light slate for text on dark CTA */
    margin-bottom: var(--space-xl);
    font-size: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   11. Contact Section
   ========================================= */
.contact {
    padding: var(--space-4xl) 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    background: var(--color-bg-card);
    padding: var(--space-3xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.info-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.info-item i {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    color: var(--color-text-main);
}

.contact-form .form-group {
    margin-bottom: var(--space-lg);
}

.contact-form label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: #f1f5f9;
    /* Light input bg */
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-main);
    font-family: var(--font-body);
    transition: var(--transition-normal);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

/* =========================================
   12. Footer
   ========================================= */
.footer {
    background: var(--color-bg-dark-header);
    /* Keep footer dark */
    padding: var(--space-4xl) 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.footer-logo {
    margin-bottom: var(--space-md);
    display: inline-block;
}

.footer-col h4 {
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
    color: white;
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul li a {
    color: #94a3b8;
    /* Light slate for footer */
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition-normal);
    color: var(--color-text-muted);
}

.social-links a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    color: #64748b;
    /* Muted light slate */
    font-size: 0.9rem;
}

/* =========================================
   13. Responsive Design
   ========================================= */
@media (max-width: 992px) {

    .hero-content,
    .about-content,
    .contact-wrapper,
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero-visual,
    .about-image {
        order: -1;
    }

    .hero {
        text-align: center;
        padding-top: calc(var(--header-height) + var(--space-xl));
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-signals {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        padding: var(--space-xl);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }

    .nav.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-btn {
        display: none;
    }

    .contact-wrapper {
        padding: var(--space-lg);
    }
}

/* =========================================
   14. Portfolio Section
   ========================================= */
.portfolio {
    padding: var(--space-4xl) 0;
    background: #f8fafc;
    /* Clean light background */
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    margin-bottom: var(--space-4xl);
}

.portfolio-item:last-child {
    margin-bottom: 0;
}

.portfolio-item.reverse {
    direction: rtl;
}

.portfolio-item.reverse .portfolio-content {
    direction: ltr;
}

.portfolio-content {
    padding: var(--space-xl);
}

.portfolio-content h3 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-list {
    margin: var(--space-lg) 0;
}

.portfolio-list li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
}

.portfolio-list li i {
    color: var(--color-primary);
    margin-right: var(--space-sm);
}

.portfolio-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

.portfolio-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(59, 130, 246, 0.2);
}

/* =========================================
   15. Process Section
   ========================================= */
.process {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-dark);
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    position: relative;
}

.process-step {
    background: var(--color-bg-card);
    padding: var(--space-xl);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    position: relative;
    transition: var(--transition-normal);
}

.process-step:hover {
    background: var(--color-bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.05);
    /* Faint dark number */
    position: absolute;
    top: 0;
    right: var(--space-md);
    line-height: 1;
}

.process-step h3 {
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

@media (max-width: 992px) {

    .portfolio-item,
    .portfolio-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: var(--space-xl);
    }

    .portfolio-item.reverse .portfolio-content {
        direction: ltr;
    }

    .portfolio-image {
        order: -1;
    }
}