/* static/css/style.css */
/* CSS Variables for theming - YOUR CUSTOM COLORS */
:root {
    /* Your custom color scheme */
    --text: #faf0f0;
    --background: #000000;
    --primary: #b04043;
    --secondary: #4a4a4a;
    --accent: #8b7f32;
    /* Derived/Adjusted colors for various states */
    --primary-dark: #8a3033;
    --primary-light: #c86063;
    --primary-bg: #2a1011;
    /* Keep these for compatibility with existing CSS */
    --text-dark: var(--text);
    --text-light: #c0b0b0;
    --bg-light: var(--background);
    --bg-white: #0a0a0a;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --border-color: #2a2a2a;
}

/* Theme variants */
.theme-purple {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #8b5cf6;
    --primary-bg: #2d1a4d;
    --secondary: #4a4a4a;
}

.theme-pink {
    --primary: #ec4899;
    --primary-dark: #db2777;
    --primary-light: #f472b6;
    --primary-bg: #3d1a2e;
    --secondary: #4a4a4a;
}

.theme-green {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --primary-bg: #0a2a1d;
    --secondary: #4a4a4a;
}

.theme-orange {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --primary-bg: #3d2a0a;
    --secondary: #4a4a4a;
}

/* FOOTER FIX - Makes footer stick to bottom */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background);
    color: var(--text);
}

main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
    margin-top: 0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

    .nav-links a {
        color: var(--text);
        text-decoration: none;
        transition: color 0.3s;
    }

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

    .btn-primary:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
    }

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

    .btn-secondary:hover {
        background-color: #5a5a5a;
        transform: translateY(-2px);
    }

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--background) 0%, var(--bg-white) 100%);
}

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

        .hero h1 span {
            color: var(--primary);
        }

    .hero p {
        font-size: 1.25rem;
        color: var(--text-light);
        margin-bottom: 30px;
    }

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Projects Grid */
.projects-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text);
}

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

.project-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

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

.project-image {
    width: 100%;
    height: 200px;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 3rem;
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background-color: var(--secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text);
}

.project-links {
    display: flex;
    gap: 15px;
}

    .project-links a {
        color: var(--primary);
        text-decoration: none;
    }

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

/* Skills Section */
.skills-section {
    background-color: var(--bg-white);
    padding: 60px 0;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-category {
    background-color: var(--background);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

    .skills-category:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

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

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    background-color: var(--secondary);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

    .skill-item:hover {
        background-color: var(--primary);
        color: var(--text);
        border-color: var(--primary);
        transform: scale(1.05);
    }

/* About Page */
.about-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.about-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

    .about-card h2 {
        color: var(--primary);
        margin-bottom: 20px;
    }

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

.experience-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

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

    .experience-item h3 {
        color: var(--primary);
        margin-bottom: 5px;
    }

/* Contact Page */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: var(--text);
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 10px;
        background-color: var(--background);
        border: 1px solid var(--border-color);
        border-radius: 6px;
        font-size: 1rem;
        font-family: inherit;
        color: var(--text);
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
        }

.success-message {
    background-color: var(--primary-dark);
    color: var(--text);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--primary);
}

/* Footer */
.footer {
    background-color: var(--bg-white);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle-btn {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: var(--text);
}

    .theme-toggle-btn:hover {
        transform: scale(1.1);
    }

.theme-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    min-width: 120px;
    display: none;
    border: 1px solid var(--border-color);
}

    .theme-menu.show {
        display: block;
    }

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s;
    color: var(--text);
}

    .theme-option:hover {
        background-color: var(--secondary);
    }

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .skills-categories {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-form {
        margin: 20px;
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.skills-category {
    animation: fadeIn 0.6s ease-out;
}

hr {
    border-color: var(--border-color);
}
