/* Remove old font import */
/* @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&family=Syne:wght@800&family=Clash+Display:wght@700&display=swap'); */

/* Base mobile-first styles */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Bakbak One', sans-serif;
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improved responsive breakpoints */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        -webkit-text-size-adjust: 100%;
    }
    
    .section-header h2 {
        font-size: 2rem;
        -webkit-text-size-adjust: 100%;
    }
    
    .nav-item span {
        font-size: 0.9rem;
        -webkit-text-size-adjust: 100%;
    }
    
    .highlight-card h3,
    .attraction-card h3,
    .restaurant-card h3,
    .event-card h3,
    .hotel-card h3 {
        font-size: 1.2rem;
        -webkit-text-size-adjust: 100%;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-bar {
        padding: 0.5rem;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-item {
        padding: 0.75rem;
    }
    
    .search-container {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    #searchInput {
        font-size: 16px; /* Prevent iOS zoom */
        padding: 0.5rem;
        -webkit-text-size-adjust: 100%;
    }
    
    .explore-grid,
    .highlights-grid,
    .attractions-grid,
    .dining-grid,
    .events-grid,
    .hotels-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card,
    .pack {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .rarity-stat {
        padding: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        margin: 0.5rem 0;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    /* Fix blurry text in cards */
    .explore-card,
    .highlight-card,
    .attraction-card,
    .restaurant-card,
    .event-card,
    .hotel-card {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    /* Fix blurry images */
    .explore-card img,
    .highlight-card img,
    .attraction-card img,
    .restaurant-card img,
    .event-card img,
    .hotel-card img {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Fix blurry text in navigation */
    .nav-bar {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .nav-item {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header-content h1 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .explore-grid,
    .highlights-grid,
    .attractions-grid,
    .dining-grid,
    .events-grid,
    .hotels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

/* Touch-friendly elements */
button,
.nav-item,
.filter-btn,
.card,
.pack {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Improved mobile navigation */
@media (max-width: 768px) {
    .nav-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        z-index: 1000;
        padding: 0.5rem;
    }
    
    .nav-item {
        flex-direction: column;
        padding: 0.5rem;
    }
    
    .nav-item i {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }
    
    .nav-item span {
        font-size: 0.8rem;
    }
    
    .main-content {
        padding-bottom: 4rem; /* Space for fixed navigation */
    }
}

/* Improved mobile card layouts */
@media (max-width: 480px) {
    .card,
    .pack,
    .highlight-card,
    .attraction-card,
    .restaurant-card,
    .event-card,
    .hotel-card {
        width: 100%;
        max-width: 100%;
        margin: 0.5rem 0;
    }
    
    .card img,
    .pack img,
    .highlight-card img,
    .attraction-card img,
    .restaurant-card img,
    .event-card img,
    .hotel-card img {
        width: 100%;
        height: auto;
    }
}

/* Improved mobile typography */
@media (max-width: 480px) {
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
        -webkit-text-size-adjust: 100%;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    p {
        font-size: 0.9rem;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .text-container p {
        font-size: 0.9rem;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* Improved mobile forms */
@media (max-width: 480px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 0.75rem;
        min-height: 44px; /* Minimum touch target size */
        -webkit-text-size-adjust: 100%;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    button {
        min-height: 44px; /* Minimum touch target size */
        padding: 0.75rem 1.5rem;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

.header-content h1 {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-weight: 800;
    font-size: 4.5rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.nav-item span {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-header h2 {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.highlight-card h3,
.attraction-card h3,
.restaurant-card h3,
.event-card h3,
.hotel-card h3 {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.weather-widget h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    position: relative;
}

.temperature {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

.newsletter-section h3 {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.footer-content h4 {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#bouncyText {
    width: 100%;
    max-width: 800px;
    height: 40px;
    margin-bottom: 1.5rem;
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 3rem;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-weight: 800;
    font-style: normal;
}

#bouncyText text {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    #bouncyText, #bouncyText text {
        font-size: 2.5rem;
        height: 35px;
    }
}

@media (max-width: 480px) {
    #bouncyText, #bouncyText text {
        font-size: 2rem;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .highlight-card h3,
    .attraction-card h3,
    .restaurant-card h3,
    .event-card h3,
    .hotel-card h3 {
        font-size: 1.2rem;
    }
}

:root {
    --primary-color: #1DA1F2;
    --background-color: #15202B;
    --secondary-background: #192734;
    --text-primary: #FFFFFF;
    --text-secondary: #8899A6;
    --border-color: #38444D;
    --hover-color: #1A91DA;
    --card-background: rgba(25, 39, 52, 0.8);
    --success-color: #17BF63;
    --error-color: #E0245E;
    --color-bg1: rgb(200, 0, 0);
    --color-bg2: rgb(0, 0, 150);
    --color1: 255, 0, 0;
    --color2: 0, 0, 255;
    --color3: 100, 0, 255;
    --color4: 255, 100, 0;
    --color5: 0, 200, 255;
    --color-interactive: 255, 0, 100;
    --circle-size: 80%;
    --blending: hard-light;
    --border-dark: #2d1b4d;
    --border-light: #8a2be2;
    --border-highlight: #e0b0ff;
    --heading-font: 'Special Gothic Expanded One', sans-serif;
    --body-font: 'Bakbak One', sans-serif;
    --accent-color: #1a237e;
    --secondary-color: #b71c1c;
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    --glow-effect: 0 0 10px rgba(26, 35, 126, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Bakbak One', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: #000;
    position: relative;
}

#carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#stage {
    width: 100%;
    height: 100%;
    transform-origin: center center;
    pointer-events: none;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 300;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    overflow-x: hidden;
}

#stage image {
    clip-path: url(#cp1);
}

.row {
    transform-origin: center;
    transform-box: fill-box;
    pointer-events: none;
}

.r1 {
    transform: translateY(200px);
}

.r2 {
    transform: translateY(600px);
}

body {
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(21, 32, 43, 0.95), rgba(25, 39, 52, 0.95));
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/makepattern.png');
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: -1;
    animation: moveTiles 60s linear infinite;
}

@keyframes moveTiles {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-50px) translateY(25px);
    }
    50% {
        transform: translateX(0) translateY(50px);
    }
    75% {
        transform: translateX(50px) translateY(25px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    max-width: 2000px;
    margin: 0 auto;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    padding: 24px;
    position: fixed;
    height: 100vh;
    border-right: 1px solid rgba(56, 68, 77, 0.3);
    background-color: rgba(21, 32, 43, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    left: 0;
    top: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    background-color: rgba(200, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background-color: rgba(255, 0, 0, 0.9);
    transform: translateY(-2px);
}

.nav-item.active {
    background-color: rgba(255, 0, 0, 0.9);
    font-weight: bold;
}

.nav-item i {
    font-size: 24px;
    margin-right: 20px;
    width: 24px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover i {
    transform: scale(1.1);
}

.nav-item span {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover span {
    transform: translateX(5px);
}

/* Ripple Effect */
.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin: 24px;
    padding: 32px;
    max-width: 1400px;
    background-color: rgba(25, 39, 52, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: calc(100% - 290px);
    position: relative;
    left: 250px;
    transform: none;
}

header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.set-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
}

.set-symbol {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.stats {
    max-width: 1200px;
    margin: 32px auto;
    padding: 32px;
}

.stats h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stats h2 i {
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.stat-card {
    background: rgba(25, 39, 52, 0.7);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--border-dark);
    animation: 4s gradient-angle infinite linear;
    background: var(--card-background);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(249, 222, 144, 0.2),
        0 0 30px rgba(199, 160, 60, 0.1);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: bold;
}

.rarity-breakdown {
    background: rgba(25, 39, 52, 0.7);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.rarity-breakdown h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rarity-breakdown h3 i {
    color: var(--primary-color);
}

.rarity-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rarity-stat {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 1rem;
}

.rarity-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rarity-count {
    color: var(--text-primary);
    font-weight: bold;
    text-align: right;
}

/* Rarity-specific progress bar colors */
#commonProgress {
    background: linear-gradient(90deg, #b7b7b7, #d1d1d1);
}

#rareProgress {
    background: linear-gradient(90deg, #e3350d, #ff6b6b);
}

#ultraRareProgress {
    background: linear-gradient(90deg, #e3350d, #ffd700);
}

#secretRareProgress {
    background: linear-gradient(90deg, #ffd700, #ffa500);
}

/* Pack Section Styles */
.pack-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 32px auto;
    max-width: 800px;
    position: relative;
}

.pack {
    width: 200px;
    height: 280px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
}

.pack img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    pointer-events: none;
}

.pack-shine {
    pointer-events: none;
}

.pack:hover {
    transform: scale(1.05);
}

/* Add hover text for pack */
.pack::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    padding: 4px;
    background: conic-gradient(
        from var(--gradient-angle),
        var(--border-dark) 0%,
        var(--border-light) 37%,
        var(--border-highlight) 40%,
        var(--border-light) 43%,
        var(--border-dark) 50%,
        var(--border-dark) 60%,
        var(--border-light) 77%,
        var(--border-highlight) 80%,
        var(--border-light) 83%,
        var(--border-dark) 90%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: 4s gradient-angle infinite linear;
    pointer-events: none;
}

.pack:hover::before {
    opacity: 1;
}

/* Update card styles to remove white background */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    background: transparent;
    overflow: hidden;
}

.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transform: rotateY(0deg);
}

.card-back::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('images/CardBack.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    background-color: transparent;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ff4422;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.cards-reveal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 180px));
    gap: 16px;
    padding: 24px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
}

@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(4, minmax(130px, 160px));
    }
}

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(3, minmax(120px, 150px));
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(3, minmax(100px, 130px));
        gap: 12px;
    }
    
    .pack {
        width: 160px;
        height: 224px;
    }
    
    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 130px));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(100px, 120px));
        gap: 8px;
    }
    
    .pack {
        width: 140px;
        height: 196px;
    }
}

/* Card styles */
.card {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 139.6%;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.revealed .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    background: transparent;
    overflow: hidden;
}

.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    background-color: transparent;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Pack animation */
.pack {
    width: 200px;
    height: 280px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
}

.pack img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.pack:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(249, 222, 144, 0.2),
        0 0 30px rgba(199, 160, 60, 0.1);
}

.collection {
    margin-top: 3rem;
    background: rgba(25, 39, 52, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 100%;
}

.collection h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.collection h2 i {
    color: var(--primary-color);
}

/* Collection Filters */
.collection-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: rgba(25, 39, 52, 0.7);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background-color: var(--secondary-background);
    color: var(--text-secondary);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: 4s gradient-angle infinite linear;
    background: var(--card-background);
    border: 2px solid var(--border-dark);
}

.filter-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.filter-btn:hover {
    background-color: rgba(29, 161, 242, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.1);
}

.filter-btn:hover i {
    transform: scale(1.2);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.2);
}

.filter-btn.active i {
    transform: scale(1.2);
}

/* Collection Grid */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 160px));
    gap: 16px;
    padding: 16px;
    justify-content: center;
}

.collection-card {
    width: 100%;
    max-width: 160px;
    height: 0;
    padding-bottom: 140%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 0 auto;
    animation: 4s gradient-angle infinite linear;
    background: var(--card-background);
    border: 2px solid var(--border-dark);
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(249, 222, 144, 0.2),
        0 0 30px rgba(199, 160, 60, 0.1);
}

.collection-card img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.rarity-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.collection-card[data-rarity="secret-rare"] {
    position: relative;
    overflow: hidden;
}

.collection-card[data-rarity="secret-rare"]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 215, 0, 0) 0%,
        rgba(255, 215, 0, 0.1) 45%,
        rgba(255, 215, 0, 0.3) 50%,
        rgba(255, 215, 0, 0.1) 55%,
        rgba(255, 215, 0, 0) 100%
    );
    animation: shine 3s infinite;
    pointer-events: none;
}

