/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Image Optimization Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Image placeholder styles */
.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 50%, #2d1b69 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Accessibility Improvements */
:focus {
    outline: 3px solid #00d4ff;
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #00d4ff;
    color: #000;
    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;
}

/* Navigation */
.navbar {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid #00d4ff;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: #00d4ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #00d4ff;
    color: #000;
}

.btn-login {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: #fff;
}

.btn-login:hover,
.btn-login:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-register {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: #fff;
}

.btn-register:hover,
.btn-register:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.btn-login-large,
.btn-register-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    min-width: 180px;
}

.btn-download {
    background: linear-gradient(45deg, #ffd700, #ffb347);
    color: #000;
    font-size: 1.2rem;
    padding: 18px 36px;
    min-width: 220px;
}

.btn-download:hover,
.btn-download:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,212,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.feature-card img {
    margin-bottom: 1rem;
    border-radius: 50%;
}

.feature-card h3 {
    color: #00d4ff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #fff;
    line-height: 1.6;
}

/* Login and Register Sections */
.login-section,
.register-section {
    padding: 80px 0;
}

.login-section {
    background: rgba(0, 212, 255, 0.05);
}

.register-section {
    background: rgba(255, 107, 107, 0.05);
}

.login-content,
.register-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.login-info h3,
.register-info h3 {
    color: #00d4ff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.login-info p,
.register-info p {
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.login-image img,
.register-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Download Section */
.download-section {
    padding: 80px 0;
    background: rgba(255, 215, 0, 0.05);
}

.download-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h4 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.step p {
    color: #fff;
}

.download-cta {
    text-align: center;
}

.download-note {
    color: #fff;
    margin-top: 1rem;
    font-style: italic;
}

/* Main Content Styles */
.main-content {
    padding: 120px 0 80px;
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: #fff;
    font-size: 1.2rem;
}

.content-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section h2 {
    color: #00d4ff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.content-section h3 {
    color: #00d4ff;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.content-section p {
    color: #fff;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-section ul {
    color: #fff;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info {
    background: rgba(0, 212, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-method {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: #fff;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* Additional Contact Info */
.additional-contact-info {
    margin-bottom: 3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.info-card ul {
    margin-top: 1rem;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 3rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

/* Feedback Section */
.feedback-section {
    background: rgba(0, 212, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}

/* 404 Page Styles */
.error-content {
    padding: 120px 0 80px;
    text-align: center;
}

.error-section {
    margin-bottom: 3rem;
}

.error-number {
    font-size: 8rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.error-section h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.error-section p {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.helpful-links {
    margin-bottom: 3rem;
}

.helpful-links h2 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.helpful-links p {
    color: #fff;
    margin-bottom: 2rem;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.link-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-card h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.link-card p {
    color: #fff;
    margin-bottom: 1.5rem;
}

.search-section {
    margin-bottom: 3rem;
}

.search-section h2 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.search-section p {
    color: #fff;
    margin-bottom: 2rem;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-option {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-option h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.contact-option p {
    color: #fff;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: rgba(15, 15, 35, 0.95);
    padding: 60px 0 20px;
    border-top: 2px solid #00d4ff;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
    color: #fff;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover,
.footer-section ul li a:focus {
    color: #00d4ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .login-content,
    .register-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-steps {
        grid-template-columns: 1fr;
    }
    
    /* Contact page responsive */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    /* Page header responsive */
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    /* Error page responsive */
    .error-number {
        font-size: 6rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        min-width: 100px;
    }
    
    .btn-download {
        padding: 15px 30px;
        min-width: 180px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .feature-card {
        border: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
