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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #2c3e3f;
    background: linear-gradient(135deg, #f8fffe 0%, #f1f8f6 50%, #e8f5f0 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(52, 168, 83, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(33, 150, 243, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(76, 175, 80, 0.05) 0%, transparent 50%);
    animation: backgroundShift 25s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes backgroundShift {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.05) rotate(0.5deg);
        opacity: 0.8;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.4rem;
}

.logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #4caf50 0%, #2196f3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    background: linear-gradient(135deg, #4caf50 0%, #2196f3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

.nav-link:hover,
.nav-link.active {
    color: #4caf50;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #4caf50 0%, #2196f3 100%);
    transition: width 0.3s ease;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #2c3e3f;
}

.gradient-text {
    background: linear-gradient(135deg, #4caf50 0%, #2196f3 50%, #00bcd4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(15deg) brightness(1.1); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #5a6c6d;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 600;
    color: #4caf50;
    margin-bottom: 0.5rem;
}

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

.cta-button {
    background: linear-gradient(135deg, #4caf50 0%, #2196f3 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.3);
}

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

.city-silhouette {
    display: flex;
    align-items: end;
    gap: 12px;
    height: 300px;
}

.building {
    background: linear-gradient(to top, #4caf50, #81c784);
    border-radius: 6px 6px 0 0;
    position: relative;
    animation: buildingGlow 5s ease-in-out infinite alternate;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.15);
}

.building::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    right: 20%;
    bottom: 20%;
    background: repeating-linear-gradient(
        transparent 0px,
        rgba(255, 255, 255, 0.2) 2px,
        rgba(255, 255, 255, 0.2) 4px,
        transparent 6px
    );
}

.building-1 { width: 35px; height: 160px; animation-delay: 0s; }
.building-2 { width: 45px; height: 200px; animation-delay: 0.8s; }
.building-3 { width: 40px; height: 260px; animation-delay: 1.6s; }
.building-4 { width: 38px; height: 180px; animation-delay: 2.4s; }
.building-5 { width: 42px; height: 220px; animation-delay: 3.2s; }

@keyframes buildingGlow {
    0% { 
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.15);
        filter: brightness(1);
    }
    100% { 
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.25);
        filter: brightness(1.1);
    }
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #4caf50 0%, #2196f3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Markdown content styles */
.markdown-content {
    min-height: 200px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(76, 175, 80, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.loading {
    text-align: center;
    color: #6a7c7d;
    font-style: italic;
    padding: 3rem;
    font-size: 1rem;
}

.error-message {
    text-align: center;
    color: #e57373;
    background: rgba(244, 67, 54, 0.05);
    border: 1px solid rgba(244, 67, 54, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.content-paragraph {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #3a4f50;
}

.subsection-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    color: #4caf50;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid rgba(76, 175, 80, 0.2);
    padding-bottom: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.subsection-title:hover {
    color: #2196f3;
    border-bottom-color: rgba(33, 150, 243, 0.3);
}

.subsection-title .chevron {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: inherit;
    font-weight: normal;
}

.subsection-title.collapsed .chevron {
    transform: rotate(0deg);
}

.subsection-title.expanded .chevron {
    transform: rotate(180deg);
}

.collapsible-content {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.collapsible-content.expanded {
    max-height: 2000px;
    opacity: 1;
}

.collapsible-section {
    width: 100%;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.2rem;
    color: #2c3e3f;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.feature-list {
    list-style: none;
    margin: 1rem 0;
    padding-left: 0;
}

.feature-list li {
    padding: 0.7rem 0;
    position: relative;
    padding-left: 1.5rem;
    border-bottom: 1px solid rgba(76, 175, 80, 0.08);
    color: #3a4f50;
}

.feature-list li:before {
    content: '🌿';
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Description Section */
.description-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.description-grid .collapsible-section {
    grid-column: 1 / -1;
}

.description-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.description-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.description-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4caf50;
}

/* Principles Section */
.principles-section {
    background: rgba(248, 255, 248, 0.5);
}

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

.principles-grid .collapsible-section {
    grid-column: 1 / -1;
}

.principle-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.principle-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #4caf50 0%, #2196f3 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.principle-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.1);
}

.principle-item:hover::before {
    transform: scaleX(1);
}

.principle-number {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #4caf50;
    margin-bottom: 1rem;
}

.principle-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e3f;
}

/* Tech Specs Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tech-grid .collapsible-section {
    grid-column: 1 / -1;
}

.tech-category {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(76, 175, 80, 0.15);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.1);
}

.tech-category h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #2196f3;
}

.tech-list {
    list-style: none;
    margin: 1rem 0;
}

.tech-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
    display: flex;
    align-items: center;
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-item {
    color: #4caf50;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Roadmap Section */
.roadmap-section {
    background: rgba(248, 255, 248, 0.3);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #4caf50, #2196f3);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4caf50 0%, #2196f3 100%);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 1);
    animation: pulse 2s infinite;
}

.timeline-marker.ultimate {
    background: linear-gradient(135deg, #4caf50 0%, #00bcd4 100%);
    width: 24px;
    height: 24px;
    left: 18px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.timeline-content {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(76, 175, 80, 0.15);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.9);
}

.timeline-date {
    color: #4caf50;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e3f;
}

.timeline-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-tag {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    color: #6a7c7d;
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .description-grid,
    .principles-grid,
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 10px;
    }
}
