:root {
    --bg-dark: #05091a;
    --bg-card: rgba(14, 26, 51, 0.70);
    --border-color: #1a2f50;
    --text-main: #e2e8f0;
    --text-muted: #7b92b8;
    --accent-1: #00c4cc;
    --accent-2: #818cf8;
    --accent-3: #818cf8;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs for Glassmorphism effect */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0,196,204,0.20) 0%, rgba(5,9,26,0) 70%);
}

.blob-2 {
    bottom: 20%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(129,140,248,0.18) 0%, rgba(5,9,26,0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(10%, 10%) rotate(10deg); }
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 9, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-muted);
    font-weight: 400;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Hero Section */
.hero {
    padding: 8rem 2rem 6rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(0, 196, 204, 0.1);
    color: #00c4cc;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 196, 204, 0.25);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-pill {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.tech-pill i {
    color: var(--accent-1);
}

/* Section Common */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Metrics Section */
.metrics-section {
    padding: 5rem 0;
}

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

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-icon {
    font-size: 2rem;
    color: var(--accent-2);
    margin-bottom: 1rem;
}

.metric-value {
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-value .small {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Showcase Section */
.showcase-section {
    padding: 5rem 0;
}

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

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.img-container {
    position: relative;
    width: 100%;
    padding-top: 60%; /* Aspect ratio */
    overflow: hidden;
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.img-container:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(5,9,26,0.92) 0%, rgba(5,9,26,0) 100%);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.img-container:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.overlay p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Architecture Section */
.architecture-section {
    padding: 5rem 0 8rem;
}

.architecture-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

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

.arch-layer:last-child {
    margin-bottom: 0;
}

.layer-title {
    font-weight: 600;
    color: var(--accent-1);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.layer-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pipeline-split {
    align-items: stretch;
}

.arch-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.arch-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.arch-branch {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.highlight-box {
    background: rgba(0, 196, 204, 0.05);
    border-color: rgba(0, 196, 204, 0.28);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight-box h4 {
    color: #e2e8f0;
    margin-bottom: 0.8rem;
    font-family: 'Outfit', sans-serif;
}

.highlight-box ul {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.highlight-box ul li {
    margin-bottom: 0.3rem;
}

.mini-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.mini-flow i {
    font-size: 0.7rem;
    color: var(--accent-2);
}

.result-box {
    background: linear-gradient(135deg, rgba(0,196,204,0.07), rgba(129,140,248,0.07));
    border-color: rgba(129,140,248,0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .architecture-container {
        padding: 1.5rem;
    }
    .layer-content {
        flex-direction: column;
    }
    .arch-arrow {
        transform: rotate(90deg);
    }
}

/* Dashboard Grid */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.dash-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.kpi-item {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kpi-item.positive { border-bottom: 3px solid #10b981; }
.kpi-item.negative { border-bottom: 3px solid #ef4444; }
.kpi-item.neutral { border-bottom: 3px solid #6b7280; }

.kpi-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.kpi-val {
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.kpi-item.positive .kpi-val { color: #10b981; }
.kpi-item.negative .kpi-val { color: #ef4444; }
.kpi-item.neutral .kpi-val { color: #6b7280; }

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

.dash-charts.full-width {
    grid-template-columns: 1fr;
}

.chart-card {
    background: rgba(5, 9, 26, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.chart-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    text-align: center;
}

@media (max-width: 768px) {
    .dashboard-grid {
        padding: 1rem;
    }
}
