@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap");

:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --accent-color: #f97316;
    --text-color: #FFFFFFDD;
    --bg-dark: #0f172a;
    --bg-darker: #0a1628;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    font-family: "Inter", sans-serif;
    width: 100%;
    height: 100%;
    height: 100dvh; /* Dynamic viewport height for mobile */
    max-height: 100dvh;
}

/* ========== CARDS ========== */
.card {
    position: absolute;
    left: 0;
    top: 0;
    background-position: center;
    background-size: cover;
    box-shadow: 6px 6px 10px 2px rgba(0, 0, 0, 0.6);
    max-height: 100dvh;
}

/* Dark overlay for better text readability */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

.card-content {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text-color);
    padding-left: 16px;
}

.content-place {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
}

.content-title-1,
.content-title-2 {
    font-weight: 600;
    font-size: 20px;
    font-family: "Oswald", sans-serif;
}

.content-start {
    width: 30px;
    height: 5px;
    border-radius: 99px;
    background-color: var(--text-color);
}

/* ========== DETAILS SECTION ========== */
.details {
    z-index: 22;
    position: absolute;
    top: 240px;
    left: 60px;
}

.details .place-box {
    height: 46px;
    overflow: hidden;
}

.details .place-box .text {
    padding-top: 16px;
    font-size: 20px;
    position: relative;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.details .place-box .text:before {
    top: 0;
    left: 0;
    position: absolute;
    content: "";
    width: 30px;
    height: 4px;
    border-radius: 99px;
    background-color: var(--primary-color);
}

.details .title-1,
.details .title-2 {
    font-weight: 600;
    font-size: 72px;
    font-family: "Oswald", sans-serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
}

.details .title-box-1,
.details .title-box-2 {
    margin-top: 2px;
    height: 100px;
    overflow: hidden;
}

.details > .desc {
    margin-top: 16px;
    width: 500px;
    line-height: 1.6;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.4);
}

.details > .cta {
    width: 500px;
    margin-top: 24px;
    display: flex;
    align-items: center;
}

.details > .cta > .bookmark {
    border: none;
    background-color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 99px;
    color: white;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.details > .cta > .bookmark:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.details > .cta > .bookmark svg {
    width: 20px;
    height: 20px;
}

.details > .cta > .discover {
    border: 2px solid var(--primary-color);
    background-color: transparent;
    height: 40px;
    border-radius: 99px;
    color: #ffffff;
    padding: 8px 28px;
    font-size: 12px;
    margin-left: 16px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.details > .cta > .discover:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* ========== NAVIGATION ========== */
nav {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 36px;
    font-weight: 500;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), transparent);
}

nav svg {
    width: 20px;
    height: 20px;
}

nav .svg-container {
    width: 20px;
    height: 20px;
}

nav .nav-left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

nav .logo-container {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav .logo-container svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

nav .logo-container .nav-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

nav .brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary-color), #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav .nav-right {
    display: inline-flex;
    align-items: center;
    gap: 28px;
}

nav .nav-link {
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
    color: var(--text-color);
}

nav .nav-link:hover {
    color: var(--primary-color);
}

nav .nav-link.active {
    color: var(--primary-color);
}

nav .nav-link.active:after {
    bottom: -8px;
    left: 0;
    right: 0;
    position: absolute;
    content: "";
    height: 3px;
    border-radius: 99px;
    background-color: var(--primary-color);
}

nav .search-icon {
    cursor: pointer;
    transition: color 0.3s ease;
}

nav .search-icon:hover {
    color: var(--primary-color);
}

nav .login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 99px;
    text-decoration: none;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

nav .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

nav .login-btn svg {
    width: 18px;
    height: 18px;
}

