:root {
    --bg-color: #121212;
    --text-light: #fefefe;
    --text-muted: #a0a0a0;
    --maroon: #800000;
    --gold: #FFD700;
    --surface-dark: #1E1E1E;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Glassmorphism Utilities */
.glass {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: rgba(255, 215, 0, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

/* Typography */
h1,
h2,
h3,
h4 {
    margin-bottom: 15px;
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

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

/* Background Pattern */
.network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image:
        radial-gradient(circle at center, rgba(128, 0, 0, 0.15) 0%, transparent 50%),
        linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 1)),
        url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h40v40H0z" fill="none"/><path d="M20 0v40M0 20h40" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></svg>');
    z-index: -1;
}

/* Header */
.main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 40px;
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(128, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.header-center h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.header-separator {
    color: rgba(255, 215, 0, 0.5);
    font-size: 1.2rem;
    font-weight: 300;
}

.header-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Mobile responsive header */
@media (max-width: 768px) {
    .header-center {
        flex-direction: column;
        gap: 4px;
    }

    .header-center h1 {
        font-size: 0.85rem;
        white-space: normal;
        text-align: center;
    }

    .header-separator {
        display: none;
    }
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.sub-title {
    color: var(--maroon);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.vivaathi-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 6rem;
    background: linear-gradient(90deg, var(--gold) 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.1;
    margin: 10px 0 30px;
    letter-spacing: -2px;
}

.hero-intro {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--surface-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.badge:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
}

.badge i {
    width: 16px;
    height: 16px;
    color: var(--gold);
}

/* Features Section */
.features {
    padding: 100px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1px));
    gap: 40px;
    justify-content: center;
}

@media (min-width: 800px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-card {
    padding: 40px;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(128, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--gold);
}

.mockup-img {
    margin-top: 30px;
    height: 200px;
    background: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 0.9rem;
}

/* Team Section */
.team {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.team-container {
    position: relative;
    padding: 60px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 500px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, var(--maroon) 0%, rgba(128, 0, 0, 0.3) 100%);
    z-index: 0;
}

.avatar {
    position: relative;
    z-index: 1;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 40px auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-card h4 {
    position: relative;
    z-index: 1;
    margin-bottom: 5px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    padding: 0 15px;
}

.team-card .role {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.about-section {
    padding: 0 25px;
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1;
}

.about-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 25px 30px;
    margin: 0;
}

.socials a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.socials a:hover {
    background: var(--maroon);
    color: #fff;
    transform: translateY(-5px) rotate(8deg);
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.4);
}

.socials a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0) invert(1);
    /* Ensure black icons become white for visibility on dark background */
}

.socials a i {
    width: 20px;
    height: 20px;
}


/* Commercialization */
.commercial {
    padding: 80px 0 120px;
}

.coming-soon {
    display: inline-block;
    background: var(--maroon);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Footer */
.main-footer {
    background: #0a0a0a;
    padding: 60px 20px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-content h2 {
    color: var(--gold);
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--maroon);
    color: white;
    border: 2px solid var(--maroon);
}

.btn-primary:hover {
    background: transparent;
    color: var(--maroon);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.copyright {
    color: #555;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid #222;
}

/* ============================
   App Showcase Section
   ============================ */
.showcase {
    padding: 100px 0;
    position: relative;
}

.showcase-step {
    margin-bottom: 80px;
    position: relative;
}

.showcase-step:last-child {
    margin-bottom: 0;
}

.step-number {
    font-family: 'Poppins', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 215, 0, 0.06);
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: 0;
}

.step-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.step-content.reverse {
    flex-direction: row-reverse;
}

.showcase-step:has(.step-content.reverse) .step-number {
    text-align: right;
}

.step-text {
    flex: 1;
    min-width: 0;
}

.step-text h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-light);
    position: relative;
    padding-left: 16px;
}

.step-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--maroon));
    border-radius: 2px;
}

