/* ===== AUTLY NEUMORPHIC DESIGN SYSTEM ===== */
/* Monochromatic palette with extruded elements and soft shadows */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Custom Properties - Neumorphic Design System */
:root {
    /* Primary Monochromatic Palette (Based on Autly Blue #1BA2D6) */
    --autly-primary: #1BA2D6;
    --autly-primary-light: #2BBAE8;
    --autly-primary-lighter: #7DD4F0;
    --autly-primary-dark: #158BB8;
    --autly-primary-darker: #0F6B8E;

    /* Neutral Monochromatic Background Palette */
    --bg-base: #E8F4F8;
    --bg-raised: #F0F8FB;
    --bg-surface: #E0EEF3;
    --bg-inset: #D4E6ED;
    --bg-deep: #C8DCE5;

    /* Text Colors */
    --text-primary: #0A3D4F;
    --text-secondary: #2C6A7D;
    --text-muted: #5A9AAD;
    --text-inverse: #FFFFFF;

    /* Neumorphic Shadows */
    --shadow-raised:
        8px 8px 16px rgba(180, 210, 220, 0.7),
        -8px -8px 16px rgba(255, 255, 255, 0.9);
    --shadow-raised-sm:
        4px 4px 8px rgba(180, 210, 220, 0.6),
        -4px -4px 8px rgba(255, 255, 255, 0.8);
    --shadow-raised-lg:
        12px 12px 24px rgba(180, 210, 220, 0.8),
        -12px -12px 24px rgba(255, 255, 255, 1);
    --shadow-inset:
        inset 4px 4px 8px rgba(180, 210, 220, 0.6),
        inset -4px -4px 8px rgba(255, 255, 255, 0.7);
    --shadow-inset-deep:
        inset 6px 6px 12px rgba(160, 195, 210, 0.7),
        inset -6px -6px 12px rgba(255, 255, 255, 0.8);

    /* Colored Shadows (for accent elements) */
    --shadow-primary:
        6px 6px 12px rgba(27, 162, 214, 0.3),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
    --shadow-primary-inset:
        inset 4px 4px 8px rgba(15, 107, 142, 0.4),
        inset -4px -4px 8px rgba(43, 186, 232, 0.3);

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --radius-pill: 100px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Spacing */
    --section-spacing: clamp(3rem, 6vh, 5rem);
    --content-spacing: clamp(1.5rem, 3vh, 2.5rem);
    --element-spacing: clamp(1rem, 2vh, 1.5rem);
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-base);
    color: var(--text-primary);
}

/* ===== NEUMORPHIC GRID PATTERN ===== */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(27, 162, 214, 0.08) 1px, transparent 0);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ===== NEUMORPHIC BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--autly-primary-light), var(--autly-primary-dark));
    color: var(--text-inverse);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow:
        6px 6px 14px rgba(21, 139, 184, 0.4),
        -4px -4px 10px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        8px 8px 18px rgba(21, 139, 184, 0.5),
        -6px -6px 14px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-primary-inset);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-raised);
    color: var(--autly-primary);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: var(--shadow-raised-sm);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--bg-surface);
    color: var(--autly-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-raised);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-inset);
}

/* ===== NEUMORPHIC CARDS ===== */
.service-card {
    background: var(--bg-raised);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-raised);
    transition: var(--transition-smooth);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-raised-lg);
}

.service-card:hover .service-number {
    color: var(--autly-primary-lighter);
    text-shadow: 2px 2px 4px rgba(27, 162, 214, 0.2);
}

.service-number {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Fraunces', Georgia, serif;
    color: var(--bg-deep);
    line-height: 1;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

/* ===== NEUMORPHIC STEP CARDS ===== */
.step-card {
    text-align: center;
    position: relative;
    padding: 2rem;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1rem;
    width: 2rem;
    height: 4px;
    background: var(--bg-deep);
    border-radius: var(--radius-pill);
    transform: translateY(-50%);
    box-shadow: var(--shadow-raised-sm);
}

.step-card:last-child::after {
    display: none;
}

.step-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--bg-raised);
    color: var(--autly-primary);
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Fraunces', Georgia, serif;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-raised);
    transition: var(--transition-bounce);
    border: 3px solid rgba(27, 162, 214, 0.1);
}

