:root {
    --bg-black: #000000;
    --text-white: #ffffff;
    --text-grey: #8e8e93;
    --accent-pink: #ff3399;
    --accent-purple: #7c3aed;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-header: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

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

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Cinematic Background */
.background-cinema {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-image.active {
    opacity: 1;
}

.bg-mobile {
    display: none;
}

@media (max-width: 768px) {
    .bg-desktop {
        display: none;
    }

    .bg-mobile {
        display: block;
    }
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 100%);
}

@media (max-width: 768px) {
    .bg-image {
        object-position: 70% center;
    }

    .overlay-gradient {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.9) 100%);
    }
}

/* Navigation */
.minimal-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.logo span span {
    color: var(--accent-pink);
}

.nav-items {
    display: flex;
    gap: 3rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-items a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 51, 153, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(255, 51, 153, 0.3);
    box-shadow: 0 0 15px rgba(255, 51, 153, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
}

.nav-items a:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255, 51, 153, 0.25), rgba(124, 58, 237, 0.25));
    border-color: rgba(255, 51, 153, 0.6);
    box-shadow: 0 4px 20px rgba(255, 51, 153, 0.4);
    color: #fff;
}

.nav-btn {
    font-family: var(--font-body);
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background 0.2s, color 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Content Area */
.content-cinema {
    padding-top: 25vh;
}

.hero-tv {
    padding: 1rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    max-width: 700px;
}

.tagline {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-grey);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.title {
    font-family: var(--font-header);
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.title span {
    color: var(--accent-pink);
}

.description {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-grey);
    margin-bottom: 0;
    line-height: 1.55;
    font-weight: 400;
}

.actions {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn.primary {
    background: #fff;
    color: #000;
}

.btn.secondary {
    background: var(--glass);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.btn:hover {
    transform: scale(1.07);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Apple TV-style Carousel */
.carousel-section {
    padding: 1rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.carousel-heading {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.carousel-arrow {
    color: var(--text-grey);
    font-weight: 400;
}

.carousel-track {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 auto;
    min-width: 320px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.carousel-card:hover {
    transform: scale(1.03);
}

.carousel-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.carousel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.carousel-card:hover .carousel-card-image img {
    transform: scale(1.08);
}

.carousel-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 50%);
    pointer-events: none;
}

.carousel-card-rank {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.25rem;
}

.carousel-card-caption h3 {
    font-family: var(--font-header);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.carousel-card-caption p {
    font-size: 0.9rem;
    color: var(--text-grey);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Full Stack & Databases (grid, no carousel) */
.tech-stack-section {
    padding: 1rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tech-stack-heading {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.tech-stack-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
}

.tech-stack-card .tech-logo {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.tech-stack-card .tech-card-content {
    flex: 1;
    min-width: 0;
}

.tech-stack-card .tech-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tech-stack-card .tech-desc {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-grey);
    line-height: 1.35;
    margin: 0;
}

.tech-stack-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tech-stack-card:hover .tech-logo {
    transform: scale(1.08);
}

/* Bento Grid */
.grid-section {
    padding: 1rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1.5rem;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
}

.main-feature {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-feature h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background 0.3s;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.12);
}

.stat .value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-pink);
}

.stat .label {
    font-size: 0.9rem;
    color: var(--text-grey);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Final CTA */
.final-cta {
    padding: 1rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cta-box {
    text-align: center;
    padding: 2.5rem 2rem;
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-header);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.cta-box p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-grey);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.cta-box .actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cta-box-mobile {
    max-width: 100%;
}

.cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
}

.cta-actions .btn {
    min-height: 40px;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

/* Footer Refinement */
.minimal-footer {
    padding: 1rem 4rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: rgba(0, 0, 0, 0.95);
}

.footer-sub {
    margin-top: 0.5rem;
    opacity: 0.5;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.footer-keywords {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-grey);
    opacity: 0.85;
    line-height: 1.5;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
        flex-wrap: wrap; /* Allow the nav items to drop to next line */
    }

    .container {
        padding: 0 2rem;
    }

    .tech-section {
        padding: 1rem 2rem;
    }

    .hero-tv {
        padding: 0 2rem;
    }

    .carousel-section {
        padding: 1rem 2rem;
    }

    .carousel-card {
        min-width: 280px;
        max-width: 340px;
    }

    .grid-section {
        padding: 1rem 2rem;
    }

    .final-cta {
        padding: 1rem 2rem;
    }

    .nav-items {
        width: 100%;
        justify-content: center;
        order: 3;
        margin-top: 0.75rem;
    }
    
    .nav-items a {
        font-size: 0.85rem;
        padding: 0.4rem 1.25rem;
    }

    .title {
        font-size: 3rem;
        font-weight: 600;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .main-feature {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .content-cinema {
        padding-top: 15vh;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .title {
        font-size: 2.25rem;
        font-weight: 600;
    }

    .description {
        font-size: 1rem;
    }

    .carousel-section {
        padding: 1rem 1.25rem;
    }

    .carousel-heading {
        font-size: 1.25rem;
        padding-right: 0.5rem;
    }

    .carousel-track {
        padding-right: 1.25rem;
    }

    .carousel-card {
        min-width: 200px;
        max-width: 240px;
    }

    .carousel-card-image {
        height: 140px;
    }

    .carousel-card-caption {
        padding: 1rem 1rem;
    }

    .carousel-card-caption h3 {
        font-size: 1rem;
    }

    .carousel-card-caption p {
        font-size: 0.8rem;
    }

    .carousel-card-rank {
        font-size: 1.5rem;
        top: 0.6rem;
        left: 0.6rem;
    }

    /* CTA mobile responsive (3rd screenshot) */
    .final-cta {
        padding: 1rem 1.25rem;
    }

    .cta-box {
        padding: 1.5rem 1.25rem;
    }

    .cta-box h2 {
        font-size: 1.75rem;
        line-height: 1.25;
        margin-bottom: 0.5rem;
    }

    .cta-box p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .cta-box .actions,
    .cta-actions {
        flex-direction: row;
        gap: 0.6rem;
    }

    .cta-actions .btn {
        width: auto;
        min-height: 40px;
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .tech-stack-section {
        padding: 1rem 1.25rem;
    }

    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .tech-stack-card {
        padding: 0.85rem 1rem;
        gap: 0.6rem;
    }

    .tech-stack-card .tech-logo {
        width: 28px;
        height: 28px;
    }

    .tech-stack-card .tech-name {
        font-size: 0.9rem;
    }

    .tech-stack-card .tech-desc {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.875rem;
        font-weight: 600;
    }

    .tagline {
        font-size: 0.75rem;
        letter-spacing: 0.15em;
    }

    .carousel-heading {
        font-size: 1.15rem;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .cta-box {
        padding: 1.25rem 1rem;
    }

    .final-cta {
        padding: 1rem;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Tech Stack Section */
.tech-section {
    padding: 1rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tech-title {
    font-family: var(--font-header);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-grey);
    text-align: center;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.tech-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-white);
}

.tech-pill:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Fixed mobile contact bar - visible only on mobile */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .mobile-contact-bar {
        display: flex;
        justify-content: center;
        align-items: stretch;
    }

    .content-cinema {
        padding-bottom: 5rem;
    }

    .minimal-footer {
        padding: 1rem 1.25rem 5rem;
    }
}

.mobile-contact-btn {
    flex: 1;
    max-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-contact-btn:active {
    transform: scale(0.98);
}

.mobile-contact-btn.call-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.mobile-contact-btn.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.mobile-contact-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* WhatsApp lead form modal */
.whatsapp-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.whatsapp-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.whatsapp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
}

.whatsapp-modal-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(28, 28, 30, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.whatsapp-modal-title {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.whatsapp-modal-desc {
    font-size: 0.875rem;
    color: var(--text-grey);
    margin-bottom: 1.25rem;
}

.whatsapp-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-grey);
    margin-bottom: 0.35rem;
}

.whatsapp-form input,
.whatsapp-form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    outline: none;
}

.whatsapp-form input::placeholder,
.whatsapp-form textarea::placeholder {
    color: var(--text-grey);
    opacity: 0.8;
}

.whatsapp-form input:focus,
.whatsapp-form textarea:focus {
    border-color: var(--accent-pink);
}

.whatsapp-form .whatsapp-submit {
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.whatsapp-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-grey);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}

.whatsapp-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}