.step-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.step-text p strong {
    color: var(--text-light);
}

.step-image {
    flex: 1.3;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 215, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.step-image:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 215, 0, 0.12);
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Notification visual cards (step 6) */
.notification-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(30, 30, 30, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.notif-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    transition: transform 0.3s ease;
}

.notif-card:hover {
    transform: translateX(4px);
}

.notif-icon {
    width: 42px;
    height: 42px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    flex-shrink: 0;
}

.notif-icon.judge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.notif-icon i {
    width: 20px;
    height: 20px;
}

.notif-body {
    flex: 1;
}

.notif-body strong {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
    color: var(--text-light);
}

.notif-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.5;
}

.notif-time {
    font-size: 0.75rem;
    color: #555;
}

/* Responsive showcase */
@media (max-width: 800px) {

    .step-content,
    .step-content.reverse {
        flex-direction: column;
    }

    .step-image {
        width: 100%;
    }

    .step-number {
        font-size: 3.5rem;
    }
}

/* ============================
   Architecture Section
   ============================ */
.architecture {
    padding: 100px 0;
    background: radial-gradient(circle at center, rgba(128, 0, 0, 0.05) 0%, transparent 70%);
}

.arch-diagram {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.arch-column {
    flex: 1;
    min-width: 250px;
    max-width: 360px;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.arch-column h3 {
    text-align: center;
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(5px);
}

.tech-item i {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.arch-connector {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 0;
    min-width: 130px;
}

.connector-arrow {
    position: relative;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.connector-arrow::after {
    content: '→';
    display: block;
    font-size: 2rem;
    color: var(--gold);
    margin-top: -5px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.connector-arrow.back::after {
    content: '←';
}

/* Backend Stack Styles */
.arch-header {
    text-align: center;
    margin-bottom: 10px;
}

.arch-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -10px;
    margin-bottom: 25px;
}

.arch-badge {
    font-size: 0.75rem;
    background: linear-gradient(135deg, var(--maroon), #a00000);
    padding: 4px 12px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3);
}

.stack-layers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.layer {
    background: rgba(128, 0, 0, 0.1);
    border: 1px solid rgba(128, 0, 0, 0.2);
    padding: 14px;
    text-align: center;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-light);
}

.layer small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

.layer:hover {
    background: rgba(128, 0, 0, 0.2);
    border-color: var(--gold);
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Database Styles */
.db-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.db-brand i {
    width: 70px;
    height: 70px;
    color: var(--gold);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.2));
}

.db-brand span {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.db-details {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.db-details p {
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 500;
}

.db-details ul {
    list-style: none;
    padding-left: 0;
}

.db-details li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-details li::before {
    content: '•';
    color: var(--gold);
    font-weight: bold;
}

/* Responsive Arch */
@media (max-width: 1000px) {
    .arch-diagram {
        flex-direction: column;
        align-items: center;
    }

    .arch-column {
        width: 100%;
        max-width: 500px;
    }

    .arch-connector {
        flex-direction: row;
        width: 100%;
        max-width: 500px;
        height: auto;
        padding: 30px 0;
        gap: 20px;
    }

    .connector-arrow::after {
        content: '↓';
        font-size: 2.5rem;
    }

    .connector-arrow.back::after {
        content: '↑';
    }
}

/* ============================
   EER Diagram Section
   ============================ */
.eer {
    padding: 100px 0;
    background: radial-gradient(circle at top right, rgba(128, 0, 0, 0.08) 0%, transparent 40%);
    overflow: hidden;
}

.eer-wrapper {
    overflow-x: auto;
    padding: 40px 0;
    margin-top: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--maroon) transparent;
}

.eer-wrapper::-webkit-scrollbar {
    height: 6px;
}

.eer-wrapper::-webkit-scrollbar-thumb {
    background: var(--maroon);
    border-radius: 10px;
}

.eer-container {
    min-width: 1300px;
    padding: 60px 40px;
    position: relative;
}

.eer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    position: relative;
    z-index: 1;
}

.eer-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.eer-table {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.eer-table:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.1);
}

.table-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--gold);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-header::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--maroon);
    border-radius: 2px;
}

