/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: calc(0.5rem + 1vw);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Link styling for dark backgrounds */
.feature a {
    color: #64b5f6;
    text-decoration: underline;
    font-weight: 600;
}

.feature a:hover {
    color: #90caf9;
    text-decoration: none;
}

.container {
    width: 100%;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    max-height: calc(100vw * 10 / 16);
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 3;
}

.logo-title-container {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin-bottom: 2rem;
}

.logo-container {
    width: fit-content;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-logo {
    width: 7.5em;
    height: 7.5em;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero-title {
    font-size: 4em;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #fff, #a8edea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2em;
    font-weight: 300;
    margin-bottom: 1.5em;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2em;
    margin-bottom: 2em;
    opacity: 0.8;
    line-height: 1.7;
}

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

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

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

/* Molecule Animation */
.molecule-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.atom {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    position: absolute;
    animation: float 3s ease-in-out infinite;
}

.atom:nth-child(1) {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.atom:nth-child(2) {
    top: 50px;
    right: 50px;
    animation-delay: 1s;
}

.atom:nth-child(3) {
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

.bond {
    width: 4px;
    height: 100px;
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    position: absolute;
    border-radius: 2px;
}

.bond:nth-child(4) {
    top: 80px;
    left: 50%;
    transform: translateX(-50%) rotate(30deg);
}

.bond:nth-child(5) {
    top: 80px;
    left: 50%;
    transform: translateX(-50%) rotate(-30deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Feature Sections */
.feature {
    height: 100vh;
    max-height: calc(100vw * 10 / 16);
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    gap: 4rem;
    overflow: hidden;
    position: relative;
}

.feature:nth-child(even) {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.feature:nth-child(odd) {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.feature:nth-child(4) {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.feature:nth-child(5) {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.feature-content, .feature-visual {
    flex: 1;
}

.feature h3 {
    font-size: 2.5em;
    margin-bottom: 1.5em;
    font-weight: 600;
}

.feature p {
    font-size: 1.1em;
    margin-bottom: 2em;
    opacity: 0.9;
    line-height: 1.7;
}

.feature-points {
    list-style: none;
}

.feature-points li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    position: relative;
    padding-left: 2rem;
}

.feature-points li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #64b5f6;
    font-weight: bold;
}

.feature-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #64b5f6, #1976d2);
    color: white !important;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
    text-decoration: none !important;
}

.feature-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white !important;
    text-decoration: none !important;
}

/* Search Demo */
.search-demo {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(100,181,246,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.search-box {
    display: flex;
    margin-bottom: 1.5rem;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 0.8em;
    background: white;
}

.search-box button {
    padding: 1rem 1.5rem;
    border: none;
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
}

.search-results {
    space-y: 1rem;
}

.result-item {
    background: rgba(100,181,246,0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #64b5f6;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8em;
}

/* AI Demo */
.ai-demo {
    position: relative;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(100,181,246,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.ai-chat {
    margin-bottom: 2rem;
}

.chat-bubble {
    padding: 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    max-width: 80%;
}

.chat-bubble.user {
    background: rgba(100,181,246,0.2);
    margin-left: auto;
    border-left: 3px solid #64b5f6;
}

.chat-bubble.ai {
    background: rgba(0,0,0,0.3);
    border-left: 3px solid #4caf50;
}

.ai-brain {
    text-align: center;
    font-size: 2rem;
    color: #64b5f6;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.ai-brain::before {
    content: "AI Neural Network";
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.7);
}

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

/* Community Demo */
.community-demo {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contributor-card {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5em;
    text-align: center;
    border: 1px solid rgba(100,181,246,0.3);
    flex: 1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.avatar {
    font-size: 3em;
    margin-bottom: 1em;
}

.stats {
    space-y: 0.5rem;
}

.stat {
    background: rgba(100,181,246,0.2);
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    border-left: 2px solid #64b5f6;
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Code Demo */
.code-demo {
    background: rgba(0,0,0,0.9);
    border-radius: 12px;
    padding: 2rem;
    overflow-x: auto;
    border: 1px solid rgba(100,181,246,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.code-demo pre {
    color: #64b5f6;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-demo pre code {
    color: #e3f2fd;
}

/* Python syntax highlighting */
.code-demo .keyword {
    color: #ff6b9d;
    font-weight: bold;
}

.code-demo .string {
    color: #6bcf7f;
}

.code-demo .var {
    color: #64b5f6;
}

.code-demo .function {
    color: #ffd93d;
}

.code-demo .class {
    color: #ff8a50;
}

.code-demo .module {
    color: #a8dadc;
}

.code-demo .type {
    color: #bb86fc;
}

.code-demo .attr {
    color: #f06292;
}

.code-demo .method {
    color: #ffd93d;
}

.code-demo .param {
    color: #81c784;
}

.code-demo .number {
    color: #ffb74d;
}

.code-demo .comment {
    color: #9e9e9e;
    font-style: italic;
}

/* Team Section */
.team {
    height: 100vh;
    max-height: calc(100vw * 10 / 16);
    min-height: 600px;
    padding: 2rem;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.team h2 {
    font-size: 3em;
    margin-bottom: 1em;
    margin-top: 1em;
    color: #333;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    margin: 0 auto;
    max-width: 60em;
}

.team-member {
    background: white;
    border-radius: 20px;
    padding: 1.5em 2em;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-avatar {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.team-member h4 {
    font-size: 1.5em;
    margin-bottom: 0.3em;
    color: #333;
}

.member-title {
    color: #666;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: #888;
    font-style: italic;
    list-style: none;
    padding: 0;
    text-align: left;
}

.member-bio li {
    padding: 0.25em 0;
    position: relative;
    padding-left: 1.5em;
}

.member-bio li::before {
    content: "•";
    color: #64b5f6;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        max-height: none;
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .feature {
        height: auto;
        min-height: 100vh;
        max-height: none;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .feature-right {
        flex-direction: column-reverse;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .team {
        height: auto;
        min-height: 100vh;
        max-height: none;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .community-demo {
        flex-direction: column;
    }
    
    .code-demo {
        text-align: left;
    }
    
    .code-demo pre {
        text-align: left;
    }
}