.collection-card[data-rarity="secret-rare"] .rarity-indicator {
    background: linear-gradient(45deg, #ffd700, #ffa500);
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.collection-card[data-rarity="ultra-rare"] {
    position: relative;
    overflow: hidden;
}

.collection-card[data-rarity="ultra-rare"]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(227, 53, 13, 0) 0%,
        rgba(227, 53, 13, 0.1) 45%,
        rgba(255, 215, 0, 0.3) 50%,
        rgba(227, 53, 13, 0.1) 55%,
        rgba(227, 53, 13, 0) 100%
    );
    animation: shine 2.5s infinite;
    pointer-events: none;
}

.collection-card[data-rarity="ultra-rare"] .rarity-indicator {
    background: linear-gradient(45deg, #e3350d, #ffd700);
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes ultraRarePull {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.card[data-rarity="ultra-rare"].flipped {
    animation: ultraRarePull 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 10px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        left: 0;
        top: 0;
    }

    .nav-item {
        padding: 8px 16px;
        margin: 0;
    }

    .nav-item span {
        display: none;
    }

    .nav-item {
        justify-content: center;
    }

    .main-content {
        width: calc(100% - 20px);
        margin: 10px;
        padding: 20px;
        left: 0;
        transform: none;
    }

    .container {
        flex-direction: column;
    }

    .pack {
        width: 160px;
        height: 224px;
    }

    .cards-reveal {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 0.5rem;
        padding: 0 10px;
    }

    .card {
        width: 140px;
        height: 196px;
    }

    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 130px));
    }

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

    .rarity-stat {
        grid-template-columns: 80px 1fr 50px;
        gap: 0.5rem;
    }

    .stat-card {
        padding: 1rem;
    }
}

