*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    padding: 8px 16px;
    background: var(--primary);
    /* color: white; */
    color: #071337;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.btn-primary:hover {
    background: #3a7aa8;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--muted-foreground);
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.btn:hover svg {
    transform: translateX(3px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    padding-top: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#canvas-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 720px;
    position: absolute;
    left: 50%;
    top: 100px;
    transform: translateX(-50%);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted-foreground);
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 0.7s;
}

.scroll-indicator div {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(140, 140, 140, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
}

.scroll-indicator div span {
    width: 4px;
    height: 8px;
    background: rgba(140, 140, 140, 0.5);
    border-radius: 2px;
    margin-top: 8px;
    animation: float 2s ease-in-out infinite;
}

section {
    padding: 96px 0;
}

.section-label {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 25px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--muted-foreground);
    font-size: 1.125rem;
}

.section-header {
    margin-bottom: 64px;
}

/* Services */
.services,
.cases {
    background: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(40px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    border-color: rgba(74, 144, 192, 0.3);
}

.service-card svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    margin-bottom: 16px;
    transition: transform 0.3s;
}

.service-card:hover svg {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Process */
.process {
    background: rgba(18, 18, 18, 0.5);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.process-step {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    background: #11141a;
    border: 1px solid var(--primary);
    padding: 25px;
    border-radius: 10%;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step .num {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffffa8;
    line-height: 1;
}

.process-step h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 16px 0 8px;
}

.process-step p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Cases */
.cases-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.case-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    opacity: 0;
    transform: translateX(-60px);
}

.case-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.case-item:nth-child(even) {
    transform: translateX(60px);
}

.case-item:nth-child(even).visible {
    transform: translateX(0);
}

.case-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(0.8);
    transition: filter 0.5s;
}

.case-image:hover img {
    filter: grayscale(0);
}

.case-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.case-content p,
.cases-footer p {
    color: var(--muted-foreground);
    margin-bottom: 16px;
}

.case-result {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 500;
}


.primary {
    color: var(--primary);
}

.case-result svg {
    width: 20px;
    height: 20px;
}

/* Testimonials */
.testimonials {
    background: rgba(18, 18, 18, 0.5);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    padding: 24px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(40px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card svg {
    width: 32px;
    height: 32px;
    color: rgba(74, 144, 192, 0.3);
    margin-bottom: 16px;
}

.testimonial-card blockquote {
    margin-bottom: 24px;
}

.testimonial-card .author {
    font-weight: 500;
}

.testimonial-card .company {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}


/* CTA */
.cta {
    text-align: center;
}

.cta-content {
    max-width: 720px;
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.9);
}

.cta-content.visible {
    opacity: 1;
    transform: scale(1);
}

.cta h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.cta p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 500px;
    margin: 0 auto 40px;
}

/* Footer */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
}


.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.footer-copyright {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Utility for scroll animations */
.animate-on-scroll {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-logo {
    width: 60px;
    margin-top: 5px;
    margin-left: 15px;
}

.nav-desktop {
    display: none;
}

.nav-desktop.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 65px;
    right: 0;
    background: #21242d;
    padding: 20px;
    width: 100%;
    left: 0;
    padding-right: 60px;
}

.white {
    color: white;
}