:root {
    --bg-color: #050505;
    --light-bg: #111111;
    --dark-bg: #000000;
    --text-color: #e0e0e0;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --btn-primary: #2563eb;
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.7;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--light-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.primary-nav > ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.primary-nav a {
    color: var(--text-color);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 15px;
}

.primary-nav a:hover {
    color: var(--accent-color);
}

.has-children {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-bg);
    min-width: 200px;
    padding: 10px 0;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    z-index: 1000;
    list-style: none;
}

.has-children:hover .sub-menu {
    display: block;
}

.sub-menu li {
    padding: 5px 20px;
}

.sub-menu a {
    text-transform: none;
    font-size: 14px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.btn-primary {
    background-color: var(--btn-primary);
    color: white;
}

.btn-secondary {
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

/* Layout Utilities */
.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.section-padding { padding: 120px 0; }
.bg-alt { background-color: var(--light-bg); }
.bg-accent { background-color: rgba(28, 71, 179, 0.1); }
.lead-text { font-size: 1.15rem; color: #ccc; max-width: 800px; margin: 0 auto; line-height: 1.8; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.align-center { align-items: center; }

/* Buttons Enhancement */
.btn-large { padding: 15px 35px; font-size: 1.1rem; }
.link-with-arrow { color: var(--accent-color); display: inline-flex; align-items: center; gap: 5px; font-weight: 500; transition: gap 0.3s ease; }
.link-with-arrow:hover { gap: 8px; color: var(--accent-hover); }

/* Hero Section */
.hero-section {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.gradient-bg {
    background: linear-gradient(135deg, rgba(37,99,235,0.15) 0%, rgba(5,5,5,1) 40%, rgba(5,5,5,1) 100%);
    background-size: 200% 200%;
    animation: gradient-animation 10s ease infinite;
}
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .gradient-bg { animation: none; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #aaa;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Feature Cards (Community Areas) */
.feature-card {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}
.feature-icon {
    color: var(--accent-color);
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.feature-card p {
    color: #aaa;
    font-size: 0.95rem;
}

/* How We Operate */
.feature-list {
    list-style: none;
    text-align: left;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #ccc;
}
.list-icon {
    color: var(--accent-color);
    margin-right: 15px;
    flex-shrink: 0;
}
.feature-list strong {
    color: #fff;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(90deg, rgba(28,71,179,0.2) 0%, rgba(28,71,179,0) 100%);
    border-left: 4px solid var(--btn-primary);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    display: inline-block;
}
.highlight-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--accent-hover);
}

/* Featured Project */
.project-card-featured {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 40px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.project-card-featured:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}
.badge {
    display: inline-block;
    background: rgba(28, 71, 179, 0.3);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.project-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.project-description {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 25px;
}
.screenshot-placeholder {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.browser-top {
    background: #222;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
}
.browser-content {
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
}

/* Partners */
.partner-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.partner-logo {
    padding: 20px 40px;
    background: #0a0a0a;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: #888;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.partner-logo:hover {
    color: #fff;
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Final CTA */
.cta-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.cta-text {
    font-size: 1.2rem;
    color: #ccc;
}
.cta-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background-color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.post-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
}

.post-card-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-color);
}

.post-card-title a:hover {
    color: var(--accent-color);
}

.post-card-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.view-all-wrapper {
    text-align: center;
    margin-top: 20px;
}

/* Single Post */
.single-post-container .entry-header {
    margin-bottom: 40px;
}

.single-post-container .entry-title {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.single-post-container .entry-meta {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

.post-cover {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2, .entry-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.entry-content ul, .entry-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.entry-content figure {
    margin: 30px 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-top: 10px;
}

.tags-list {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--light-bg);
}

.tag {
    display: inline-block;
    background-color: var(--light-bg);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Single Page */
.single-page-container .entry-title {
    color: var(--btn-primary);
    font-size: 36px;
    margin-bottom: 30px;
}

/* Footer */
.site-footer {
    background-color: var(--dark-bg);
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    .primary-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .single-post-container .entry-title {
        font-size: 28px;
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .hero-actions, .cta-actions {
        flex-direction: column;
    }
    .project-card-featured {
        padding: 20px;
    }
    .operate-image {
        margin-top: 30px;
    }
    .section-padding {
        padding: 50px 0;
    }
}
