:root {
    --primary: #3713ec;
    --primary-hover: #2d10c2;
    --background-light: #f6f6f8;
    --background-dark: #0a0a0c;
    --surface-dark: #16151d;
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --border-light: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(55, 19, 236, 0.5);
    --font-main: 'Spline Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.5;
}

::selection {
    background-color: var(--primary);
    color: white;
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.max-w-7xl {
    max-width: 80rem;
    margin: auto;
}

.max-w-4xl {
    max-width: 56rem;
    margin: auto;
}

.max-w-xl {
    max-width: 36rem;
    margin: auto;
}

.py-24 {
    padding: 6rem 0;
}

.pt-8 {
    padding-top: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

.font-bold {
    font-weight: 700;
}

.text-slate-400 {
    color: var(--text-muted);
}

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

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

.bg-surface {
    background-color: var(--surface-dark);
}

.bg-background-dark {
    background-color: var(--background-dark);
}

.border-y {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.border-t {
    border-top: 1px solid var(--border-light);
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md-block {
        display: block;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

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

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

.btn-primary:active {
    transform: scale(0.95);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

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

.btn-white:hover {
    background-color: #f1f5f9;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
}

.btn-large.btn-primary:hover {
    box-shadow: 0 0 20px rgba(55, 19, 236, 0.4);
    transform: none;
    /* cancel scale */
}

/* Top Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 80rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon.small {
    width: 2rem;
    height: 2rem;
    background-color: rgba(55, 19, 236, 0.2);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.nav-links {
    display: none;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.2) 0%, rgba(10, 10, 12, 0.9) 100%);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 56rem;
    padding: 0 1.5rem;
}

.hero-subtitle {
    display: block;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    line-height: 1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 6rem;
    }
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.625;
}

@media (min-width: 768px) {
    .hero-desc {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.scroll-icon {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.875rem;
    opacity: 0.4;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 25%);
    }
}

/* Works Section */
.works-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .works-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.works-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.work-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--surface-dark);
    cursor: pointer;
}

.work-card.reel {
    aspect-ratio: 9 / 16;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}


.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.7s ease;
}

.work-card:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.work-overlay p {
    color: #cbd5e1;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.play-btn-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.work-card:hover .play-btn-overlay {
    opacity: 1;
}

.play-btn {
    width: 4rem;
    height: 4rem;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.work-card:hover .play-btn {
    transform: scale(1.1);
}

.play-btn .material-symbols-outlined {
    font-size: 1.875rem;
    color: white;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    padding: 2.5rem;
    border-radius: 1rem;
    transition: border-color 0.5s ease;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    border-color: var(--border-hover);
}

.service-card .icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(55, 19, 236, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
}

.service-card .icon-box span {
    color: var(--primary);
    transition: color 0.3s ease;
}

.service-card:hover .icon-box {
    background-color: var(--primary);
}

.service-card:hover .icon-box span {
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.service-list li span {
    color: var(--primary);
    font-size: 1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-left: auto;
        margin-right: auto;
    }
}

.about-image-col {
    position: relative;
    max-width: 36rem;
    margin: 0 auto;
}

.about-glow {
    position: absolute;
    inset: -1rem;
    background-color: rgba(55, 19, 236, 0.2);
    filter: blur(24px);
    border-radius: 9999px;
    z-index: 0;
}

.about-img {
    position: relative;
    z-index: 10;
    width: 100%;
    border-radius: 1rem;
    filter: grayscale(100%);
    transition: filter 0.7s ease;
}

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

.experience-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background-color: var(--primary);
    padding: 2rem;
    border-radius: 0.75rem;
    z-index: 20;
}

.exp-num {
    font-size: 2.25rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.exp-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.2rem;
}

.lead-text {
    font-size: 1.125rem;
    color: #cbd5e1;
    line-height: 1.625;
}

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

.stat-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-desc {
    color: var(--text-muted);
}

/* CTA */
.cta-heading {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .cta-heading {
        font-size: 3.75rem;
    }
}

.cta-subheading {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cta-actions {
        flex-direction: row;
    }
}

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

.icon-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.2s ease;
}

.icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-socials {
    display: flex;
    gap: 2rem;
    color: #64748b;
    font-size: 0.875rem;
}

.footer-socials a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: #475569;
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .footer-legal {
        margin-top: 0;
    }
}

/* Animations using JS / basic CSS classes */
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}