/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4338ca;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    background-image: 
        radial-gradient(at 40% 20%, hsla(228, 100%, 74%, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 0.1) 0px, transparent 50%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    padding-top: 80px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-graphic {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 10%;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 30%;
    animation-delay: 2s;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-text {
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Section Styles */
.about-section,
.objectives-section,
.who-are-we-section,
.services-section {
    padding: 5rem 0;
}

.about-section {
    background: var(--darker-bg);
}

.about-content h2,
.objectives-section h2,
.who-are-we-section h2,
.services-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.about-content p {
    font-size: 1.125rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-item h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.objective-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.objective-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.objective-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.service-locations {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-radius: 8px;
    font-size: 0.875rem;
}

.service-locations strong {
    color: var(--text-primary);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-top: 1px solid var(--border-color);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 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 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 0.5rem;
        display: block;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .floating-card {
        position: static;
        margin: 0.5rem;
        animation: none;
    }

    .hero-graphic {
        height: auto;
        flex-direction: column;
    }

    .values-grid,
    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 0.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.value-item,
.objective-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.btn:focus,
.nav-link:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Services Page Improvements */

.services-detailed {
    padding: 2rem 0;
}

.service-detail {
    background: #1f2937;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #374151;
}

.service-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Service Banner */
.service-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Service Header */
.service-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid #374151;
}

.service-icon-large {
    font-size: 3rem;
    flex-shrink: 0;
}

.service-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #f9fafb;
}

.service-info p {
    margin: 0;
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Service Content */
.service-content {
    padding: 2rem;
}

.service-features-detailed {
    margin-bottom: 2.5rem;
}

.service-features-detailed h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #f9fafb;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-card:hover {
    background: #4b5563;
    border-color: #6b7280;
}

.feature-icon {
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-text {
    color: #e5e7eb;
    font-weight: 500;
}

/* Locations Section */
.service-locations-detailed {
    margin-bottom: 2.5rem;
}

.service-locations-detailed h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #f9fafb;
}

.locations-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.location-tag {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #3b82f6;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-tag:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Service Actions */
.service-action {
    padding: 2rem;
    background: #111827;
    border-top: 1px solid #374151;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #6b7280;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .service-icon-large {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .service-action {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
    }
    
    .locations-tags {
        justify-content: center;
    }
}

/* Contact Page Styles */

.contact-content {
    padding: 2rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Info Section */
.contact-info {
    background: #1f2937;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #374151;
}

.contact-info h2 {
    color: #f9fafb;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.contact-info p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    color: #e5e7eb;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-method strong {
    color: #f9fafb;
    font-weight: 600;
}

.contact-method a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-method a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Contact Form Section */
.contact-form-section {
    background: #1f2937;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #374151;
}

.contact-form-section h2 {
    color: #f9fafb;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #f9fafb;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 8px;
    color: #f9fafb;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #374151;
    color: #f9fafb;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Button */
.contact-form .btn {
    align-self: flex-start;
    padding: 0.75rem 2rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.contact-form .btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.contact-form .btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .contact-form .btn {
        align-self: stretch;
    }
}

/* Form validation styles */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #ef4444;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #10b981;
}

/* Legal Document Styles */
.legal-document {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.document-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.document-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.document-meta {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.document-content {
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--darker-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.legal-section h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.legal-section h2::before {
    content: "§";
    color: var(--primary-color);
    font-size: 1.2em;
    margin-right: 0.5rem;
    font-weight: 700;
}

.legal-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.legal-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.legal-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

.legal-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.sla-card {
    background: var(--card-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.sla-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 8px 8px 0 0;
}

.sla-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.exclusions-card {
    background: var(--card-bg);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.exclusions-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    border-radius: 8px 8px 0 0;
}

.exclusions-card h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.document-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.document-footer p {
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-document {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .document-header h1 {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .sla-card,
    .exclusions-card {
        padding: 1rem;
    }
}

/* Legal Document Styles (inherit from terms.php) */
.legal-document {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.document-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.document-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.document-meta {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.document-content {
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--darker-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.legal-section h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.legal-section h2::before {
    content: "§";
    color: var(--primary-color);
    font-size: 1.2em;
    margin-right: 0.5rem;
    font-weight: 700;
}

.legal-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.legal-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.legal-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

.legal-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Privacy Policy Specific Styles */
.data-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.data-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.2s ease;
}

.data-item:hover {
    transform: translateY(-2px);
}

.data-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.data-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.privacy-commitment {
    background: var(--card-bg);
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
}

.privacy-commitment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 8px 8px 0 0;
}

.privacy-commitment h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.retention-policy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.retention-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.retention-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.retention-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.right-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.right-item:hover {
    transform: translateY(-2px);
}

.right-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.right-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.third-party-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--accent-color);
}

.service-card h4 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.local-hosting-notice {
    background: var(--card-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.local-hosting-notice p {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0;
}

.email-policy {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.email-policy h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.no-marketing {
    background: var(--card-bg);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.no-marketing h3 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.breach-notification {
    background: var(--card-bg);
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.breach-notification h3 {
    color: #ef4444;
    margin-bottom: 0.75rem;
}

.document-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.document-footer p {
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-document {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .document-header h1 {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .data-collection-grid,
    .retention-policy,
    .rights-grid,
    .third-party-services {
        grid-template-columns: 1fr;
    }
    
    .privacy-commitment,
    .breach-notification {
        padding: 1rem;
    }
}

/* Step Indicator */
.step-indicator {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 2rem 0;
	gap: 1rem;
}

.step {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 25px;
	background: var(--card-bg);
	border: 2px solid transparent;
	transition: all 0.3s ease;
}

.step.active {
	border-color: var(--primary-color);
	background: rgba(99, 102, 241, 0.1);
}

.step.completed {
	background: var(--secondary-color);
	color: white;
}

.step-number {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--text-muted);
	color: var(--dark-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 600;
}

.step.active .step-number {
	background: var(--primary-color);
	color: white;
}

.step.completed .step-number {
	background: white;
	color: var(--secondary-color);
}

.step-arrow {
	color: var(--text-muted);
	font-size: 1.2rem;
}

/* Game Selection */
.games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin: 2rem 0;
}

.game-card {
	background: var(--card-bg);
	border: 2px solid var(--border-color);
	border-radius: 16px;
	padding: 2rem;
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.game-card:hover {
	transform: translateY(-5px);
	border-color: var(--primary-color);
	box-shadow: var(--shadow-lg);
}

.game-card.selected {
	border-color: var(--primary-color);
	background: rgba(99, 102, 241, 0.1);
}

.game-card .popular-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: var(--gradient-secondary);
	color: white;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
}

.game-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.game-card h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.game-card p {
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
}

/* Server Type Selection */
.server-types {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin: 2rem 0;
}

.server-type-card {
	background: var(--card-bg);
	border: 2px solid var(--border-color);
	border-radius: 12px;
	padding: 1.5rem;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
}

.server-type-card:hover {
	border-color: var(--primary-color);
	transform: translateY(-2px);
}

.server-type-card.selected {
	border-color: var(--primary-color);
	background: rgba(99, 102, 241, 0.1);
}

.server-type-card .recommended-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: var(--accent-color);
	color: white;
	padding: 0.25rem 0.5rem;
	border-radius: 12px;
	font-size: 0.7rem;
	font-weight: 600;
}

.server-type-card h4 {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.server-type-card p {
	color: var(--text-secondary);
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.features-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.feature-tag {
	background: var(--border-color);
	color: var(--text-primary);
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 500;
}

/* Tier Selection */
.tiers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin: 2rem 0;
}

.tier-card {
	background: var(--card-bg);
	border: 2px solid var(--border-color);
	border-radius: 16px;
	padding: 2rem;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	text-align: center;
}

.tier-card:hover {
	transform: translateY(-5px);
	border-color: var(--primary-color);
	box-shadow: var(--shadow-lg);
}

.tier-card.selected {
	border-color: var(--primary-color);
	background: rgba(99, 102, 241, 0.1);
}

.tier-card.popular {
	border-color: var(--secondary-color);
	background: rgba(16, 185, 129, 0.1);
}

.tier-card.popular .popular-badge {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--gradient-secondary);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
}

.tier-card h4 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.tier-card p {
	color: var(--text-secondary);
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.price {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}

.price-period {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.specs-list {
	text-align: left;
	margin-bottom: 2rem;
}

.spec-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--border-color);
}

.spec-item:last-child {
	border-bottom: none;
}

.spec-label {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.spec-value {
	color: var(--text-primary);
	font-weight: 600;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}

.btn-primary {
	background: var(--gradient-primary);
	color: white;
	box-shadow: var(--shadow-md);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn-secondary {
	background: var(--card-bg);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
}

.btn-secondary:hover {
	background: var(--border-color);
	transform: translateY(-2px);
}

.btn-outline {
	background: transparent;
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
}

.btn-outline:hover {
	background: var(--primary-color);
	color: white;
}

.action-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin: 3rem 0;
}

/* Hidden states */
.hidden {
	display: none;
}

/* Responsive */
@media (max-width: 768px) {
	.step-indicator {
		flex-direction: column;
		gap: 0.5rem;
	}

	.step-arrow {
		transform: rotate(90deg);
	}

	.header h1 {
		font-size: 2rem;
	}

	.games-grid,
	.server-types,
	.tiers-grid {
		grid-template-columns: 1fr;
	}
}

.location-badge {
	display: inline-block;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-primary);
	margin: 0.25rem 0.25rem 0.25rem 0;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.location-badge:hover {
	background: var(--primary-color);
	color: white;
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.locations-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.starting-price {
	font-size: 1rem;
	font-weight: 600;
	color: var(--secondary-color);
	margin: 0.5rem 0;
	padding: 0.25rem 0;
}

.game-card .starting-price,
.server-type-card .starting-price {
	border-top: 1px solid var(--border-color);
	margin-top: 1rem;
	padding-top: 1rem;
}

/* Authentication Section */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-container {
    max-width: 650px;
    width: 100%;
    position: relative;
}

.auth-form-wrapper {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--dark-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.auth-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
}

.forgot-password {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-color);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-switch p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: var(--primary-dark);
}

/* Form Validation States */
.form-group.error input {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.success input {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading State */
.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-btn.loading {
    position: relative;
    color: transparent;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-section {
        padding: 1rem;
    }
    
    .auth-form-wrapper {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
}

/* Animation for form switching */
.auth-form-wrapper {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
