/* VARIABLES & BASE STYLES */
:root {
    --bg-cream: #FEF3E2;
    --accent-yellow: #FAB12F;
    --primary-orange: #FA812F;
    --highlight-red: #DD0303;
    --text-dark: #2D2D2D;
    --white: #ffffff;
    --navbar-bg: rgba(255, 255, 255, 0.85);

    --nav-height: 80px;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body.dark-mode {
    --bg-cream: #1a1a1a;
    --text-dark: #f4f4f4;
    --white: #2c2c2c;
    --navbar-bg: rgba(44, 44, 44, 0.95);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    min-height: 100vh;
    padding-top: var(--nav-height);
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .logo img {
    height: 52px;
    width: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--highlight-red);
    transition: all 0.4s ease;
}

.navbar .logo img:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 0 25px rgba(221, 3, 3, 0.6);
    border-color: var(--primary-orange);
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--primary-orange));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-orange);
    background: rgba(250, 129, 47, 0.12);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 70%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn,
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1.4rem;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-btn:hover,
.hamburger:hover {
    background: rgba(250, 129, 47, 0.15);
    color: var(--primary-orange);
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 3px;
    transition: all 0.4s ease;
}

/* THEME TOGGLE */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.checkbox {
    opacity: 0;
    position: absolute;
}

.checkbox-label {
    background-color: #111;
    width: 54px;
    height: 28px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.fa-moon {
    color: #f1c40f;
    font-size: 14px;
}

.fa-sun {
    color: #f39c12;
    font-size: 14px;
}

.checkbox-label .ball {
    background-color: #fff;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 1px;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

body:not(.dark-mode) .checkbox-label .ball {
    transform: translateX(0px);
}

body.dark-mode .checkbox-label .ball {
    transform: translateX(26px);
}

body.dark-mode .checkbox-label {
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-toggle-item {
    display: none;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: calc(100vh - var(--nav-height));
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/b19.jpeg') center/cover no-repeat;
    filter: brightness(0.38);
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(250, 129, 47, 0.25));
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.9s ease forwards 0.2s;
    opacity: 0;
    transform: translateY(40px);
}

.hero-subtitle {
    font-size: 1.35rem;
    max-width: 90%;
    margin-bottom: 40px;
    opacity: 0;
    animation: slideUp 0.9s ease forwards 0.5s;
    transform: translateY(40px);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: slideUp 0.9s ease forwards 0.7s;
    transform: translateY(40px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 16px 42px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.4s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--highlight-red));
    color: white;
    box-shadow: 0 10px 25px rgba(250, 129, 47, 0.4);
}

.btn-primary:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 40px rgba(221, 3, 3, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
}

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

/* CAROUSEL SECTION */
.carousel-section {
    max-width: 1480px;
    margin: 80px auto;
    padding: 0 5%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.trending-title {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-orange), var(--highlight-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.trending-title .fire-emoji {
    font-size: 4.2rem;
    -webkit-text-fill-color: var(--primary-orange);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.carousel-container-relative {
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: 440px;
    aspect-ratio: 4 / 5;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transition: all 0.5s ease;
    cursor: pointer;
}

.slide-card:hover {
    transform: translateY(-20px) scale(1.04);
    box-shadow: 0 30px 60px rgba(250, 129, 47, 0.25);
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.slide-card:hover .slide-image {
    transform: scale(1.15);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.85));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.slide-card:hover .slide-overlay,
.slide-card.active .slide-overlay {
    opacity: 1;
}

.card-top-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.card-details {
    display: flex;
    gap: 20px;
    font-size: 1rem;
    font-weight: 600;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item svg {
    width: 20px;
    height: 20px;
}

.detail-item.rating {
    color: #FFD700;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s ease;
}

.nav-arrow:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 15px 40px rgba(250, 129, 47, 0.4);
}

.left-arrow {
    left: -32px;
}

.right-arrow {
    right: -32px;
}

body.dark-mode .slide-card {
    background: #2a2a2a;
}

body.dark-mode .nav-arrow {
    background: #333;
    color: white;
}

@media (max-width: 1024px) {
    .slide-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--navbar-bg);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .nav-links.open {
        max-height: 500px;
    }

    .nav-links a {
        padding: 18px;
        text-align: center;
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-toggle-item {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 15px 0;
    }

    .desktop-toggle {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
        text-align: center;
    }

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

    .hero-buttons {
        flex-direction: column;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .trending-title {
        font-size: 2.6rem;
    }

    .trending-title .fire-emoji {
        font-size: 3rem;
    }

    .slide-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0;
    }

    .slide-card:hover {
        transform: none;
    }

    .slide-overlay {
        opacity: 1;
        padding: 25px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .nav-arrow {
        width: 48px;
        height: 48px;
    }

    .left-arrow {
        left: 10px;
    }

    .right-arrow {
        right: 10px;
    }
}

/* FEATURES SECTION */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.card p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(250, 129, 47, 0.15);
}

.card:hover .card-icon {
    transform: scale(1.08);
}

.card:hover h3 {
    color: var(--primary-orange);
    transition: color 0.3s ease;
}

body.dark-mode .card {
    background: #242424;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .card p {
    color: #aaa;
}

body.dark-mode .card h3 {
    color: #fff;
}

@media (max-width: 768px) {
    .features {
        flex-direction: column;
        padding: 40px 20px;
    }

    .card {
        margin-bottom: 20px;
        padding: 30px 20px;
    }

    .card:hover {
        transform: none;
    }
}

/* FOOTER */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding-top: 60px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-orange);
}

.footer-desc {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-orange);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.playstore-btn {
    display: inline-flex;
    align-items: center;
    background: #000;
    border: 1px solid #444;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    gap: 12px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.playstore-btn i {
    font-size: 24px;
}

.playstore-btn .btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.playstore-btn .btn-text span:first-child {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
}

.playstore-btn .store-name {
    font-size: 16px;
    font-weight: 700;
    font-family: sans-serif;
}

.playstore-btn:hover {
    background: #333;
    border-color: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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