:root {
    --bg-color: #050505;
    --card-bg: #0a0f1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --border-color: #1f2937;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    /* Subtle grid background */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-white {
    background: var(--text-primary);
    color: var(--bg-color);
    margin-top: 20px;
}

/* Hero */
.hero {
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text .highlight {
    background: linear-gradient(90deg, #a0c4ff, #c4a0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback */
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 400px;
    margin-bottom: 30px;
}

.hero-tags span {
    display: block;
    color: var(--accent-blue);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

#hero-canvas-container {
    height: 400px;
    width: 100%;
    /* Placeholder for canvas */
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

/* Stats */
.stats {
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-blue);
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Sections */
section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.services,
.process,
.work,
.reviews,
.faq {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Services (Horizontal Accordion) */
.services-container {
    display: flex;
    gap: 20px;
    height: 500px;
    /* Fixed height for consistency */
    width: 100%;
}

.service-card {
    background: #fff;
    /* Default inactive bg */
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    flex: 1;
    /* All items start with flex 1 */
    color: #000;
    /* Inactive text color, vertical label */
}

.service-card.active {
    flex: 3;
    /* Active item takes more space */
    background: #0d1238;
    /* Active Dark Blue */
    color: #fff;
    cursor: default;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    opacity: 0;
    /* Hidden by default in inactive state */
    transition: opacity 0.3s;
    height: 0;
    /* Collapse header space in inactive */
}

.service-card.active .service-header {
    opacity: 1;
    height: auto;
    margin-bottom: 20px;
}

.service-header h3 {
    font-size: 2rem;
    line-height: 1.2;
    max-width: 70%;
}

.toggle-dot {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
}

.service-details {
    opacity: 0;
    transition: opacity 0.3s delay 0.2s;
    display: none;
}

.service-card.active .service-details {
    opacity: 1;
    display: block;
}

.service-details ul {
    list-style: none;
    margin-top: 15px;
}

.service-details li {
    padding: 5px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 15px;
}

.service-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* Vertical Label for Inactive State */
.vertical-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d1238;
    opacity: 1;
    transition: opacity 0.3s;
}

.service-card.active .vertical-label {
    opacity: 0;
    pointer-events: none;
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    padding-top: 40px;
    /* Space for the line */
}

/* Connecting Line */
.process-line {
    grid-column: 1 / -1;
    height: 1px;
    background: repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.2) 0,
            rgba(255, 255, 255, 0.2) 10px,
            transparent 10px,
            transparent 20px);
    position: absolute;
    top: 20px;
    left: 12.5%;
    /* Center of first item (1/8th) */
    right: 12.5%;
    /* Center of last item */
    z-index: 1;
}

/* Dots on the line */
.step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    /* 20px bottom margin connects to number */
    border: 4px solid var(--bg-color);
    /* Cutout effect */
    position: absolute;
    top: -26px;
    /* Align with .process-line top: 20px approx */
    left: 50%;
    transform: translateX(-50%);
}

.step {
    text-align: center;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.step h4 {
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Work */
.work-filters {
    margin-bottom: 30px;
    gap: 10px;
    display: flex;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.work-item {
    aspect-ratio: 16/9;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.work-item:hover img {
    opacity: 1;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    background: transparent;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
}

.review-card.mini-review {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.review-card strong {
    color: #fff;
    font-weight: 600;
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Faq */
.faq-list {
    max-width: 600px;
    margin-left: auto;
    /* Align to right/center as per design if needed, or adjust structure */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #fff;
    border-radius: 20px;
    /* Slightly less rounded to handle content gracefully, or keep 50px if content fits */
    padding: 0;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px 30px;
    /* Increased padding for calming feel */
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.toggle-icon {
    width: 30px;
    height: 30px;
    background: #0a0f6e;
    border-radius: 50%;
    position: relative;
    transition: transform 0.4s ease;
    /* Smooth rotation */
    flex-shrink: 0;
}

.toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
}

/* Active State for Icon */
.faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    color: #555;
    max-height: 0;
    /* Hidden by default */
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
}

.faq-item.active .faq-answer {
    padding-bottom: 30px;
    max-height: 200px;
    /* Approximate max height */
    opacity: 1;
}

/* Footer */
footer.main-footer {
    padding-bottom: 40px;
    background: transparent;
}

.footer-card {
    background: #0d1238;
    /* Deep blue footer bg */
    border-radius: 20px;
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 40px;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    /* Align capture to left/top or center? Design shows specific spot */
}

.email-capture {
    background: #fff;
    border-radius: 50px;
    padding: 5px;
    display: flex;
    width: 300px;
    margin-bottom: 20px;
}

.email-capture input {
    border: none;
    outline: none;
    padding: 10px 15px;
    border-radius: 50px;
    flex: 1;
}

.email-capture button {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

.footer-brand {
    font-size: 6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    text-align: center;
    text-transform: uppercase;
    line-height: 1;
    width: 100%;
    position: absolute;
    bottom: 20px;
    left: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects Polish */
.stat-card:hover,
.review-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {

    .hero-content,
    .stats-grid,
    .services-wrapper,
    .process-steps,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}