/* ==========================================================================
   Invigor Creative - Main Stylesheet
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
    --bg-dark: #1a1a1a;
    --bg-darker: #0f0f0f;
    --accent: #E8A33C;
    --accent-hover: #F5B74D;
    --white: #ffffff;
    --gray-light: #e5e5e5;
    --gray: #888888;
    --gray-dark: #333333;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--bg-darker);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(15,15,15,0.95), transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--white);
}

a.logo {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

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

.nav-links a:hover {
    color: var(--white);
}

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

.nav-cta {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.nav-cta-mobile {
    display: none;
}

.nav-cta-mobile-item {
    display: none;
}

.nav-cta-desktop {
    display: inline-block;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        /* Grid pattern */
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        /* Diagonal lines */
        repeating-linear-gradient(45deg, transparent, transparent 80px, rgba(232, 163, 60, 0.02) 80px, rgba(232, 163, 60, 0.02) 81px),
        repeating-linear-gradient(-45deg, transparent, transparent 80px, rgba(232, 163, 60, 0.015) 80px, rgba(232, 163, 60, 0.015) 81px),
        /* Radial gradient overlay */
        radial-gradient(circle at 20% 50%, rgba(232, 163, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(232, 163, 60, 0.03) 0%, transparent 50%),
        /* Base gradient */
        linear-gradient(135deg, rgba(26, 26, 26, 0.3) 0%, transparent 100%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    pointer-events: none;
    opacity: 0.6;
}

.hero-geometric {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    opacity: 0.12;
}

.hero-geometric svg {
    width: 100%;
    height: 100%;
    animation: float 8s ease-in-out infinite;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
}

.hero-title span {
    display: block;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
}

.hero-title span:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-title span:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-title span:nth-child(3) {
    animation-delay: 0.3s;
    color: var(--accent);
}

.hero-description {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(232, 163, 60, 0.3);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--white);
    padding: 1rem 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--gray-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar {
    display: flex;
    gap: 4rem;
    padding: 4rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--gray-dark);
    border-bottom: 1px solid var(--gray-dark);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
}

/* ==========================================================================
   Sections - General
   ========================================================================== */
section {
    padding: 8rem 4rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 0.02em;
    line-height: 1;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 500px;
}

.section-header .section-subtitle {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    background: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-darker);
    padding: 3rem;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    transition: all 0.4s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), #D4942B);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--bg-dark);
}

.service-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   Portfolio Section - Gallery Style
   ========================================================================== */
.portfolio {
    background: var(--bg-dark);
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    background: var(--bg-darker);
    overflow: hidden;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Gallery Image Wrapper */
.gallery-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-dark);
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.05);
}

/* Image Overlay for Design Screenshots */
.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(232, 163, 60, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.view-project {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--bg-dark);
    text-transform: uppercase;
    pointer-events: none;
}

/* Add cursor pointer to gallery items */
.gallery-item[data-type="design"] {
    cursor: pointer;
}

/* Before/After Slider */
.before-after-slider {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--gray-dark);
    overflow: hidden;
    cursor: ew-resize;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.before-image,
.after-image {
    position: absolute;
    inset: 0;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-image {
    z-index: 2;
    -webkit-clip-path: inset(0 50% 0 0);
    clip-path: inset(0 50% 0 0);
}

.after-image {
    z-index: 1;
}

/* Slider Handle */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--white);
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
}

.slider-handle svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Before/After Labels */
.ba-labels {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    pointer-events: none;
    z-index: 5;
}

.ba-label {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.ba-label.ba-before {
    background: rgba(0, 0, 0, 0.8);
}

.ba-label.ba-after {
    background: rgba(232, 163, 60, 0.9);
    color: var(--bg-dark);
}

/* Gallery Caption */
.gallery-caption {
    padding: 1.5rem;
    background: var(--bg-darker);
}

.gallery-caption h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-type {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    background: rgba(232, 163, 60, 0.1);
    border: 1px solid rgba(232, 163, 60, 0.3);
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}

.project-type.tag-platform {
    color: var(--gray-light);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxZoom 0.4s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 3px solid var(--accent);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.lightbox-caption {
    margin-top: 2rem;
    text-align: center;
}

.lightbox-caption h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.lightbox-caption .project-type {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.35rem 1rem;
    background: rgba(232, 163, 60, 0.15);
    border: 1px solid rgba(232, 163, 60, 0.4);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   Portfolio View More Button
   ========================================================================== */
.portfolio-view-more {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-more {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-view-more:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 163, 60, 0.3);
}

/* Hidden gallery items */
.gallery-item-hidden {
    display: none;
}

.gallery-item-hidden.show {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Process Section - Redesigned Grid
   ========================================================================== */
.process {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/images/process-bg.jpg') center center / cover no-repeat;
    opacity: 0.08;
    filter: grayscale(100%);
}

.process::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 15%, transparent 85%, var(--bg-dark) 100%);
    pointer-events: none;
}

.process > * {
    position: relative;
    z-index: 1;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.process-step {
    background: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border: 1px solid var(--gray-dark);
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.process-step:hover::before {
    transform: scaleX(1);
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.step-icon-container {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(232, 163, 60, 0.1), rgba(232, 163, 60, 0.05));
    border: 2px solid rgba(232, 163, 60, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: all 0.4s ease;
}

.process-step:hover .step-icon-container {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(5deg) scale(1.1);
}

.step-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    transition: all 0.4s ease;
}

.process-step:hover .step-icon {
    color: var(--bg-dark);
    transform: scale(1.1);
}

.step-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    opacity: 0.3;
    transition: all 0.4s ease;
}

.process-step:hover .step-number {
    opacity: 0.6;
}

.step-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    transition: color 0.4s ease;
}

.process-step:hover .step-title {
    color: var(--accent);
}

.step-description {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
    background: var(--bg-darker);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-dark);
    padding: 3rem;
    position: relative;
    border-left: 3px solid var(--accent);
}

.testimonial-quote {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--gray-light);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    color: var(--bg-dark);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
    background: linear-gradient(135deg, var(--accent), #D4942B);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta .section-title {
    color: var(--bg-dark);
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.25rem;
    color: var(--bg-dark);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.cta .btn-primary {
    background: var(--bg-dark);
    color: var(--white);
}

.cta .btn-primary:hover {
    background: var(--bg-darker);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--bg-darker);
    padding: 4rem;
    border-top: 1px solid var(--gray-dark);
}

.footer-content {
    display: flex;
    align-items: flex-start;
    gap: 6rem;
    margin-bottom: 4rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand {
    flex: 1;
    max-width: 500px;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1.5rem;
}

.footer-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-dark);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.85rem;
}

