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

:root {
    --royal-purple: #4B0082;
    --light-purple: #663399;
    --gold: #FFD700;
    --dark-gold: #B8860B;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #333333;
    --text-color: #2C2C2C;
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--royal-purple);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

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

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, var(--royal-purple), var(--light-purple));
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.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 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.nav-logo img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gold);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-login {
    background-color: var(--gold);
    color: var(--royal-purple);
}

.btn-login:hover {
    background-color: var(--dark-gold);
    transform: translateY(-2px);
}

.btn-register {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
}

.btn-register:hover {
    background-color: var(--gold);
    color: var(--royal-purple);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--royal-purple);
    font-weight: 700;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 3px solid var(--gold);
    font-weight: 700;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background-color: var(--gold);
    color: var(--royal-purple);
    transform: translateY(-3px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.9), rgba(102, 51, 153, 0.9)), url('public/images/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--gold), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Registration Steps */
.registration-steps {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--white), var(--light-gray));
    position: relative;
    overflow: hidden;
}

.registration-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23FFD700" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%23FFD700" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23FFD700" opacity="0.1"/></svg>');
    pointer-events: none;
}

.registration-steps .steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.registration-steps .step {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid var(--royal-purple);
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.registration-steps .step:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.registration-steps .step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--royal-purple), var(--light-purple));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(75, 0, 130, 0.3);
}

.registration-steps .step-content {
    flex: 1;
}

.registration-steps .step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--royal-purple);
}

.registration-steps .step p {
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

/* Login Section */
.login-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--royal-purple), var(--light-purple));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23FFD700" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%23FFD700" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23FFD700" opacity="0.1"/></svg>');
    pointer-events: none;
}

.login-section .section-title {
    color: var(--gold);
}

.login-section .steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.login-section .step {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid var(--gold);
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.login-section .step:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.login-section .step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--royal-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.login-section .step-content {
    flex: 1;
}

.login-section .step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.login-section .step p {
    color: var(--white);
    opacity: 0.9;
    line-height: 1.7;
    margin: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--royal-purple);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.step:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--royal-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--royal-purple);
}

.step p {
    color: var(--text-color);
    line-height: 1.7;
}

/* Games Section */
.games-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--white), var(--light-gray));
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.game-card img {
    margin-bottom: 1.5rem;
    border-radius: 15px;
    transition: var(--transition);
}

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

.game-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--royal-purple);
}

.game-card p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.game-feature {
    background: linear-gradient(135deg, var(--royal-purple), var(--light-purple));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.game-feature:hover {
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--royal-purple);
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-gray), var(--white));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-card img {
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--royal-purple);
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--royal-purple), var(--light-purple));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1.5" fill="%23FFD700" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%23FFD700" opacity="0.1"/><circle cx="40" cy="80" r="1.2" fill="%23FFD700" opacity="0.1"/></svg>');
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

/* Page Content Styles */
.page-content {
    padding: 3rem 0;
    min-height: 60vh;
    background: linear-gradient(135deg, var(--white), var(--light-gray));
    position: relative;
    overflow: hidden;
}

.page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="15" cy="15" r="1" fill="%23FFD700" opacity="0.05"/><circle cx="85" cy="25" r="1.5" fill="%23FFD700" opacity="0.05"/><circle cx="25" cy="85" r="1" fill="%23FFD700" opacity="0.05"/><circle cx="75" cy="75" r="1.2" fill="%23FFD700" opacity="0.05"/></svg>');
    pointer-events: none;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.page-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--royal-purple), var(--light-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.3);
    transition: var(--transition);
}

.page-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(75, 0, 130, 0.4);
}

