/* ============================================================
   Enterprise IT Consulting — Premium Agency Stylesheet
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
    /* Colors */
    --color-bg-dark: #0a0f1c;
    --color-bg-dark-2: #111827;
    --color-bg-light: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-card: #ffffff;
    --color-bg-card-dark: rgba(255, 255, 255, 0.04);

    --color-text-primary: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-light: #ffffff;
    --color-text-light-muted: rgba(255, 255, 255, 0.7);

    --color-accent-blue: #3b82f6;
    --color-accent-purple: #8b5cf6;
    --color-accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --color-accent-glow: rgba(59, 130, 246, 0.25);

    --color-border: #e2e8f0;
    --color-border-dark: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-section: 5rem;

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --header-height: 72px;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-primary);
    background: var(--color-bg-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 15, 28, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-dark);
    transition: background var(--transition-base);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--color-text-light);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo span {
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop Nav */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-desktop>.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-light);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link .chevron {
    font-size: 0.6em;
    transition: transform var(--transition-fast);
}

.nav-item:hover .chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    padding: var(--space-sm) 0;
    background: var(--color-bg-dark-2);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.nav-item:hover>.nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown .nav-link {
    display: block;
    padding: 0.55rem 1.2rem;
    font-size: 0.84rem;
    border-radius: 0;
}

.nav-dropdown .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Nested dropdown */
.nav-dropdown .nav-item {
    position: relative;
}

.nav-dropdown .nav-item>.nav-dropdown {
    left: 100%;
    top: -0.5rem;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-light);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 28, 0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    overflow-y: auto;
}

.nav-mobile.open {
    display: block;
}

.nav-mobile .nav-mobile-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-light-muted);
    border-bottom: 1px solid var(--color-border-dark);
    transition: color var(--transition-fast);
}

.nav-mobile .nav-mobile-link:hover {
    color: var(--color-text-light);
}

.nav-mobile .nav-mobile-group {
    margin-bottom: var(--space-md);
}

.nav-mobile .nav-mobile-group-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-blue);
    padding: var(--space-md) 0 var(--space-sm);
}

.nav-mobile .nav-mobile-sub-link {
    display: block;
    padding: 0.5rem 0 0.5rem var(--space-lg);
    font-size: 0.95rem;
    color: var(--color-text-light-muted);
    transition: color var(--transition-fast);
}

.nav-mobile .nav-mobile-sub-link:hover {
    color: var(--color-text-light);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    background: var(--color-bg-dark);
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

/* Decorative gradient orb */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-text-light);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    max-width: 780px;
}

.hero-accent-line {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent-gradient);
    border-radius: 2px;
    margin-bottom: var(--space-xl);
}

.hero .subheadline {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--color-text-light-muted);
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: var(--space-lg);
}

.hero .intro-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: var(--space-md);
}

.hero .cta-group {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS / CTAs
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--color-accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.btn-dark {
    background: var(--color-accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--color-accent-glow);
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
    padding: var(--space-section) 0;
}

.content-section:nth-child(even) {
    background: var(--color-bg-alt);
}

.content-section:nth-child(odd) {
    background: var(--color-bg-light);
}

.section-header {
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.section-header .section-accent {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-accent-gradient);
    border-radius: 2px;
    margin-bottom: var(--space-lg);
}

.section-header p,
.section-text p {
    font-size: 1.02rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 720px;
    margin-bottom: var(--space-md);
}

.section-text p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   BULLET LISTS
   ============================================================ */
.styled-list {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.styled-list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.975rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-gradient);
}

/* Card-style bullets */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.card-list-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card-list-item:hover {
    border-color: var(--color-accent-blue);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.card-list-item:hover::before {
    opacity: 1;
}

.card-list-item h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.card-list-item p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ============================================================
   STEPS / PROCESS TIMELINE
   ============================================================ */
.steps-list {
    counter-reset: step-counter;
    margin-top: var(--space-xl);
}

.step-item {
    counter-increment: step-counter;
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-gradient);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 4px 15px var(--color-accent-glow);
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ============================================================
   CLOSING / CTA SECTION
   ============================================================ */
.closing-section {
    background: var(--color-bg-dark);
    padding: var(--space-section) 0;
    text-align: center;
}

.closing-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.closing-section p {
    font-size: 1.02rem;
    color: var(--color-text-light-muted);
    max-width: 640px;
    margin: 0 auto var(--space-md);
    line-height: 1.7;
}

.closing-section .styled-list li {
    color: var(--color-text-light-muted);
}

.closing-section .styled-list {
    max-width: 480px;
    margin: var(--space-lg) auto 0;
    text-align: left;
}

.closing-section .cta-group {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
    max-width: 600px;
    margin-top: var(--space-2xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-primary);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-bg-dark);
    border-top: 1px solid var(--color-border-dark);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
    display: inline-block;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-text-light-muted);
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light-muted);
    padding: 0.3rem 0;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-accent-blue);
}

.footer-bottom {
    border-top: 1px solid var(--color-border-dark);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-light-muted);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
    padding: var(--space-md) 0;
    margin-top: var(--header-height);
    background: var(--color-bg-dark);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--color-text-light-muted);
}

.breadcrumbs-list a {
    color: var(--color-text-light-muted);
    transition: color var(--transition-fast);
}

.breadcrumbs-list a:hover {
    color: var(--color-accent-blue);
}

.breadcrumbs-list .sep {
    opacity: 0.4;
}

/* ============================================================
   DARK CONTENT SECTION (for variety)
   ============================================================ */
.content-section.dark-section {
    background: var(--color-bg-dark-2);
}

.dark-section .section-header h2 {
    color: var(--color-text-light);
}

.dark-section .section-header p,
.dark-section .section-text p {
    color: var(--color-text-light-muted);
}

.dark-section .styled-list li {
    color: var(--color-text-light-muted);
}

.dark-section .card-list-item {
    background: var(--color-bg-card-dark);
    border-color: var(--color-border-dark);
}

.dark-section .card-list-item h3 {
    color: var(--color-text-light);
}

.dark-section .card-list-item p {
    color: var(--color-text-light-muted);
}

.dark-section .step-content h3 {
    color: var(--color-text-light);
}

.dark-section .step-content p {
    color: var(--color-text-light-muted);
}

.dark-section .step-item {
    border-color: var(--color-border-dark);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        min-height: 360px;
        padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    }
}

@media (max-width: 768px) {
    :root {
        --space-section: 3.5rem;
    }

    .container {
        padding: 0 var(--space-lg);
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    }

    .card-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .step-item {
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }
}

/* ============================================================
   PAGE-SPECIFIC: HOME page overview cards
   ============================================================ */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.overview-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
}

.overview-card:hover {
    border-color: var(--color-accent-blue);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.overview-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.overview-card p {
    font-size: 0.925rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: var(--space-md);
}

.overview-card .styled-list {
    margin-top: var(--space-md);
}

.overview-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent-blue);
    margin-top: var(--space-md);
    transition: gap var(--transition-fast);
}

.overview-card .card-link:hover {
    gap: 10px;
}

.overview-card .card-link .arrow {
    transition: transform var(--transition-fast);
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mt-2xl {
    margin-top: var(--space-2xl);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}