/* Add these special gradient effects for Secret Rare and Holo Rare cards */
.collection-card[data-rarity="secret-rare"] img,
.collection-card[data-rarity="ultra-rare"] img {
    position: relative;
    isolation: isolate;
}

.collection-card[data-rarity="secret-rare"]::before,
.collection-card[data-rarity="ultra-rare"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.4) 32%,
        rgba(255, 255, 255, 0.9) 35%,
        rgba(255, 255, 255, 0.4) 38%,
        rgba(255, 255, 255, 0.3) 40%,
        rgba(255, 255, 255, 0) 70%
    );
    background-size: 200% 200%;
    animation: shine 4s linear infinite;
    pointer-events: none;
    z-index: 2;
    border-radius: 10px;
}

/* Update the shine animation */
@keyframes shine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Add rainbow effect for Secret Rares */
.collection-card[data-rarity="secret-rare"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 0, 0, 0.2),
        rgba(255, 165, 0, 0.2),
        rgba(255, 255, 0, 0.2),
        rgba(0, 255, 0, 0.2),
        rgba(0, 255, 255, 0.2),
        rgba(0, 0, 255, 0.2),
        rgba(255, 0, 255, 0.2)
    );
    background-size: 400% 400%;
    animation: rainbow 6s linear infinite;
    mix-blend-mode: color;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
    border-radius: 10px;
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced hover effects */
.collection-card[data-rarity="secret-rare"],
.collection-card[data-rarity="ultra-rare"] {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.collection-card[data-rarity="secret-rare"]:hover,
.collection-card[data-rarity="ultra-rare"]:hover {
    transform: scale(1.05) rotate3d(1, 1, 0, 5deg);
}

/* Update the rarity indicators for special cards */
.collection-card[data-rarity="secret-rare"] .rarity-indicator {
    background: linear-gradient(
        45deg,
        #ffd700,
        #ff69b4,
        #4169e1,
        #ffd700
    );
    background-size: 200% 200%;
    animation: rainbow 3s linear infinite;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.collection-card[data-rarity="ultra-rare"] .rarity-indicator {
    background: linear-gradient(
        45deg,
        #e3350d,
        #ffd700,
        #e3350d
    );
    background-size: 200% 200%;
    animation: shine 3s linear infinite;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Add a special reveal animation when pulling these cards */
@keyframes specialReveal {
    0% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
        filter: brightness(1.5);
    }
    100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
}

.card[data-rarity="secret-rare"].flipped,
.card[data-rarity="ultra-rare"].flipped {
    animation: specialReveal 0.8s ease-out;
}

/* Add card number styling */
.collection-card {
    position: relative;
}

.card-number {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

/* Special styling for secret rare and ultra rare card numbers */
.collection-card[data-rarity="secret-rare"] .card-number,
.collection-card[data-rarity="ultra-rare"] .card-number {
    background: linear-gradient(45deg, #ffd700, #ff69b4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Enhanced sparkle effect for rare cards */
.collection-card[data-rarity="rare"] {
    position: relative;
    overflow: hidden;
}

.collection-card[data-rarity="rare"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.4) 25%,
        rgba(255, 255, 255, 0.6) 27%,
        rgba(255, 255, 255, 0.4) 29%,
        rgba(255, 255, 255, 0.2) 31%,
        rgba(255, 255, 255, 0) 50%
    );
    background-size: 200% 200%;
    animation: rareShine 4s linear infinite;
    pointer-events: none;
    z-index: 2;
    border-radius: 10px;
    mix-blend-mode: overlay;
}

/* Enhanced star sparkles */
.collection-card[data-rarity="rare"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 10% 10%, white 50%, transparent 50%),
        radial-gradient(2px 2px at 20% 50%, white 50%, transparent 50%),
        radial-gradient(3px 3px at 30% 80%, white 50%, transparent 50%),
        radial-gradient(2px 2px at 50% 30%, white 50%, transparent 50%),
        radial-gradient(3px 3px at 70% 60%, white 50%, transparent 50%),
        radial-gradient(2px 2px at 90% 20%, white 50%, transparent 50%),
        radial-gradient(3px 3px at 40% 40%, white 50%, transparent 50%),
        radial-gradient(2px 2px at 60% 90%, white 50%, transparent 50%),
        radial-gradient(3px 3px at 80% 15%, white 50%, transparent 50%);
    opacity: 0;
    animation: sparkle 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
}

@keyframes rareShine {
    0% {
        background-position: 200% 0;
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        background-position: -200% 0;
        opacity: 0.5;
    }
}

@keyframes sparkle {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
    }
}

/* More pronounced hover effect for rare cards */
.collection-card[data-rarity="rare"] {
    transition: all 0.3s ease;
}

.collection-card[data-rarity="rare"]:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 53, 13, 0.3);
}

