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

:root {
    --primary-color: #8b5cf6; /* Violet */
    --primary-dark: #7c3aed;
    --secondary-color: #a78bfa; /* Light Violet */
    --accent-color: #818cf8; /* Indigo */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f3ff; /* Very light violet-tinted white */
    --bg-dark: #111827;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #f5f3ff 0%, #ffffff 100%);
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%238b5cf6' fill-opacity='0.04' font-family='monospace' font-size='8'%3E%3Ctext x='10' y='15'%3E01%3C/text%3E%3Ctext x='40' y='35'%3E10%3C/text%3E%3Ctext x='70' y='15'%3E11%3C/text%3E%3Ctext x='15' y='55'%3E00%3C/text%3E%3Ctext x='45' y='75'%3E01%3C/text%3E%3Ctext x='75' y='55'%3E10%3C/text%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

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

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.badge {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-dark);
    transition: all 0.3s;
}

.badge:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

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

/* Section Styles */
section {
    padding: 2rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

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

a.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.project-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-card:hover .project-title {
    color: var(--primary-color);
}

.project-card:hover .project-link {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.project-card:hover::before {
    transform: scaleY(1);
}

.project-card.featured {
    border: 2px solid var(--primary-color);
}

.project-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1;
    z-index: 0;
}

.project-content {
    position: relative;
    z-index: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.project-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tech {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.project-tech strong {
    color: var(--text-primary);
}

.project-features {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-icon::before {
    content: "✓";
}

.project-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.project-link.secondary {
    color: var(--text-secondary);
    font-weight: 500;
}

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

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 3rem;
}

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

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.skill-category h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.3s;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Books Section */
.books {
    margin-top: 4rem;
}

.books h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.books-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.books-list:last-child {
    margin-bottom: 0;
}

.book-item {
    display: block;
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.book-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
    text-decoration: none;
}

.book-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.book-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.book-author {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

.book-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s;
    }

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

    .hamburger {
        display: flex;
    }

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

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

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

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

    .container {
        padding: 0 1rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-number {
        font-size: 3rem;
        top: 1rem;
        right: 1rem;
    }
}

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

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-link {
        justify-content: center;
    }
}



/* ==========================================
   Project Detail Page Styles (Merged)
   ========================================== */

/* Project Detail Page Styles */

.project-detail {
    padding-top: 70px;
}

.project-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem 0 1.75rem;
    margin-bottom: 1.25rem;
}

.project-breadcrumb {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.project-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.project-breadcrumb a:hover {
    opacity: 0.7;
}

.project-detail-title {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.project-detail-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 0.75rem;
}

.project-header-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-header-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.825rem;
}

.project-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.project-main-content {
    min-width: 0;
}

.content-section {
    margin-bottom: 0.4rem;
    scroll-margin-top: 90px;
}

.content-section h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-top: 0.2rem;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.2rem;
}

.content-section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.65rem;
    color: var(--text-primary);
}

.content-section h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.content-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.content-section ul,
.content-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Workflow */
.workflow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    text-align: left;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.workflow-step h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.workflow-step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    flex-grow: 1;
}

.workflow-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tech-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.tech-item h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tech-item ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tech-item li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.tech-item li:last-child {
    border-bottom: none;
}

/* Feature Detail */
.feature-detail {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}

.feature-detail h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.result-card {
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.result-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.result-card h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.result-card ul {
    margin: 0;
    padding-left: 1.5rem;
}

.result-card li {
    margin-bottom: 0.5rem;
}

/* Performance Metrics */
.performance-metrics {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.metric-card {
    flex: 1;
    min-width: 200px;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.metric-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Pipeline */
.pipeline {
    margin: 2rem 0;
}

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

.pipeline-step {
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.pipeline-step:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

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

.pipeline-step h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.pipeline-step ul {
    margin-top: 1rem;
}

/* Score Timeline */
.score-timeline {
    margin: 2rem 0;
    position: relative;
    padding-left: 2rem;
}

.score-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    margin-top: 0;
    color: var(--text-primary);
}

.timeline-content p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Code Example */
.code-example {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-dark);
    border-radius: 0.5rem;
    overflow-x: auto;
}

.code-example h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
}

.code-example pre {
    margin: 0;
    color: #e5e7eb;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-example code {
    color: #e5e7eb;
}

/* Algorithm Explanation */
.algorithm-explanation {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.formula {
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.25rem;
    margin: 1rem 0;
    color: var(--text-primary);
}

/* Methodology */
.methodology {
    margin: 2rem 0;
}

.methodology-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.methodology-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}

.methodology-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.methodology-steps li strong {
    color: var(--primary-color);
}

/* Sidebar */
.project-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: var(--text-primary);
}

