/* Plus Jakarta Sans is bundled locally so the site works without internet */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-800.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f4fd 0%, #e0eafc 100%);
    color: #1a1a2e;
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: #2b3467;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #5c6bc0;
}

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5rem 5%;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #111827;
}

.hero-text p {
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background: #5c6bc0;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px; 
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(92, 107, 192, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #3f51b5;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(92, 107, 192, 0.4);
}

.hero-image-mockup {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
}

.dashboard-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    width: 100%;
    max-width: 650px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.dash-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab {
    background: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tab.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.dash-icons .icon {
    background: rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-gap: 1rem;
}

.dash-card {
    background: white;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.primary-emo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #fffbd4 100%);
}

.primary-emo h2 {
    font-size: 1.8rem;
    color: #0f172a;
}

.primary-emo .percent {
    font-size: 1.2rem;
    font-weight: 600;
    color: #475569;
}

.emoji-big {
    font-size: 4rem;
    line-height: 1;
}

.bars-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 80px;
    margin-top: 1rem;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bar-col p {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
}

.bar-bg {
    width: 20px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: flex-end;
}

.bar-fill {
    width: 100%;
    border-radius: 10px;
}

.bar-fill.yellow { background: #fbbf24; }
.bar-fill.blue { background: #3b82f6; }
.bar-fill.red { background: #ef4444; }
.bar-fill.grey { background: #94a3b8; }

.camera-area {
    grid-column: 1 / 2;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.cam-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.4);
    color: white;
    padding: 0.3rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.face-scanner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 140px;
    border: 3px solid #8b5cf6;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.dash-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history .skeleton-line {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.history .skeleton-line.short {
    width: 60%;
}

.suggestion h3 {
    font-size: 1.1rem;
    color: #1e293b;
}

.emotions-container {
    padding: 3rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden; 
}

.text-center {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #111827;
}

.emotion-filters {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.filter {
    padding: 0.6rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter:hover {
    color: #5c6bc0;
}

.filter.active {
    background: #5c6bc0;
    color: white;
    box-shadow: 0 4px 10px rgba(92, 107, 192, 0.3);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.emo-card {
    position: absolute;
    width: 280px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    background: #000;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                filter 0.6s ease, box-shadow 0.6s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    filter: grayscale(100%) brightness(50%);
}

.emo-card.active {
    filter: grayscale(0%) brightness(100%);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    cursor: pointer;
}

.emo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
}

.emo-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.emo-info p {
    font-size: 0.8rem;
    color: #cbd5e1;
    opacity: 0; 
    transition: opacity 0.5s;
}

.emo-card.active .emo-info p {
    opacity: 1; 
}

.detect-container {
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
}

.full-width {
    max-width: 900px;
    width: 100%;
}

.detect-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.live-camera-area {
    position: relative;
    height: 400px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#webcam {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    border-radius: 16px;
}

.result-area h2 {
    font-size: 2.5rem;
    color: #5c6bc0;
    margin: 1rem 0;
}

.meme-placeholder {
    width: 100%;
    height: 150px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 1rem;
}

.bg-light {
    background-color: #f3f4f6;
}

.app-container {
    display: flex;
    justify-content: center;
    padding: 2rem 5%;
}


.app-card {
    background: #ffffff;
    width: 100%;
    max-width: 800px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.app-hero {
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.top-icons {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-gradient {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 2rem;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: 2rem;
}

.hero-text {
    color: white;
    flex: 1;
}

.tags {
    margin-bottom: 0.8rem;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
    text-transform: uppercase;
    color: white;
}

.title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.brand-badge {
    background: #fdf2f8;
    color: #111827;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-weight: 700;
}

.intensity strong {
    color: #fcd34d;
}

.floating-widget {
    background: #1f2937;
    padding: 1rem;
    border-radius: 16px;
    width: 180px;
    color: white;
    text-align: center;
}

.widget-image img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.8rem;
}

.floating-widget h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.btn-shop {
    color: #fcd34d;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
}

.explore-section {
    padding: 2rem;
    background: white;
}

.explore-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.explore-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
}

.explore-header span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
}

.emotion-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.emo-item {
    text-decoration: none;
    color: #111827;
    flex: 0 0 100px;
}

.emo-item img {
   width: 100px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    background-color: #e2e8f0;
    display: block;
}

.emo-item:hover img {
    transform: scale(1.05);
}

.emo-item p {
    font-size: 0.8rem;
    font-weight: 700;
}

.emo-item span {
    font-weight: 400;
    color: #6b7280;
}

.nav-links a.active {
    color: #5c6bc0;
}

.nav-toggle {
    display: none;
    background: white;
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    color: #2b3467;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.app-card-padded {
    padding: 50px;
    text-align: center;
}

.site-footer {
    padding: 1rem 5% 3rem;
}

.footer-inner {
    border-top: 1px solid rgba(43, 52, 103, 0.12);
    padding-top: 2rem;
}

.footer-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.footer-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: block;
    width: auto;
    height: 60px;
}

.footer-logo.logo-ftmm {
    height: 42px;
}

.footer-divider {
    width: 1px;
    height: 52px;
    background: rgba(43, 52, 103, 0.18);
}

.app-card-padded h1 {
    font-size: 2.5rem;
}

@media (max-width: 960px) {
    .hero-section {
        flex-direction: column;
        align-items: stretch;
        padding: 3rem 5%;
    }

    .hero-image-mockup {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 1.25rem 16px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-top: 1rem;
        padding: 0.5rem;
        background: white;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 10px;
    }

    .nav-links a.active {
        background: #eef0fb;
    }

    .hero-section {
        padding: 2rem 16px 3rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }

    .dash-grid > .dash-card {
        grid-column: auto;
        grid-row: auto;
    }

    .app-container {
        padding: 1rem 16px 2rem;
    }

    .app-card-padded {
        padding: 32px 20px;
    }

    .app-card-padded h1 {
        font-size: 1.9rem;
    }

    .app-hero {
        height: 360px;
    }

    .hero-gradient {
        padding: 1.5rem;
    }

    .title {
        font-size: 2rem;
    }

    .explore-section {
        padding: 1.5rem;
    }

    .emotions-container {
        padding: 2rem 16px;
    }

    .text-center {
        font-size: 1.8rem;
    }

    .emotion-filters {
        border-radius: 20px;
        gap: 0.3rem;
        margin-bottom: 2.5rem;
    }

    .filter {
        padding: 0.5rem 1rem;
    }

    .carousel-container {
        height: 380px;
    }

    .emo-card {
        width: 210px;
        height: 300px;
    }

    .site-footer {
        padding: 0.5rem 16px 2.5rem;
    }

    .footer-logos {
        gap: 1.25rem;
    }

    .footer-logo {
        height: 46px;
    }

    .footer-logo.logo-ftmm {
        height: 32px;
    }

    .footer-divider {
        height: 40px;
    }
}
