/**
 * Catalyst Bold Theme - Main Stylesheet
 * Bold. Vibrant. Unapologetic.
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Vibrant Color Palette */
    --color-electric: #0066FF;
    --color-electric-dark: #0052CC;
    --color-hot-pink: #FF006E;
    --color-lime: #00F5A0;
    --color-purple: #7B2CBF;
    --color-orange: #FF6B00;

    /* Neutrals */
    --color-black: #000000;
    --color-near-black: #0A0A0A;
    --color-white: #FFFFFF;
    --color-off-white: #F7F7F7;
    --color-gray: #888888;
    --color-light-gray: #E5E5E5;

    /* Typography */
    --font-display: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Massive Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
    --text-7xl: 6rem;
    --text-8xl: 8rem;
    --text-9xl: 10rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;

    /* Layout */
    --container: 1400px;
    --radius: 0.5rem;
    --radius-lg: 1rem;

    /* Transitions */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   TYPOGRAPHY - MASSIVE HEADLINES
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--color-black);
}

h1 { font-size: clamp(3rem, 8vw, var(--text-8xl)); }
h2 { font-size: clamp(2.5rem, 6vw, var(--text-7xl)); }
h3 { font-size: clamp(2rem, 4vw, var(--text-5xl)); }
h4 { font-size: var(--text-4xl); }
h5 { font-size: var(--text-3xl); }
h6 { font-size: var(--text-2xl); }

.display-massive {
    font-size: clamp(4rem, 12vw, var(--text-9xl));
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-electric) 0%, var(--color-hot-pink) 50%, var(--color-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--color-black);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-8);
}

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

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

/* ============================================
   HEADER - BOLD & MINIMAL
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s var(--ease-out);
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--color-light-gray);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) var(--space-8);
    max-width: var(--container);
    margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: -0.02em;
}

.site-logo-link {
    display: block;
    line-height: 0;
}

.site-logo-img {
    height: 50px;
    width: auto;
    max-width: 250px;
    display: block;
    transition: opacity 0.3s var(--ease-out);
}

.site-logo-img:hover {
    opacity: 0.8;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    height: 50px;
    width: auto;
    max-width: 250px;
    display: block;
}

.primary-nav {
    display: flex;
    align-items: center;
}

.primary-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-8);
    align-items: center;
    margin: 0;
}

.primary-nav a {
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--color-black);
    transition: color 0.2s var(--ease-out);
    position: relative;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-electric);
    transition: width 0.3s var(--ease-out);
}

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: var(--text-3xl);
    cursor: pointer;
    color: var(--color-black);
}

/* ============================================
   HERO - MASSIVE IMPACT
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--color-black);
    color: var(--color-white);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-16);
    max-width: 1200px;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--space-8);
    animation: slideUp 1s var(--ease-out);
}

.hero-tagline {
    font-size: var(--text-3xl);
    font-weight: 300;
    margin-bottom: var(--space-12);
    opacity: 0.9;
    animation: slideUp 1s 0.2s var(--ease-out) both;
}

.hero-cta {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 1s 0.4s var(--ease-out) both;
}

/* Animated background gradient */
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        var(--color-electric) 0%,
        var(--color-purple) 50%,
        var(--color-hot-pink) 100%);
    opacity: 0.9;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

/* ============================================
   BUTTONS - BOLD & CONFIDENT
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-6) var(--space-12);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-lime), var(--color-electric));
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-black);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.btn-electric {
    background: var(--color-electric);
    color: var(--color-white);
}

.btn-electric:hover {
    background: var(--color-electric-dark);
    transform: scale(1.05);
}

/* ============================================
   LOGO BAR - ABOVE THE FOLD
   ============================================ */
.logo-bar {
    background: var(--color-white);
    border-top: 1px solid var(--color-light-gray);
    border-bottom: 1px solid var(--color-light-gray);
    padding: var(--space-8) 0;
}

.logo-bar-label {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-gray);
    font-weight: 400;
    margin-bottom: var(--space-6);
}

.logo-bar-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--space-4);
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
}

.logo-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0.6;
    transition: all 0.3s var(--ease-out);
    padding: var(--space-2);
}

.logo-bar-item:hover {
    opacity: 1;
}

.client-logo-img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ============================================
   CASE STUDIES SECTION
   ============================================ */
.case-studies {
    background: var(--color-white);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-24);
    margin-top: var(--space-16);
}

.case-study-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Alternate layout for odd items */
.case-study-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.case-study-card:nth-child(even) .case-study-image {
    order: 2;
}

.case-study-card:nth-child(even) .case-study-content {
    order: 1;
}

.case-study-image {
    position: relative;
    min-height: 400px;
    background: var(--color-light-gray);
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.1);
}