.step-card:hover .step-icon {
    background: linear-gradient(145deg, var(--autly-primary-light), var(--autly-primary-dark));
    color: var(--text-inverse);
    transform: scale(1.1);
    box-shadow:
        8px 8px 20px rgba(27, 162, 214, 0.35),
        -8px -8px 20px rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .step-card::after {
        display: none;
    }
}

/* ===== NEUMORPHIC CASE STUDY CARDS ===== */
.case-study-card {
    background: var(--bg-raised);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-raised);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--autly-primary), var(--autly-primary-light));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: var(--transition-smooth);
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-raised-lg);
}

.case-study-card:hover::before {
    opacity: 1;
}

.case-tag {
    display: inline-block;
    background: var(--bg-surface);
    color: var(--autly-primary-dark);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-inset);
}

/* ===== NEUMORPHIC STAT BOXES ===== */
.stat-box {
    background: var(--bg-raised);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-raised-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-raised);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Fraunces', Georgia, serif;
    color: var(--autly-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== NEUMORPHIC FORM INPUTS ===== */
.contact-input {
    width: 100%;
    background: var(--bg-surface);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-size: 1rem;
    box-shadow: var(--shadow-inset);
    transition: var(--transition-smooth);
    outline: none;
}

.contact-input::placeholder {
    color: var(--text-muted);
}

.contact-input:focus {
    background: var(--bg-raised);
    border-color: var(--autly-primary-lighter);
    box-shadow:
        var(--shadow-raised-sm),
        0 0 0 3px rgba(27, 162, 214, 0.15);
}

.btn-submit {
    background: linear-gradient(145deg, var(--autly-primary-light), var(--autly-primary-dark));
    color: var(--text-inverse);
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    box-shadow:
        6px 6px 14px rgba(21, 139, 184, 0.4),
        -4px -4px 10px rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        8px 8px 18px rgba(21, 139, 184, 0.5),
        -6px -6px 14px rgba(255, 255, 255, 0.4);
}

.btn-submit:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-primary-inset);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Gentle floating animation for extruded elements */
@keyframes gentle-float {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: var(--shadow-raised);
    }

    50% {
        transform: translateY(-5px);
        box-shadow: var(--shadow-raised-lg);
    }
}

.float-element {
    animation: gentle-float 4s ease-in-out infinite;
}

/* ===== FORM MESSAGES ===== */
.success-message {
    background: var(--bg-surface);
    border: 2px solid #10B981;
    color: #059669;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised-sm);
}

.error-message {
    background: var(--bg-surface);
    border: 2px solid #EF4444;
    color: #DC2626;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised-sm);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stat-value {
        font-size: 1.5rem;
    }

    .service-number {
        font-size: 3rem;
    }

    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
}

/* ===== SECTION SPACING ===== */
section {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

.content-block,
.max-w-7xl>div {
    margin-bottom: var(--content-spacing);
}

section>*:last-child,
.max-w-7xl>*:last-child {
    margin-bottom: 0;
}

/* ===== NEUMORPHIC NAVIGATION ===== */
.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--autly-primary);
    background: var(--bg-surface);
    box-shadow: var(--shadow-inset);
}

/* ===== NEUMORPHIC BADGES ===== */
.neumorphic-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-raised);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--autly-primary-dark);
    box-shadow: var(--shadow-raised-sm);
}

/* ===== NEUMORPHIC PRODUCT CARD ===== */
.product-card-wrapper {
    background: var(--bg-raised);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-raised-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ===== AOS ENHANCEMENT ===== */
[data-aos] {
    will-change: transform, opacity;
}

/* Performance optimization */
.service-card,
.case-study-card,
.step-card,
.stat-box {
    will-change: transform;
}

/* ===== NEUMORPHIC FOOTER ===== */
.footer-neumorphic {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
}

/* ===== SPECIAL EXTRUDED HERO BADGE ===== */
.hero-badge {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: var(--bg-raised);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--autly-primary);
    box-shadow: var(--shadow-raised-sm);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(145deg, #10B981, #059669);
    color: white;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow:
        4px 4px 10px rgba(16, 185, 129, 0.35),
        -3px -3px 8px rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
}

.hero-badge-live:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        6px 6px 14px rgba(16, 185, 129, 0.45),
        -4px -4px 10px rgba(255, 255, 255, 0.4);
}