/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
    --gold: #f9b864;
    --yellow: #f2e800;
    --gold-dark: #d69a3e;
    --bg: #0f0f14;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text: #f0f0f0;
    --text-muted: #a0a0a8;
    --radius: 20px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 60px rgba(249, 184, 100, 0.15), 0 8px 24px rgba(0, 0, 0, 0.5);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =========================================
   RESET & BASE
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   PARTICLES BACKGROUND
   ========================================= */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* =========================================
   PAGE TITLE
   ========================================= */
.page-title {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px 20px;
}

.page-title h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--yellow), var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    letter-spacing: -0.02em;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 200% center;
    }
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
    margin-top: 10px;
    letter-spacing: 0.02em;
}

/* =========================================
   SEARCH BAR
   ========================================= */
.search-wrapper {
    position: relative;
    max-width: 480px;
    margin: 30px auto 0;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

#searchInput {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#searchInput::placeholder {
    color: var(--text-muted);
}

#searchInput:focus {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(249, 184, 100, 0.15);
}

/* =========================================
   GRID
   ========================================= */
.grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    padding: 40px 40px 80px;
    max-width: 1440px;
    margin: 0 auto;
}

/* =========================================
   CARD — 3D STYLE
   ========================================= */
.card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(.25, .8, .25, 1),
        box-shadow 0.45s cubic-bezier(.25, .8, .25, 1),
        border-color 0.3s;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(249, 184, 100, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(249, 184, 100, 0.3);
}

/* Shine effect on hover */
.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg,
            transparent 40%,
            rgba(255, 255, 255, 0.03) 45%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 55%,
            transparent 60%);
    transform: translateX(-100%) translateY(-100%);
    transition: none;
    pointer-events: none;
    z-index: 2;
}

.card:hover::after {
    animation: shine 0.8s ease forwards;
}

@keyframes shine {
    to {
        transform: translateX(50%) translateY(50%);
    }
}

/* Card image */
.card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(.25, .8, .25, 1);
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
}

/* Gradient overlay on image */
.card-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
    pointer-events: none;
}

/* Card content */
.card-content {
    position: relative;
    z-index: 1;
    padding: 0 22px 22px;
    margin-top: -10px;
}

.card-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    letter-spacing: 0.01em;
}

/* Meta info row */
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.card-tag svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.tag-fees {
    background: rgba(249, 184, 100, 0.15);
    color: var(--gold);
    border: 1px solid rgba(249, 184, 100, 0.2);
}

.tag-duration {
    background: rgba(242, 232, 0, 0.1);
    color: #e5db00;
    border: 1px solid rgba(242, 232, 0, 0.15);
}

.tag-trainer {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   NO RESULTS
   ========================================= */
.no-results {
    display: none;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.no-results.visible {
    display: block;
}

.no-results svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* =========================================
   MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    background: linear-gradient(160deg, rgba(30, 30, 40, 0.95), rgba(20, 20, 28, 0.98));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(249, 184, 100, 0.08);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(.25, .8, .25, 1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

/* Scrollbar styling for modal */
.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(249, 184, 100, 0.2);
    border-color: var(--gold);
    transform: rotate(90deg);
}

.modal-img-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.modal-img-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.modal-body {
    padding: 28px 30px 32px;
}

.modal-body h2 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--gold), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 10px;
}

.meta-tag svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.meta-fees {
    background: rgba(249, 184, 100, 0.15);
    color: var(--gold);
    border: 1px solid rgba(249, 184, 100, 0.25);
}

.meta-duration {
    background: rgba(242, 232, 0, 0.1);
    color: #e5db00;
    border: 1px solid rgba(242, 232, 0, 0.2);
}

.meta-trainer {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
}

/* =========================================
   CARD ENTRANCE ANIMATION
   ========================================= */
.card {
    opacity: 0;
    transform: translateY(40px);
    animation: cardIn 0.5s ease forwards;
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0) perspective(800px);
    }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        padding: 24px 16px 60px;
        gap: 20px;
    }

    .page-title {
        padding: 40px 16px 16px;
    }

    .modal-body {
        padding: 22px 20px 26px;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   HEADER
   ========================================= */
.main-header {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #000000;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #f9b864;
}

.contact-btn {
    background: #e6e6e6;
    color: #000000;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.3s;
}

.contact-btn:hover {
    background: #d4d4d4;
}

/* Responsive Header & Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #000;
    border-radius: 10px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-contact {
    display: none;
}

/* Responsive Header */
@media (max-width: 1100px) {
    .header-container {
        padding: 10px 20px;
    }

    .logo img {
        height: 40px;
    }

    .hamburger {
        display: flex;
    }

    .desktop-contact {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 101;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav a {
        font-size: 1rem;
    }

    .mobile-contact {
        display: inline-block;
        text-align: center;
        margin-top: 10px;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 24px 20px;
    font-size: 0.9rem;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}