/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e4e4e7;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: #ffffff;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: #a855f7;
    margin: 0;
    font-size: 1.5rem;
}

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

.nav-link {
    color: #e4e4e7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #a855f7;
}

.github-link {
    background: #9333ea;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.github-link:hover {
    background: #7c3aed;
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: #e4e4e7;
    margin: 3px 0;
    transition: 0.3s;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #a855f7;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 500px;
}

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

.btn-primary {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.4);
}

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

.btn-secondary {
    background: transparent;
    color: #e4e4e7;
    border: 2px solid #374151;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.performance-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.metric {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.metric:hover {
    transform: translateY(-5px);
    border-color: rgba(147, 51, 234, 0.6);
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #a855f7;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: #cbd5e1;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about, .features, .architecture, .team, .contact {
    padding: 5rem 0;
}

/* Value Propositions */
.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.prop {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.prop:hover {
    transform: translateY(-5px);
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.2);
}

.prop-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(1) brightness(1.2);
}

.prop h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.prop p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: rgba(147, 51, 234, 0.5);
    transform: translateY(-3px);
}

.feature h3 {
    color: #a855f7;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature p {
    color: #cbd5e1;
}

/* Architecture */
.architecture-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.arch-description {
    margin-bottom: 3rem;
}

.arch-description p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.arch-layers {
    display: grid;
    gap: 1rem;
}

.layer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.layer:hover {
    border-color: rgba(147, 51, 234, 0.5);
    transform: scale(1.02);
}

.layer h3 {
    color: #a855f7;
    margin-bottom: 0.5rem;
}

.layer p {
    color: #cbd5e1;
    margin: 0;
}

/* Team */
.team-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.team-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.project-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: #e4e4e7;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.project-link:hover {
    border-color: #a855f7;
    color: #a855f7;
    transform: translateY(-2px);
}

/* Contact */
.contact {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(147, 51, 234, 0.2);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    margin: 15% auto;
    padding: 2rem;
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #cbd5e1;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
}

.close:hover {
    color: #a855f7;
}

.modal-content h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.modal-content p {
    text-align: center;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

#newsletterForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#newsletterForm input[type="email"] {
    padding: 1rem;
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #e4e4e7;
    font-size: 1rem;
}

#newsletterForm input[type="email"]:focus {
    outline: none;
    border-color: #a855f7;
}

#newsletterForm label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    cursor: pointer;
}

#newsletterForm input[type="checkbox"] {
    accent-color: #a855f7;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(147, 51, 234, 0.2);
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

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

.footer-brand h3 {
    color: #a855f7;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
}

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

.footer-group h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-group a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-group a:hover {
    color: #a855f7;
}

.footer-bottom {
    border-top: 1px solid rgba(147, 51, 234, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 15, 35, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid rgba(147, 51, 234, 0.2);
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .performance-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .metric {
        padding: 1rem;
    }

    .metric-value {
        font-size: 1.8rem;
    }

    .value-props {
        grid-template-columns: 1fr;
    }

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

    .project-links {
        flex-direction: column;
        align-items: center;
    }

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

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hero {
        padding-top: 80px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .performance-showcase {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 51, 234, 0.7);
}