/* Enterprise Overrides for Micro Agency */

/* Global Typography & Smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1c1737;
    background-color: #fcfcfc;
    overflow-x: hidden;
}

:root {
    --primary: #3e24b3;
    --accent: #ccff00;
    /* Neon Lime */
    --accent-hover: #b3e600;
    --dark: #1c1737;
    --light: #f8f9fc;
}

/* Background Decorations */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, rgba(255, 255, 255, 0) 70%);
    top: -200px;
    right: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #9881ff 0%, rgba(255, 255, 255, 0) 70%);
    bottom: 10%;
    left: -150px;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, rgba(255, 255, 255, 0) 70%);
    top: 40%;
    right: 10%;
}

/* Headings */
.h1 {
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.h2---32 {
    font-weight: 700;
    font-size: 56px;
    /* Massive */
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

/* Decorative massive text behind headings */
.h2---32::before {
    content: attr(data-text);
    /* Requires adding data-text to html, or just use pseudo element for decoration */
    position: absolute;
    font-size: 120px;
    color: rgba(62, 36, 179, 0.03);
    z-index: -1;
    top: -40px;
    left: -20px;
    white-space: nowrap;
    pointer-events: none;
}

.h3---28 {
    font-weight: 600;
    font-size: 24px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Paragraphs */
.p---20 {
    font-weight: 300;
    font-size: 20px;
    line-height: 1.6;
    color: #4a4a4a;
    max-width: 700px;
    /* Better readability line length */
    margin-left: auto;
    margin-right: auto;
}

.p---16 {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    border: 1px solid #eef0f5;
    background-color: #fff;
    color: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Layout & Spacing */
.section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.container {
    max-width: 1280px;
    /* Wider container for modern feel */
}

.container.pink {
    background-color: #f8f9fc;
    /* More corporate light grey/blue */
    border: 1px solid #eef0f5;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* Cards - Bento Style */
.service-card {
    background-color: #fff;
    border: none;
    /* Remove border */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(62, 36, 179, 0.15);
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Bento Grid Spans */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.span-2 {
    grid-column: span 2;
}

.span-row-2 {
    grid-row: span 2;
}

/* Featured Card Styling (Span 2) */
.span-2 .service-card-bottom {
    background: linear-gradient(135deg, #fff 0%, #f8f9fc 100%);
}

.span-2 .h3---28 {
    font-size: 32px;
    color: var(--primary);
}

.card-number {
    font-weight: 900;
    font-size: 48px;
    opacity: 0.1;
    color: var(--primary);
    position: absolute;
    top: 16px;
    left: 24px;
}

.service-card-bottom {
    border-top: 1px solid #f5f5f5;
    padding: 32px;
    background-color: #fff;
}

/* Team Cards */
.team-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    overflow: hidden;
}

.card-top {
    background-color: #fff;
    border-bottom: 1px solid #f5f5f5;
}

.card-bottom {
    background-color: #fff;
    border-top: none;
    padding: 32px;
}

.p-bold {
    color: #3e24b3;
}

/* Buttons - Neon Pop */
.button {
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 16px 40px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(62, 36, 179, 0.3);
    border: 2px solid transparent;
}

.button:hover {
    background-color: var(--dark);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(204, 255, 0, 0.2);
}

.cta {
    color: inherit;
    /* Inherit from button */
}

.button:hover .cta {
    color: var(--accent);
}

.button.large {
    width: auto;
    /* Don't force full width on cards */
    display: inline-block;
    border-radius: 50px;
}

/* Tags */
.tag {
    background-color: var(--accent);
    border-radius: 4px;
    padding: 6px 12px;
    transform: skew(-10deg);
    /* Edgy look */
}

.tag---12 {
    font-weight: 800;
    letter-spacing: 0.1em;
    font-size: 12px;
    color: var(--dark);
    transform: skew(10deg);
    /* Unskew text */
}

/* Form */
.form-block {
    background-color: #fff;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef0f5;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.w-input,
.w-select,
textarea {
    border: 1px solid #e0e0e0;
    background-color: #fcfcfc;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.w-input:focus,
textarea:focus {
    border-color: #3e24b3;
    background-color: #fff;
    outline: none;
}

.p---16.form {
    height: auto;
    /* Allow auto height */
    border-style: solid;
}

/* Navigation */
.nav {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    /* More transparent */
    backdrop-filter: blur(16px);
    /* Stronger blur */
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Staggered delays for grids */
.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* Hero Image Smoothness */
.hero-img img {
    transition: transform 0.1s ease-out;
    /* Smooth parallax */
    will-change: transform;
}

.nav-link {
    font-weight: 500;
    color: #1c1737;
}

.nav-link:hover {
    color: #3e24b3;
}

/* Footer */
.footer {
    border-top: 1px solid #eef0f5;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Mobile Optimizations */
@media screen and (max-width: 767px) {
    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .h1 {
        font-size: 48px;
        /* Reduce from default */
        line-height: 1.1;
    }

    .h2---32 {
        font-size: 32px;
    }

    .container.pink.mobile {
        padding: 24px;
    }

    .service-card {
        height: auto;
        /* Allow card to grow with content */
        min-height: auto;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .span-2,
    .span-row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .service-card-bottom {
        padding: 24px;
        min-height: auto;
        /* Remove fixed min-height on mobile */
    }

    .p---16 {
        padding: 12px;
        /* Reduce padding */
        font-size: 15px;
    }

    .form-block {
        padding: 24px;
    }
}

@media screen and (max-width: 479px) {
    .h1 {
        font-size: 40px;
        word-break: break-word;
        /* Ensure long words break */
        hyphens: auto;
    }

    .h2---32 {
        font-size: 28px;
        /* Slightly smaller */
        word-break: break-word;
    }

    .h3---28 {
        font-size: 22px;
        /* Reduce heading size in cards */
        word-break: break-word;
    }

    .p---16 {
        word-break: break-word;
    }

    .nav {
        padding-left: 16px;
        padding-right: 16px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: hidden;
        /* Prevent container overflow */
    }

    .service-card-bottom {
        padding: 20px;
    }

    .button.large {
        width: 100%;
        /* Full width buttons on small screens */
        text-align: center;
        white-space: normal;
        /* Allow button text to wrap if needed */
        height: auto;
        padding: 12px;
    }
}