@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap');

:root {
    --background: #000000;
    --foreground: #d4d4d4;
    --comment: #6a9955; /* Python-style comment green */
    --keyword: #159F9F; /* Python-style keyword blue */
    --string: #ce9178; /* Python-style string orange */
    --function: #dcdcaa; /* Python-style function yellow */
    --number: #b5cea8;
    --accent: #c586c0; /* A purple accent */
    --border-color: #333;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Fira Code', monospace;
    margin: 0;
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: #FFFFFF;
}

.logo span {
    color: var(--keyword);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
}

.cart-icon {
    position: relative;
    color: var(--accent);
    font-size: 1.5rem;
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    font-weight: bold;
}

main {
    padding: 0 5%;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
    padding: 4rem 0;
    position: relative; /* For particles.js */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-text {
    max-width: 800px;
    position: relative; /* To stay on top of particles */
    z-index: 2;
}

.hero-logo {
    display: block;
    margin: 2rem auto 0;
    max-width: 250px;
    border-radius: 15px;
}

#hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: var(--keyword);
    min-height: 100px; /* Prevent layout shift during typing */
}

.subheading {
    color: var(--comment);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--keyword);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #107c7c;
    text-decoration: none;
}

.cta-button-outline {
    border: 2px solid var(--keyword);
    color: var(--keyword);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button-outline:hover {
    background-color: var(--keyword);
    color: #fff;
    text-decoration: none;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

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

.features {
    text-align: center;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.feature-card {
    background-color: #252526;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.feature-card h3 {
    color: var(--function);
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--comment);
}

.placeholder-icon {
    font-size: 2rem;
    color: var(--string);
    border: 2px dashed var(--string);
    padding: 1rem;
    display: inline-block;
}

.banner {
    background-color: #252526;
    text-align: center;
    padding: 3rem 1rem;
    border-radius: 8px;
    margin: 4rem 0;
}

.banner h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.about-contact-container {
    display: block;
    padding: 0 5%;
}

.about {
    padding: 4rem 0;
}

.about p {
    color: var(--comment);
    text-align: center;
    max-width: none;
    margin: 0;
}

.socials {
    padding: 4rem 0;
}

.socials h2 {
    text-align: center;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-button {
    padding: 1rem;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.social-button.discord { background-color: #7289DA; }
.social-button.youtube { background-color: #FF0000; }
.social-button.instagram { background-color: #E4405F; }
.social-button.facebook { background-color: #1877F2; }

.social-button:hover {
    opacity: 0.9;
    text-decoration: none;
}

.contact {
    text-align: center;
}

.contact .hs-form-frame {
    margin: 0 auto;
    max-width: 600px;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    color: var(--comment);
}

.footer-links {
    margin-bottom: 1rem;
    white-space: nowrap;
}

.footer-links a {
    margin: 0 1rem;
    color: var(--keyword);
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--foreground);
    transition: 0.4s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav li {
    margin: 2rem 0;
}

.mobile-nav a {
    font-size: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-left, .footer-center, .footer-right {
        text-align: center;
        min-width: 100%;
    }

    .footer-right .social-buttons {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .cart-icon {
        display: block;
    }

    #hero-title {
        font-size: 2.5rem;
    }

    .subheading {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-contact-container {
        grid-template-columns: 1fr;
    }

    main, header {
        padding: 0 3%;
    }
}

/* Admin product list styles */
.product-item {
    background-color: #252526;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.product-item div:first-child {
    flex-grow: 1;
}

.product-item h3 {
    color: var(--function);
    margin-top: 0;
}

.product-item p {
    margin: 0.5rem 0;
    /* Fix for long text overflowing */
    overflow-wrap: break-word;
    word-wrap: break-word; /* Fallback for older browsers */
    word-break: break-all; /* More aggressive breaking if needed */
}

.product-item img {
    max-width: 100px;
    height: auto;
    border-radius: 4px;
}

.product-item div:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#product-form {
    background-color: #252526;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

#product-form input,
#product-form textarea,
#product-form button {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: #333;
    color: var(--foreground);
    font-family: 'Fira Code', monospace;
}

#product-form button {
    background-color: var(--keyword);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

#product-form button:hover {
    background-color: #107c7c;
}

/* New Sections Styling */
.supported-platforms {
    text-align: center;
}

.platforms-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.platforms-grid .logo-container {
    height: 80px;
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platforms-grid img {
    max-height: 100%;
    max-width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.platforms-grid img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.news-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card, .testimonial-card {
    background-color: #252526;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.news-card h3 {
    color: var(--function);
    margin-top: 0;
}

.news-card p {
    color: var(--comment);
    flex-grow: 1;
}

.news-card a {
    font-weight: bold;
    color: var(--keyword);
    align-self: flex-start;
}

.testimonial-card p:first-of-type {
    font-style: italic;
    font-size: 1.1rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-card p:last-of-type {
    font-weight: bold;
    color: var(--function);
    text-align: right;
}

/* Updated Footer Styling */
footer {
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-left {
    text-align: left;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

.adn-badge img {
    max-width: 100%;
    height: auto;
    max-height: 80px; /* Adjust size as needed */
}

.footer-right .social-buttons {
    justify-content: flex-end;
}

.footer-right .social-button {
    font-size: 1.2rem;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
}

/* Scroll Animation */
.content-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cursor for Hero Animation */
.cursor {
    display: inline-block;
    background-color: var(--foreground);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { background-color: transparent }
    50% { background-color: var(--foreground); }
}
