* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove borders from all images */
img {
    border: none !important;
}

/* Default image styles - can be overridden by specific classes */
img:not(.elements-table img):not(.table-icon) {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --text-color: #e0e0e0;
    --accent-color: #CD853F;
    --border-color: #654321;
    --frame-bg: rgba(26, 26, 26, 0.9);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Parallax Background */
.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    filter: blur(8px) brightness(0.4);
    -webkit-filter: blur(8px) brightness(0.4);
    opacity: 0.6;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Additional overlay for better text readability */
.parallax-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.3) 0%, rgba(26, 26, 26, 0.2) 100%);
    z-index: 1;
}

/* Background images for different pages */
body.page-index .parallax-background {
    background-image: url('../images/cosmic-dragon-fury-fg-1920x1080.jpg');
}

body.page-dragon .parallax-background {
    background-image: url('../images/drakon-oskal-krylia-ogon-tsifrovoe-iskusstvo-ii-art-neiroset.jpg');
}

body.page-quest .parallax-background {
    background-image: url('../images/Ejderha Tapınağı.jpg');
}

body.page-registration .parallax-background {
    background-image: url('../images/Ejderha Rüyası.jpg');
}

body.page-contacts .parallax-background {
    background-image: url('../images/İletişim.jpg');
}

body.page-flame .parallax-background {
    background-image: url('../images/Ateş Ejderhası.jpg');
}

body.page-wind .parallax-background {
    background-image: url('../images/Wind.webp');
}

body.page-stone .parallax-background {
    background-image: url('../images/Stone.webp');
}

body.page-water .parallax-background {
    background-image: url('../images/Water.jpg');
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--dark-bg);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--secondary-color);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.7) 0%, rgba(26, 26, 26, 0.6) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-frame {
    background: var(--frame-bg);
    border: none;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-image-frame {
    background: var(--frame-bg);
    border: none;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-bonus {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(210, 105, 30, 0.2);
    border-left: 4px solid var(--secondary-color);
    border-radius: 5px;
}

.hero-bonus strong {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    border: none;
    display: block;
}

/* Clouds Animation */
.clouds-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="8" fill="rgba(255,255,255,0.1)"/><circle cx="35" cy="30" r="10" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="30" r="8" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 200px 200px;
    animation: cloudsMove 20s linear infinite;
    opacity: 0.3;
    z-index: 1;
}

@keyframes cloudsMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-200px); }
}

/* Sparks Animation */
.sparks-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: sparkFloat 3s ease-in-out infinite;
    box-shadow: 0 0 10px var(--secondary-color);
}