.footer-bottom .legal-entity {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* ==========================================================================
   Partner Badges
   ========================================================================== */
.partner-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid var(--gray-dark);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.partner-badges-container {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-dark);
    flex-wrap: wrap;
}

.partner-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-dark);
}

.partner-badge.shopify-partner {
    color: var(--accent);
}

.partner-badge.wix-partner {
    color: var(--accent);
}

.partner-badge svg {
    opacity: 0.9;
}

.platform-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.platform-label {
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.platform-name {
    color: var(--gray-light);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--gray-dark);
    transition: all 0.3s ease;
}

.platform-name:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================================================
   Intake Form Section
   ========================================================================== */
.intake-form-section {
    background: var(--bg-darker);
    padding: 8rem 4rem;
}

/* Standalone intake page styles */
.intake-form-section.intake-page {
    min-height: 100vh;
    padding-top: 10rem;
}

.intake-intro {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 1.5rem auto 0;
    text-align: center;
}

.intake-footer {
    background: var(--bg-darker);
    padding: 2rem 4rem;
    border-top: 1px solid var(--gray-dark);
}

.intake-footer .footer-bottom {
    border-top: none;
    padding-top: 0;
}

.intake-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-dark);
    padding: 3rem;
    border: 1px solid var(--gray-dark);
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}

/* Form Steps Indicator */
.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--gray-dark);
    z-index: 0;
}

.form-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--bg-darker);
    border: 2px solid var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    color: var(--gray);
    transition: all 0.3s ease;
}

.form-step-indicator.active .step-num,
.form-step-indicator.completed .step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray);
    transition: color 0.3s ease;
}

.form-step-indicator.active .step-label {
    color: var(--accent);
}

/* Form Step Content */
.form-step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-light);
}

.form-group .required {
    color: var(--accent);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--gray-dark);
    color: var(--white);
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 163, 60, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--white);
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    background: var(--bg-darker);
    border: 1px solid var(--gray-dark);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.checkbox-label:hover {
    border-color: var(--accent);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: 2px solid var(--gray);
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    top: 2px;
    margin-right: 0.4rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid var(--bg-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-label input[type="checkbox"]:checked ~ * {
    color: var(--white);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-dark);
}

.btn-form-prev {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--gray-dark);
    color: var(--gray-light);
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-form-prev:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-form-next,
.btn-form-submit {
    margin-left: auto;
}

/* Form Success State */
.form-success {
    text-align: center;
    padding: 3rem;
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-icon svg {
    color: var(--accent);
}

.form-success h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--white);
}

.form-success p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background: var(--bg-dark);
    padding: 8rem 4rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding-right: 2rem;
}

.contact-description {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-light);
    font-size: 1rem;
}

.contact-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-darker);
    padding: 2.5rem;
    border: 1px solid var(--gray-dark);
}

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    nav {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        border-left: 2px solid var(--accent);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.4s ease;
        z-index: 999;
        visibility: hidden;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
    }

    .nav-cta-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
        position: relative;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    section,
    .hero,
    .stats-bar,
    footer {
        padding: 4rem 2rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 5rem);
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .stat-item {
        flex: 1 1 45%;
    }

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

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

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

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-column {
        width: 100%;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    /* Forms responsive */
    .intake-form-section,
    .contact-section {
        padding: 4rem 2rem;
    }

    .intake-form-section.intake-page {
        padding-top: 8rem;
    }

    .intake-form-container {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        padding-right: 0;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .partner-badges {
        flex-direction: column;
        text-align: center;
    }

    .platform-logos {
        justify-content: center;
    }

    /* Forms mobile */
    .form-steps::before {
        left: 40px;
        right: 40px;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .step-num {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-form-prev {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .btn-form-next,
    .btn-form-submit {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