.collection-card[data-rarity="rare"]:hover::before {
    opacity: 0.9;
}

/* Enhanced rare card indicator style */
.collection-card[data-rarity="rare"] .rarity-indicator {
    background: linear-gradient(45deg, #e3350d, #ff6b6b, #e3350d);
    background-size: 200% 200%;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(227, 53, 13, 0.4);
    animation: rareGlow 3s ease-in-out infinite,
               rareBackground 3s linear infinite;
}

@keyframes rareGlow {
    0% {
        box-shadow: 0 2px 4px rgba(227, 53, 13, 0.4);
    }
    50% {
        box-shadow: 0 2px 12px rgba(227, 53, 13, 0.6);
    }
    100% {
        box-shadow: 0 2px 4px rgba(227, 53, 13, 0.4);
    }
}

@keyframes rareBackground {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Enhanced reveal animation for rare cards */
@keyframes rareReveal {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.08);
        filter: brightness(1.3);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.card[data-rarity="rare"].flipped {
    animation: rareReveal 0.8s ease-out;
}

/* Add a subtle color tint overlay */
.collection-card[data-rarity="rare"] img {
    position: relative;
}

.collection-card[data-rarity="rare"] img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(227, 53, 13, 0.1),
        rgba(255, 107, 107, 0.1)
    );
    mix-blend-mode: overlay;
    animation: rareTint 4s ease-in-out infinite;
}

@keyframes rareTint {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

/* Make sure rare effects don't interfere with ultra/secret rare effects */
.collection-card[data-rarity="ultra-rare"]::before,
.collection-card[data-rarity="secret-rare"]::before {
    z-index: 3;
}

.collection-card[data-rarity="ultra-rare"]::after,
.collection-card[data-rarity="secret-rare"]::after {
    z-index: 3;
}

/* Tab Content Styles */
.tab-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    width: 100%;
    pointer-events: none;
    display: none;
    will-change: transform, opacity;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: all;
    display: block;
}

/* Section Transitions */
.header-content, .pack-section, .collection, .stats {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    width: 100%;
    pointer-events: none;
    display: none;
}

.header-content.active, .pack-section.active, .collection.active, .stats.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: all;
    display: block;
}

/* Content Container */
.content-container {
    position: relative;
    min-height: 600px;
    transition: min-height 0.3s ease;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-item:hover span {
        transform: none;
    }

    .nav-item::before {
        display: none;
    }

    .nav-item.active {
        background-color: var(--primary-color);
        color: white;
    }

    .nav-item:hover i {
        transform: none;
    }
}

