:root {
    --primary-blue: #002060;
    --accent-orange: #FF7B00;
    --dark-bg: #0a0a0a;
    --light-text: #ffffff;
    --gray-text: #a0a0a0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #001540 0%, #002060 25%, #001540 50%, #000d28 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: rgba(0, 32, 96, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    opacity: 0.8;
}

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

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-orange);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-language {
    position: relative;
    margin-left: 2rem;
}

.language-dropdown {
    position: relative;
}

.language-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--light-text);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-orange);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary-blue);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-menu.active {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.lang-link:last-child {
    border-bottom: none;
}

.lang-link.active,
.lang-link:hover {
    background: var(--accent-orange);
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 32, 96, 0.3) 0%, rgba(0, 13, 40, 0.3) 100%);
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 123, 0, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.accent {
    color: var(--accent-orange);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--light-text);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--accent-orange);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border-color: var(--light-text);
}

.btn-secondary:hover {
    background: var(--light-text);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: rgba(0, 13, 40, 0.3);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-text);
}

/* Stats Section */
.stats {
    padding: 5rem 0;
    background: linear-gradient(to right, var(--primary-blue), var(--dark-bg));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray-text);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: var(--primary-blue);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--gray-text);
}

/* Page Styles */
.page-header {
    background: linear-gradient(135deg, rgba(0, 32, 96, 0.4) 0%, rgba(0, 13, 40, 0.4) 100%);
    padding: 8rem 0 4rem;
    margin-top: 70px;
    backdrop-filter: blur(5px);
}

.page-header h1 {
    font-size: 3rem;
}

.page-content {
    padding: 4rem 0;
    min-height: 60vh;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    margin: 2rem 0 1rem;
    color: var(--accent-orange);
}

.content-wrapper h3 {
    margin: 1.5rem 0 1rem;
}

.content-wrapper p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 1rem 0 1rem 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.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;
}

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

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

.footer-section a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--gray-text);
}

.footer-bottom a {
    color: var(--light-text);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-orange);
    opacity: 1;
}

/* Bluesky Feed Section */
.bluesky-feed {
    padding: 5rem 0;
    background: transparent;
}

.bluesky-widget {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.bluesky-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(0, 133, 255, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.bluesky-logo {
    color: #0085ff;
}

.bluesky-header span {
    font-weight: 600;
    color: var(--light-text);
}

.bluesky-posts {
    max-height: 500px;
    overflow-y: auto;
}

.bluesky-posts::-webkit-scrollbar {
    width: 8px;
}

.bluesky-posts::-webkit-scrollbar-track {
    background: var(--card-bg);
}

.bluesky-posts::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.bluesky-posts::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

.bluesky-post {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.bluesky-post:last-child {
    border-bottom: none;
}

.bluesky-post:hover {
    background: rgba(255, 255, 255, 0.02);
}

.post-content p {
    margin: 0;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.post-meta time {
    color: var(--gray-text);
}

.post-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-link:hover {
    color: var(--light-text);
    transform: translateX(5px);
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--gray-text);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-blue);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .stat-number {
        font-size: 2rem;
    }
    
    .bluesky-posts {
        max-height: 400px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}