/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --gold-color: #ffd700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--gradient-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(22, 33, 62, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(15, 52, 96, 0.2) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-login {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.btn-login:hover {
    background: var(--gold-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-register {
    background: var(--gradient-gold);
    color: var(--primary-color);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}



/* Login and Register Sections */
.login-section,
.register-section {
    padding: 80px 0;
    background: rgba(22, 33, 62, 0.3);
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

.login-section h2,
.register-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--gold-color);
}

.login-content,
.register-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.login-info,
.register-info {
    flex: 1;
}

.login-visual,
.register-visual {
    flex: 0 0 200px;
    text-align: center;
}

.login-visual img,
.register-visual img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.login-visual img:hover,
.register-visual img:hover {
    transform: scale(1.05);
}

.login-info h3,
.register-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--gold-color);
}

.login-info h4,
.register-info h4 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-light);
}

.login-info p,
.register-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.login-info ol,
.register-info ol {
    margin: 1rem 0 2rem 2rem;
}

.login-info li,
.register-info li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-login-large,
.btn-register-large {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--primary-color);
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Features Section */
.features {
    padding: 80px 0;
}

/* Gaming Variety Section */
.gaming-variety {
    padding: 80px 0;
    background: rgba(15, 52, 96, 0.2);
}

.gaming-variety h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--gold-color);
}

.gaming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gaming-item {
    background: rgba(22, 33, 62, 0.4);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.gaming-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--gold-color);
}

.gaming-item img {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: block;
    transition: var(--transition);
}

.gaming-item:hover img {
    transform: scale(1.1);
}

.gaming-item h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.gaming-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--gold-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(22, 33, 62, 0.4);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--gold-color);
}

.feature-card img {
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold-color);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.feature-card p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: rgba(15, 52, 96, 0.8);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--gold-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(26, 26, 46, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .gaming-grid {
        grid-template-columns: 1fr;
    }
    
    .login-content,
    .register-content {
        flex-direction: column;
        text-align: center;
    }
    
    .login-visual,
    .register-visual {
        flex: none;
        margin-top: 2rem;
    }
    
    .login-section h2,
    .register-section h2,
    .features h2,
    .gaming-variety h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--gold-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-light: #ffffff;
        --text-dark: #000000;
        --gold-color: #ffff00;
    }
}

/* Page Header Styles */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: rgba(22, 33, 62, 0.4);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Content Section Styles */
.content-section {
    padding: 60px 0;
}

.policy-content,
.terms-content,
.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.policy-content h2,
.terms-content h2,
.disclaimer-content h2 {
    color: var(--gold-color);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 0.5rem;
}