/* Notification Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

.notification {
    transition: all 0.3s ease-out;
}

/* Welcome Section Styles */
.welcome-section {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.disclaimer-card, .info-card {
    background: rgba(25, 39, 52, 0.7);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--border-dark);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: 4s gradient-angle infinite linear;
    background: var(--card-background);
}

.disclaimer-card:hover, .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.disclaimer-card h2, .info-card h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-card h2 i, .info-card h2 i {
    color: var(--primary-color);
}

.disclaimer-card p, .info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    margin: 1rem 0;
}

.info-card ul li {
    color: var(--text-secondary);
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card ul li i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.rarity-info {
    display: grid;
    gap: 1rem;
}

.rarity-row {
    display: grid;
    grid-template-columns: 24px auto 1fr;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.rarity-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rarity-row i {
    color: var(--primary-color);
}

.rarity-row .rate {
    text-align: right;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .welcome-section {
        gap: 1rem;
    }

    .disclaimer-card, .info-card {
        padding: 1.5rem;
    }

    .rarity-row {
        grid-template-columns: 24px 1fr;
        gap: 0.5rem;
    }

    .rarity-row .rate {
        grid-column: 2;
        text-align: left;
        margin-top: 0.25rem;
    }
}

/* Animation keyframes */
@keyframes moveInCircle {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

@keyframes moveVertical {
    0% { transform: translateY(-50%); }
    50% { transform: translateY(50%); }
    100% { transform: translateY(-50%); }
}

@keyframes moveHorizontal {
    0% { transform: translateX(-25%) translateY(-10%); }
    50% { transform: translateX(-75%) translateY(10%); }
    100% { transform: translateX(-25%) translateY(-10%); }
}

@keyframes moveHorizontalReverse {
    0% { transform: translateX(25%) translateY(-10%); }
    50% { transform: translateX(75%) translateY(10%); }
    100% { transform: translateX(25%) translateY(-10%); }
}

/* Gradient background styles */
.gradient-bg {
    width: 100vw;
    height: 100vh;
    position: fixed;
    overflow: hidden;
    background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
    top: 0;
    left: 0;
    z-index: -1;
}

.gradient-bg svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

.gradient-bg .gradients-container {
    filter: url(#goo) blur(40px);
    width: 100%;
    height: 100%;
}

.gradient-bg .g1 {
    position: absolute;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    filter: blur(60px);
    opacity: 0.4;
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: center center;
    animation: moveVertical 30s ease infinite;
    opacity: 1;
}

.gradient-bg .g2 {
    position: absolute;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    filter: blur(60px);
    opacity: 0.4;
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 20s reverse infinite;
    opacity: 1;
}

.gradient-bg .g3 {
    position: absolute;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    filter: blur(60px);
    opacity: 0.4;
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2 - 500px);
    left: calc(50% - var(--circle-size) / 2);
    animation: moveHorizontal 20s ease infinite;
    opacity: 1;
}

.gradient-bg .g4 {
    position: absolute;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    filter: blur(60px);
    opacity: 0.4;
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2 + 1500px);
    left: calc(50% - var(--circle-size) / 2);
    animation: moveHorizontalReverse 20s ease infinite;
    opacity: 1;
}

.gradient-bg .g5 {
    position: absolute;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    filter: blur(60px);
    opacity: 0.4;
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2 + 600px);
    left: calc(50% - var(--circle-size) / 2 - 200px);
    animation: moveInCircle 20s ease infinite;
    opacity: 1;
}

.gradient-bg .interactive {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: center center;
    animation: moveInCircle 20s ease infinite;
    opacity: 1;
}

/* Animation for the gradient rotation */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0turn;
    inherits: false;
}

@keyframes gradient-angle {
    to {
        --gradient-angle: 1turn;
    }
}

/* Update hover effects */
.pack:hover,
.nav-item:hover,
.info-card:hover,
.disclaimer-card:hover,
.collection-card:hover,
.stat-card:hover,
.filter-btn:hover,
.card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(249, 222, 144, 0.2),
        0 0 30px rgba(199, 160, 60, 0.1);
}

/* Active state for interactive elements */
.nav-item.active,
.filter-btn.active {
    background: var(--card-background);
}

/* Pack specific styles */
.pack {
    border-radius: 12px;
    overflow: hidden;
}

.pack img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* Pack hover text */
.pack::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    padding: 4px;
    background: conic-gradient(
        from var(--gradient-angle),
        var(--border-dark) 0%,
        var(--border-light) 37%,
        var(--border-highlight) 40%,
        var(--border-light) 43%,
        var(--border-dark) 50%,
        var(--border-dark) 60%,
        var(--border-light) 77%,
        var(--border-highlight) 80%,
        var(--border-light) 83%,
        var(--border-dark) 90%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: 4s gradient-angle infinite linear;
    pointer-events: none;
}

.pack:hover::before {
    opacity: 1;
}

/* Add the angle property for animation */
@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Add styles for the rare card slot */
.card.rare-slot {
    overflow: hidden;
    position: relative;
}

