/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --gold-color: #ffd700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--primary-color);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.background-animation::before {
    content: '';
    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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Header and Navigation */
.header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--gold-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--gold-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-login {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--gold-color);
}

.btn-login:hover {
    background: var(--gold-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-register {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: rgba(22, 33, 62, 0.8);
    margin: 2rem 0;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.features-section h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--gold-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(22, 33, 62, 0.8);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--gold-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: rgba(15, 52, 96, 0.8);
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

.about-section h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--gold-color);
}

.about-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    text-align: center;
}

.cta-section h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold-color);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: rgba(26, 26, 46, 0.95);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--gold-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--gold-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #333333;
        --text-light: #ffffff;
        --gold-color: #ffff00;
    }
}

/* Page-specific styles */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background: rgba(22, 33, 62, 0.8);
    margin: 2rem 0;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold-color);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-section {
    background: rgba(22, 33, 62, 0.6);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.content-section h2 {
    color: var(--gold-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-section h3 {
    color: var(--gold-color);
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Contact page styles */
.contact-section {
    margin: 3rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2,
.contact-form-container h2 {
    color: var(--gold-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(15, 52, 96, 0.6);
    border-radius: var(--border-radius);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--gold-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.support-features {
    margin: 2rem 0;
}

.support-features h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.support-features ul {
    padding-left: 1.5rem;
}

.support-features li {
    margin-bottom: 0.5rem;
}

/* Contact form styles */
.contact-form {
    background: rgba(15, 52, 96, 0.6);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-color);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label a {
    color: var(--gold-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* FAQ section styles */
.faq-section {
    margin: 3rem 0;
    padding: 3rem;
    background: rgba(22, 33, 62, 0.6);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.faq-section h2 {
    text-align: center;
    color: var(--gold-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(15, 52, 96, 0.6);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    line-height: 1.6;
    opacity: 0.9;
}

/* 404 page styles */
.error-section {
    text-align: center;
    padding: 3rem 0;
}

.error-content {
    margin-bottom: 3rem;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.error-content h1 {
    font-size: 3rem;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.error-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.helpful-links {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(22, 33, 62, 0.6);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.helpful-links h3 {
    color: var(--gold-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.helpful-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(15, 52, 96, 0.6);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.helpful-link:hover {
    transform: translateY(-5px);
    border-color: var(--gold-color);
    box-shadow: var(--shadow);
}

.link-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.link-content h4 {
    color: var(--gold-color);
    margin-bottom: 0.5rem;
}

.link-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.search-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(15, 52, 96, 0.6);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.search-section h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.search-section p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.search-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section,
    .faq-section {
        padding: 2rem 1rem;
    }
    
    .error-actions,
    .search-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Breadcrumb Navigation Styles */
.breadcrumb-nav {
    margin: 2rem 0 1rem 0;
    padding: 0 2rem;
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--gold-color);
    opacity: 0.7;
}

.breadcrumb-item a {
    color: var(--gold-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-light);
    opacity: 0.8;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 0 1rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

/* Print styles */
@media print {
    .background-animation,
    .header,
    .footer,
    .breadcrumb-nav {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
