/* CSS Variables */
:root {
    --color-blue-900: #1e3a8a;
    --color-blue-700: #1d4ed8;
    --color-teal-600: #0d9488;
    --color-teal-500: #14b8a6;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-white: #ffffff;
    --color-green-600: #16a34a;
    --color-purple-700: #7e22ce;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--color-slate-800);
    background: var(--color-slate-50);
}

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

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-slate-200);
    padding: 1rem 0;
}

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

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-slate-800);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--color-slate-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-blue-700);
}

.btn-github {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-slate-900);
    color: var(--color-white);
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-github:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-slate-50) 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(30, 58, 138, 0.05) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(13, 148, 136, 0.1);
    color: var(--color-teal-600);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-slate-800);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-blue-900) 0%, var(--color-teal-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-slate-600);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-blue-900) 0%, var(--color-teal-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--color-slate-600);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-slate-800);
    margin-bottom: 1rem;
}

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

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--color-white);
}

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

.feature-card {
    padding: 2rem;
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: 1rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--color-blue-700);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--color-blue-900);
}

.feature-icon.teal {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    color: var(--color-teal-600);
}

.feature-icon.green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: var(--color-green-600);
}

.feature-icon.purple {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: var(--color-purple-700);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-slate-800);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--color-slate-600);
    line-height: 1.7;
}

/* Architecture Section */
.architecture {
    padding: 6rem 0;
    background: var(--color-slate-50);
}

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

.architecture-diagram {
    background: var(--color-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.architecture-diagram img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

.architecture-description {
    display: grid;
    gap: 2rem;
}

.arch-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: 0.75rem;
    border-left: 4px solid var(--color-teal-600);
    transition: transform 0.2s;
}

.arch-item:hover {
    transform: translateX(8px);
}

.arch-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-teal-600);
    opacity: 0.5;
    min-width: 3rem;
}

.arch-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-slate-800);
    margin-bottom: 0.5rem;
}

.arch-text p {
    color: var(--color-slate-600);
    line-height: 1.7;
}

/* Tech Stack Section */
.tech-stack {
    padding: 6rem 0;
    background: var(--color-white);
}

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

.tech-category {
    padding: 2rem;
    background: var(--color-slate-50);
    border-radius: 1rem;
    border: 1px solid var(--color-slate-200);
}

.tech-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-slate-800);
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: var(--color-white);
    color: var(--color-slate-700);
    border: 1px solid var(--color-slate-200);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tech-tag:hover {
    background: var(--color-blue-900);
    color: var(--color-white);
    border-color: var(--color-blue-900);
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-slate-900) 0%, var(--color-blue-900) 100%);
    color: var(--color-white);
}

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

.about-icon {
    display: inline-flex;
    padding: 1.5rem;
    background: rgba(13, 148, 136, 0.2);
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.about-icon svg {
    stroke: var(--color-teal-500);
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.about-story {
    text-align: left;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-story h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-story p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-story p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #dbeafe 0%, #ccfbf1 100%);
}

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

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-slate-800);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--color-slate-600);
    margin-bottom: 2rem;
}

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

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-blue-900) 0%, var(--color-teal-600) 100%);
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-slate-800);
    border: 2px solid var(--color-slate-300);
}

.btn-secondary:hover {
    border-color: var(--color-blue-700);
    color: var(--color-blue-700);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: var(--color-slate-900);
    color: var(--color-white);
}

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

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--color-teal-500);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 4rem 0;
    }

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

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

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

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

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

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

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .architecture-content {
        grid-template-columns: 1.2fr 1fr;
    }
}