.card.rare-slot::before {
    position: absolute;
    z-index: -1;
    inset: -1em;
    border: solid 1.25em;
    border-image: conic-gradient(
        from var(--glow-angle),
        #9400D3,  /* Dark Violet */
        #8A2BE2,  /* Blue Violet */
        #9370DB,  /* Medium Purple */
        #BA55D3,  /* Medium Orchid */
        #DA70D6,  /* Orchid */
        #EE82EE,  /* Violet */
        #9400D3   /* Back to Dark Violet */
    ) 1;
    filter: blur(0.75em);
    content: '';
    animation: glowRotate 4s linear infinite;
}

@keyframes glowRotate {
    to {
        --glow-angle: 1turn;
    }
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#searchInput {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    width: 200px;
    font-size: 14px;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#searchButton {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s;
}

#searchButton:hover {
    transform: scale(1.1);
}

/* Weather Widget */
.weather-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(8, 22, 90, 0.75);
    border-radius: 16px;
    padding: 1rem;
    max-width: 250px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(41, 98, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 42, 255, 0.2);
    z-index: 100000;
    text-align: center;
}

.weather-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.weather-header h3 {
    margin: 0;
    font-size: 16px;
}

.current-weather i {
    font-size: 32px;
    margin-bottom: 8px;
}

.temperature {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

.description {
    font-size: 12px;
    opacity: 0.8;
}

.weather-details {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, rgba(200, 0, 0, 0.8) 0%, rgba(0, 0, 150, 0.8) 100%);
    padding: 40px;
    text-align: center;
    color: white;
    margin-top: 40px;
}

.newsletter-section h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.newsletter-section p {
    opacity: 0.9;
    margin-bottom: 20px;
    font-family: 'Bakbak One', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #0000ff;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    background: linear-gradient(45deg, #0000a0, #0000ff);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-family: 'Bakbak One', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 255, 0.3);
}

.newsletter-form button:active {
    transform: translateY(0);
}

.newsletter-message {
    margin-top: 15px;
    font-size: 14px;
}

.newsletter-message.success {
    color: #4ade80;
}

.newsletter-message.error {
    color: #f87171;
}

.events-section {
    padding: 40px 0;
}

.events-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 20px;
}

.event-card {
    background: rgba(0, 0, 150, 0.8);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(200, 0, 0, 0.3);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.event-card h3 {
    font-size: 1.4rem;
    padding: 16px 16px 8px;
    color: var(--text-primary);
    font-family: 'Bakbak One', sans-serif;
    letter-spacing: 0.05em;
}

.event-card p {
    font-size: 1rem;
    padding: 0 16px 16px;
    color: var(--text-secondary);
    font-family: 'Bakbak One', sans-serif;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
        padding: 0 10px;
    }

    .event-card img {
        height: 180px;
    }
}

/* Explore Section Styles */
.explore-section {
    padding: 4rem 2rem;
    background-color: rgba(0, 0, 150, 0.1);
}

.explore-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 9rem;
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.explore-section .subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #97a1f1;
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
    position: relative;
    padding-bottom: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .explore-section .subtitle {
        font-size: 1.3rem;
        max-width: 900px;
        letter-spacing: 0.15em;
    }
}

@media (max-width: 768px) {
    .explore-section .subtitle {
        font-size: 1.1rem;
        max-width: 600px;
        letter-spacing: 0.1em;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .explore-section .subtitle {
        font-size: 1rem;
        max-width: 320px;
        letter-spacing: 0.05em;
        line-height: 1.5;
    }
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Special styling for the featured items */
.explore-card.featured {
    grid-column: span 1;
    max-width: 280px;
    margin: 0 auto;
    background: rgba(200, 0, 0, 0.8);
}

.explore-card.featured img {
    height: 160px;
}

.explore-card.featured h3 {
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-family: 'Bakbak One', sans-serif;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.explore-card.featured p {
    padding: 0 1rem 1rem;
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    font-family: 'Bakbak One', sans-serif;
    letter-spacing: 0.02em;
    text-align: center;
}

.explore-card {
    background: rgba(8, 22, 90, 0.75);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(41, 98, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 42, 255, 0.2);
}

.explore-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 42, 255, 0.3);
    border-color: rgba(41, 98, 255, 0.4);
    background: rgba(8, 22, 90, 0.85);
}

.explore-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.explore-card h3 {
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-family: 'Bakbak One', sans-serif;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.explore-card p {
    padding: 0 1rem 1rem;
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    font-family: 'Bakbak One', sans-serif;
    letter-spacing: 0.02em;
    text-align: center;
}

@media (max-width: 768px) {
    .explore-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .explore-card.featured {
        max-width: 240px;
    }

    .explore-card.featured img {
        height: 140px;
    }

    .explore-card img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .explore-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .explore-card.featured {
        max-width: 100%;
    }

    .explore-card.featured img {
        height: 160px;
    }

    .explore-card img {
        height: 200px;
    }
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    width: 100vw;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 7rem 0 4rem 0;
    padding: 3rem 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-radius: 0 0 30px 30px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
}

.hero-bg-image {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 20%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 20%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0) 100%
    );
}

.hero-background::before {
    display: none;
}

.hero-background::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.text-container {
    position: relative;
    z-index: 4;
}

@media (max-width: 768px) {
    .hero-section {
        margin-top: 5rem;
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        margin-top: 4rem;
        padding: 1.5rem 0;
    }
}

