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

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #10b981;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --border-color: #e5e7eb;
    --code-bg: #1f2937;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.header-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s;
}

.header-nav a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.intro-section {
    margin-bottom: 3rem;
}

.intro-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.intro-section > p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* Learning Paths */
.learning-paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.path-card {
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid;
    transition: transform 0.3s, box-shadow 0.3s;
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.path-card.beginner {
    background: linear-gradient(135deg, #10b98115 0%, #3b82f615 100%);
    border-left-color: var(--accent-color);
}

.path-card.intermediate {
    background: linear-gradient(135deg, #3b82f615 0%, #667eea15 100%);
    border-left-color: var(--primary-color);
}

.path-card.advanced {
    background: linear-gradient(135deg, #7c3aed15 0%, #ec489915 100%);
    border-left-color: var(--secondary-color);
}

.path-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.path-card.beginner h3 {
    color: var(--accent-color);
}

.path-card.intermediate h3 {
    color: var(--primary-color);
}

.path-card.advanced h3 {
    color: var(--secondary-color);
}

.path-card p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.path-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.path-card li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.path-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Curriculum Section */
.curriculum {
    margin: 3rem 0;
}

.curriculum h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
}

.module {
    margin: 3rem 0;
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
}

.module h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.topic-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

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

.topic-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.topic-card p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* Projects Section */
.projects-section {
    margin: 3rem 0;
}

.projects-section h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-intro {
    text-align: center;
    font-size: 1.15rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-card.beginner {
    border-top: 4px solid var(--accent-color);
}

.project-card.intermediate {
    border-top: 4px solid var(--primary-color);
}

.project-card.advanced {
    border-top: 4px solid var(--secondary-color);
}

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

.project-icon {
    font-size: 3rem;
}

.difficulty {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-card.beginner .difficulty {
    background: #d1fae5;
    color: #065f46;
}

.project-card.intermediate .difficulty {
    background: #dbeafe;
    color: #1e40af;
}

.project-card.advanced .difficulty {
    background: #ede9fe;
    color: #5b21b6;
}

.project-card h3 {
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.project-card > p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-stack span {
    background: var(--light-bg);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Tools Section */
.tools-section {
    margin: 3rem 0;
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
}

.tools-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.tool-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.tool-card h3 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.tool-card ul {
    list-style: none;
    padding: 0;
}

.tool-card li {
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 1rem;
}

.tool-card li::before {
    content: "▸ ";
    color: var(--primary-color);
    font-weight: bold;
}

/* Prerequisites Section */
.prerequisites {
    margin: 3rem 0;
}

.prerequisites h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.prereq-item {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.prereq-item:hover {
    transform: translateY(-5px);
}

.prereq-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.prereq-item h3 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.prereq-item p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #2563eb10 0%, #7c3aed10 100%);
    border-radius: 15px;
    margin: 3rem 0;
}

.cta-section h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section > p {
    font-size: 1.15rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
}

.cta-button.primary {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.cta-button.secondary {
    background: var(--accent-color);
    color: white;
}

.cta-button.secondary:hover {
    background: #059669;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Content Pages Styles */
.intro {
    background: linear-gradient(135deg, #2563eb15 0%, #7c3aed15 100%);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.intro h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

section {
    margin: 2.5rem 0;
}

section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

section h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

section p {
    margin: 1rem 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

section ul, section ol {
    margin-left: 2rem;
    margin-top: 1rem;
}

section li {
    margin: 0.5rem 0;
    line-height: 1.7;
}

/* Code Blocks */
.code-block {
    background: var(--code-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-block code {
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
    display: block;
    white-space: pre-wrap;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #3b82f615 0%, #10b98115 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin: 1.5rem 0;
}

.info-box h3 {
    color: var(--accent-color);
    margin-top: 0;
}

/* Example List */
.example-list {
    background: var(--light-bg);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.example-list li {
    margin: 1rem 0;
    font-size: 1.05rem;
}

.example-list strong {
    color: var(--primary-color);
}

/* Formula */
.formula {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
    border: 2px solid var(--border-color);
}

.formula p {
    margin: 0.5rem 0;
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
}

/* Note */
.note {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Page Navigation */
.page-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.page-nav a {
    color: white;
    background: var(--primary-color);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.page-nav a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .learning-paths {
        grid-template-columns: 1fr;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .prereq-grid {
        grid-template-columns: 1fr;
    }
    
    .page-nav {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
    }
    
    header {
        background: none;
        color: black;
    }
    
    .page-nav {
        display: none;
    }
    
    footer {
        background: none;
        color: black;
    }
}