.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--royal-purple);
    text-align: center;
    background: linear-gradient(135deg, var(--royal-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
    text-align: center;
}

.page-text {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.page-text h2 {
    color: var(--royal-purple);
    margin: 2.5rem 0 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-left: 1rem;
}

.page-text h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    border-radius: 2px;
}

.page-text h3 {
    color: var(--light-purple);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-text h3::before {
    content: '▶';
    color: var(--gold);
    font-size: 0.8rem;
}

.page-text p {
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    transition: var(--transition);
}

.page-text p:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.page-text ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.page-text li {
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    position: relative;
}

.page-text li::before {
    content: '•';
    color: var(--gold);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Contact Form Styling */
#contact-form {
    background: linear-gradient(135deg, var(--royal-purple), var(--light-purple));
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(75, 0, 130, 0.2);
    position: relative;
    overflow: hidden;
}

#contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23FFD700" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%23FFD700" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23FFD700" opacity="0.1"/></svg>');
    pointer-events: none;
}

#contact-form label {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    transition: var(--transition);
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

#contact-form button {
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--royal-purple);
    border: none;
    font-weight: 700;
    transition: var(--transition);
}

#contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

/* FAQ Styling */
.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.faq-question {
    background: linear-gradient(135deg, var(--royal-purple), var(--light-purple));
    color: var(--white);
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--light-purple), var(--royal-purple));
}

.faq-answer {
    padding: 1.5rem;
    background: var(--white);
    border-top: 3px solid var(--gold);
    line-height: 1.7;
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--royal-purple), var(--light-purple));
    position: relative;
    overflow: hidden;
}

.error-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 1;
}

.error-page .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(75, 0, 130, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    animation: errorPageSlideIn 0.8s ease-out;
}

@keyframes errorPageSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.error-content {
    position: relative;
    z-index: 1;
}

.error-content::before {
    content: '⚠️';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    opacity: 0.8;
    animation: errorIconBounce 2s ease-in-out infinite;
}

@keyframes errorIconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.error-content h1 {
    font-size: 8rem;
    background: linear-gradient(135deg, var(--royal-purple), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 900;
    text-shadow: 0 10px 30px rgba(75, 0, 130, 0.3);
    position: relative;
    display: inline-block;
}

.error-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    border-radius: 2px;
    animation: errorLineGlow 2s ease-in-out infinite alternate;
}

@keyframes errorLineGlow {
    from {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

.error-content h2 {
    font-size: 2.5rem;
    color: var(--royal-purple);
    margin-bottom: 2rem;
    font-weight: 700;
}

.error-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border-left: 4px solid var(--gold);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.error-content p:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 0, 130, 0.1);
}

/* Error page links styling */
.error-content ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.error-content ul li {
    margin: 0;
}

.error-content ul li a {
    display: block;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.error-content ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.error-content ul li a:hover::before {
    left: 100%;
}

.error-content ul li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.2);
}

/* Error page action buttons */
.error-content .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

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

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

.error-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--royal-purple);
        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;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-buttons {
        display: none;
    }
    
    /* Mobile buttons styling */
    .mobile-buttons {
        margin: 1.5rem 0;
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem;
    }
    
    .nav-buttons-mobile .btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
        text-align: center;
        transition: all 0.3s ease;
        font-weight: 600;
    }
    
    .nav-buttons-mobile .btn-login {
        background: linear-gradient(135deg, var(--gold), var(--dark-gold));
        color: var(--royal-purple);
        border: 2px solid var(--gold);
    }
    
    .nav-buttons-mobile .btn-login:hover {
        background: linear-gradient(135deg, var(--dark-gold), var(--gold));
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    }
    
    .nav-buttons-mobile .btn-register {
        background: linear-gradient(135deg, var(--white), var(--light-gray));
        color: var(--royal-purple);
        border: 2px solid var(--white);
    }
    
    .nav-buttons-mobile .btn-register:hover {
        background: linear-gradient(135deg, var(--light-gray), var(--white));
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    }

    .hero-container {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .error-content h1 {
        font-size: 4rem;
    }

    .error-content h2 {
        font-size: 1.5rem;
    }
    
    .error-page .container {
        padding: 2rem 1rem;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .error-content p {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .error-content ul {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .error-content .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .step,
    .feature-card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-buttons,
    .hero-buttons,
    .cta-buttons {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .hero-section {
        background: none;
        color: black;
    }

    .hero-title {
        color: black;
        -webkit-text-fill-color: black;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --royal-purple: #000080;
        --gold: #FFFF00;
        --text-color: #000000;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--royal-purple), var(--light-purple));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(75, 0, 130, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--royal-purple);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.back-to-top:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* Responsive Back to Top */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --text-color: #ffffff;
        --border-color: #404040;
    }
} 