#bouncyText {
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    background: transparent;
    position: relative;
    z-index: 3;
    transform: scale(0.9);
}

@media (max-width: 1024px) {
    #bouncyText text {
        font-size: 300px;
    }
    .hero-section {
        margin-top: 2.5rem;
    }
}

@media (max-width: 768px) {
    #bouncyText text {
        font-size: 240px;
    }
    .hero-section {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    #bouncyText text {
        font-size: 180px;
    }
    .hero-section {
        margin-top: 1.5rem;
    }
}

.hero-bg-image {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

#bouncyText {
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    background: transparent;
    position: relative;
    z-index: 3;
}

#bouncyText text {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.hero-section p {
    position: relative;
    z-index: 3;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 1024px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
        max-height: 500px;
    }

    #bouncyText, #bouncyText text {
        font-size: 3.5rem;
        height: 50px;
    }

    .hero-section p {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 45vh;
        min-height: 300px;
        max-height: 400px;
    }

    #bouncyText, #bouncyText text {
        font-size: 2.8rem;
        height: 40px;
        margin-bottom: 1.5rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 40vh;
        min-height: 250px;
        max-height: 350px;
    }

    #bouncyText, #bouncyText text {
        font-size: 2rem;
        height: 35px;
        margin-bottom: 1rem;
    }

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

/* Highlights Grid Styles */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.highlight-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.highlight-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.highlight-card h3 {
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    color: white;
    font-size: 1.5rem;
    text-align: center;
}

.highlight-card p {
    padding: 0.5rem 1rem 1.5rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1200px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        margin-top: 4rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .highlight-card img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        margin-top: 3rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .highlight-card img {
        height: 160px;
    }
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Nav Bar Styles */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo-container {
    position: absolute;
    left: 2rem;
}

.nav-items {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    margin: 0 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.nav-item i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.nav-item span {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 60px;
        padding: 0;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1000;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-container {
        display: none;
    }

    .nav-items {
        display: flex;
        width: 100%;
        justify-content: space-around;
    }

    .nav-item {
        background: none;
        border-radius: 0;
        box-shadow: none;
        flex: 1;
        text-align: center;
        padding: 0.6rem 1rem;
    }

    .nav-item span {
        display: none;
    }

    .nav-item i {
        margin-right: 0;
        font-size: 1.4rem;
        color: rgba(255, 255, 255, 0.8);
    }

    .nav-item.active i {
        color: #27d5ff;
    }

    .nav-item:hover i {
        color: #27d5ff;
    }

    .hero-section {
        margin-top: 100px;
        padding-bottom: 10px;
    }

    .hero-background {
        margin-top: 0;
    }

    .text-container {
        padding: 40px 20px 10px;
    }

    .text-container h1 {
        font-size: 3rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .text-container p {
        font-size: 1.2rem;
        line-height: 1.4;
    }
}

.text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: textSlideUp 1s ease-out 0.3s both;
    text-align: center;
}

.text-container h1 {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 8rem;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: font-size 0.3s ease;
    width: 100%;
    text-align: center;
}

.text-container p {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
    position: relative;
    padding-bottom: 1rem;
    color: #27d5ff;
}

.text-container p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #27d5ff, transparent);
    box-shadow: 0 0 10px rgba(39, 213, 255, 0.5), 0 0 20px rgba(39, 213, 255, 0.3);
}

@media (max-width: 768px) {
    .text-container h1 {
        font-size: 5.5rem;
    }
    .text-container p {
        font-size: 1.2rem;
        letter-spacing: 0.15em;
    }
}

@media (max-width: 480px) {
    .text-container h1 {
        font-size: 4rem;
    }
    .text-container p {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }
}

/* Remove old hero-content styles */
.hero-content {
    display: none;
}

#bouncyText {
    display: none;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes textSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .explore-section h2 {
        font-size: 5.5rem;
    }
}

@media (max-width: 768px) {
    .explore-section h2 {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .explore-section h2 {
        font-size: 3rem;
    }
}

/* Enhanced Typography */
:root {
    --heading-font: 'Special Gothic Expanded One', sans-serif;
    --body-font: 'Bakbak One', sans-serif;
    --accent-color: #1a237e;
    --secondary-color: #b71c1c;
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    --glow-effect: 0 0 10px rgba(26, 35, 126, 0.5);
}

/* Hero Section Typography */
.hero-section h1 {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 8rem;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-section h1::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

/* Section Headers */
.section-header h2 {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::before {
    content: attr(data-flavor);
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    text-shadow: var(--glow-effect);
}

/* Card Headers */
.highlight-card h3,
.explore-card h3,
.event-card h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: #ffffff;
    margin: 1rem 0;
    text-shadow: var(--text-shadow);
    line-height: 1.2;
    text-align: center;
    padding: 0 1rem;
}

.highlight-card h3::before,
.explore-card h3::before,
.event-card h3::before {
    content: '✦';
    position: absolute;
    left: -1.5rem;
    color: var(--accent-color);
    text-shadow: var(--glow-effect);
}

/* Card Descriptions */
.highlight-card p,
.explore-card p,
.event-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.5;
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-weight: 500;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .highlight-card p,
    .explore-card p,
    .event-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .highlight-card p,
    .explore-card p,
    .event-card p {
        font-size: 0.9rem;
    }
}

/* Newsletter Section */
.newsletter-section h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    position: relative;
}

