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

body {
    font-family: 'Cinzel', 'Georgia', serif;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1810 50%, #1a0a0a 100%);
    color: #f4e4c1;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    background: linear-gradient(90deg, rgba(26, 10, 10, 0.95) 0%, rgba(45, 24, 16, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #ff6b35;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-img {
    height: 50px;
    filter: drop-shadow(0 0 10px #ff6b35);
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 0 20px #ff6b35) brightness(1.2);
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #f4e4c1;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: #ff6b35;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(255, 140, 0, 0.1));
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
    text-shadow: 0 0 10px #ff6b35;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1810 50%, #1a0a0a 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 140, 0, 0.2) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dragon-scales" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="8" fill="none" stroke="rgba(255,107,53,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23dragon-scales)"/></svg>');
    animation: flameFlicker 4s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b35, #ffa500, #ff6b35);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fireGlow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    margin-bottom: 20px;
    line-height: 1.1;
}

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

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #d4af37;
    margin-bottom: 40px;
    font-style: italic;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.cta-btn {
    background: linear-gradient(45deg, #ff6b35, #ffa500);
    color: #1a0a0a;
    border: none;
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
}

.cta-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Dragon Flames Animation */
.dragon-flames {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(0deg, rgba(255, 107, 53, 0.3) 0%, transparent 100%);
    animation: flameRise 6s ease-in-out infinite;
}

@keyframes flameRise {
    0%, 100% { transform: translateY(20px) scaleY(0.8); }
    50% { transform: translateY(0) scaleY(1); }
}

/* Games Section */
.games-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2d1810 0%, #1a0a0a 100%);
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #ff6b35, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    font-weight: 800;
}

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

.game-card {
    background: linear-gradient(145deg, rgba(45, 24, 16, 0.8), rgba(26, 10, 10, 0.8));
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #ff6b35;
    box-shadow: 
        0 20px 40px rgba(255, 107, 53, 0.3),
        inset 0 0 20px rgba(255, 107, 53, 0.1);
}

.game-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    animation: lavaFlow 2s linear infinite;
    pointer-events: none;
}

@keyframes lavaFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.game-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
    padding: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.game-link {
    display: block;
    background: linear-gradient(45deg, #ff6b35, #ffa500);
    color: #1a0a0a;
    text-decoration: none;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.game-link:hover {
    background: linear-gradient(45deg, #ffa500, #ff6b35);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Tooltip */
.game-card::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 10, 10, 0.95);
    color: #f4e4c1;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #ff6b35;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    z-index: 10;
}

.game-card:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1810 100%);
    text-align: center;
}

.about-text {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    color: #d4af37;
    line-height: 1.8;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2d1810 0%, #1a0a0a 100%);
}

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

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(145deg, rgba(45, 24, 16, 0.6), rgba(26, 10, 10, 0.6));
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b35;
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px #ff6b35);
    animation: iconPulse 3s ease-in-out infinite;
}

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

.feature-card h3 {
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.feature-card p {
    color: #f4e4c1;
    font-size: 1.1rem;
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1810 100%);
    text-align: center;
    border-top: 2px solid rgba(255, 107, 53, 0.3);
}

.disclaimer-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #d4af37;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, rgba(26, 10, 10, 0.95) 0%, rgba(45, 24, 16, 0.95) 100%);
    border-top: 2px solid #ff6b35;
    padding: 40px 0;
    margin-top: 0;
}

.footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 40px;
    filter: drop-shadow(0 0 8px #ff6b35);
}

.footer-center {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-center a {
    color: #f4e4c1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-center a:hover {
    color: #ff6b35;
    text-shadow: 0 0 10px #ff6b35;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    color: #d4af37;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .footer-center {
        justify-content: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .game-card::after {
        white-space: normal;
        max-width: 250px;
    }
}

/* Page Transition Effects */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b35, #ffa500);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b35, #ffa500);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ffa500, #ff6b35);
}