/* 
* Little ICY Productions Website Styles
* Colors:
* - Background: Soft pastel blue (#BFE2E6)
* - Accent: Pastel red (#FF7272)
* - Secondary: White
* - Tertiary: Pastel green (#7FD1AE)
*/

/* Base Styles */
:root {
    --primary-color: #BFE2E6;     /* Soft pastel blue */
    --secondary-color: #FF7272;   /* Pastel red */
    --tertiary-color: #7FD1AE;    /* Pastel green */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--primary-color);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--tertiary-color);
}

ul {
    list-style: none;
}

section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.appear {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.btn:hover {
    background-color: var(--tertiary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-small {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-small:hover {
    background-color: var(--tertiary-color);
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    overflow: visible;
    background-color: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1200px;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    width: 100%;
}

.logo img {
    max-width: 675px;
    height: auto;
    transition: var(--transition);
    width: auto;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0 12px;
}

/* Enhanced Navigation Styles */
nav {
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

nav ul li {
    margin: 0;
    position: relative;
}

nav ul li a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-radius: 20px;
    background-color: transparent;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Colorful background containers for each nav item */
nav ul li:nth-child(1) a {
    background-color: rgba(255, 114, 114, 0.1);
    border: 2px solid rgba(255, 114, 114, 0.3);
}

nav ul li:nth-child(2) a {
    background-color: rgba(127, 209, 174, 0.1);
    border: 2px solid rgba(127, 209, 174, 0.3);
}

nav ul li:nth-child(3) a {
    background-color: rgba(255, 209, 102, 0.1);
    border: 2px solid rgba(255, 209, 102, 0.3);
}

nav ul li:nth-child(4) a {
    background-color: rgba(191, 226, 230, 0.1);
    border: 2px solid rgba(191, 226, 230, 0.3);
}

nav ul li:nth-child(5) a {
    background-color: rgba(147, 112, 219, 0.1);
    border: 2px solid rgba(147, 112, 219, 0.3);
}

nav ul li:nth-child(6) a {
    background-color: rgba(255, 182, 193, 0.1);
    border: 2px solid rgba(255, 182, 193, 0.3);
}

nav ul li a:hover, 
nav ul li a.active {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hover states for each nav item */
nav ul li:nth-child(1) a:hover, 
nav ul li:nth-child(1) a.active {
    background-color: rgba(255, 114, 114, 0.2);
    border-color: rgba(255, 114, 114, 0.5);
}

nav ul li:nth-child(2) a:hover, 
nav ul li:nth-child(2) a.active {
    background-color: rgba(127, 209, 174, 0.2);
    border-color: rgba(127, 209, 174, 0.5);
}

nav ul li:nth-child(3) a:hover, 
nav ul li:nth-child(3) a.active {
    background-color: rgba(255, 209, 102, 0.2);
    border-color: rgba(255, 209, 102, 0.5);
}

nav ul li:nth-child(4) a:hover, 
nav ul li:nth-child(4) a.active {
    background-color: rgba(191, 226, 230, 0.2);
    border-color: rgba(191, 226, 230, 0.5);
}

nav ul li:nth-child(5) a:hover, 
nav ul li:nth-child(5) a.active {
    background-color: rgba(147, 112, 219, 0.2);
    border-color: rgba(147, 112, 219, 0.5);
}

nav ul li:nth-child(6) a:hover, 
nav ul li:nth-child(6) a.active {
    background-color: rgba(255, 182, 193, 0.2);
    border-color: rgba(255, 182, 193, 0.5);
}

/* Navigation icons styling */
nav ul li a i:not(.fa-caret-down):not(.fa-caret-up) {
    margin-right: 8px;
    font-size: 1.1em;
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 12px;
}

/* Colorful icon backgrounds */
nav ul li:nth-child(1) a i:not(.fa-caret-down):not(.fa-caret-up) {
    background-color: rgba(255, 114, 114, 0.2);
    color: #FF5252;
}

nav ul li:nth-child(2) a i:not(.fa-caret-down):not(.fa-caret-up) {
    background-color: rgba(127, 209, 174, 0.2);
    color: #4CAF50;
}

nav ul li:nth-child(3) a i:not(.fa-caret-down):not(.fa-caret-up) {
    background-color: rgba(255, 209, 102, 0.2);
    color: #FFC107;
}

nav ul li:nth-child(4) a i:not(.fa-caret-down):not(.fa-caret-up) {
    background-color: rgba(191, 226, 230, 0.2);
    color: #03A9F4;
}

nav ul li:nth-child(5) a i:not(.fa-caret-down):not(.fa-caret-up) {
    background-color: rgba(147, 112, 219, 0.2);
    color: #9C27B0;
}

nav ul li:nth-child(6) a i:not(.fa-caret-down):not(.fa-caret-up) {
    background-color: rgba(255, 182, 193, 0.2);
    color: #E91E63;
}

nav ul li a:hover i:not(.fa-caret-down):not(.fa-caret-up) {
    transform: scale(1.1) rotate(5deg);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i.fa-caret-down {
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.dropdown:hover .dropdown-toggle i.fa-caret-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 10px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: 8px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    background-color: rgba(255, 255, 255, 0.95);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    width: 100%;
    margin: 0;
    margin-bottom: 5px;
}

.dropdown-menu a {
    display: flex !important;
    align-items: center;
    padding: 12px 15px;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 5px 0;
    font-weight: 600;
    width: 100%;
    border: 2px solid transparent;
}

/* Dropdown menu item backgrounds */
.dropdown-menu li:nth-child(1) a {
    background-color: rgba(255, 114, 114, 0.1);
}

.dropdown-menu li:nth-child(2) a {
    background-color: rgba(127, 209, 174, 0.1);
}

.dropdown-menu li:nth-child(3) a {
    background-color: rgba(255, 209, 102, 0.1);
}

.dropdown-menu li:nth-child(4) a {
    background-color: rgba(147, 112, 219, 0.1);
}

.dropdown-menu a:hover {
    transform: translateX(5px);
}

/* Dropdown menu item hover states */
.dropdown-menu li:nth-child(1) a:hover,
.dropdown-menu li:nth-child(1) a.active {
    background-color: rgba(255, 114, 114, 0.2);
    border-color: rgba(255, 114, 114, 0.5);
}

.dropdown-menu li:nth-child(2) a:hover,
.dropdown-menu li:nth-child(2) a.active {
    background-color: rgba(127, 209, 174, 0.2);
    border-color: rgba(127, 209, 174, 0.5);
}

.dropdown-menu li:nth-child(3) a:hover,
.dropdown-menu li:nth-child(3) a.active {
    background-color: rgba(255, 209, 102, 0.2);
    border-color: rgba(255, 209, 102, 0.5);
}

.dropdown-menu li:nth-child(4) a:hover,
.dropdown-menu li:nth-child(4) a.active {
    background-color: rgba(147, 112, 219, 0.2);
    border-color: rgba(147, 112, 219, 0.5);
}

.dropdown-menu a i {
    margin-right: 10px;
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 12px;
}

/* Dropdown menu item icon backgrounds */
.dropdown-menu li:nth-child(1) a i {
    background-color: rgba(255, 114, 114, 0.2);
    color: #FF5252;
}

.dropdown-menu li:nth-child(2) a i {
    background-color: rgba(127, 209, 174, 0.2);
    color: #4CAF50;
}

.dropdown-menu li:nth-child(3) a i {
    background-color: rgba(255, 209, 102, 0.2);
    color: #FFC107;
}

.dropdown-menu li:nth-child(4) a i {
    background-color: rgba(147, 112, 219, 0.2);
    color: #9C27B0;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Media queries for responsive design */
@media (max-width: 1024px) {
    .logo img {
        max-width: 525px;
    }
    
    nav ul {
        gap: 8px;
        padding: 4px;
    }
    
    nav ul li a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    nav ul li a i:not(.fa-caret-down):not(.fa-caret-up) {
        padding: 8px;
        margin-right: 5px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        padding: 0;
        height: auto;
        min-height: 70px;
    }
    
    .logo-container {
        padding: 10px 15px;
    }
    
    .nav-container {
        width: 100%;
        padding: 10px 15px;
        justify-content: center;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .logo img {
        max-width: 300px;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #FFFFFF;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        padding-top: 80px;
        border-radius: 0 0 0 20px;
        justify-content: flex-start;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 15px;
        gap: 12px;
        background-color: transparent;
        box-shadow: none;
        width: 100%;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        padding: 15px;
        width: 100%;
        border-radius: 15px;
        display: flex;
        align-items: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        margin-top: 5px;
        margin-bottom: 10px;
        display: none;
        border: none;
        width: 100%;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-toggle {
        justify-content: space-between;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .overlay.active {
        display: block;
    }
    
    .hero {
        padding: 180px 0 80px; /* Adjusted for mobile */
    }
}

@media screen and (max-width: 480px) {
    .logo-container {
        padding: 8px 10px;
    }
    
    .logo img {
        max-width: 225px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 150px 0 60px; /* Further adjusted for small screens */
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--white) 100%);
    text-align: center;
    padding: 250px 0 100px; /* Reduced from 300px to match smaller logo */
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.icy-image-wrapper {
    flex: 0 0 auto;
    margin-left: 20px;
    position: relative;
}

.icy-character {
    max-width: 180px;
    transform: rotate(45deg);
    filter: drop-shadow(3px 5px 10px rgba(0, 0, 0, 0.15));
    animation: float-animation 6s ease-in-out infinite;
}

@keyframes float-animation {
    0% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(-10px);
    }
    100% {
        transform: rotate(45deg) translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.hero .btn {
    animation: fadeIn 1.5s ease;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--white) 100%);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.stats h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--dark-gray);
    position: relative;
    display: inline-block;
}

.stats h2:after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

.api-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.status-indicator {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.status-indicator.loading {
    background-color: #f8f9fa;
    color: #6c757d;
}

.status-indicator.success {
    background-color: #d4edda;
    color: #28a745;
}

.status-indicator.error {
    background-color: #f8d7da;
    color: #dc3545;
}

.status-indicator:before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.loading:before {
    background-color: #6c757d;
    animation: pulse 1.5s infinite;
}

.status-indicator.success:before {
    background-color: #28a745;
}

.status-indicator.error:before {
    background-color: #dc3545;
}

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

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.stat-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 150px;
    flex: 1;
    max-width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    opacity: 0.8;
}

.stat-box i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-weight: 600;
}

/* Videos Section */
.videos {
    background-color: var(--primary-color);
    padding: 80px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.video-item {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #f0f0f0;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 114, 114, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-button i {
    color: white;
    font-size: 24px;
}

.video-item:hover .play-button {
    opacity: 1;
}

.video-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    color: var(--dark-gray);
    line-height: 1.4;
}

.video-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.video-stats-container {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
}

.video-stats {
    font-size: 0.9rem;
    color: #666;
    margin: 4px 0;
    display: inline-flex;
    align-items: center;
    margin-right: 16px;
    font-weight: 500;
}

.video-stats i {
    margin-right: 6px;
    color: var(--secondary-color);
}

#load-more {
    display: block;
    margin: 0 auto;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
}

/* Play Area Section */
.play-area {
    background-color: var(--white);
    padding: 80px 0;
}

.play-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.play-card {
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Desktop: Flip on hover */
@media (min-width: 769px) {
    .play-card:hover .card-inner {
        transform: rotateY(180deg);
    }
}

/* Mobile: Make the entire card clickable */
@media (max-width: 768px) {
    .play-card[data-href] {
        position: relative;
    }
    
    .play-card[data-href]::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.05);
        opacity: 0;
        transition: opacity 0.3s;
        z-index: 10;
        pointer-events: none;
    }
    
    .play-card[data-href]:active::after {
        opacity: 1;
    }
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card-front {
    background-color: var(--primary-color);
    color: var(--dark-gray);
    box-shadow: var(--box-shadow);
}

.card-back {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: rotateY(180deg);
    box-shadow: var(--box-shadow);
}

.card-front i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.card-front h3 {
    font-size: 1.5rem;
}

.card-back p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Merchandise Section */
.merchandise {
    background-color: var(--primary-color);
}

.merch-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.merch-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.merch-card:hover {
    transform: translateY(-10px);
}

.merch-icon {
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.merch-icon i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.merch-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.merch-card p {
    color: var(--secondary-color);
    font-weight: 600;
}

/* About Us Section */
.about {
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-content h3 {
    margin-top: 30px;
}

.about-content ul {
    margin-bottom: 30px;
}

.about-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.about-content ul li::before {
    content: '•';
    color: var(--secondary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.about-content .btn {
    margin-top: 20px;
}

/* Contact Section */
.contact {
    background-color: var(--primary-color);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
}

.contact-item p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-left: 15px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

.admin-buttons {
    display: none; /* Hidden by default */
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
}

.admin-buttons .btn-small {
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Styles */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .stats {
        padding: 40px 0; /* Reduced padding for mobile */
    }
    
    .stats-container {
        flex-direction: row; /* Keep them in a row but with wrap */
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px; /* Smaller gap on mobile */
    }
    
    .stat-box {
        min-width: 120px; /* Smaller minimum width */
        padding: 20px; /* Less padding */
        margin-bottom: 0; /* Remove bottom margin since we're using gap */
        max-width: calc(50% - 15px); /* Two boxes per row with gap consideration */
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .play-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .play-card {
        margin-bottom: 15px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .icy-image-wrapper {
        margin: 20px auto 0;
    }
    
    .icy-character {
        max-width: 150px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .icy-character {
        max-width: 120px;
    }
    
    .stats h2 {
        font-size: 1.8rem;
    }
    
    .stat-box {
        min-width: 100px;
        padding: 15px;
        max-width: 100%; /* Full width on very small screens */
    }
    
    .stat-number {
        font-size: 1.5rem; /* Smaller numbers on mobile */
    }
}

/* Video stats styling */
.video-stats {
    font-size: 0.85rem;
    color: #666;
    margin: 2px 0;
    display: inline-block;
    margin-right: 12px;
}

.video-stats i {
    margin-right: 4px;
    color: #ff0000;
}

.video-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

/* Navigation colorful indicators */
nav ul li:nth-child(1) a:before { background: linear-gradient(to top, rgba(255, 114, 114, 0.3) 0%, rgba(255,255,255,0) 100%); }
nav ul li:nth-child(2) a:before { background: linear-gradient(to top, rgba(127, 209, 174, 0.3) 0%, rgba(255,255,255,0) 100%); }
nav ul li:nth-child(3) a:before { background: linear-gradient(to top, rgba(255, 209, 102, 0.3) 0%, rgba(255,255,255,0) 100%); }
nav ul li:nth-child(4) a:before { background: linear-gradient(to top, rgba(191, 226, 230, 0.3) 0%, rgba(255,255,255,0) 100%); }
nav ul li:nth-child(5) a:before { background: linear-gradient(to top, rgba(147, 112, 219, 0.3) 0%, rgba(255,255,255,0) 100%); }
nav ul li:nth-child(6) a:before { background: linear-gradient(to top, rgba(255, 182, 193, 0.3) 0%, rgba(255,255,255,0) 100%); }

/* Navigation icons styling */
nav ul li a i:not(.fa-caret-down):not(.fa-caret-up) {
    margin-right: 5px;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

nav ul li a:hover i:not(.fa-caret-down):not(.fa-caret-up) {
    transform: scale(1.2);
}

/* Colorful icons */
nav ul li:nth-child(1) a i { color: var(--secondary-color); }
nav ul li:nth-child(2) a i { color: var(--tertiary-color); }
nav ul li:nth-child(3) a i { color: #FFD166; }
nav ul li:nth-child(4) a i { color: var(--primary-color); }
nav ul li:nth-child(5) a i { color: #9370DB; }
nav ul li:nth-child(6) a i { color: #FFB6C1; }

/* Dropdown menu item icons */
.dropdown-menu li:nth-child(1) a i { color: var(--secondary-color); }
.dropdown-menu li:nth-child(2) a i { color: var(--tertiary-color); }
.dropdown-menu li:nth-child(3) a i { color: #FFD166; }
.dropdown-menu li:nth-child(4) a i { color: #9370DB; }

/* Mobile nav enhancements */
@media (max-width: 768px) {
    nav {
        background-color: #FFFFFF;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Activity Pages Top Sections - ensures content doesn't go under fixed header */
.activity-section {
    padding-top: 260px !important; /* Added !important to override any other padding */
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    .activity-section {
        padding-top: 180px !important; /* Added !important */
    }
}

@media (max-width: 480px) {
    .activity-section {
        padding-top: 160px !important; /* Added !important */
    }
}

/* Activity-specific page styling */
.game-page header,
.puzzle-page header {
    position: absolute; /* Change from fixed to absolute for these specific pages */
}

.game-page section:first-of-type,
.puzzle-page section:first-of-type {
    margin-top: 0;
    padding-top: 260px; /* Ensure enough space for the header */
}

@media (max-width: 768px) {
    .game-page section:first-of-type,
    .puzzle-page section:first-of-type {
        padding-top: 180px;
    }
}

@media (max-width: 480px) {
    .game-page section:first-of-type,
    .puzzle-page section:first-of-type {
        padding-top: 160px;
    }
}
