/* ========================================
   AltFlex Capstone Methodology Design
   Premium Presentation Website Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --secondary: #10B981;
    --secondary-dark: #059669;
    --accent: #EC4899;
    --accent-purple: #8B5CF6;
    --warning: #F59E0B;

    /* Backgrounds */
    --bg-dark: #0F0F23;
    --bg-darker: #0A0A1B;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.05);

    /* Text */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(99, 102, 241, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    /* Sizing */
    --max-width: 1400px;
    --border-radius: 16px;
    --border-radius-sm: 8px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 2rem;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
}

.nav-cta:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.nav-cta::after {
    display: none;
}

.github-icon {
    width: 18px;
    height: 18px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.gradient-text {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .subtitle {
    display: block;
    font-size: 0.45em;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.meta-icon {
    font-size: 1.25rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--primary);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    max-width: 500px;
}

.code-window {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #EF4444;
}

.dot.yellow {
    background: #F59E0B;
}

.dot.green {
    background: #10B981;
}

.window-title {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.window-code {
    padding: 1.5rem;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    background: transparent;
    overflow-x: auto;
}

.window-code code {
    background: transparent;
}

.window-code .keyword {
    color: #C792EA;
}

.window-code .class {
    color: #FFCB6B;
}

.window-code .function {
    color: #82AAFF;
}

.window-code .string {
    color: #C3E88D;
}

.window-code .number {
    color: #F78C6C;
}

.window-code .comment {
    color: #546E7A;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Main Content */
.main-content {
    position: relative;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-dark {
    background: rgba(0, 0, 0, 0.3);
}

.section-gradient {
    background: var(--gradient-glow);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-number {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

/* Glass Card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

/* Overview Section */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.overview-card {
    padding: 2.5rem;
}

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

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.overview-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

.highlight {
    color: var(--text-primary);
    font-weight: 500;
}

/* Deliverables */
.deliverables-grid {
    margin-top: 3rem;
}

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

.deliverable-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.deliverable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.deliverable-card.phase-1::before {
    background: var(--primary);
}

.deliverable-card.phase-2::before {
    background: var(--secondary);
}

.deliverable-card.phase-3::before {
    background: var(--accent-purple);
}

.deliverable-card.phase-final::before {
    background: var(--warning);
}

.deliverable-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.phase-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.phase-status {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.phase-status.completed {
    color: var(--secondary);
}

.phase-status.upcoming {
    color: var(--warning);
}

.deliverable-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.deliverable-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.phase-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Methodology Section */
.rationale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.rationale-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
}

.rationale-number {
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
}

.rationale-card h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.rationale-card ul {
    list-style: none;
}

.rationale-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.rationale-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.comparison-box {
    max-width: 800px;
    margin: 0 auto;
}

.comparison-box h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.comparison-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
}

.comparison-item .icon {
    font-size: 1.5rem;
}

.comparison-item.negative {
    border-left: 3px solid #EF4444;
}

.comparison-item.positive {
    border-left: 3px solid var(--secondary);
}

/* Phase Tabs */
.phase-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.phase-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.phase-tab:hover,
.phase-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.tab-icon {
    font-size: 1.25rem;
}

/* Phase Panels */
.phase-panel {
    display: none;
}

.phase-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phase-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.phase-date-range {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.sprint-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.sprint-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-glow);
}

.sprint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sprint-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.sprint-weeks {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sprint-card h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.sprint-tasks {
    list-style: none;
    margin-bottom: 1.5rem;
}

.sprint-tasks li {
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sprint-tasks li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.sprint-deliverable {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
}

.sprint-deliverable code {
    color: var(--primary-light);
    background: transparent;
    font-family: 'JetBrains Mono', monospace;
}

/* Velocity Section */
.velocity-section {
    margin-top: 4rem;
    text-align: center;
}

.velocity-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.velocity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Velocity Chart */
.velocity-chart {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    height: 200px;
    margin-bottom: 1rem;
}

.chart-bar {
    width: 40px;
    height: var(--height);
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.5rem;
    position: relative;
    transition: var(--transition-normal);
}

.chart-bar:hover {
    transform: scaleY(1.05);
}

.chart-bar span {
    font-size: 0.8rem;
    font-weight: 600;
}

.chart-labels {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.chart-labels span {
    width: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
}

.team-card.lead {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.team-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.team-role {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.team-responsibilities {
    list-style: none;
    text-align: left;
}

.team-responsibilities li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.team-responsibilities li:last-child {
    border-bottom: none;
}

.team-responsibilities li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* Ceremonies Section */
.ceremonies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.ceremony-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
}

.ceremony-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
}

.ceremony-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ceremony-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.ceremony-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.ceremony-duration {
    font-size: 0.8rem;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
}

/* Architecture Section */
.architecture-diagram,
.flow-diagram {
    margin-bottom: 3rem;
    padding: 2rem;
    overflow-x: auto;
}

.flow-diagram h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.mermaid {
    display: flex;
    justify-content: center;
}

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

.stack-category {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.stack-category h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stack-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tool-card {
    text-align: center;
    padding: 2rem;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-icon svg {
    width: 48px;
    height: 48px;
    fill: var(--text-primary);
}

.tool-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.tool-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.tool-link:hover {
    color: var(--primary);
}

/* Definition of Done */
.dod-section {
    max-width: 800px;
    margin: 0 auto;
}

.dod-section h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.dod-grid {
    display: grid;
    gap: 1rem;
}

.dod-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--secondary);
}

.dod-check {
    font-size: 1.25rem;
}

.dod-item code {
    background: rgba(99, 102, 241, 0.2);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

/* Risk Table */
.risk-table-wrapper {
    overflow-x: auto;
    margin-bottom: 3rem;
}

.risk-table {
    width: 100%;
    border-collapse: collapse;
}

.risk-table th,
.risk-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.risk-table th {
    background: rgba(99, 102, 241, 0.2);
    font-weight: 600;
    color: var(--text-primary);
}

.risk-table td {
    color: var(--text-secondary);
}

.risk-icon {
    margin-right: 0.5rem;
}

.risk-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.risk-badge.low {
    background: rgba(16, 185, 129, 0.2);
    color: var(--secondary);
}

.risk-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.risk-badge.high {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* QA Pyramid */
.qa-pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.pyramid-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-sm);
    color: white;
    font-weight: 500;
}

.pyramid-level.unit {
    width: 100%;
    background: var(--primary);
}

.pyramid-level.integration {
    width: 80%;
    background: var(--secondary);
}

.pyramid-level.manual {
    width: 60%;
    background: var(--accent-purple);
}

.pyramid-level.security {
    width: 40%;
    background: var(--accent);
}

.level-count {
    font-size: 1.25rem;
    font-weight: 700;
}

.level-label {
    font-size: 0.9rem;
}

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

.success-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.success-card.phase-1-bg::before {
    background: var(--primary);
}

.success-card.phase-2-bg::before {
    background: var(--secondary);
}

.success-card.phase-3-bg::before {
    background: var(--accent-purple);
}

.success-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.success-status {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.success-card ul {
    list-style: none;
}

.success-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* References Section */
.references-grid {
    display: grid;
    gap: 1.5rem;
}

.reference-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.reference-card:hover {
    transform: translateX(8px);
}

.ref-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.ref-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--text-primary);
}

.ref-content {
    flex: 1;
}

.ref-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.ref-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ref-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition-fast);
}

.reference-card:hover .ref-arrow {
    transform: translateX(4px);
}

/* Conclusion Section */
.conclusion-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.conclusion-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.conclusion-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.success-factors {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
}

.success-factors h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.factor-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.factor-icon {
    font-size: 2rem;
}

.factor-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.factor-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.conclusion-final {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.conclusion-final strong {
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo-icon {
    font-size: 2rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-credit {
    color: var(--primary-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 5rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero-meta {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        max-width: 100%;
    }

    .container {
        padding: 0 1.5rem;
    }

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

@media (max-width: 768px) {

    /* Mobile Navigation Overlay */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        /* Dynamic viewport height for mobile */
        flex-direction: column;
        background: rgba(10, 10, 27, 0.98);
        backdrop-filter: blur(20px);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease, opacity 0.3s ease;
        gap: 0.5rem;
        z-index: 1000;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Overlay background when menu is open */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-menu.active::before {
        opacity: 1;
        pointer-events: auto;
    }

    /* Mobile nav link styling */
    .nav-menu .nav-link {
        display: block;
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
        border-radius: var(--border-radius-sm);
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: rgba(99, 102, 241, 0.15);
        color: var(--primary-light);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-menu .nav-cta {
        margin-top: 1rem;
        justify-content: center;
        background: var(--gradient-primary);
        border: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        padding: 0.75rem;
    }

    .nav-toggle span {
        width: 26px;
        height: 3px;
        border-radius: 2px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero section mobile */
    .hero {
        padding: 6rem 1rem 2rem;
        gap: 2rem;
    }

    .hero-badge {
        font-size: 0.8rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .scroll-indicator {
        display: none;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .container {
        padding: 0 1rem;
    }

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

    .overview-card {
        padding: 1.5rem;
    }

    .deliverable-cards {
        grid-template-columns: 1fr;
    }

    .phase-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .phase-tab {
        justify-content: center;
        padding: 0.875rem 1rem;
    }

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

    .velocity-chart {
        gap: 0.35rem;
        height: 150px;
    }

    .chart-bar {
        width: 22px;
    }

    .chart-bar span {
        font-size: 0.65rem;
    }

    .chart-labels span {
        width: 22px;
        font-size: 0.65rem;
    }

    .velocity-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }

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

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

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

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

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

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

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

    /* Diagrams scrollable on mobile */
    .architecture-diagram,
    .flow-diagram {
        padding: 1rem;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }

    .mermaid {
        min-width: 600px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-column {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-title .subtitle {
        font-size: 0.5em;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
    }

    .glass-card {
        padding: 1.25rem;
    }

    .code-window {
        font-size: 0.8rem;
    }

    .window-code {
        padding: 1rem;
        font-size: 0.75rem;
    }

    .reference-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .ref-arrow {
        display: none;
    }

    .velocity-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .risk-table {
        font-size: 0.85rem;
    }

    .risk-table th,
    .risk-table td {
        padding: 0.75rem 0.5rem;
    }

    .qa-pyramid {
        width: 100%;
    }

    .pyramid-level {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .pyramid-level.unit {
        width: 100%;
    }

    .pyramid-level.integration {
        width: 90%;
    }

    .pyramid-level.manual {
        width: 75%;
    }

    .pyramid-level.security {
        width: 60%;
    }
}

/* Print Styles */
@media print {

    .animated-bg,
    .navbar,
    .scroll-indicator,
    .hero-visual,
    .footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }

    .glass-card {
        background: white;
        border: 1px solid #ddd;
    }
}