/* Root Variables */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --card-bg: #000000;
    --border-color: #333333;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary) !important;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    background: #000000 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff !important;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
    letter-spacing: 2px;
    margin-left: 0.5rem;
    position: relative;
}

.brand-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-text::after {
    transform: scaleX(1);
}

.logo {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.3));
    border-radius: 8px;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.6));
}

/* Remove dark mode logo adjustment since we're using white logo */
.navbar-dark .logo {
    filter: none;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    padding-top: 120px;
    padding-bottom: 60px;
    background: #000000 !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
}

.hero-section h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5rem;
    line-height: 1.2;
    padding-top: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
}

/* Search Box */
.search-box {
    max-width: 500px;
    margin: 2rem 0;
}

.search-box input {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Cards */
.language-card, .technology-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.language-card:hover, .technology-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.language-card::before, .technology-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-color);
}

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

.card-content i {
    color: var(--card-color);
    margin-bottom: 1rem;
}

.card-content h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Features List */
.features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
}

/* Badge Container */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
}

/* Resource Links */
.resource-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-links a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-links a:hover {
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 15px;
    width: 100%;
    max-width: 800px;
    max-height: calc(100vh - 2rem);
    margin: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    position: relative;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 2;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h2 i {
    color: var(--primary-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    position: sticky;
    bottom: 0;
    background: var(--card-bg);
    z-index: 2;
    border-radius: 0 0 15px 15px;
}

.section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #000000;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.section:last-child {
    margin-bottom: 0;
}

.section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section h3 i {
    font-size: 1.1rem;
}

/* Code Blocks */
pre {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Code Blocks in Modal */
.modal pre {
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
}

/* Scrollbar Styles */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Footer */
footer {
    background: #000000 !important;
    color: white;
    padding: 3rem 0;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        padding-top: 0.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        max-height: calc(100vh - 1rem);
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
    }

    .section {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .section h3 {
        font-size: 1.1rem;
    }

    .badge {
        font-size: 0.8rem;
    }

    footer {
        text-align: center;
    }

    .logo {
        height: 32px;
    }
}

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

/* Ensure modal content is scrollable on small screens */
@media (max-height: 600px) {
    .modal-content {
        max-height: 100vh;
    }

    .modal-header {
        position: relative;
    }

    .modal-footer {
        position: relative;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 2rem;
    background: #000000;
    border-radius: 10px;
    margin: 2rem 0;
}

.no-results h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-secondary);
    margin: 0;
}

/* Adjust section padding for all sections */
section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* Notes Section Styles */
.notes-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-section {
    background: #000000;
    border-radius: 15px;
    padding: 1.5rem;
}

.category-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.note-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.note-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.note-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.topic-badge {
    background: #000000;
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.topic-badge:hover {
    background: var(--primary-color);
    color: white;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.update-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.download-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
    z-index: 1100;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast i {
    font-size: 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .notes-grid {
        grid-template-columns: 1fr;
    }

    .note-card {
        padding: 1rem;
    }

    .note-header h4 {
        font-size: 1.1rem;
    }

    .topic-badge {
        font-size: 0.75rem;
    }
}

/* Projects Section Styles */
.projects-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

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

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.project-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.technologies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-badge {
    background: #000000;
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--primary-color);
    color: white;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.difficulty-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: var(--primary-color);
    color: white;
}

.start-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

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

/* Project Details Styles */
.project-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.feature-list, .outcome-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li, .outcome-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.feature-list li i, .outcome-list li i {
    color: var(--success-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1rem;
    }

    .project-header h4 {
        font-size: 1.1rem;
    }

    .tech-badge {
        font-size: 0.75rem;
    }
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chatbot-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.chatbot-button i {
    font-size: 1.2rem;
}

.chatbot-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--card-bg) !important;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.active {
    display: flex;
}

.chatbot-header {
    background: #007bff;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.message.user {
    background: #007bff;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message.bot {
    background: #000000 !important;
    color: var(--text-primary) !important;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chatbot-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chatbot-input button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.chatbot-input button:hover {
    background: #0056b3;
}

/* Scrollbar Styles for Chatbot */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chatbot-window {
        width: calc(100% - 40px);
        height: calc(100% - 100px);
        bottom: 70px;
    }
    
    .chatbot-button-text {
        display: none;
    }
    
    .chatbot-button {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
    }
}

#technologies,
#technologies.bg-light {
    background: #000000 !important;
}

#technologies .card {
    background: #000000 !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

/* Learning Resources Cards - Deep Black */
#resources .card {
    background: #000000 !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

#resources .card i {
    color: var(--primary-color) !important;
}

#resources .btn-primary {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
}

#resources .btn-primary:hover {
    background: var(--primary-hover);
    border: 1px solid var(--primary-hover);
    transform: translateY(-2px);
} 