@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;
}

body {
    color: white;
    font-family: 'Comfortaa', sans-serif;
    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;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: #0A0D18;
    border-bottom: 1px solid #5638E5;
    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 30px;
    text-align: center;
}

.title {
    font-size: 40px;
    color: white;
    margin-bottom: 25px;
    transition: color 0.3s ease;
}

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

.subtitle {
    font-size: 24px;
    margin-top: 5px;
    margin-bottom: 30px;
    color: white;
    transition: color 0.3s ease;
}

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

.description {
    font-size: 18px;
    margin: 10px auto 20px;
    max-width: 800px;
    color: white;
    line-height: 1.6;
    transition: color 0.3s ease;
}

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

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 50px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.community-card {
    background-color: #0E0F1D;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 2px solid #5638E5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-theme .community-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #7c5cef;
}

.community-card.discord {
    border-color: #5865F2;
}

.community-card.github {
    border-color: #4b525a;
}

.community-card.reddit {
    border-color: #FF4500;
}

.community-card.forums {
    border-color: #d4d1e4;
}

.community-card.youtube {
    border-color: #FF0000;
}

.community-card.instagram {
    border: 2px solid transparent;
    border-radius: 12px;
    background: linear-gradient(#0E0F1D, #0E0F1D) padding-box,
        linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) border-box;
}

body.light-theme .community-card.instagram {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)) padding-box,
        linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) border-box;
}

.community-card.twitter {
    border-color: #1D9BF0;
}

.community-card.mastodon {
    border-color: #563ACC;
}

.card-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.community-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

body.light-theme .community-card h3 {
    color: #1a1a2e;
}

.community-card p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #cccccc;
    flex-grow: 1;
    transition: color 0.3s ease;
}

body.light-theme .community-card p {
    color: #6b6b7f;
}

.community-btn {
    border: none;
    border-radius: 7px;
    padding: 12px 24px;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    margin-top: auto;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.community-btn.discord {
    background-color: #5865F2;
}

.community-btn.discord:hover {
    background-color: #4752C4;
}

.community-btn.github {
    background-color: #363d46;
    color: #f0f6fc;
}

.community-btn.github:hover {
    background-color: #30363d;
}

.community-btn.reddit {
    background-color: #FF4500;
}

.community-btn.reddit:hover {
    background-color: #e63c00;
}

.community-btn.forums {
    background-color: #ffffff;
    color: #090C15;
}

body.light-theme .community-btn.forums {
    background-color: #5638E5;
    color: white;
}

.community-btn.forums:hover {
    background-color: #dddce2;
}

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

.community-btn.youtube {
    background-color: #FF0000;
}

.community-btn.youtube:hover {
    background-color: #cc0000;
}

.community-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.community-btn.instagram:hover {
    background: linear-gradient(45deg, #d4852a 0%, #c55a33 25%, #b8213a 50%, #a91d5a 75%, #9a1577 100%);
}

.community-btn.twitter {
    background-color: #0f87d6;
    color: #e7e9ea;
}

.community-btn.twitter:hover {
    background-color: #0C7BC4;
}

.community-btn.mastodon {
    background-color: #563ACC;
}

.community-btn.mastodon:hover {
    background-color: #4a2eb3;
}

.social-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.newsletter-section {
    padding: 40px 50px 60px;
    text-align: center;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

body.light-theme .section-title {
    color: #1a1a2e;
}

.newsletter-description {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #cccccc;
    transition: color 0.3s ease;
}

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

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.email-input {
    flex-grow: 1;
    padding: 15px;
    border-radius: 7px;
    border: 2px solid #2C2F45;
    background-color: #0E0F1D;
    color: white;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

body.light-theme .email-input {
    background-color: #ffffff;
    border-color: #d4d8e8;
    color: #1a1a2e;
}

.email-input:focus {
    outline: none;
    border-color: #5638E5;
}

.subscribe-btn {
    background-color: #5638E5;
    border: none;
    border-radius: 7px;
    padding: 15px 30px;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #4328c2;
}

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

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;
    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;
}

.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-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;
}

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

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #0A0D18;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid #5638E5;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 10;
    }

    body.light-theme .nav-links {
        background-color: rgba(255, 255, 255, 0.95);
        border-bottom-color: #7c5cef;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .signup-hamburger {
        gap: 15px;
    }

    .container {
        padding: 30px 20px;
    }

    .title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 20px;
    }

    .description {
        font-size: 16px;
    }

    .cards-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

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

    .footer-section {
        width: 100%;
    }
}