.newsletter-section h2::after {
    content: 'JOIN THE ADVENTURE';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    text-shadow: var(--glow-effect);
}

/* Weather Widget */
.weather-widget h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    position: relative;
}

.weather-widget h3::before {
    content: '☀';
    position: absolute;
    left: -1.5rem;
    color: var(--accent-color);
    text-shadow: var(--glow-effect);
}

/* Navigation */
.nav-item span {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-item span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover span::after {
    width: 100%;
}

/* Search Bar */
.search-container input {
    font-family: var(--body-font);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.search-container input::placeholder {
    font-family: var(--body-font);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.explore-card, .highlight-card, .attraction-card, .restaurant-card, .event-card, .hotel-card {
    background: rgba(8, 22, 90, 0.75);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(41, 98, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 42, 255, 0.2);
}

.explore-card:hover, .highlight-card:hover, .attraction-card:hover, .restaurant-card:hover, .event-card:hover, .hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 42, 255, 0.3);
    border-color: rgba(41, 98, 255, 0.4);
    background: rgba(8, 22, 90, 0.85);
}

.explore-card img, .highlight-card img, .attraction-card img, .restaurant-card img, .event-card img, .hotel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.explore-card:hover img, .highlight-card:hover img, .attraction-card:hover img, .restaurant-card:hover img, .event-card:hover img, .hotel-card:hover img {
    transform: scale(1.05);
}

.explore-card h3, .highlight-card h3, .attraction-card h3, .restaurant-card h3, .event-card h3, .hotel-card h3 {
    font-size: 1.4rem;
    margin: 1rem;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.explore-card p, .highlight-card p, .attraction-card p, .restaurant-card p, .event-card p, .hotel-card p {
    font-size: 0.95rem;
    margin: 0 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.explore-grid, .highlights-grid, .attractions-grid, .dining-grid, .events-grid, .hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin: 4rem 0 2rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-header h2::before {
    content: attr(data-flavor);
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 3px;
    font-weight: 500;
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .explore-grid, .highlights-grid, .attractions-grid, .dining-grid, .events-grid, .hotels-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

.highlights-section {
    padding: 4rem 2rem;
    text-align: center;
}

.highlights-section-title {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 5rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.highlights-section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #97a1f1;
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
    position: relative;
    padding-bottom: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .highlights-section-subtitle {
        font-size: 1.3rem;
        max-width: 900px;
        letter-spacing: 0.15em;
    }
}

@media (max-width: 768px) {
    .highlights-section-subtitle {
        font-size: 1.1rem;
        max-width: 600px;
        letter-spacing: 0.1em;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .highlights-section-subtitle {
        font-size: 1rem;
        max-width: 320px;
        letter-spacing: 0.05em;
        line-height: 1.5;
    }
}

.highlights-section-subtitle::after {
    display: none;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.highlight-card {
    background: rgba(8, 22, 90, 0.75);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1200px) {
    .highlights-section-title {
        font-size: 5.5rem;
    }
    .highlights-section-subtitle {
        font-size: 1.3rem;
    }
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .highlights-section-title {
        font-size: 4rem;
    }
    .highlights-section-subtitle {
        font-size: 1.1rem;
        letter-spacing: 0.15em;
    }
    .highlights-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .highlights-section-title {
        font-size: 3rem;
    }
    .highlights-section-subtitle {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }
}

<div class="highlights-section">
    <h2 class="highlights-section-title">WHAT DEFINES BUFFALO</h2>
    <p class="highlights-section-subtitle">From Natural Wonders to Cultural Treasures</p>
    <div class="highlights-grid">
        <!-- Your 4 highlight cards here -->
    </div>
</div>

.text-container h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 1300px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
}

#refreshWeather {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 14px;
    padding: 4px;
    opacity: 0.8;
}

#refreshWeather:hover {
    transform: rotate(180deg);
    opacity: 1;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 60px;
        padding: 0;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1000;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .search-container {
        display: none;
    }

    .nav-item {
        background: none;
        border-radius: 0;
        box-shadow: none;
    }

    .nav-item:hover {
        background: none;
        transform: none;
    }

    .nav-item.active {
        background: none;
    }

    .nav-item i {
        color: #fff;
    }

    .nav-item:hover i {
        color: #27d5ff;
    }
}

@media (max-width: 480px) {
    .nav-bar {
        height: 50px;
    }

    .logo-container {
        height: 50px;
        line-height: 50px;
    }

    .nav-items {
        height: 50px;
    }

    .nav-item {
        height: 50px;
        line-height: 50px;
    }

    .search-container {
        top: 50px;
    }

    .mobile-menu-toggle {
        height: 50px;
        line-height: 50px;
    }

    .main-content {
        margin-top: 50px;
    }
}

@media (max-width: 1024px) {
    .text-container h1 {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .text-container h1 {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .text-container h1 {
        font-size: 2.5rem;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-item {
        background: none;
        border-radius: 0;
        box-shadow: none;
    }

    .nav-item:hover {
        background: none;
        transform: none;
    }

    .nav-item.active {
        background: none;
    }

    .nav-item i {
        color: #fff;
    }

    .nav-item:hover i {
        color: #27d5ff;
    }
}