.info-item span {
    color: var(--text-secondary);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-link {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 0.25rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    text-align: center;
}

.sidebar-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .project-content-wrapper {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        position: static;
    }

    .workflow {
        flex-direction: column;
    }

    .workflow-arrow {
        transform: rotate(90deg);
    }

    .project-detail-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .project-header {
        padding: 2rem 0;
    }

    .project-detail-title {
        font-size: 1.75rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .pipeline-steps {
        grid-template-columns: 1fr;
    }

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

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

/* --- 各プロジェクト固有のヘッダー背景 --- */
.pokemon-header {
    background:
        linear-gradient(135deg,
            rgba(15, 10, 40, 0.82) 0%,
            rgba(22, 33, 62, 0.75) 40%,
            rgba(15, 52, 96, 0.70) 70%,
            rgba(83, 52, 131, 0.78) 100%),
        url('img/pokemon-tcg-hero.png') center / cover no-repeat;
    position: relative;
}

.book-review-header {
    background:
        linear-gradient(135deg,
            rgba(15, 10, 40, 0.82) 0%,
            rgba(22, 33, 62, 0.75) 40%,
            rgba(15, 52, 96, 0.70) 70%,
            rgba(83, 52, 131, 0.78) 100%),
        url('img/hero-book-review.png') center / cover no-repeat;
    position: relative;
}

.gym-header {
    background:
        linear-gradient(135deg,
            rgba(15, 10, 40, 0.82) 0%,
            rgba(22, 33, 62, 0.75) 40%,
            rgba(15, 52, 96, 0.70) 70%,
            rgba(83, 52, 131, 0.78) 100%),
        url('img/hero-gym.png') center / cover no-repeat;
    position: relative;
}

.kaggle-header {
    background:
        linear-gradient(135deg,
            rgba(15, 10, 40, 0.82) 0%,
            rgba(22, 33, 62, 0.75) 40%,
            rgba(15, 52, 96, 0.70) 70%,
            rgba(83, 52, 131, 0.78) 100%),
        url('img/hero-kaggle.png') center / cover no-repeat;
    position: relative;
}

.pgvector-header {
    background:
        linear-gradient(135deg,
            rgba(15, 10, 40, 0.82) 0%,
            rgba(22, 33, 62, 0.75) 40%,
            rgba(15, 52, 96, 0.70) 70%,
            rgba(83, 52, 131, 0.78) 100%),
        url('img/hero-pgvector.png') center / cover no-repeat;
    position: relative;
}

.sailing-header {
    background:
        linear-gradient(135deg,
            rgba(15, 10, 40, 0.82) 0%,
            rgba(22, 33, 62, 0.75) 40%,
            rgba(15, 52, 96, 0.70) 70%,
            rgba(83, 52, 131, 0.78) 100%),
        url('img/hero-sailing.png') center / cover no-repeat;
    position: relative;
}

.youtube-consulting-header {
    background:
        linear-gradient(135deg,
            rgba(15, 10, 40, 0.82) 0%,
            rgba(22, 33, 62, 0.75) 40%,
            rgba(15, 52, 96, 0.70) 70%,
            rgba(83, 52, 131, 0.78) 100%),
        url('img/hero-youtube-consulting.png') center / cover no-repeat;
    position: relative;
}

.youtube-header {
    background:
        linear-gradient(135deg,
            rgba(15, 10, 40, 0.82) 0%,
            rgba(22, 33, 62, 0.75) 40%,
            rgba(15, 52, 96, 0.70) 70%,
            rgba(83, 52, 131, 0.78) 100%),
        url('img/hero-youtube.png') center / cover no-repeat;
    position: relative;
}

/* --- 共通の拡張コンポーネントスタイル --- */

/* フラットタグ一覧 */
.tech-tag-section {
    margin: 0.35rem 0 0.4rem;
}
.tech-category-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.tech-category-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
    margin-top: 2px;
}
.tech-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tech-tag {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: var(--bg-secondary);
    white-space: nowrap;
    transition: all 0.2s;
}
.tech-tag:hover {
    border-color: #a78bfa;
    color: #a78bfa;
}

/* 成果・学び（統一カードスタイル） */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0.35rem 0 0.4rem;
}

