:root {
    --bg: #000;
    --card: #071016;
    --muted: #9fb3b6;
    --accent-a: #00ffd4;
    --accent-b: #18ff6f;
    --glass: rgba(255, 255, 255, 0.03);
    --radius: 14px;
    --maxw: 1100px;
    --gap: 1rem;
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.container {
    width: 90%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    word-wrap: break-word;
}

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

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.body-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
    font-weight: 400;
}

/* Header & Navigation */
header {
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass);
    left: 0;
    right: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    max-width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    max-width: 100%;
}

.logo {
    height: 40px;
    width: auto;
    max-width: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 0.75rem;
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'JetBrains Mono', monospace;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a:hover {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    transition: all 0.3s ease;
}

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

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.mobile-menu span {
    width: 100%;
    height: 3px;
    background: white;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    border-radius: 2px;
}


/* Page Hero */
.page-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    overflow: hidden;
    width: 100%;
}

.page-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 10px;
}

.page-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
    word-wrap: break-word;
}

.page-hero-content p {
    font-size: 1.25rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    word-wrap: break-word;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    backdrop-filter: blur(20px);
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        transparent 100%
    );
}

#particle-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    gap: 0.5rem;
    max-width: 100%;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    color: var(--bg);
    box-shadow: 0 4px 15px rgba(0, 255, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 212, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-a);
    color: var(--accent-a);
}

.btn-secondary:hover {
    background: rgba(0, 255, 212, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Philosophy Section */
.philosophy-section {
    padding: 6rem 0;
    width: 100%;
    overflow: hidden;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.content-text h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    word-wrap: break-word;
}

.content-text p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
    word-wrap: break-word;
}

.philosophy-points {
    margin-top: 2.5rem;
}

.point-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border: 1px solid var(--glass);
    transition: all 0.3s ease;
}

.point-item:hover {
    border-color: rgba(0, 255, 212, 0.2);
    transform: translateX(5px);
}

.point-item i {
    color: var(--accent-a);
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.point-item h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.point-item p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Open Source Visual */
.opensource-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.repo-card {
    position: absolute;
    background: var(--card);
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    width: 140px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.repo-card i {
    font-size: 2rem;
    color: var(--accent-a);
}

.repo-card span {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.repo-1 {
    top: 20%;
    left: 10%;
    animation: float 3s ease-in-out infinite;
}

.repo-2 {
    top: 60%;
    right: 10%;
    animation: float 3s ease-in-out infinite 1s;
}

.repo-3 {
    bottom: 20%;
    left: 30%;
    animation: float 3s ease-in-out infinite 2s;
}

.community-hub {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-size: 2rem;
    z-index: 3;
    box-shadow: 0 0 30px rgba(0, 255, 212, 0.3);
}

.community-hub span {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.hub-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    background: var(--accent-a);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(20px);
    animation: pulse 2s ease-in-out infinite;
}

/* Projects Section */
.projects-section {
    padding: 6rem 0;
    background: var(--card);
    width: 100%;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    width: 100%;
}

.section-header h2 {
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-header p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    width: 100%;
}

.project-card {
    background: var(--bg);
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 212, 0.2);
    box-shadow: 0 10px 30px rgba(0, 255, 212, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-badge {
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    color: var(--bg);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: var(--card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-a);
    font-size: 1.5rem;
}

.project-content {
    flex-grow: 1;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.project-description {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
    padding: 0.8rem;
    background: var(--card);
    border-radius: 8px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-a);
    margin-bottom: 0.3rem;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 500;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.feature-tag {
    background: rgba(0, 255, 212, 0.1);
    color: var(--accent-a);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 212, 0.2);
}

.project-actions {
    margin-top: auto;
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 0;
    width: 100%;
    overflow: hidden;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.benefit-card {
    background: var(--card);
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 212, 0.2);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--bg);
    font-size: 2rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.benefit-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* Community Section */
.community-section {
    padding: 6rem 0;
    background: var(--card);
    width: 100%;
    overflow: hidden;
}

.content-grid.reversed {
    direction: rtl;
}

.content-grid.reversed > * {
    direction: ltr;
}

.community-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.community-stat {
    text-align: center;
    padding: 2rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--glass);
    transition: all 0.3s ease;
}

.community-stat:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 212, 0.2);
}

.community-stat .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-a);
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.community-stat .stat-label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.community-actions {
    margin: 2.5rem 0;
}

.action-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border: 1px solid var(--glass);
    transition: all 0.3s ease;
}

.action-item:hover {
    border-color: rgba(0, 255, 212, 0.2);
    transform: translateX(5px);
}

.action-item i {
    color: var(--accent-a);
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.action-item h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.action-item p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
    width: 100%;
    overflow: hidden;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: var(--card);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass);
    width: 100%;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    width: 100%;
}

.footer-brand p {
    color: var(--muted);
    margin-top: 0.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.footer-column a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
    word-wrap: break-word;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass);
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    width: 100%;
}

/* Animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* Page Transitions & Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--card);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease;
        border-left: 1px solid var(--glass);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu {
        display: flex;
        z-index: 1001;
    }

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 9px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .opensource-visual {
        height: 300px;
        order: -1;
    }

    .repo-card {
        transform: scale(0.8);
    }

    .repo-1 {
        left: 5%;
    }

    .repo-2 {
        right: 5%;
    }

    .repo-3 {
        left: 25%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .community-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .page-hero {
        padding-top: 100px;
    }

    .philosophy-section,
    .projects-section,
    .benefits-section,
    .community-section {
        padding: 4rem 0;
    }

    .content-text h2 {
        font-size: 1.8rem;
    }

    .project-card {
        padding: 2rem 1.5rem;
    }

    .benefit-card {
        padding: 2rem 1.5rem;
    }

    .community-stat {
        padding: 1.5rem;
    }

    .community-stat .stat-value {
        font-size: 2rem;
    }

    .opensource-visual {
        height: 250px;
    }

    .repo-card {
        width: 120px;
        padding: 1rem;
    }

    .community-hub {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }

    .hub-glow {
        width: 120px;
        height: 120px;
    }

    .page-hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section-header h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
}

@media (max-width: 360px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .repo-card {
        transform: scale(0.7);
    }

    .container {
        width: 100%;
        padding: 0 15px;
    }
}