/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --background-dark: #0f172a;
    --background-light: #f8fafc;
    --text-dark: #e2e8f0;
    --text-light: #1e293b;
    --card-dark: #1e293b;
    --card-light: #ffffff;
    --border-color: #334155;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--background-light);
}

body.dark-theme {
    color: var(--text-dark);
    background-color: var(--background-dark);
}

/* Navigation */
.navbar {
    background-color: var(--background-dark);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.logo h1 {
    color: var(--text-dark);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

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

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

/* Theme Toggle in Header */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
                url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dark);
    padding: 0 1rem;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

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

/* Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
}

.feature i {
    color: var(--primary-color);
}

.feature span {
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Principles Section */
.principles {
    padding: 5rem 2rem;
    background-color: var(--background-light);
}

body.dark-theme .principles {
    background-color: var(--background-dark);
}

.principles h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-light);
}

body.dark-theme .principles h2 {
    color: var(--text-dark);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.principle-card {
    background-color: var(--card-light);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

body.dark-theme .principle-card {
    background-color: var(--card-dark);
    border-color: var(--border-color);
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.principle-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

body.dark-theme .principle-card h3 {
    color: var(--text-dark);
}

.principle-definition {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    opacity: 0.8;
    line-height: 1.6;
}

body.dark-theme .principle-definition {
    color: var(--text-dark);
}

.principle-details {
    margin-top: 1.5rem;
}

.principle-details h4 {
    font-size: 0.95rem;
    margin: 1rem 0 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

body.dark-theme .principle-details h4 {
    color: var(--text-dark);
}

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

.principle-details li {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    opacity: 0.8;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

body.dark-theme .principle-details li {
    color: var(--text-dark);
}

.principle-details li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Remove the floating theme toggle */
.theme-toggle.floating {
    display: none;
}

/* Examples Section */
.examples {
    padding: 5rem 2rem;
    background-color: var(--background-dark);
}

.examples h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-dark);
}

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

.example-card {
    background-color: var(--card-dark);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.example-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.example-card pre {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.example-card code {
    color: #fff;
    font-family: 'Consolas', monospace;
}

.example-description {
    margin-bottom: 1rem;
    color: var(--text-dark);
    opacity: 0.8;
}

/* Best Practices Section */
.best-practices {
    padding: 5rem 2rem;
    background-color: var(--background-light);
}

body.dark-theme .best-practices {
    background-color: var(--background-dark);
}

.best-practices h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-light);
}

body.dark-theme .best-practices h2 {
    color: var(--text-dark);
}

.best-practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.practice-card {
    background-color: var(--card-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

body.dark-theme .practice-card {
    background-color: var(--card-dark);
}

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

body.dark-theme .practice-card h3 {
    color: var(--text-dark);
}

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

.practice-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #666;
}

.practice-card li:before {
    content: "✓";
    color: #3498db;
    position: absolute;
    left: 0;
}

/* Resources Section */
.resources {
    padding: 5rem 2rem;
    background-color: var(--background-light);
}

body.dark-theme .resources {
    background-color: var(--background-dark);
}

.resources h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-light);
}

body.dark-theme .resources h2 {
    color: var(--text-dark);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.resource-card {
    background-color: var(--card-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

body.dark-theme .resource-card {
    background-color: var(--card-dark);
    border-color: var(--border-color);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.resource-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.resource-card h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary-color);
}

body.dark-theme .resource-card h3 {
    color: var(--text-dark);
}

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

.resource-card li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.resource-card li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.resource-card strong {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

body.dark-theme .resource-card strong {
    color: var(--text-dark);
}

.resource-card p {
    color: var(--text-light);
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
}

body.dark-theme .resource-card p {
    color: var(--text-dark);
    opacity: 0.9;
}

/* Responsive adjustments for resources */
@media screen and (max-width: 768px) {
    .resources {
        padding: 3rem 1.5rem;
    }

    .resources-grid {
        gap: 1.5rem;
    }

    .resource-card {
        padding: 1.5rem;
    }

    .resource-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .resource-card li {
        margin-bottom: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .resource-card strong {
        font-size: 1rem;
    }

    .resource-card p {
        font-size: 0.9rem;
    }
}

/* Footer */
footer {
    background-color: var(--background-dark);
    color: var(--text-dark);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section p {
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 1.2rem;
}

.footer-section a:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.footer-section a:hover:before {
    transform: translateX(-3px);
}

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

.footer-bottom p {
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.author-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.author-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.author-name {
    color: var(--primary-color);
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--text-dark);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-link:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-3px);
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
    footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-section h3 {
        margin-bottom: 1rem;
    }

    .footer-section ul li {
        margin-bottom: 0.8rem;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .author-info {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        font-size: 1.3rem;
    }
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .principles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (max-width: 900px) {
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .feature {
        width: 100%;
        justify-content: center;
    }

    .principle-card,
    .practice-card,
    .resource-card {
        padding: 1.5rem;
    }

    .principle-details li,
    .practice-card li {
        font-size: 0.9rem;
    }

    .principle-card {
        min-width: 100%;
    }
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.nav-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 70px;
    background-color: #2c3e50;
    width: 100%;
    padding: 2rem;
    align-items: center;
    transform: translateX(0%);
    transition: transform 0.5s ease-in;
}

.nav-active li {
    opacity: 1;
    margin: 1rem 0;
}

/* Animations */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Card Animations */
.principle-card, .resource-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.principle-card.animate, .resource-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Code Highlighting */
pre[class*="language-"] {
    margin: 0;
    padding: 1rem;
    border-radius: 5px;
    background-color: #1a252f;
}

code[class*="language-"] {
    font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
} 