/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #004d40;
    --secondary-color: #e0f7fa;
    --accent-color: #00897b;
    --text-color: #212121;
    --button-bg-color: #bdbdbd;
    --button-text-color: #212121;
    --white-color: #ffffff;
    --light-gray: #f5f5f5;
    
    /* Font Families */
    --font-primary: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Poppins', 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    --font-body: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Performance & Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .nav-menu {
        transition: none;
    }
}
/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}

h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

p {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
}

/* Specialized Typography */
.hero h1 {
    font-family: var(--font-heading);
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
}

.hero p {
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
}

.description-section h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

.description-section p {
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
}

.comments h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

/* Button Typography */
.btn-primary, .btn-secondary, .btn-order, .btn-detail, .btn-view-detail, .btn-send {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

/* Navigation Typography */
.nav-menu a {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

/* Form Typography */
input, textarea, .name-input {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
}

/* Code Typography */
code, pre {
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
}

/* Fade-in Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fade-in { animation: fadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.fade-in-up { animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.fade-in-left { animation: fadeInLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.fade-in-right { animation: fadeInRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.fade-in-scale { animation: fadeInScale 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }

/* Enhanced fade-in animations for scroll-triggered elements */
.fade-in-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced keyframes with better easing */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
        filter: blur(2px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
        filter: blur(0px);
    }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(40px) scale(0.95); 
        filter: blur(1px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        filter: blur(0px);
    }
}

@keyframes fadeInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
        filter: blur(1px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
        filter: blur(0px);
    }
}

