:root {
    --dragon-red: #8B0000;
    --dragon-gold: #D4A017;
    --dragon-dark: #1A0A0A;
    --dragon-crimson: #DC143C;
    --dragon-ember: #FF4500;
    --dragon-ink: #0D0D0D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', serif;
    background-color: var(--dragon-ink);
    color: #E8D5B7;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dragon-dark); }
::-webkit-scrollbar-thumb { background: var(--dragon-gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--dragon-crimson); }

/* Particle Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    backdrop-filter: blur(0px);
}

.nav-container.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.3);
}

.nav-link {
    position: relative;
    color: #E8D5B7;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--dragon-gold), var(--dragon-crimson));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--dragon-gold);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1549490349-8643362247b5?q=80&w=2070&auto=format&fit=crop') center/cover;
    filter: brightness(0.2) saturate(1.5);
    transform: scale(1.1);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.2); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(13,13,13,0.7) 0%, 
        rgba(139,0,0,0.3) 50%, 
        rgba(13,13,13,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.dragon-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.dragon-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(220, 20, 60, 0.6));
}

.studio-name {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #D4A017, #FF6B35, #D4A017);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    text-transform: uppercase;
}

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

.studio-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    letter-spacing: 8px;
    color: rgba(232, 213, 183, 0.7);
    margin-top: 1rem;
    text-transform: uppercase;
}

.hero-divider {
    width: 200px;
    height: 2px;
    margin: 2rem auto;
    background: linear-gradient(90deg, transparent, var(--dragon-gold), transparent);
}

/* Decorative Patterns */
.cloud-pattern {
    position: absolute;
    opacity: 0.05;
    pointer-events: none;
}

/* Section Styles */
.section-container {
    position: relative;
    z-index: 10;
    padding: 6rem 2rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--dragon-gold), var(--dragon-crimson));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.section-divider .line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dragon-gold));
}

.section-divider .line:last-child {
    background: linear-gradient(90deg, var(--dragon-gold), transparent);
}

.section-divider .diamond {
    width: 10px;
    height: 10px;
    background: var(--dragon-gold);
    transform: rotate(45deg);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(232, 213, 183, 0.85);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(139,0,0,0.2), rgba(26,10,10,0.8));
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,160,23,0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    border-color: var(--dragon-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dragon-gold);
}

.stat-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(232, 213, 183, 0.6);
    margin-top: 0.5rem;
}

.about-visual {
    position: relative;
}

.about-visual img {
    width: 100%;
    border-radius: 16px;
    border: 2px solid rgba(212, 160, 23, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.about-visual::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(212, 160, 23, 0.15);
    border-radius: 20px;
    z-index: -1;
}

/* Games Section */
.games-section {
    background: linear-gradient(180deg, 
        rgba(13,13,13,1) 0%, 
        rgba(26,10,10,0.5) 50%, 
        rgba(13,13,13,1) 100%);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(26, 10, 10, 0.6);
    border: 1px solid rgba(212, 160, 23, 0.15);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--dragon-gold);
    box-shadow: 0 25px 60px rgba(139, 0, 0, 0.3), 0 0 30px rgba(212, 160, 23, 0.1);
}

.game-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.game-card:hover .game-card-image {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.game-card-image-wrapper {
    overflow: hidden;
    position: relative;
}

.game-card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(26,10,10,0.95));
    pointer-events: none;
}

.game-card-content {
    padding: 1.5rem 2rem 2rem;
    position: relative;
}

.game-card-genre {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(139,0,0,0.6), rgba(220,20,60,0.4));
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dragon-gold);
    margin-bottom: 0.75rem;
}

.game-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #E8D5B7;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.game-card-desc {
    font-size: 0.9rem;
    color: rgba(232, 213, 183, 0.65);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.game-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFA500;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,165,0,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(255,165,0,0); }
}

.game-card-cta {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(13,13,13,0.7);
    border: 1px solid rgba(212,160,23,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dragon-gold);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.game-card:hover .game-card-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, 
        rgba(13,13,13,1) 0%, 
        rgba(139,0,0,0.1) 50%, 
        rgba(13,13,13,1) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--dragon-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.contact-info p {
    color: rgba(232, 213, 183, 0.7);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(232, 213, 183, 0.8);
}

.contact-detail i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139,0,0,0.3);
    border: 1px solid rgba(212,160,23,0.2);
    border-radius: 50%;
    color: var(--dragon-gold);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(26, 10, 10, 0.6);
    border: 1px solid rgba(212, 160, 23, 0.15);
    border-radius: 8px;
    color: #E8D5B7;
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--dragon-gold);
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(232, 213, 183, 0.35);
}

.submit-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--dragon-red), var(--dragon-crimson));
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 8px;
    color: var(--dragon-gold);
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

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

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
    border-color: var(--dragon-gold);
}

/* Social Media */
.social-section {
    padding: 3rem 2rem;
    position: relative;
    z-index: 10;
}

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

.social-title {
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(232, 213, 183, 0.5);
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 10, 10, 0.6);
    border: 1px solid rgba(212, 160, 23, 0.15);
    border-radius: 50%;
    color: rgba(232, 213, 183, 0.6);
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(212,160,23,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    color: var(--dragon-gold);
    border-color: var(--dragon-gold);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(212, 160, 23, 0.2);
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(212, 160, 23, 0.1);
    padding: 2rem;
    text-align: center;
}

.footer-text {
    font-size: 0.85rem;
    color: rgba(232, 213, 183, 0.4);
    letter-spacing: 2px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, rgba(26,10,10,0.95), rgba(13,13,13,0.98));
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(13,13,13,0.7);
    border: 1px solid rgba(212,160,23,0.3);
    border-radius: 50%;
    color: var(--dragon-gold);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--dragon-crimson);
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.modal-body {
    padding: 2rem;
}

.modal-body h2 {
    font-size: 1.8rem;
    color: var(--dragon-gold);
    margin-bottom: 0.5rem;
}

.modal-body .modal-genre {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(139,0,0,0.4);
    border: 1px solid rgba(212,160,23,0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dragon-gold);
    margin-bottom: 1.5rem;
}

.modal-body .modal-desc {
    color: rgba(232, 213, 183, 0.75);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.modal-features {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 0.5rem 0;
    color: rgba(232, 213, 183, 0.7);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-features li::before {
    content: '◆';
    color: var(--dragon-gold);
    font-size: 0.6rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 28px;
    height: 2px;
    background: var(--dragon-gold);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13,13,13,0.98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav .nav-link {
    font-size: 1.5rem;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, rgba(26,10,10,0.95), rgba(13,13,13,0.98));
    border: 1px solid rgba(212, 160, 23, 0.4);
    border-radius: 12px;
    padding: 1.25rem 2rem;
    color: var(--dragon-gold);
    z-index: 3000;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast.show {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .section-container {
        padding: 4rem 1.25rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* Asian decorative elements */
.asian-border {
    position: relative;
}

.asian-border::before,
.asian-border::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(212, 160, 23, 0.2);
}

.asian-border::before {
    top: -15px;
    left: -15px;
    border-right: none;
    border-bottom: none;
}

.asian-border::after {
    bottom: -15px;
    right: -15px;
    border-left: none;
    border-top: none;
}

/* Loading animation */
.loader {
    position: fixed;
    inset: 0;
    background: var(--dragon-ink);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-dragon {
    width: 80px;
    height: 80px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(220,20,60,0.3)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 30px rgba(220,20,60,0.6)); }
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(212,160,23,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dragon-gold), var(--dragon-crimson));
    border-radius: 2px;
    animation: loaderFill 2s ease-in-out forwards;
}

@keyframes loaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}