@keyframes sparkFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Hero Subpage */
.hero-subpage {
    background: transparent;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.hero-subpage .hero-image {
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.hero-subpage .hero-image img {
    max-width: 100%;
    width: 100%;
    height: 250px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

.page-title {
    font-size: 3rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: fadeIn 1s ease-out;
}

/* Sections */
.section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Section dividers - double line effect */
.section:not(:first-of-type) {
    border-top: 2px solid var(--border-color);
}

.section:not(:first-of-type)::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 500px;
    height: 2px;
    background: var(--secondary-color);
    opacity: 0.5;
    z-index: 1;
}

.section:not(:first-of-type)::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    max-width: 300px;
    height: 1px;
    background: var(--secondary-color);
    opacity: 0.3;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

.content-box {
    background: var(--frame-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.content-box p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--darker-bg);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.4);
}

.btn-demo {
    background: var(--primary-color);
}

.btn-demo:hover {
    background: #6B3410;
}

.btn-register {
    background: var(--secondary-color);
}

/* Table */
.table-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.elements-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    background: var(--frame-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.elements-table th,
.elements-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.elements-table img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
    border-radius: 5px;
}

.elements-table th {
    background: var(--primary-color);
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
}

.elements-table tr:hover {
    background: rgba(210, 105, 30, 0.1);
}

/* Quests */
.quests-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.quest-item {
    background: var(--frame-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.quest-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

.quest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(210, 105, 30, 0.3);
    border-color: var(--secondary-color);
}

.quest-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Game Section */
.game-section {
    background: transparent;
    padding: 4rem 0;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#gameCanvas {
    border: 3px solid var(--border-color);
    border-radius: 10px;
    background: var(--dark-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    display: block;
    max-width: 100%;
    height: auto;
}

.game-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.game-score {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Test Section */
.test-container {
    max-width: 800px;
    margin: 0 auto;
}

.test-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin: 2rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.test-option {
    background: var(--frame-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.test-option img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.test-option:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(210, 105, 30, 0.3);
}

.test-option h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.test-option p {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.8rem 1rem;
    border-radius: 5px;
    margin-top: auto;
}

.test-result {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--frame-bg);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.test-result.active {
    display: block;
}

/* Dictionary */
.dictionary-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.symbol-item {
    background: var(--frame-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.symbol-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

.symbol-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(210, 105, 30, 0.3);
}

.symbol-display {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.symbol-name {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.symbol-translation {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    display: none;
}

.symbol-item:hover .symbol-translation {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Portal Animation */
.temple-container {
    text-align: center;
    margin: 3rem 0;
}

.temple-image {
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.temple-image img {
    max-width: 600px;
    width: 100%;
    height: 250px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

.temple-description {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.portal-animation {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 2rem;
}

.portal-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 5px solid var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 50px var(--secondary-color);
    animation: portalRotate 4s linear infinite;
}

.portal-energy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    border-radius: 50%;
    animation: energyPulse 2s ease-in-out infinite;
}

@keyframes portalRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes energyPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Path Cards */
.path-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.path-card {
    background: var(--frame-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.path-card .image-placeholder {
    margin: 1rem 0;
}

.path-card .image-placeholder img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

.path-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(210, 105, 30, 0.4);
}

.path-card h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.path-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Quotes */
.quotes-container {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.quote-item {
    background: var(--frame-bg);
    border-left: 4px solid var(--secondary-color);
    border-radius: 5px;
    padding: 2rem;
    transition: transform 0.3s;
}

.quote-item:hover {
    transform: translateX(10px);
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.quote-author {
    color: var(--secondary-color);
    font-weight: 600;
    text-align: right;
}

/* Registration */
.registration-section {
    padding: 4rem 0;
}

.elements-section {
    margin: 3rem 0;
    padding: 2rem 0;
}

.registration-content {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.registration-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 500px;
    text-align: center;
}

.registration-image {
    background: var(--frame-bg);
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
}

.registration-image img {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
}

.registration-title {
    font-size: 2rem;
    color: var(--secondary-color);
    line-height: 1.3;
    text-align: center;
    margin: 0;
}

.registration-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.registration-form {
    background: var(--frame-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--darker-bg);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Contacts */
.contacts-section {
    padding: 4rem 0;
}

.contacts-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-image img {
    width: 100%;
    max-width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: none;
    margin: 0 auto;
    display: block;
}

.contact-details h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-form-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.contact-form-container {
    background: var(--frame-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
}

.contact-form-container h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.map-container {
    border: 3px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
    display: flex;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    flex: 1;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--frame-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.faq-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Image Placeholder */
.image-placeholder {
    margin: 2rem 0;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: var(--darker-bg);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder img {
    width: 100%;
    height: 250px;
    min-height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.quest-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.quest-images .image-placeholder img {
    width: 100%;
    height: 250px;
    min-height: 250px;
    object-fit: cover;
}

/* Footer */
.footer {
    background: transparent;
    border-top: 2px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
}

.footer-legal a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    opacity: 0.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-top: 2px solid var(--border-color);
        display: none;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image-frame {
        min-height: 300px;
        order: -1;
    }

    .hero-image {
        min-height: 300px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .hero-subpage .hero-image img {
        height: 250px;
    }

    .section-title {
        font-size: 2rem;
    }

    #gameCanvas {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        touch-action: none;
        -webkit-touch-callout: none;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .game-section {
        padding: 2rem 0;
    }

    .registration-left {
        max-width: 100%;
        align-items: center;
    }

    .registration-title {
        text-align: center;
        font-size: 1.5rem;
    }

    .registration-content,
    .contact-info,
    .contact-form-map {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }

    .portal-animation {
        width: 300px;
        height: 300px;
    }

    .portal-circle {
        width: 200px;
        height: 200px;
    }

    .portal-energy {
        width: 150px;
        height: 150px;
    }

    .temple-image img {
        height: 250px;
        max-width: 100%;
    }

    .test-options {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .test-option img {
        height: 280px;
    }

    .test-option h3 {
        font-size: 1.5rem;
    }

    .test-option p {
        font-size: 1.1rem;
    }
}

/* Cards Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card-item {
    background: var(--frame-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease-out;
}

.card-item:nth-child(1) { animation-delay: 0.1s; }
.card-item:nth-child(2) { animation-delay: 0.2s; }
.card-item:nth-child(3) { animation-delay: 0.3s; }
.card-item:nth-child(4) { animation-delay: 0.4s; }

.card-item:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(210, 105, 30, 0.4);
}

.card-icon:empty {
    display: none;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.card-item h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-item p {
    line-height: 1.8;
    color: var(--text-color);
}

.card-item .image-placeholder {
    margin: -2rem -2rem 1.5rem -2rem;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.card-item .image-placeholder img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    animation: fadeInLeft 0.6s ease-out;
}

.timeline-item:nth-child(even) {
    animation: fadeInRight 0.6s ease-out;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--darker-bg);
    z-index: 2;
    box-shadow: 0 0 20px var(--secondary-color);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 55%;
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 55%;
    margin-right: auto;
}

.timeline-date {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--darker-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.3);
}

.timeline-content {
    background: var(--frame-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    width: 45%;
    transition: all 0.3s;
}

.timeline-content:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(210, 105, 30, 0.3);
}

.timeline-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.timeline-content p {
    line-height: 1.8;
    color: var(--text-color);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accordion Section */
.accordion-container {
    max-width: 800px;
    margin: 2rem auto;
}

.accordion-item {
    background: var(--frame-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease-out;
}

.accordion-item:nth-child(1) { animation-delay: 0.1s; }
.accordion-item:nth-child(2) { animation-delay: 0.2s; }
.accordion-item:nth-child(3) { animation-delay: 0.3s; }
.accordion-item:nth-child(4) { animation-delay: 0.4s; }

.accordion-item:hover {
    border-color: var(--secondary-color);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(210, 105, 30, 0.1);
}

.accordion-header h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin: 0;
}

.accordion-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: bold;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 2rem;
}

.accordion-item.active .accordion-content {
    padding: 0 2rem 1.5rem 2rem;
}

.accordion-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

/* Quiz Section */
.test-section-home {
    background: transparent;
}

.quiz-container {
    max-width: 700px;
    margin: 2rem auto;
    background: var(--frame-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.quiz-question h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.quiz-options {
    display: grid;
    gap: 1rem;
}

.quiz-option {
    background: var(--darker-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.quiz-option:hover {
    border-color: var(--secondary-color);
    background: rgba(210, 105, 30, 0.1);
    transform: translateX(5px);
}

.quiz-result {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.quiz-result h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.quiz-result-card {
    background: var(--darker-bg);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 2rem;
    animation: scaleIn 0.5s ease-out;
}

.quiz-result-card h4 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.quiz-result-card p {
    color: var(--text-color);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.quiz-result-icon {
    font-size: 5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive for new sections */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        max-width: 100%;
        margin: 1.5rem auto;
        padding: 1rem 0 1rem 1rem;
    }

    .timeline::before {
        left: 20px;
        width: 2px;
    }

    .timeline-item {
        margin-bottom: 1.5rem;
        animation: fadeInUp 0.6s ease-out !important;
    }

    .timeline-item:nth-child(even) {
        animation: fadeInUp 0.6s ease-out !important;
    }

    .timeline-item::before {
        left: 20px;
        width: 12px;
        height: 12px;
        top: 10px;
        border: 2px solid var(--darker-bg);
    }

    .timeline-date {
        left: 20px;
        transform: translateX(-50%);
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
        font-weight: 600;
        white-space: nowrap;
        top: 0;
    }

    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 45px;
        margin-right: 1rem;
        width: calc(100% - 55px);
        text-align: left;
        padding: 1rem;
        margin-top: 0.4rem;
    }

    .timeline-content h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .quiz-container {
        padding: 1.5rem 1rem;
        margin: 1rem auto;
    }

    .quiz-question h3 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .quiz-option {
        padding: 1rem;
        font-size: 1rem;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        word-wrap: break-word;
    }

    .quiz-result-card {
        padding: 1.5rem;
    }

    .quiz-result-card h4 {
        font-size: 1.5rem;
    }

    .quiz-result-card p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .quiz-result-icon {
        font-size: 3rem;
    }

    .accordion-header {
        padding: 1rem 1.5rem;
    }

    .accordion-header h3 {
        font-size: 1.1rem;
    }

    /* Disable parallax on mobile for better performance */
    .parallax-background {
        position: absolute;
        transform: none !important;
        min-height: 100vh;
    }
}

/* Extra small screens - additional timeline optimization */
@media (max-width: 480px) {
    .timeline {
        margin: 1rem auto;
        padding: 0.8rem 0 0.8rem 0.8rem;
    }

    .timeline::before {
        left: 18px;
        width: 2px;
    }

    .timeline-item {
        margin-bottom: 1.2rem;
        animation: fadeInUp 0.6s ease-out !important;
    }

    .timeline-item:nth-child(even) {
        animation: fadeInUp 0.6s ease-out !important;
    }

    .timeline-item::before {
        left: 18px;
        width: 10px;
        height: 10px;
        top: 8px;
    }

    .timeline-date {
        left: 18px;
        padding: 0.25rem 0.7rem;
        font-size: 0.7rem;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 38px;
        margin-right: 0.8rem;
        width: calc(100% - 48px);
        padding: 0.9rem;
        margin-top: 0.3rem;
    }

    .timeline-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .timeline-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

