/* ============================================
   Employee Management System - Wiki Styles
   Modern, Professional, and Responsive Design
   ============================================ */

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

:root {
    /* Color Palette */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Neutral Colors */
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
    max-width: 100vw;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Global Link Styles */
a {
    color: var(--white);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
    box-sizing: border-box;
}

/* Scroll Progress Bar */
.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
    width: 0%;
    transition: none;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
    will-change: width;
}

/* Header Styles */
.header {
    background: var(--gradient-hero);
    color: var(--white);
    padding: var(--spacing-md) 0 calc(var(--spacing-md) + 4px);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header.scrolled .logo {
    width: 38px;
    height: 38px;
}

.header.scrolled .main-title {
    font-size: 1.1rem;
}

.header.scrolled .subtitle {
    font-size: 0.7rem;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.header-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 0 0 auto;
}

.logo {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.main-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
    margin: 0;
    line-height: 1;
}

/* Mobile Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    backdrop-filter: blur(5px);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation */
.nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--spacing-xs);
    flex: 1;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

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

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active-section {
    background: rgba(255, 255, 255, 0.15);
    color: #fbbf24;
    font-weight: 600;
}

.nav-link.active-section::after {
    width: 70%;
    background: #fbbf24;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-3xl);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.icon {
    width: 20px;
    height: 20px;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-item {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Section Styles */
.section {
    padding: var(--spacing-3xl) 0;
}

.section-dark {
    background: var(--dark-bg);
    color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-description {
    text-align: center;
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    opacity: 0.9;
    line-height: 1.8;
}

/* Section-specific link colors */
.section a:not(.btn):not(.nav-link) {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color var(--transition-base);
}

.section a:not(.btn):not(.nav-link):hover {
    color: var(--primary-dark);
}

.section-dark a:not(.btn):not(.nav-link) {
    color: var(--primary-light);
}

.section-dark a:not(.btn):not(.nav-link):hover {
    color: var(--white);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    word-wrap: break-word;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

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

.card a {
    color: var(--primary-color);
    text-decoration: underline;
}

.card a:hover {
    color: var(--primary-dark);
}

/* Architecture Diagrams */
.architecture-diagram {
    margin: var(--spacing-2xl) 0;
    background: var(--dark-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.diagram-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    text-align: center;
}

.mermaid {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

/* Architecture Layers */
.architecture-layers {
    margin-top: var(--spacing-2xl);
}

.architecture-layers h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.layers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: var(--spacing-lg);
}

.layer {
    background: var(--dark-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.layer h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.layer ul {
    list-style: none;
}

.layer li {
    padding: var(--spacing-sm) 0;
    color: var(--gray-300);
    position: relative;
    padding-left: var(--spacing-lg);
}

.layer li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Technology Badges */
.tech-category {
    margin: var(--spacing-2xl) 0;
}

.tech-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.badge {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    cursor: default;
}

.badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Technology-specific badge colors */
.badge-react { background: #61DAFB; color: #000; }
.badge-js { background: #F7DF1E; color: #000; }
.badge-router { background: #CA4245; color: #fff; }
.badge-redux { background: #764ABC; color: #fff; }
.badge-axios { background: #5A29E4; color: #fff; }
.badge-tailwind { background: #06B6D4; color: #fff; }
.badge-mui { background: #007FFF; color: #fff; }
.badge-chart { background: #FF6384; color: #fff; }
.badge-jest { background: #C21325; color: #fff; }
.badge-rtl { background: #E33332; color: #fff; }
.badge-java { background: #007396; color: #fff; }
.badge-spring { background: #6DB33F; color: #fff; }
.badge-jpa { background: #6DB33F; color: #fff; }
.badge-hibernate { background: #59666C; color: #fff; }
.badge-security { background: #6DB33F; color: #fff; }
.badge-junit { background: #25A162; color: #fff; }
.badge-swagger { background: #85EA2D; color: #000; }
.badge-maven { background: #C71A36; color: #fff; }
.badge-mysql { background: #4479A1; color: #fff; }
.badge-mongodb { background: #47A248; color: #fff; }
.badge-docker { background: #2496ED; color: #fff; }
.badge-k8s { background: #326CE5; color: #fff; }
.badge-jenkins { background: #D24939; color: #fff; }
.badge-terraform { background: #7B42BC; color: #fff; }
.badge-aws { background: #FF9900; color: #000; }
.badge-nginx { background: #009639; color: #fff; }
.badge-git { background: #F05032; color: #fff; }
.badge-github { background: #181717; color: #fff; }

/* Deployment Cards */
.deployment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.deployment-card {
    background: var(--dark-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    overflow: hidden;
    word-wrap: break-word;
}

.deployment-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-2xl);
}

.deployment-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.deployment-card p {
    color: var(--gray-300);
    margin-bottom: var(--spacing-md);
}

.deployment-card ul {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.deployment-card li {
    padding: var(--spacing-sm) 0;
    color: var(--gray-300);
    position: relative;
    padding-left: var(--spacing-lg);
}

.deployment-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

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

/* API Endpoints */
.api-section {
    margin: var(--spacing-2xl) 0;
}

.api-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.api-endpoints {
    background: var(--dark-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    overflow-x: auto;
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    flex-wrap: wrap;
    min-width: fit-content;
}

.api-endpoint:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.method {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
}

.method-get { background: #10b981; color: #fff; }
.method-post { background: #3b82f6; color: #fff; }
.method-put { background: #f59e0b; color: #fff; }
.method-delete { background: #ef4444; color: #fff; }

.api-endpoint code {
    font-family: var(--font-mono);
    color: var(--white);
    font-size: 0.875rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.api-endpoint .description {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-left: auto;
    word-break: break-word;
}

/* Setup Tabs */
.setup-tabs {
    margin-top: var(--spacing-2xl);
}

.tab-buttons {
    display: flex;
    gap: var(--spacing-sm);
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.tab-button {
    padding: var(--spacing-md) var(--spacing-xl);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-base);
    color: var(--gray-600);
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

.setup-section {
    margin: var(--spacing-xl) 0;
}

.setup-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.setup-section ul {
    list-style: none;
    padding-left: var(--spacing-lg);
}

.setup-section li {
    padding: var(--spacing-sm) 0;
    position: relative;
}

.setup-section li::before {
    content: '▹';
    position: absolute;
    left: -20px;
    color: var(--primary-color);
    font-weight: bold;
}

.setup-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.setup-section a:hover {
    color: var(--primary-dark);
}

/* Code Blocks */
.code-block-wrapper {
    position: relative;
    margin: var(--spacing-md) 0;
    max-width: 100%;
    overflow: hidden;
}

.code-block {
    background: var(--gray-900);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: var(--shadow-lg);
    max-width: 100%;
}

.copy-button {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 3px !important;
    color: #e5e7eb !important;
    cursor: pointer !important;
    padding: 4px !important;
    transition: all 0.3s ease !important;
    opacity: 0.7 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    opacity: 1 !important;
    transform: scale(1.05);
}

.code-block code,
.code-block pre {
    font-family: var(--font-mono);
    color: #e5e7eb;
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
}

.code-block pre {
    margin: 0;
    max-width: 100%;
}

/* Screenshots */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.screenshot-item {
    text-align: center;
    overflow: hidden;
    max-width: 100%;
}

.screenshot-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    transition: all var(--transition-base);
    display: block;
    object-fit: contain;
}

.screenshot-item img:hover {
    transform: scale(1.02);
}

.screenshot-item p {
    margin-top: var(--spacing-md);
    font-weight: 600;
    color: var(--gray-300);
}

/* Pipeline Stages */
.pipeline-diagram {
    margin: var(--spacing-2xl) 0;
    overflow-x: auto;
}

.deployment-diagram-large {
    margin: var(--spacing-3xl) 0;
    padding: var(--spacing-2xl) 0;
}

.diagram-title-centered {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-2xl);
    color: var(--white);
    text-align: center;
    margin-top: var(--spacing-3xl);
}

.mermaid-large {
    padding: var(--spacing-2xl);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mermaid-large svg {
    max-width: 100%;
    height: auto;
    min-height: 450px;
}

.pipeline-stages {
    margin-top: var(--spacing-2xl);
}

.pipeline-stages h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: var(--spacing-lg);
}

.stage-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    transition: all var(--transition-base);
    border: 2px solid var(--gray-200);
}

.stage-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.stage-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.stage-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.stage-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Structure Cards */
.structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.structure-card {
    background: var(--dark-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    overflow-x: auto;
    max-width: 100%;
}

.structure-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
}

/* Contributing */
.contributing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.step {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.step:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-2xl);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.step p {
    color: var(--gray-600);
}

.step a {
    color: var(--primary-color);
}

.step a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.step code {
    background: var(--gray-100);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--primary-color);
}

.code-standards {
    margin-top: var(--spacing-2xl);
}

.code-standards h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--spacing-xl);
}

.standard-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    overflow: hidden;
    max-width: 100%;
}

.standard-card .code-block {
    overflow-x: auto;
}

.standard-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.standard-card p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    padding: var(--spacing-sm) 0;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--spacing-xl);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-400);
    margin: var(--spacing-sm) 0;
}

.footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-bottom a:hover {
    text-decoration: underline;
    transform: translateX(2px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header .container {
        flex-wrap: nowrap;
    }
    
    .hamburger {
        display: flex;
        order: 2;
    }
    
    .header-content {
        order: 1;
        flex: 1;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--gradient-hero);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        gap: 0;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav.active .nav-link {
        animation: slideInLeft 0.3s ease-out forwards;
        opacity: 0;
    }
    
    .nav.active .nav-link:nth-child(1) { animation-delay: 0.05s; }
    .nav.active .nav-link:nth-child(2) { animation-delay: 0.1s; }
    .nav.active .nav-link:nth-child(3) { animation-delay: 0.15s; }
    .nav.active .nav-link:nth-child(4) { animation-delay: 0.2s; }
    .nav.active .nav-link:nth-child(5) { animation-delay: 0.25s; }
    .nav.active .nav-link:nth-child(6) { animation-delay: 0.3s; }
    
    .nav-link {
        width: 100%;
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.95rem;
    }
    
    .nav-link:last-child {
        border-bottom: none;
        margin-top: var(--spacing-md);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link.active-section {
        background: rgba(255, 255, 255, 0.15);
        border-left: 4px solid #fbbf24;
    }
    
    .header-text {
        align-items: flex-start;
    }
    
    .main-title {
        font-size: 1.1rem;
    }
    
    .subtitle {
        font-size: 0.7rem;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .structure-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-container {
        height: 3px;
    }
    
    .progress-bar {
        height: 3px;
    }
    
    .header {
        padding: 0.5rem 0 calc(0.5rem + 3px);
    }
    
    .diagram-title-centered {
        font-size: 1.5rem;
        margin-top: var(--spacing-2xl);
    }
    
    .mermaid-large {
        padding: var(--spacing-md);
        min-height: 350px;
    }
    
    .mermaid-large svg {
        min-height: 300px;
    }
    
    .nav {
        width: 260px;
        padding: 70px 15px 15px;
    }
    
    .main-title {
        font-size: 1rem;
    }
    
    .subtitle {
        font-size: 0.65rem;
    }
    
    .logo {
        width: 38px;
        height: 38px;
    }
    
    .hamburger {
        width: 26px;
        height: 20px;
    }
    
    .hamburger-line {
        height: 2.5px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .content-grid,
    .deployment-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .api-endpoint {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .api-endpoint .description {
        margin-left: 0;
        margin-top: var(--spacing-xs);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 0.9rem;
    }
    
    .subtitle {
        font-size: 0.6rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .nav {
        width: 240px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .screenshot-item img:hover {
        transform: scale(1);
    }
    
    .card,
    .deployment-card,
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .code-block {
        padding: var(--spacing-md);
        font-size: 0.75rem;
    }
    
    .code-block code,
    .code-block pre {
        font-size: 0.7rem;
    }
    
    .structure-card {
        padding: var(--spacing-md);
    }
    
    .structure-card .code-block {
        padding: var(--spacing-sm);
    }
}

/* Print Styles */
@media print {
    .header,
    .nav,
    .hero-buttons,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* Accessibility */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