.result-card {
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #a78bfa, #60a5fa);
    opacity: 0.8;
}

.result-card:hover {
    border-color: #a78bfa;
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.12);
    transform: translateY(-2px);
}

.result-card h4 {
    margin-top: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.result-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.result-card li {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.result-card li:last-child {
    margin-bottom: 0;
}

/* 主な機能・工夫ポイント（1列縦積みカードレイアウト） */
.feature-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0.35rem 0 0.4rem;
}

.workflow {
    margin: 0.35rem 0 0.4rem;
}

/* 横スクロール1行カード (フォールバック) */
.feature-scroll-wrapper {
    position: relative;
    margin: 1.5rem 0;
}
.feature-scroll-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #a78bfa transparent;
}
.feature-scroll-track::-webkit-scrollbar {
    height: 4px;
}
.feature-scroll-track::-webkit-scrollbar-track {
    background: transparent;
}
.feature-scroll-track::-webkit-scrollbar-thumb {
    background: #a78bfa;
    border-radius: 2px;
}
.feature-card {
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    border-color: #a78bfa;
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.15);
    transform: translateY(-4px);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card-number {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.65rem;
    line-height: 1.35;
}
.feature-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.feature-card-desc {
    font-size: 0.825rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}
.feature-card-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-secondary);
    font-size: 0.825rem;
}
.feature-card-list li {
    margin-bottom: 0.35rem;
    line-height: 1.55;
}
.feature-card-list li:last-child {
    margin-bottom: 0;
}

/* 評価ゲート（フロー＆統一カード形式） */
.eval-gate-flow {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.eval-gate-step-card {
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.eval-gate-step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #a78bfa, #60a5fa);
}

.eval-gate-step-card:hover {
    border-color: #a78bfa;
    box-shadow: 0 6px 18px rgba(167, 139, 250, 0.12);
    transform: translateY(-2px);
}

.eval-gate-step-body h4 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.eval-gate-step-body p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.eval-flow-arrow-down {
    text-align: center;
    font-size: 1rem;
    color: #a78bfa;
    margin: -0.4rem 0;
}

/* 実績メトリクス */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.metric-box {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}
.metric-box .metric-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* バージョン整理テーブル */
.table-container {
    overflow-x: auto;
    margin: 0.35rem 0 0.4rem;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
}
.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}
.styled-table th {
    background: #f8fafc;
    color: var(--text-primary);
    font-weight: 700;
    padding: 0.85rem 1rem;
    border-bottom: 1.5px solid var(--border-color);
    white-space: nowrap;
}
.styled-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.55;
}
.styled-table tr:last-child td {
    border-bottom: none;
}
.styled-table tr:hover {
    background: rgba(167, 139, 250, 0.04);
}

/* 右サイドバー 目次 (TOC) スタイル */
.project-sidebar {
    position: sticky;
    top: 85px;
    height: fit-content;
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-list li {
    margin-bottom: 0.35rem;
}
.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.toc-list a:hover {
    color: var(--primary-color);
    background: rgba(167, 139, 250, 0.08);
    padding-left: 0.75rem;
}
.toc-list .toc-sub a {
    padding-left: 1.2rem;
    font-size: 0.8rem;
    opacity: 0.85;
}
.toc-list .toc-sub a:hover {
    padding-left: 1.45rem;
    opacity: 1;
}

/* シンプル箇条書きリスト (学びセクション等用) */
.styled-list {
    margin: 0.4rem 0 0.5rem;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}
.styled-list li {
    font-size: 0.925rem;
    line-height: 1.7;
    margin-bottom: 0.35rem;
}
.styled-list li:last-child {
    margin-bottom: 0;
}