.policy-content h3,
.terms-content h3,
.disclaimer-content h3 {
    color: var(--text-light);
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.policy-content p,
.terms-content p,
.disclaimer-content p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.policy-content ul,
.terms-content ul,
.disclaimer-content ul {
    margin: 1rem 0 1rem 2rem;
}

.policy-content li,
.terms-content li,
.disclaimer-content li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Warning Box Styles */
.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid var(--gold-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.warning-box h2 {
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.final-notice {
    background: rgba(22, 33, 62, 0.6);
    border: 1px solid var(--gold-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.final-notice h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
}

/* Contact Page Styles */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    color: var(--gold-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(22, 33, 62, 0.4);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method h3 {
    color: var(--gold-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-method p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.response-time {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(22, 33, 62, 0.4);
    border-radius: var(--border-radius);
}

.response-time h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.response-time ul {
    list-style: none;
    margin: 0;
}

.response-time li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-form-container h2 {
    color: var(--gold-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-form {
    background: rgba(22, 33, 62, 0.4);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-color);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.checkbox-group a {
    color: var(--gold-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn-submit {
    background: var(--gradient-gold);
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* FAQ Section Styles */
.faq-section {
    padding: 60px 0;
    background: rgba(22, 33, 62, 0.2);
}

.faq-section h2 {
    text-align: center;
    color: var(--gold-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(22, 33, 62, 0.4);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.faq-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Office Section Styles */
.office-section {
    padding: 60px 0;
}

.office-section h2 {
    text-align: center;
    color: var(--gold-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.office-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.office-card {
    background: rgba(22, 33, 62, 0.4);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.office-card h3 {
    color: var(--gold-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.office-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* 404 Error Page Styles */
.error-section {
    padding: 120px 0 80px;
    text-align: center;
}

.error-content {
    max-width: 800px;
    margin: 0 auto;
}

.error-number {
    font-size: 8rem;
    font-weight: 900;
    color: var(--gold-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.error-section h1 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.error-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.helpful-links {
    margin: 3rem 0;
}

.helpful-links h2 {
    color: var(--gold-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background: rgba(22, 33, 62, 0.4);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: var(--transition);
}

.link-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-color);
    box-shadow: var(--shadow);
}

.link-card h3 {
    color: var(--gold-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.link-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.search-section {
    margin: 3rem 0;
}

.search-section h2 {
    color: var(--gold-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.search-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.search-tag {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    border: 1px solid var(--gold-color);
    transition: var(--transition);
}

.search-tag:hover {
    background: var(--gold-color);
    color: var(--primary-color);
}

.error-help {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(22, 33, 62, 0.4);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-help h2 {
    color: var(--gold-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-help p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-option {
    text-align: center;
    padding: 1.5rem;
    background: rgba(22, 33, 62, 0.6);
    border-radius: var(--border-radius);
}

.contact-option h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.contact-option p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.btn-outline {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--gold-color);
    color: var(--primary-color);
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .office-details {
        grid-template-columns: 1fr;
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .policy-content h2,
    .terms-content h2,
    .disclaimer-content h2 {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .error-number {
        font-size: 4rem;
    }
    
    .error-section h1 {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Lazy Loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy.loaded {
    opacity: 1;
}

/* Image Upload Section */
.image-upload-section {
    padding: 80px 0;
    background: rgba(15, 52, 96, 0.3);
}

.image-upload-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold-color);
}

.upload-description {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.upload-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.upload-area {
    border: 3px dashed rgba(255, 215, 0, 0.5);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(22, 33, 62, 0.4);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    margin-bottom: 2rem;
    outline: none;
}

.upload-area:hover {
    border-color: var(--gold-color);
    background: rgba(22, 33, 62, 0.6);
    transform: translateY(-2px);
}

.upload-area:focus {
    border-color: var(--gold-color);
    background: rgba(22, 33, 62, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.upload-area.dragover {
    border-color: var(--gold-color);
    background: rgba(22, 33, 62, 0.8);
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.upload-area h3 {
    color: var(--gold-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.upload-area p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.upload-formats {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: block;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-upload {
    background: var(--gold-color);
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-upload:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-upload:active {
    transform: translateY(0);
}

.btn-upload.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-upload.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--dark-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-clear {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-clear:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.image-preview-container {
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.image-preview-container h3 {
    text-align: center;
    color: var(--gold-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.preview-item {
    background: rgba(22, 33, 62, 0.6);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
}

.preview-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--gold-color);
}

.preview-item.webp-format {
    border-color: var(--gold-color);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.preview-item.webp-format::before {
    content: 'WEBP';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--gold-color);
    color: var(--dark-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.preview-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.preview-info {
    padding: 1rem;
}

.preview-name {
    color: var(--gold-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.preview-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.preview-format {
    color: var(--gold-color);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.remove-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.upload-info {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(22, 33, 62, 0.4);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.webp-benefits {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.webp-benefits h4 {
    color: var(--gold-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-item strong {
    color: var(--gold-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.upload-info h4 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.upload-info ul {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.upload-info li {
    margin-bottom: 0.5rem;
}

.upload-info li:last-child {
    margin-bottom: 0;
}

/* Responsive Design for Image Upload */
@media (max-width: 768px) {
    .image-upload-section h2 {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-area h3 {
        font-size: 1.3rem;
    }
    
    .upload-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-upload,
    .btn-clear {
        width: 100%;
        max-width: 300px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .preview-image {
        height: 120px;
    }
    
    .upload-info {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 1.5rem 1rem;
    }
    
    .upload-icon {
        width: 48px;
        height: 48px;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-image {
        height: 180px;
    }
}