/* ========== INDICATOR ========== */
.indicator {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    z-index: 60;
    background: linear-gradient(90deg, var(--primary-color), #38bdf8);
}

/* ========== PAGINATION ========== */
.pagination {
    position: absolute;
    left: 0px;
    top: 0px;
    display: inline-flex;
}

.pagination > .arrow {
    z-index: 60;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination > .arrow:hover {
    border-color: var(--primary-color);
    background: rgba(14, 165, 233, 0.1);
}

.pagination > .arrow:nth-child(2) {
    margin-left: 10px;
}

.pagination > .arrow:nth-child(3) {
    margin-left: 10px;
}

.pagination > .arrow svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.pagination > .arrow:hover svg {
    color: var(--primary-color);
}

/* Pause button specific styles */
.pagination .pause-btn {
    position: relative;
}

.pagination .pause-btn.paused {
    border-color: var(--primary-color);
    background: rgba(14, 165, 233, 0.2);
}

.pagination .pause-btn svg {
    width: 20px;
    height: 20px;
}

.pagination .pause-btn .play-icon {
    display: none;
}

.pagination .pause-btn.paused .pause-icon {
    display: none;
}

.pagination .pause-btn.paused .play-icon {
    display: block;
}

.pagination .progress-sub-container {
    margin-left: 24px;
    z-index: 60;
    width: 500px;
    height: 50px;
    display: flex;
    align-items: center;
}

.pagination .progress-sub-background {
    width: 500px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 99px;
}

.pagination .progress-sub-foreground {
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #38bdf8);
    border-radius: 99px;
}

.pagination .slide-numbers {
    width: 50px;
    height: 50px;
    overflow: hidden;
    z-index: 60;
    position: relative;
}

.pagination .slide-numbers .item {
    width: 50px;
    height: 50px;
    position: absolute;
    color: white;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    font-size: 32px;
    font-weight: bold;
    font-family: "Oswald", sans-serif;
}

/* ========== COVER ========== */
.cover {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
    z-index: 100;
}

/* ========== STATS SECTION ========== */
.stats-container {
    position: fixed;
    bottom: 40px;
    left: 60px;
    display: flex;
    gap: 60px;
    z-index: 25;
    opacity: 0;
    transform: translateY(30px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    font-family: "Oswald", sans-serif;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* ========== RESPONSIVE ========== */

/* Small Laptops / Low Resolution Screens (1024px - 1366px) */
@media (max-width: 1366px) {
    .details {
        left: 40px;
        top: 180px;
    }
    
    .details .title-1,
    .details .title-2 {
        font-size: 54px;
    }
    
    .details .title-box-1,
    .details .title-box-2 {
        height: 75px;
    }
    
    .details > .desc {
        width: 380px;
        font-size: 14px;
    }
    
    .details > .cta {
        width: 380px;
    }
    
    .pagination .progress-sub-container,
    .pagination .progress-sub-background {
        width: 300px;
    }
    
    .stats-container {
        gap: 40px;
        bottom: 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

/* Tablet Landscape */
@media (max-width: 1200px) {
    .details {
        left: 40px;
        top: 160px;
    }
    
    .details .title-1,
    .details .title-2 {
        font-size: 48px;
    }
    
    .details .title-box-1,
    .details .title-box-2 {
        height: 65px;
    }
    
    .details > .desc {
        width: 350px;
        font-size: 13px;
    }
    
    .details > .cta {
        width: 350px;
    }
    
    .pagination .progress-sub-container,
    .pagination .progress-sub-background {
        width: 250px;
    }
    
    .stats-container {
        gap: 30px;
        bottom: 25px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    nav .nav-link {
        display: none;
    }
    
    nav .search-icon {
        display: none;
    }
    
    nav .logo-container {
        width: 40px;
        height: 40px;
    }
    
    nav .logo-container .nav-logo {
        width: 40px;
        height: 40px;
    }
    
    .details {
        top: 130px;
        left: 30px;
    }
    
    .details .place-box .text {
        font-size: 16px;
    }
    
    .details .title-1,
    .details .title-2 {
        font-size: 40px;
    }
    
    .details .title-box-1,
    .details .title-box-2 {
        height: 55px;
    }
    
    .details > .desc {
        width: 50vw;
        max-width: 350px;
        font-size: 13px;
    }
    
    .details > .cta {
        width: auto;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .pagination .progress-sub-container {
        display: none;
    }
    
    .pagination .slide-numbers {
        display: none;
    }
    
    .stats-container {
        left: 30px;
        gap: 25px;
        bottom: 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 10px;
        letter-spacing: 1px;
    }
    
    /* Hide mini cards on tablet */
    .card-content {
        display: none;
    }
}

/* Tablet Portrait Small */
@media (max-width: 900px) {
    .details {
        top: 120px;
        left: 25px;
    }
    
    .details .place-box .text {
        font-size: 14px;
    }
    
    .details .title-1,
    .details .title-2 {
        font-size: 36px;
    }
    
    .details .title-box-1,
    .details .title-box-2 {
        height: 50px;
    }
    
    .details > .desc {
        width: 55vw;
        max-width: 320px;
        font-size: 12px;
    }
    
    .stats-container {
        left: 25px;
        gap: 20px;
        bottom: 18px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 9px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    html, body {
        height: 100%;
        height: 100dvh;
        height: -webkit-fill-available;
        overflow: hidden;
    }
    
    nav {
        padding: 10px 16px;
        background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7), transparent);
    }
    
    nav .logo-container {
        width: 32px;
        height: 32px;
    }
    
    nav .logo-container .nav-logo {
        width: 32px;
        height: 32px;
    }
    
    nav .brand-name {
        font-size: 11px;
        max-width: 120px;
        line-height: 1.2;
    }
    
    nav .login-btn {
        padding: 8px 14px;
        font-size: 11px;
    }
    
    nav .login-btn span {
        display: none;
    }
    
    nav .login-btn svg {
        width: 16px;
        height: 16px;
    }
    
    nav .search-icon {
        display: none;
    }
    
    .details {
        top: 80px;
        left: 20px;
        right: 20px;
    }
    
    .details .place-box {
        height: 30px;
    }
    
    .details .place-box .text {
        font-size: 12px;
        padding-top: 8px;
    }
    
    .details .place-box .text:before {
        width: 18px;
        height: 3px;
    }
    
    .details .title-1,
    .details .title-2 {
        font-size: 28px;
        line-height: 1.1;
    }
    
    .details .title-box-1 {
        height: 36px;
        margin-top: 4px;
    }
    
    .details .title-box-2 {
        height: 36px;
        margin-top: 0;
    }
    
    .details > .desc {
        width: calc(100vw - 40px);
        max-width: none;
        font-size: 11px;
        line-height: 1.5;
        margin-top: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .details > .cta {
        width: auto;
        margin-top: 16px;
        flex-direction: row;
        gap: 10px;
    }
    
    .details > .cta > .bookmark {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .details > .cta > .discover {
        margin-left: 0;
        height: 36px;
        padding: 8px 20px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    /* Pagination mobile - fixed at bottom */
    .pagination {
        position: fixed !important;
        left: 20px !important;
        right: auto !important;
        bottom: 90px !important;
        top: auto !important;
        z-index: 60;
    }
    
    .pagination > .arrow {
        width: 40px;
        height: 40px;
        border-width: 1.5px;
    }
    
    .pagination > .arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .pagination > .arrow:nth-child(2),
    .pagination > .arrow:nth-child(3) {
        margin-left: 8px;
    }
    
    .pagination .progress-sub-container {
        display: none;
    }
    
    .pagination .slide-numbers {
        display: none;
    }
    
    /* Stats mobile - fixed at very bottom */
    .stats-container {
        position: fixed !important;
        left: 20px !important;
        right: 20px !important;
        gap: 0;
        bottom: 25px !important;
        top: auto !important;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .stat-item {
        width: auto;
        flex: 1;
        min-width: 0;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 8px;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    
    .indicator {
        height: 3px;
    }
    
    /* Card content hidden on mobile */
    .card-content {
        display: none !important;
    }
    
    /* Ensure card doesn't overflow */
    .card {
        max-height: 100dvh !important;
        max-height: -webkit-fill-available !important;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    nav .brand-name {
        font-size: 10px;
        max-width: 100px;
    }
    
    nav .login-btn {
        padding: 6px 10px;
    }
    
    .details {
        top: 90px;
        left: 16px;
        right: 16px;
    }
    
    .details .title-1,
    .details .title-2 {
        font-size: 26px;
    }
    
    .details .title-box-1,
    .details .title-box-2 {
        height: 34px;
    }
    
    .details > .desc {
        font-size: 11px;
        -webkit-line-clamp: 3;
        margin-top: 12px;
    }
    
    .details > .cta {
        margin-top: 20px;
    }
    
    .details > .cta > .bookmark {
        width: 36px;
        height: 36px;
    }
    
    .details > .cta > .discover {
        height: 36px;
        padding: 6px 16px;
        font-size: 10px;
    }
    
    .pagination {
        left: 16px !important;
        bottom: 90px;
    }
    
    .pagination > .arrow {
        width: 38px;
        height: 38px;
    }
    
    .pagination > .arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 7px;
    }
    
    .stats-container {
        bottom: 24px;
    }
}
