:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-cyan: #00f0ff;
    --accent-violet: #bd00ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(255, 255, 255, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-cta {
    display: inline-block;
    padding: 16px 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bg-color);
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 30px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(189, 0, 255, 0.5);
}

/* Header / Hero */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
}

/* Background effects */
header::before,
header::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.15;
}

header::before {
    top: -20%;
    left: -10%;
    background: var(--accent-violet);
}

header::after {
    bottom: -20%;
    right: -10%;
    background: var(--accent-cyan);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content h2 {
        font-size: 1.1rem;
    }
}

/* Services */
.section-title {
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.service-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.8rem;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.1);
}

/* Before/After Slider */
.ba-slider-container {
    position: relative;
    width: 100%;
    height: 250px;
    /* Reduced height for better card fit */
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    /* Rounded top only if used as image */
    border-bottom: 1px solid var(--glass-border);
    background: #000;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 3px solid var(--accent-cyan);
    z-index: 10;
    will-change: width;
}

/* FIX: Ensure the overlay image maintains aspect ratio and position */
.ba-image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* This tricks the image to behave relative to the container, not the overlay width */
    width: calc(100% * (100/50));
    /* This serves as a placeholder, logic handled in JS or using container width */
    max-width: unset;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: ew-resize;
    /* Cursor adjusted */
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    pointer-events: none;
    /* Let clicks pass to range input */
}

.ba-handle i {
    color: #000;
    font-size: 14px;
}

input[type="range"].slider-range {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 30;
    cursor: ew-resize;
    margin: 0;
    background: transparent;
}

/* Portfolio / Clients */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 9/16;
    border: 4px solid #1a1a1a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 2;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 30px 20px 20px;
}

.client-label {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.client-desc {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Process */
.process-steps {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    width: 250px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--accent-violet);
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.1);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    text-align: center;
    padding: 60px 0;
    color: var(--text-secondary);
    background: #050505;
}