.main-table .table-header {
    background: rgba(128, 0, 0, 0.2);
}

.table-row {
    padding: 10px 18px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #ddd;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row .type {
    color: #666;
    font-size: 0.7rem;
    font-family: monospace;
}

.table-row.pk {
    font-weight: 600;
    color: var(--text-light);
}

.table-row.pk::after {
    content: 'PK';
    font-size: 0.6rem;
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    padding: 2px 6px;
    border-radius: 4px;
}

.table-row.fk::after {
    content: 'FK';
    font-size: 0.6rem;
    background: rgba(128, 0, 0, 0.2);
    color: #ff4d4d;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Connection Lines Simulation */
.eer-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.eer-connections-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.eer-line-path {
    fill: none;
    stroke: rgba(255, 215, 0, 0.2);
    stroke-width: 1.5;
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.eer-table:hover~svg .eer-line-path[data-table*="hovered-table-id"] {
    stroke: var(--gold);
    stroke-width: 2.5;
    opacity: 1;
}

/* Add a glowing effect for active connections */
.eer-line-path.active {
    stroke: var(--gold);
    stroke-width: 2;
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--gold));
}

@media (max-width: 1000px) {
    .eer-container {
        min-width: 1000px;
    }
}

/* ============================
   Project Structure
   ============================ */
.project-structure {
    padding: 100px 0;
}

.structure-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.structure-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--maroon);
}

.tree-container {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    white-space: pre-wrap;
    overflow-x: auto;
}

.tree-line {
    display: flex;
    gap: 20px;
    padding: 2px 0;
    transition: background 0.2s ease;
}

.tree-line:hover {
    background: rgba(255, 215, 0, 0.05);
}

.tree-node {
    color: var(--gold);
    font-weight: 600;
    min-width: 300px;
}

.tree-comment {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.8;
}

.tree-branch {
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .tree-container {
        font-size: 0.75rem;
    }

    .tree-node {
        min-width: 200px;
    }
}

.workflow-section {
    padding: 100px 0;
    background: rgba(18, 18, 18, 0.5);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.diagrams-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.diagram-main,
.diagram-side {
    width: 100%;
}

.sync-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
}

.sync-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sync-node {
    width: 50px;
    height: 50px;
    background: var(--maroon);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(128, 0, 0, 0.4);
}

.sync-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    min-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sync-box h3 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    font-weight: 600;
}

.sync-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sync-item i {
    color: var(--gold);
    width: 16px;
}

.sync-item-text strong {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
}

.sync-item-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Workflow Cards */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.workflow-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.workflow-card h3 {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 8px;
}

.workflow-step {
    background: rgba(128, 0, 0, 0.1);
    border: 1px solid rgba(128, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    position: relative;
    text-align: center;
    color: #eee;
}

.workflow-step::after {
    content: '↓';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-weight: bold;
    font-size: 0.9rem;
}

.workflow-step:last-child::after {
    display: none;
}

.step-meta {
    display: block;
    font-size: 0.65rem;
    color: #888;
    margin-top: 3px;
}

@media (max-width: 1200px) {
    .diagrams-wrapper {
        flex-direction: column;
    }

    .diagram-main,
    .diagram-side {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.workflow-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workflow-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.workflow-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--gold);
}

.workflow-card h3 {
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 8px;
}

.workflow-step {
    background: rgba(128, 0, 0, 0.1);
    border: 1px solid rgba(128, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    position: relative;
    text-align: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.workflow-step:hover {
    background: rgba(128, 0, 0, 0.2);
    transform: translateX(5px);
}

.workflow-step::after {
    content: '↓';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-weight: bold;
}

.workflow-step:last-child::after {
    display: none;
}

.step-meta {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 1100px) {
    .workflow-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}