@keyframes fadeInRight {
    from { 
        opacity: 0; 
        transform: translateX(30px); 
        filter: blur(1px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
        filter: blur(0px);
    }
}

@keyframes fadeInScale {
    from { 
        opacity: 0; 
        transform: scale(0.8); 
        filter: blur(2px);
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
        filter: blur(0px);
    }
}

/* Staggered animation delays */
.fade-delay-1 { animation-delay: 0.1s; }
.fade-delay-2 { animation-delay: 0.2s; }
.fade-delay-3 { animation-delay: 0.3s; }
.fade-delay-4 { animation-delay: 0.4s; }
.fade-delay-5 { animation-delay: 0.5s; }

.animate-on-load { opacity: 0; }

/* Smooth Transitions */
.product-card, .merch-card, .team-member, .feature-card, .rule-card, .comment-box {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary, .btn-secondary, .btn-order, .btn-detail, .btn-view-detail, .btn-send {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu a {
    transition: background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu a:hover { transform: translateY(-1px); }

.social-btn { transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

input, textarea, .name-input {
    transition: border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

input:focus, textarea:focus, .name-input:focus { 
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1); 
}

/* Mobile input optimizations */
@media (max-width: 680px) {
    input, textarea, select, .name-input {
        font-size: 16px; /* Prevent zoom */
    }
    
    /* Touch carousel support */
    .comment-carousel-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .comment-carousel-container::-webkit-scrollbar {
        display: none;
    }
    
    .comment-card {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-left { flex: 1; }

.logo {
    color: var(--white-color);
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.logo-text {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--white-color);
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--white-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    position: relative;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--white-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    border-radius: 2px;
}

.nav-menu a:hover { background-color: var(--accent-color); }

.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); }

.btn-contact {
    background-color: var(--accent-color) !important;
    border: 2px solid var(--white-color);
    color: var(--white-color) !important;
}

.btn-contact:hover {
    background-color: var(--white-color) !important;
    color: var(--primary-color) !important;
}

/* Main Content */
main {
    margin-top: 120px;
    padding: 0; /* Remove padding to eliminate gap */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section with Video Background */
.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -120px;
    margin-bottom: 0; /* Ensure no bottom margin */
    padding-top: 120px;
    min-height: 600px;
    max-height: 800px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Background Container */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: transparent; /* Removed black background */
}

.video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    object-fit: cover;
    border: none;
    outline: none;
    background: transparent; /* Ensure transparent background */
    z-index: 1;
}

/* Ensure video plays on mobile */
.video-iframe::-webkit-media-controls {
    display: none !important;
}

/* Fallback for browsers that don't support object-fit */
@supports not (object-fit: cover) {
    .video-iframe {
        width: auto;
        height: 100vh;
        min-width: 100vw;
    }
}

/* Video Overlay for better text visibility */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-centered {
    text-align: center;
    color: var(--white-color);
    max-width: 800px;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-centered h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.hero-centered p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary {
    background: var(--white-color);
    color: #004D40;
    border: 2px solid var(--white-color);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.hero-buttons .btn-secondary {
    background: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.hero-buttons .btn-secondary:hover {
    background: var(--white-color);
    color: #004D40;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive Design for Video Hero */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        max-height: 700px;
        height: 80vh;
    }
    
    .video-iframe {
        width: 177.78vh; /* Maintain 16:9 ratio */
        height: 100vh;
        min-width: 100vw;
        min-height: 56.25vw;
        max-width: 100vw;
        max-height: 80vh;
    }
    
    .hero-centered {
        padding: 20px;
    }
    
    .hero-centered h1 {
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: 15px;
    }
    
    .hero-centered p {
        font-size: clamp(0.9rem, 1.5vw, 1rem);
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        padding: 16px 32px;
        font-size: 16px;
        min-height: 48px;
        min-width: 140px;
        width: 220px;
        justify-content: center;
    }
    
    /* Touch-friendly enhancements */
    button, [type="button"], [type="submit"], [type="reset"], a.btn {
        min-height: 44px;
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
        max-height: 600px;
        height: 70vh;
    }
    
    .video-iframe {
        width: 177.78vh; /* Maintain 16:9 ratio */
        height: 100vh;
        min-width: 100vw;
        min-height: 56.25vw;
        max-width: 100vw;
        max-height: 70vh;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-centered {
        padding: 15px;
    }
    
    .hero-centered h1 {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
        margin-bottom: 12px;
    }
    
    .hero-centered p {
        font-size: clamp(0.8rem, 1.2vw, 0.9rem);
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        padding: 12px 24px;
        font-size: 13px;
        min-width: 100px;
        width: 180px;
    }
}

/* Buttons */
.btn-primary {
    background: var(--white-color);
    color: #004D40;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: #f8f8f8;
}

.btn-secondary {
    background: transparent;
    color: var(--white-color);
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    border: 2px solid var(--white-color);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--white-color);
    color: #004D40;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Description Section */
.description-section {
    padding: 60px 20px;
    margin-bottom: 20px;
    margin-top: 0; /* Ensure no top margin */
    border-radius: 10px;
    background: transparent; /* Ensure transparent background */
    border: none; /* Ensure no border */
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.description-content h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
}

.description-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
}

/* Board Game Purchase Section */
.boardgame-purchase {
    padding: 60px 40px;
    margin: 20px 0;
}

.boardgame-purchase h2 {
    text-align: center;
    color: var(--primary-color) ;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

.boardgame-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.boardgame-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.boardgame-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.boardgame-image:hover img {
    transform: scale(1.05);
}

.boardgame-info {
    padding: 30px;
}

.boardgame-info h3 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.boardgame-description {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.boardgame-price {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 25px;
}

.btn-whatsapp-purchase {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-purchase:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #128C7E, #075E54);
}

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

@media (min-width: 768px) {
    .boardgame-card {
        flex-direction: row;
    }

    .boardgame-image {
        width: 50%;
        height: auto;
        min-height: 500px;
    }

    .boardgame-info {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Merchandise Section */
.merchandise {
    margin-bottom: 40px;
}

.merchandise h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

.merchandise h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.product-card, .merch-card {
    background: var(--white-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0,0,0,0.05);
    width: 100%;
    max-width: 380px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.product-card:hover, .merch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.product-image, .merch-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--light-gray), #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img, .merch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-image:hover img, .merch-image:hover img {
    transform: scale(1.08);
}

.product-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border-radius: 15px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hat-icon {
    width: 80px;
    height: 60px;
    background: #333;
    border-radius: 50% 50% 0 0;
    position: relative;
}

.hat-icon::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -10px;
    right: -10px;
    height: 20px;
    background: #4CAF50;
    border-radius: 5px;
}

.merch-placeholder {
    color: #999;
    font-size: 48px;
}

.product-content, .merch-content {
    padding: 25px;
    background: linear-gradient(135deg, #ffffff, #fafafa);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3, .merch-title {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.product-card .price, .merch-price {
    color: var(--accent-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 2px solid var(--light-gray);
}

.merch-description {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.merch-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.merch-actions .btn-order {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.merch-actions .btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 137, 123, 0.3);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

/* Responsive Design for Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .product-card, .merch-card {
        max-width: 100%;
        min-height: 460px;
    }
}

/* Responsive Design */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-top: 10px;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.btn-whatsapp:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

/* Order Modal Enhancements */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.order-modal .modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.order-modal .carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: white;
    color: var(--primary-color);
    border-radius: 15px 15px 0 0;
}

.order-modal .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.order-modal .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.order-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.order-form {
    padding: 20px;
}

.order-form .form-group {
    margin-bottom: 15px;
}

.order-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

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

.order-form textarea {
    resize: vertical;
    min-height: 80px;
}

.order-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.order-submit {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.order-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 137, 123, 0.3);
}

.order-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.order-cancel:hover {
    background: #5a6268;
}

/* WhatsApp Success Message */
.whatsapp-success {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    animation: slideInRight 0.5s ease;
}

.whatsapp-success p {
    margin: 0;
    font-weight: 600;
}

.btn-view-detail, .btn-order, .btn-detail {
    color: var(--white-color);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
}

.btn-view-detail {
    background: #4CAF50;
}

.btn-view-detail:hover { background: #45a049; }

.btn-order {
    background: var(--accent-color);
}

.btn-order:hover { background: #00695c; }

.btn-detail {
    background: var(--button-bg-color);
    color: var(--button-text-color);
}

.btn-detail:hover { background: #9e9e9e; }

/* Comment Carousel Section - Upgraded Layout */
.comment-carousel-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
    flex-wrap: wrap;
    gap: 15px;
}

.carousel-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* .comment-count-badge {
    background: #e0e0e0;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
} */

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.carousel-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
    transform: scale(1);
    box-shadow: none;
    opacity: 0.6;
}

.carousel-indicator {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.85rem;
    min-width: 50px;
    text-align: center;
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.comment-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fafbfc;
    min-height: 120px;
    max-height: 200px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.comment-carousel {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}

.comment-card {
    min-width: 100%;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.comment-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.comment-card.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: #999;
    font-style: italic;
    background: #f8f9fa;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-avatar i {
    font-size: 16px;
}

.comment-meta {
    flex: 1;
    min-width: 0;
}

.comment-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comment-content {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 60px;
    /* Fallback for non-webkit browsers */
    display: -moz-box;
    -moz-line-clamp: 3;
    -moz-box-orient: vertical;
    display: box;
    line-clamp: 3;
    box-orient: vertical;
}

.comment-content p {
    margin: 0;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.dot:hover {
    background: var(--accent-color);
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 2px 4px rgba(0, 77, 64, 0.3);
}

/* Empty State */
.comment-carousel-container.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.comment-carousel-container.empty::after {
    content: "📝 Belum ada komentar";
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Responsive Design for Comment Carousel */
@media (max-width: 768px) {
    .comment-carousel-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .carousel-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        text-align: center;
    }
    
    .carousel-header h3 {
        font-size: 1.1rem;
        justify-content: center;
    }
    
    .carousel-controls {
        justify-content: center;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    
    .carousel-indicator {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
    
    .comment-card {
        padding: 14px;
    }
    
    .comment-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .comment-avatar {
        width: 35px;
        height: 35px;
    }
    
    .comment-content {
        padding: 10px;
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        -moz-line-clamp: 2;
        line-clamp: 2;
        max-height: 45px;
    }
}

@media (max-width: 480px) {
    .comment-carousel-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .carousel-header h3 {
        font-size: 1rem;
    }
    
    .comment-carousel-container {
        min-height: 100px;
        max-height: 150px;
    }
    
    .comment-card {
        padding: 12px;
    }
    
    .comment-avatar {
        width: 32px;
        height: 32px;
    }
    
    .comment-avatar i {
        font-size: 14px;
    }
    
    .comment-name {
        font-size: 0.9rem;
    }

    .comment-content {
        padding: 8px;
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        -moz-line-clamp: 2;
        line-clamp: 2;
        max-height: 40px;
    }
    
    .carousel-dots {
        gap: 4px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-header.navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        justify-content: center;
        text-align: center;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .carousel-controls {
        order: 2;
    }
    
    .comment-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .comment-avatar {
        width: 60px;
        height: 60px;
    }
    
    .comment-content {
        text-align: center;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .carousel-indicator {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .comment-carousel-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .comment-card {
        padding: 15px;
    }
    
    .comment-content {
        padding: 12px;
        font-size: 0.9rem;
    }
}

.comments {
    background: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.comments h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 30px;
}

.comments-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.comment-box {
    background: var(--white-color);
    border-radius: 20px;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    max-width: 80%;
    margin-left: auto;
}

.comment-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.comment-box::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
}

.comment-header {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-content {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.comment-form {
    border-top: 2px solid #e0e0e0;
    padding-top: 30px;
}

.comment-form h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

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

.name-input, .comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.name-input:focus, .comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-send {
    background: linear-gradient(135deg, #00897b, #004d40);
    color: var(--white-color);
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 77, 64, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 77, 64, 0.4);
    background: linear-gradient(135deg, #00695c, #00352c);
}

.btn-send:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 77, 64, 0.3);
}

.btn-send::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-send:hover::before { left: 100%; }

/* New Comment Layout Styles */
.comment-form {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.comment-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.comment-history-section {
    background: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.history-header {
    background: white;
    color: var(--primary-color);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

/* .comment-count-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
} */

.comment-scrollable-container {
    max-height: 500px;
    overflow-y: auto;
    background: #fafbfc;
}

.comment-scrollable-container::-webkit-scrollbar {
    width: 8px;
}

.comment-scrollable-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.comment-scrollable-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.comment-scrollable-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.comment-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    animation: slideInUp 0.4s ease;
}

.comment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.comment-card.loading {
    text-align: center;
    color: #999;
    font-style: italic;
    border-left: 4px solid #ddd;
}

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

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
    flex-shrink: 0;
}

.comment-meta {
    flex: 1;
}

.comment-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 4px;
}

.comment-content {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 10px;
}

.comment-content p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comment-form {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .comment-form h3 {
        font-size: 20px;
    }
    
    .history-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .history-header h3 {
        font-size: 18px;
    }
    
    .comment-scrollable-container {
        max-height: 400px;
    }
    
    .comment-list {
        padding: 15px;
        gap: 12px;
    }
    
    .comment-card {
        padding: 15px;
    }
    
    .comment-header {
        gap: 12px;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .comment-name {
        font-size: 15px;
    }

    .comment-content {
        font-size: 14px;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white-color);
    text-align: center;
    padding: 60px 20px 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--white-color), var(--secondary-color), var(--white-color));
    animation: shimmer 3s ease-in-out infinite;
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-content p {
    margin: 8px 0;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

.footer-content p:first-child {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* Social Media */
.social-media {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white-color);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--white-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--white-color);
    text-decoration: none;
}

.social-btn:hover::before {
    width: 100%;
    height: 100%;
}

.social-btn.whatsapp:hover {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-color: #25D366;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.social-btn.instagram:hover {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4);
    border-color: #E4405F;
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

.social-btn.facebook:hover {
    background: linear-gradient(135deg, #1877F2, #0C63D4);
    border-color: #1877F2;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-btn.twitter:hover {
    background: linear-gradient(135deg, #1DA1F2, #0C85D0);
    border-color: #1DA1F2;
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.social-btn i { 
    font-size: 20px; 
    z-index: 1;
    position: relative;
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--gray-color);
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

/* About Page - Enhanced Design */

/* Removed unused Board Section - not used in game.html */

/* Papan Permainan Section */
.papan-permainan-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

/* Removed unused Komponen Permainan Header Section - not used in game.html */

.papan-permainan-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 60px;
    align-items: center;
}

.papan-permainan-left {
    flex: 1;
    text-align: left;
}

.papan-permainan-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.papan-permainan-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.papan-permainan-description:last-child {
    margin-bottom: 0;
}

.papan-permainan-right {
    flex: 1;
}

.papan-permainan-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 77, 64, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.papan-permainan-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 77, 64, 0.25);
}

.papan-permainan-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Responsive Design for Papan Permainan Section */
@media (max-width: 768px) {
    .papan-permainan-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .papan-permainan-left {
        text-align: center;
        order: 2;
    }
    
    .papan-permainan-right {
        order: 1;
    }
    
    .papan-permainan-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .papan-permainan-description {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .papan-permainan-section {
        padding: 60px 0;
    }
}

/* Game Hero Section */
.game-hero-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5f3f 100%);
    color: var(--white-color);
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.game-hero-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.game-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.game-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 500;
    margin-bottom: var(--spacing-xl);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-hero-text {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white-color);
    text-align: center;
}

.game-hero-text p {
    margin-bottom: var(--spacing-md);
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: var(--line-height-relaxed);
    color: var(--white-color);
}

.game-hero-footer {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: var(--spacing-xl);
}

/* Mobile Responsive for Game Hero */
@media (max-width: 768px) {
    .game-hero-custom {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }
    
    .game-hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: var(--spacing-md);
    }
    
    .game-hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: var(--spacing-lg);
    }
    
    .game-hero-text {
        font-size: clamp(0.95rem, 2.5vw, 1rem);
        margin-bottom: var(--spacing-lg);
    }
    
    .game-hero-text p {
        font-size: clamp(0.95rem, 2.5vw, 1rem);
        margin-bottom: var(--spacing-sm);
    }
    
    .game-hero-footer {
        font-size: clamp(1rem, 3vw, 1.1rem);
        margin-top: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .game-hero-custom {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .game-hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    
    .game-hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }
    
    .game-hero-text {
        font-size: clamp(0.9rem, 3vw, 0.95rem);
    }
    
    .game-hero-text p {
        font-size: clamp(0.9rem, 3vw, 0.95rem);
    }
    
    .game-hero-footer {
        font-size: clamp(0.9rem, 4vw, 1rem);
    }
}

/* About Hero Section */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white-color);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.about-description p {
    margin-bottom: 15px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Developer Section */
.developer-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.developer-section .dev-card {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.developer-section .dev-photo {
    position: relative;
    width: 350px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.developer-section .dev-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dev-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 137, 123, 0.3);
    font-size: 18px;
}

.developer-section .dev-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dev-header {
    margin-bottom: 30px;
}

.dev-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.dev-title {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 500;
}

.dev-details {
    margin-bottom: 30px;
}

.dev-details .dev-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.dev-details .dev-label {
    font-weight: 600;
    color: var(--text-color);
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-details .dev-value {
    color: var(--primary-color);
    font-weight: 500;
}

.dev-skills {
    margin-bottom: 30px;
}

.dev-skills h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.developer-section .dev-info .social-media {
    margin-top: 0;
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.developer-section .dev-info .social-media .social-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.developer-section .dev-info .social-media .social-btn.github {
    background: #333;
    border-color: #333;
}

.developer-section .dev-info .social-media .social-btn.github:hover {
    background: #555;
    border-color: #555;
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.4);
}

.developer-section .dev-info .social-media .social-btn.whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.developer-section .dev-info .social-media .social-btn.whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.developer-section .dev-info .social-media .social-btn.instagram {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4);
    border-color: #E4405F;
    color: white;
}

.developer-section .dev-info .social-media .social-btn.instagram:hover {
    background: linear-gradient(135deg, #C13584, #833AB4, #E4405F);
    border-color: #C13584;
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.4);
}

.developer-section .dev-info .social-media .social-btn.email {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
}

.developer-section .dev-info .social-media .social-btn.email:hover {
    background: #d33b2c;
    border-color: #d33b2c;
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.4);
}

/* Philosophy Section */
.philosophy-section {
    padding: 60px 20px;
    background: white;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.philosophy-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.philosophy-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.philosophy-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.philosophy-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Journey Section */
.journey-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.journey-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 30px;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--accent-color);
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Vision Section */
.vision-section {
    padding: 60px 20px;
    background: white;
}

.vision-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.vision-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 25px;
}

.reasons-list {
    margin-bottom: 30px;
}

.reason-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.reason-item .number {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.reason-item .text {
    flex: 1;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 3px;
}

.vision-goals h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 25px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.goal-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.goal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.goal-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.goal-card h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.goal-card p {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Original About Page Styles (Kept for compatibility) */
.about-page {
    display: none;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-hero {
        padding: 60px 15px 40px;
    }
    
    .developer-section .dev-card {
        flex-direction: column;
    }
    
    .developer-section .dev-photo {
        width: 100%;
        height: 250px;
    }
    
    .developer-section .dev-info {
        padding: 30px;
    }
    
    .philosophy-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .vision-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 16px;
        margin-right: 20px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .journey-timeline::before {
        left: 25px;
    }
    
    .dev-badge {
        width: 40px;
        height: 40px;
        font-size: 14px;
        top: 15px;
        right: 15px;
    }
    
    .skills-grid {
        gap: 8px;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 40px 15px 30px;
    }
    
    .developer-section .dev-info {
        padding: 20px;
    }
    
    .dev-header h3 {
        font-size: 1.5rem;
    }
    
    .dev-title {
        font-size: 0.9rem;
    }
    
    .dev-details .dev-label {
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    .dev-details .dev-value {
        font-size: 0.9rem;
    }
    
    .philosophy-card {
        padding: 20px;
    }
    
    .philosophy-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .philosophy-card h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 14px;
        margin-right: 15px;
    }
    
    .journey-timeline::before {
        left: 20px;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
    
    .goal-card {
        padding: 20px;
    }
    
    .goal-card i {
        font-size: 1.5rem;
    }
    
    .goal-card h4 {
        font-size: 1rem;
    }
    
    .goal-card p {
        font-size: 0.85rem;
    }
    
    .vision-text h3 {
        font-size: 1.3rem;
    }
    
    .vision-goals h3 {
        font-size: 1.3rem;
    }
    
    .reason-item .number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .reason-item .text {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

.about-desc {
    background: var(--white-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
}

.about-desc h2 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 22px;
    color: var(--primary-color);
}

.about-desc p {
    color: #2b2b2b;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 12px;
    font-size: 16px;
}

.about-desc p:last-child { margin-bottom: 0; }

.reasons-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reason-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    line-height: 1.6;
}

.reason-item .number {
    font-weight: 700;
    font-size: 18px;
    color: white;
    min-width: 30px;
    flex-shrink: 0;
}

.reason-item .text {
    font-size: 16px;
    color: var(--text-color);
    flex: 1;
}

.about-desc p strong {
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 6px;
}

/* About Hero */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white-color);
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    color: var(--white-color);
}

/* Game Page */
.game-hero-custom {
    background: #00695c;
    border-radius: 12px;
    padding: 34px 36px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.game-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    color: var(--white-color);
}

.game-hero-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.game-hero-subtitle {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 18px;
}

.game-hero-text p {
    font-size: clamp(16px, 0.5vw + 14px, 20px);
    line-height: 1.8;
    margin-bottom: 14px;
    text-align: justify;
}

.game-hero-footer {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: center;
    margin-top: 18px;
}

.board-section {
    margin-top: 22px;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.board-container {
    max-width: 1200px;
    margin: 0 auto;
}

.board-content {
    display: flex;
    gap: var(--spacing-2xl);
    align-items: center;
    justify-content: space-between;
}

.board-text {
    flex: 1;
    min-width: 0;
}

.board-title {
    color: var(--primary-color);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    text-align: left;
    line-height: var(--line-height-tight);
}

.board-description {
    color: var(--text-color);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    text-align: left;
    margin: 0;
}

.board-image {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.board-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.board-image img:hover {
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .board-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .board-content {
        flex-direction: column;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .board-title {
        text-align: center;
        font-size: var(--font-size-2xl);
    }
    
    .board-description {
        text-align: center;
        font-size: var(--font-size-base);
    }
    
    .board-image {
        order: -1;
    }
    
    .board-image img {
        max-width: 100%;
    }
}

.components-section {
    margin-top: 40px;
    padding: 0 20px;
}

.components-content {
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: var(--white-color);
}

.components-title {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}

.components-image {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.components-image img {
    width: 100%;
    max-width: 760px;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-rules-section {
    margin-top: 40px;
    padding: 0 20px;
}

.rules-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.rule-card {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 15px;
    padding: 30px;
    color: var(--white-color);
    box-shadow: 0 8px 25px rgba(0, 77, 64, 0.3);
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 77, 64, 0.4);
}

.rule-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.rule-header i {
    font-size: 28px;
    color: var(--secondary-color);
}

.rule-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--white-color);
}

.rule-content {
    font-size: 16px;
    line-height: 1.6;
}

.rule-content ul, .rule-content ol {
    margin: 0;
    padding-left: 20px;
}

.rule-content li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
}

.rule-content strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.game-end {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.game-end strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    color: var(--secondary-color);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
    }
    
    .logo {
        justify-content: center;
        text-align: center;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-color);
        flex-direction: column;
        padding: 30px 20px;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        gap: 15px;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 15px;
        font-size: var(--font-size-lg);
        border-radius: 10px;
        text-align: center;
        color: var(--white-color);
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .nav-menu a.active {
        background-color: rgba(255, 255, 255, 0.2);
        font-weight: 600;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: 2px solid var(--white-color);
        border-radius: 6px;
        font-size: 1.4rem;
        color: var(--white-color);
        cursor: pointer;
        padding: 10px;
        min-height: 44px;
        min-width: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-toggle:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    /* Merchandise Responsive */
    .merchandise h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px 50px;
    }

    .product-card, .merch-card {
        max-width: 100%;
        min-height: 450px;
    }

    .product-image, .merch-image {
        height: 240px;
    }

    .product-content, .merch-content {
        padding: 20px;
    }

    .product-card h3, .merch-title {
        font-size: 20px;
        min-height: auto;
        margin-bottom: 10px;
    }

    .product-card .price, .merch-price {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .merch-description {
        font-size: 14px;
        min-height: auto;
        margin-bottom: 20px;
    }

    .merch-actions .btn-order {
        padding: 12px 20px;
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 10px;
    }
    
    main {
        padding: 15px;
        margin-top: 100px;
    }
    
    .description-section,
    .merchandise {
        padding: 40px 15px;
    }

    .form-actions {
        flex-direction: column;
    }

    .about-hero { padding: 40px 20px; }
    .about-content h1 { font-size: 32px; }
    .about-description p { font-size: 16px; }
    
    .about-desc { padding: 24px; }
    
    .game-hero-custom { padding: 28px 24px; }
    .game-hero-title { font-size: 26px; }
    .game-hero-subtitle { font-size: 16px; }
    
    .rules-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rule-card { padding: 25px; }
    .rule-header {
        margin-bottom: 15px;
        gap: 12px;
    }
    
    .rule-header i { font-size: 24px; }
    .rule-header h3 { font-size: 20px; }
    .rule-content { font-size: 15px; }
    .rule-content li { margin-bottom: 10px; }
    
    .order-modal .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .order-form .form-actions {
        flex-direction: column;
    }
    
    .order-submit,
    .order-cancel {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 15px 60px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .description-section,
    .merchandise {
        padding: 40px 15px;
    }

    .product-grid {
        padding: 0 15px;
    }

    .comment-form {
        padding: 20px 15px;
    }
    
    .game-rules-section {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .rule-card { padding: 20px; }
    .rule-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .rule-header i { font-size: 22px; }
    .rule-header h3 { font-size: 18px; }
    .rule-content { font-size: 14px; }
    
    .rule-content ul, .rule-content ol {
        padding-left: 15px;
    }
    
    .rule-content li { margin-bottom: 8px; }
    
    .social-media {
        gap: 12px;
        margin: 25px 0;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .social-btn i { font-size: 18px; }
    
    footer {
        padding: 40px 15px 25px;
        margin-top: 40px;
    }
    
    .footer-content p:first-child {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .footer-content p {
        font-size: 14px;
    }
    
    .comment-carousel-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .comment-card {
        padding: 15px;
    }
    
    .comment-content {
        padding: 12px;
        font-size: 0.9rem;
    }
}