.case-study-content {
    padding: var(--space-12);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-study-content h3 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3);
    color: var(--color-black);
}

.case-study-project {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-electric);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-study-content > p {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: var(--space-8);
}

.case-study-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.case-study-results li {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-4);
    padding-left: var(--space-8);
    position: relative;
}

.case-study-results li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-electric);
    font-weight: bold;
    font-size: var(--text-xl);
}

.case-study-results strong {
    color: var(--color-black);
    font-weight: 700;
}

/* ============================================
   WHY US SECTION - THE PITCH
   ============================================ */
.why-us {
    background: var(--color-off-white);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-24);
}

.section-subtitle {
    font-size: var(--text-2xl);
    color: var(--color-gray);
    font-weight: 400;
    max-width: 800px;
    margin: var(--space-6) auto 0;
    line-height: 1.5;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-12);
    margin-top: var(--space-16);
}

.why-card {
    padding: var(--space-12);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: all 0.4s var(--ease-out);
}

.why-card:hover {
    border-color: var(--color-electric);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.15);
}

.why-card h3 {
    margin-bottom: var(--space-6);
    font-size: var(--text-4xl);
}

.why-card p {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--color-gray);
}

/* ============================================
   SERVICES - GRID WITH PERSONALITY
   ============================================ */
.services {
    background: var(--color-black);
    color: var(--color-white);
}

.services .section-title h2 {
    color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.service-card {
    padding: var(--space-12);
    background: var(--color-near-black);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-electric);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 102, 255, 0.1),
        transparent);
    transition: width 0.6s var(--ease-out);
}

.service-card:hover::before {
    width: 100%;
}

.service-card:nth-child(1) { border-left-color: var(--color-electric); }
.service-card:nth-child(2) { border-left-color: var(--color-lime); }
.service-card:nth-child(3) { border-left-color: var(--color-hot-pink); }
.service-card:nth-child(4) { border-left-color: var(--color-orange); }
.service-card:nth-child(5) { border-left-color: var(--color-purple); }
.service-card:nth-child(6) { border-left-color: var(--color-electric); }

.service-card:hover {
    transform: translateX(8px);
}

.service-tagline {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-lime);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.service-card h3 {
    margin-bottom: var(--space-4);
    color: var(--color-white);
    font-size: var(--text-3xl);
}

.service-card p {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--color-gray);
}

/* ============================================
   CLIENTS - SIMPLE SHOWCASE
   ============================================ */
.clients {
    background: var(--color-white);
    text-align: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-16);
    margin-top: var(--space-24);
    align-items: center;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.3s var(--ease-out);
    filter: grayscale(100%);
}

.client-item:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%);
}

.client-item .client-logo-img {
    max-width: 220px;
    max-height: 80px;
}

/* ============================================
   PORTFOLIO - IMAGE HEAVY
   ============================================ */
.portfolio {
    background: var(--color-off-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.portfolio-item {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s var(--ease-out);
}

.portfolio-item:hover {
    transform: scale(1.03);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.15);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-12);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: var(--color-white);
    margin-bottom: var(--space-2);
    font-size: var(--text-3xl);
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-base);
}

/* ============================================
   CONTACT - BOLD CTA
   ============================================ */
.contact {
    background: linear-gradient(135deg, var(--color-electric) 0%, var(--color-purple) 100%);
    color: var(--color-white);
    text-align: center;
}

.contact h2 {
    color: var(--color-white);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--space-16);
    margin-top: var(--space-16);
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-item a {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-white);
    transition: transform 0.3s var(--ease-out);
    display: inline-block;
}

.contact-item a:hover {
    transform: scale(1.1);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-black);
    color: var(--color-gray);
    padding: var(--space-16) 0;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: var(--text-base);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .logo-bar-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --space-32: 4rem;
        --space-40: 6rem;
    }

    .menu-toggle {
        display: flex;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .primary-nav.active {
        display: block;
    }

    .primary-nav ul {
        flex-direction: column;
        padding: var(--space-6);
        gap: 0;
    }

    .primary-nav li {
        width: 100%;
        border-bottom: 1px solid var(--color-light-gray);
    }

    .primary-nav a {
        display: block;
        padding: var(--space-6);
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .logo-bar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-3);
    }

    .client-logo-img {
        max-height: 40px;
    }

    .case-study-card {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .case-study-card:nth-child(even) .case-study-image,
    .case-study-card:nth-child(even) .case-study-content {
        order: unset !important;
    }

    .case-study-image {
        min-height: 300px;
    }

    .case-study-content {
        padding: var(--space-8);
    }

    .case-study-content h3 {
        font-size: var(--text-3xl);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        font-size: var(--text-base);
        padding: var(--space-4) var(--space-8);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: var(--text-5xl);
    }

    .hero-tagline {
        font-size: var(--text-xl);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
