@font-face {
    font-family: 'Comfortaa';
    src: url('../assets/fonts/comfortaa-regular.woff2') format('woff2'),
        url('../assets/fonts/comfortaa-regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Comfortaa';
    src: url('../assets/fonts/comfortaa-bold.woff2') format('woff2'),
        url('../assets/fonts/comfortaa-bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

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

body {
    color: white;
    font-family: 'Comfortaa', sans-serif;
    background: #0A0D18;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-theme {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf0 50%, #d4d8e8 100%);
    color: #1a1a2e;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, #0A0D18 0%, #050713 100%);
}

body.light-theme .stars {
    background: radial-gradient(ellipse at center, #f5f7fa 0%, #e8eaf0 100%);
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: rgba(10, 13, 24, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #5638E5;
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-theme .navbar {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #7c5cef;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 45px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 20px;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
}

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

body.light-theme .nav-links a {
    color: #1a1a2e;
}

.nav-links a:hover {
    color: #543fce;
}

body.light-theme .nav-links a:hover {
    color: #5638E5;
}

.nav-links a.active {
    color: #543fce;
    font-weight: bold;
}

body.light-theme .nav-links a.active {
    color: #5638E5;
}

.signup-hamburger {
    display: flex;
    align-items: center;
    gap: 30px;
}

.signup-btn {
    background-color: #0E0634;
    border: 2px solid #5638E5;
    border-radius: 7px;
    padding: 10px 20px;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

body.light-theme .signup-btn {
    background-color: #5638E5;
    border-color: #4325c2;
    color: white;
}

.signup-btn:hover {
    background-color: #5638E5;
}

body.light-theme .signup-btn:hover {
    background-color: #4325c2;
}

.hamburger {
    width: 25px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger div {
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

body.light-theme .hamburger div {
    background-color: #1a1a2e;
}

.container {
    padding: 60px 50px;
}

.page-header {
    margin-bottom: 40px;
}

.title {
    font-size: 40px;
    color: white;
    margin-bottom: 15px;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: color 0.3s ease;
}

body.light-theme .title {
    color: #1a1a2e;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    color: #ccc;
    max-width: 800px;
    transition: color 0.3s ease;
}

body.light-theme .subtitle {
    color: #6b6b7f;
}

.projects-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(86, 56, 229, 0.2);
    border: 1px solid #5638E5;
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 150px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-theme .stat-item {
    background: rgba(124, 92, 239, 0.1);
    border-color: #7c5cef;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #6f54f8;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #b8b8ff;
    transition: color 0.3s ease;
}

body.light-theme .stat-label {
    color: #6b6b7f;
}

.projects-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    position: relative;
    min-width: 206.25px;
    flex: 1;
    max-width: 330px;
}

.search-input {
    background: rgba(14, 15, 29, 0.8);
    border: 1px solid #5638E5;
    border-radius: 8px;
    padding: 12px 15px 12px 40px;
    color: white;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

body.light-theme .search-input {
    background: rgba(255, 255, 255, 0.8);
    color: #1a1a2e;
    border-color: #7c5cef;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(86, 56, 229, 0.3);
}

body.light-theme .search-input:focus {
    box-shadow: 0 0 0 2px rgba(124, 92, 239, 0.3);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6f54f8;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(14, 15, 29, 0.8);
    border: 1px solid #5638E5;
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-family: 'PT Sans', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.light-theme .filter-btn {
    background: rgba(255, 255, 255, 0.8);
    color: #1a1a2e;
    border-color: #7c5cef;
}

.filter-btn:hover,
.filter-btn.active {
    background: #5638E5;
}

#reset-filters {
    margin-top: 20px;
}

.main-content {
    flex: 1;
    position: relative;
    z-index: 5;
}

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

.project-card {
    background: linear-gradient(145deg, #0E0F1D, #151729);
    border-radius: 16px;
    padding: 25px;
    border: 3px solid rgba(86, 56, 229, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

body.light-theme .project-card {
    background: linear-gradient(145deg, #ffffff, #f0f2f8);
    border-color: rgba(124, 92, 239, 0.3);
}

.project-card:hover {
    box-shadow: 0 10px 30px rgba(86, 56, 229, 0.3);
    transform: translateY(-5px);
    border-color: #5638E5;
}

body.light-theme .project-card:hover {
    box-shadow: 0 10px 30px rgba(124, 92, 239, 0.3);
    border-color: #7c5cef;
}

.project-status-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    z-index: 2;
}

.project-status-tag.stable {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.project-status-tag.beta {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.project-status-tag.alpha {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.project-logo {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.project-logo img {
    max-width: 100px;
    max-height: 100px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-logo img {
    transform: scale(1.1);
}

.project-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #6f54f8;
}

.project-desc {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #ffffff;
    transition: color 0.3s ease;
}

body.light-theme .project-desc {
    color: #1a1a2e;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
    color: #ccc;
    transition: color 0.3s ease;
}

body.light-theme .project-meta {
    color: #6b6b7f;
}

.project-meta .fas.fa-star {
    color: #ffd700;
    position: relative;
    top: -1px;
}

.project-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.docs-btn,
.download-btn {
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'PT Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    flex: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.docs-btn {
    background-color: rgba(14, 6, 52, 0.7);
    color: white;
    border: 1px solid #5638E5;
    transition: all 0.3s ease;
}

body.light-theme .docs-btn {
    background-color: rgba(124, 92, 239, 0.1);
    color: #1a1a2e;
    border-color: #7c5cef;
}

.docs-btn:hover {
    background-color: #5638E5;
    color: white;
}

.download-btn {
    background-color: #5638E5;
    color: white;
    border: none;
}

.download-btn:hover {
    background-color: #4325c2;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 18px;
}

.no-results i {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    color: #5638E5;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(145deg, #0E0F1D, #151729);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #5638E5;
    border-radius: 16px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(86, 56, 229, 0.4);
    animation: slideIn 0.4s;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-theme .modal-content {
    background: linear-gradient(145deg, #ffffff, #f0f2f8);
    border-color: #7c5cef;
    box-shadow: 0 10px 40px rgba(124, 92, 239, 0.4);
}

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

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 101;
}

.close-btn:hover {
    color: #5638E5;
}

body.light-theme .close-btn:hover {
    color: #7c5cef;
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2C2F45;
    transition: border-color 0.3s ease;
}

body.light-theme .modal-header {
    border-bottom-color: #d4d8e8;
}

.modal-logo {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    background: rgba(86, 56, 229, 0.1);
    border-radius: 12px;
    padding: 10px;
    transition: background-color 0.3s ease;
}

body.light-theme .modal-logo {
    background: rgba(124, 92, 239, 0.1);
}

.modal-logo img {
    max-width: 100%;
    max-height: 100%;
}

.modal-title-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#modal-title {
    font-size: 28px;
    color: #6f54f8;
    margin: 0;
}

.modal-status-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: center;
    width: fit-content;
}

.modal-status-tag.stable {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.modal-status-tag.beta {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.modal-status-tag.alpha {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-body {
    margin-bottom: 25px;
}

#modal-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: white;
    transition: color 0.3s ease;
}

body.light-theme #modal-description {
    color: #1a1a2e;
}

.modal-features h3,
.modal-tech h3 {
    font-size: 18px;
    color: #6f54f8;
    margin-bottom: 10px;
}

#modal-features-list {
    padding-left: 20px;
    margin-bottom: 25px;
}

#modal-features-list li {
    margin-bottom: 8px;
    color: white;
    transition: color 0.3s ease;
}

body.light-theme #modal-features-list li {
    color: #1a1a2e;
}

#modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: rgba(86, 56, 229, 0.2);
    color: #ffffff;
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 14px;
    display: inline-block;
    border: 1px solid rgba(86, 56, 229, 0.3);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.light-theme .tech-tag {
    background: rgba(124, 92, 239, 0.1);
    color: #1a1a2e;
    border-color: rgba(124, 92, 239, 0.3);
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #2C2F45;
    flex-wrap: wrap;
    transition: border-color 0.3s ease;
}

body.light-theme .modal-footer {
    border-top-color: #d4d8e8;
}

.modal-docs-btn,
.modal-download-btn,
.modal-github-btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    flex: 1;
    min-width: 140px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-docs-btn {
    background-color: rgba(14, 6, 52, 0.7);
    color: white;
    border: 1px solid #5638E5;
    transition: all 0.3s ease;
}

body.light-theme .modal-docs-btn {
    background-color: rgba(124, 92, 239, 0.1);
    color: #1a1a2e;
    border-color: #7c5cef;
}

.modal-docs-btn:hover {
    background-color: #5638E5;
    color: white;
}

.modal-download-btn {
    background-color: #5638E5;
    color: white;
    border: none;
}

.modal-download-btn:hover {
    background-color: #4325c2;
}

.modal-github-btn {
    background-color: rgba(36, 41, 46, 0.8);
    color: white;
    border: 1px solid rgb(128, 127, 131);
    transition: all 0.3s ease;
}

.modal-github-btn:hover {
    background-color: #24292e;
    color: white;
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    font-size: 20px;
    vertical-align: middle;
    line-height: 1;
    display: inline-block;
}

.download-btn .material-symbols-outlined {
    font-size: 20px;
    margin-right: -3px;
}

.modal-download-btn .material-symbols-outlined {
    font-size: 22px;
    margin-right: -3px;
}

.modal-github-btn i.fab.fa-github {
    font-size: 18px;
    margin-bottom: 2px;
}

footer {
    background-color: rgba(10, 13, 24, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid #2C2F45;
    padding: 40px 50px;
    font-family: 'Comfortaa', sans-serif;
    color: white;
    position: relative;
    z-index: 10;
    margin-top: 80px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.light-theme footer {
    background-color: rgba(255, 255, 255, 0.9);
    border-top-color: #d4d8e8;
    color: #1a1a2e;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.footer-section {
    margin-bottom: 20px;
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #6f54f8;
    transition: color 0.3s ease;
}

body.light-theme .footer-section h3 {
    color: #5638E5;
}

.footer-section p {
    margin: 8px 0;
    line-height: 1.5;
}

.footer-section a {
    color: #5638E5;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: none;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    padding: 2px 0;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    width: fit-content;
}

body.light-theme .footer-links a {
    color: #1a1a2e;
}

.footer-links a:hover {
    color: #5638E5;
    text-decoration: none;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background-color: #1A1F36;
    margin: 20px 0;
    transition: background-color 0.3s ease;
}

body.light-theme .footer-separator {
    background-color: #d4d8e8;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    color: #888;
    transition: color 0.3s ease;
}

body.light-theme .copyright {
    color: #6b6b7f;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.shimmer {
    background: linear-gradient(90deg, #151729 0%, #1a1d33 50%, #151729 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
    height: 300px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        background-color: #0A0D18;
        width: 100%;
        flex-direction: column;
        padding: 20px;
        z-index: 99;
        transition: left 0.3s ease;
        border-bottom: 1px solid #5638E5;
    }

    body.light-theme .nav-links {
        background-color: #ffffff;
        border-bottom: 1px solid #7c5cef;
    }

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

    .nav-links a {
        padding: 15px 0;
        display: block;
        border-bottom: 1px solid #1A1F36;
        width: 100%;
        transition: border-color 0.3s ease;
    }

    body.light-theme .nav-links a {
        border-bottom: 1px solid #d4d8e8;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .container {
        padding: 30px 20px;
    }

    .title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 20px;
    }

    .projects-stats {
        justify-content: center;
    }

    .stat-item {
        min-width: 120px;
        padding: 12px 15px;
    }

    .stat-number {
        font-size: 26px;
    }

    .projects-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
        max-width: 100%;
    }

    .filter-buttons {
        justify-content: center;
    }

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

    .modal-content {
        width: 90%;
        padding: 20px;
        margin: 10% auto;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-docs-btn,
    .modal-download-btn,
    .modal-github-btn {
        min-width: 100%;
    }

    .footer-content {
        flex-direction: column;
    }
}