/* Dark autumn atmosphere color palette */
body {
    background: #1A1523;
    color: #c0b7a9;
}

.navbar {
    background: linear-gradient(to bottom, rgba(26, 21, 35, 0.95), rgba(26, 21, 35, 0.8));
}

.navbar a {
    color: #c0b7a9;
}

.navbar a:hover {
    color: #937b62;
}

.line {
    background: #937b62;
}

.navbar .menu-items {
    background: #1A1523;
    box-shadow: 5px 0 10px 0 rgba(0, 0, 0, 0.7);
}

/* Headings with a mysterious autumn feel */
h1, h2, h3, h4 {
    color: #937b62;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Button styling for "unknown worlds" theme */
.catalog-btn {
    background: linear-gradient(135deg, #3d3042 0%, #5d4a35 100%);
    color: #c0b7a9;
    border: 1px solid #937b62;
    box-shadow: 0 0 15px rgba(147, 123, 98, 0.3);
}

.catalog-btn:hover {
    background: linear-gradient(135deg, #5d4a35 0%, #3d3042 100%);
    box-shadow: 0 0 20px rgba(147, 123, 98, 0.5);
}

.feedback-btn {
    background: linear-gradient(135deg, #3d3042 0%, #5d4a35 100%);
    color: #c0b7a9;
    border: 1px solid #937b62;
    box-shadow: 0 0 15px rgba(147, 123, 98, 0.3);
}

.feedback-btn:hover {
    background: linear-gradient(135deg, #5d4a35 0%, #3d3042 100%);
    box-shadow: 0 0 20px rgba(147, 123, 98, 0.5);
}

/* Form fields with rainy atmosphere */
.feedback-field {
    background-color: #23202a;
    color: #c0b7a9;
    border: 1px solid #55464c;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.feedback-field:focus {
    border-color: #937b62;
    box-shadow: inset 0 0 10px rgba(147, 123, 98, 0.3);
}

/* Footer with a darker shade for depth */
footer {
    background: #15111c;
    border-top: 1px solid #2a2332;
}

footer a {
    color: #937b62;
}

footer a:hover {
    color: #c0b7a9;
}

/* Category cards with autumn weather feel */
.category-card {
    background: linear-gradient(135deg, #23202a 0%, #1e1a23 100%);
    border: 1px solid #2a2332;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Timeline with mysterious journey theme */
.timeline-item {
    background: #23202a;
    border-left: 3px solid #937b62;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Game card with foggy autumn styling */
.game-card {
    background: linear-gradient(to bottom, rgba(35, 32, 42, 0.8), rgba(26, 21, 35, 0.95));
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    border: 1px solid #2a2332;
}

/* Featured content with autumn rain effect */
.featured-grid .game-card.large::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(35, 32, 42, 0.2) 0%, rgba(26, 21, 35, 0.5) 100%);
    opacity: 0.7;
    pointer-events: none;
}

/* Stats section with cool autumn colors */
.stats-grid {
    background: linear-gradient(to right, rgba(35, 32, 42, 0.8), rgba(26, 21, 35, 0.8));
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Header with rainy atmosphere styling */
.header {
    background: linear-gradient(rgba(26, 21, 35, 0.7), rgba(26, 21, 35, 0.9)),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='0' x2='100' y2='100' stroke='%23937b62' stroke-width='0.5' stroke-opacity='0.15'/%3E%3Cline x1='100' y1='0' x2='0' y2='100' stroke='%23937b62' stroke-width='0.5' stroke-opacity='0.15'/%3E%3C/svg%3E");
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.header-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Enhanced rain effect overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23c0b7a9' stroke-width='0.3'%3E%3Cline x1='50' y1='0' x2='45' y2='100' stroke-opacity='0.1'/%3E%3Cline x1='30' y1='0' x2='25' y2='100' stroke-opacity='0.1'/%3E%3Cline x1='70' y1='0' x2='65' y2='100' stroke-opacity='0.1'/%3E%3Cline x1='90' y1='0' x2='85' y2='100' stroke-opacity='0.1'/%3E%3Cline x1='10' y1='0' x2='5' y2='100' stroke-opacity='0.1'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
    z-index: 1000;
    animation: rainFall 15s linear infinite;
}

@keyframes rainFall {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* Fog effect for mysterious atmosphere */
.header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(26, 21, 35, 0.8) 100%);
    opacity: 0.7;
    z-index: 1;
    animation: fogBreathe 20s ease-in-out infinite;
}

@keyframes fogBreathe {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.5; }
}

/* Mysterious glow effects for headings */
h1, h2, h3, h4 {
    position: relative;
    overflow: hidden;
}

h1::after, h2::after, h3::after, h4::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(147, 123, 98, 0) 0%,
        rgba(147, 123, 98, 0.2) 50%,
        rgba(147, 123, 98, 0) 100%);
    animation: headingGlow 7s ease-in-out infinite;
}

@keyframes headingGlow {
    0% { left: -100%; }
    40%, 60% { left: 100%; }
    100% { left: 100%; }
}

/* Navbar magical hover effect */
.navbar a {
    position: relative;
}

.navbar a::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #937b62;
    transition: width 0.4s ease;
}

.navbar a:hover::before {
    width: 100%;
}

/* Button pulsing effect */
.catalog-btn, .feedback-btn {
    position: relative;
    overflow: hidden;
}

.catalog-btn::after, .feedback-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(147, 123, 98, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: buttonPulse 4s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Floating elements effect */
.category-card, .game-card, .timeline-item {
    animation: subtleFloat 6s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Image ethereal glow effect */
.about-img, .catalog-img img {
    filter: drop-shadow(0 0 5px rgba(147, 123, 98, 0.3));
    transition: filter 0.5s ease;
}

.about-img:hover, .catalog-img img:hover {
    filter: drop-shadow(0 0 15px rgba(147, 123, 98, 0.6));
}

/* Text field focus effect */
.feedback-field {
    transition: all 0.3s ease;
}

.feedback-field:focus {
    transform: translateY(-2px);
}

/* Footer mystical border */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #937b62 20%,
        #937b62 80%,
        transparent 100%);
}

/* Featured card portal effect */
.game-card.large {
    position: relative;
    overflow: hidden;
}

.game-card.large::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
        rgba(147, 123, 98, 0.1) 0%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-card.large:hover::after {
    opacity: 1;
}

/* Timeline mystical connector */
.timeline-grid {
    position: relative;
}

.timeline-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 150px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom,
        transparent 0%,
        #937b62 10%,
        #937b62 90%,
        transparent 100%);
    transform: translateX(-50%);
}

/* Stats counting effect */
.stats-grid {
    position: relative;
}

.stats-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%,
        rgba(147, 123, 98, 0.1) 0%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.stats-grid:hover::before {
    opacity: 1;
}

/* Menu hover particle effect */
.menu-items li a:hover {
    animation: textGlitch 0.3s ease-in-out;
}

@keyframes textGlitch {
    0% { transform: translateX(0); }
    25% { transform: translateX(2px); }
    50% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

/* Ambient page transitions */
* {
    transition: 0.4s ease all;
}

body {
    animation: pageLoad 1.5s ease-in-out;
}

@keyframes pageLoad {
    0% { opacity: 0; }
    100% { opacity: 1; }
}