/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a0a0a;
    color: #f9f9f9;
    line-height: 1.6;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 80px;
    z-index: 1000;
    background: #0a0a0a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo img {
    display: block;
}

.nav_list {
    display: flex;
    list-style: none;
    height: 100%;
}

/* Container for the menu item */
.nav_item {
    position: relative; /* Anchor for the sub_list */
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 100%;

}

.nav_item a {
    color: #f9f9f9;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}


/* Centered Dropdown / Sub-list */
.sub_list {
    position: absolute;
    top: 80px; /* Matches the nav height */

    /* Centering Logic */
    left: 50%;
    transform: translateX(-50%) translateY(10px);

    width: 220px; /* Adjust width as needed */
    list-style: none;
    padding: 20px;
    text-align: center; /* Centers the text inside the list */

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Updated Hover State */
.nav_item:hover .sub_list {
    opacity: 1;
    visibility: visible;
    /* Maintain the -50% X-axis while removing the Y-axis offset */
    transform: translateX(-50%) translateY(0);
}

.sub_list li {
    margin-bottom: 12px;
}

.sub_list li:last-child {
    margin-bottom: 0;
}

.sub_list a {
    text-decoration: none;
    color: #9f9f9f;
    font-size: 0.9rem;
    display: block;
    transition: color 0.2s;
}

.sub_list a:hover {
    color: #2a47f0;
}

.hero {
    position: relative; /* Required to contain the pseudo-element */
    height: 60vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 80px;
    padding: 20px;
    overflow: hidden; /* Prevents blurred edges from "bleeding" out */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Background properties moved here */
    background-image: url("./images/city.webp");
    background-size: cover;
    background-position: center;

    /* The Blur Effect */
    filter: blur(8px); /* Adjust the pixels to change blur intensity */
    transform: scale(1.1); /* Slight zoom to hide unblurred edges at the borders */

    z-index: -1; /* Pushes the image behind the text */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero h3 {
    font-weight: 500;
    color: #ccc;
}

/* Content Area */
.content {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.content p {
    font-size: 1.1rem;
    color: #9f9f9f;
}

/* Footer */
footer {
    background: #050505;
    border-top: 1px solid #1a1a1a;
    color: #777;
    font-size: 0.9rem;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.footer-brand {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand img {
    display: block;
    opacity: 0.85;
}

.footer-brand p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.65;
}

.footer-links {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col h5 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f9f9f9;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    text-decoration: none;
    color: #555;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #2a47f0;
}

.footer-bottom {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px 32px;
    border-top: 1px solid #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #3a3a3a;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-brand {
        flex: none;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* The "Curtain" Effect - For JS functionality */
.nav_bg_curtain {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background: #0a0a0af0;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: height 0.4s ease;
    z-index: -1;
}

span {
    color: #2a47f0;
}

/* =============================================
   ABOUT SECTION
   ============================================= */

.about-section {
    border-top: 1px solid #1a1a1a;
}

.about-section p {
    font-size: 1.1rem;
    color: #9f9f9f;
    max-width: 700px;
}

/* Section Labels & Titles */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2a47f0;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f9f9f9;
    margin-bottom: 24px;
    line-height: 1.2;
}

/* =============================================
   WHAT WE DO / DIVISIONS
   ============================================= */

.what-we-do {
    background: #080808;
    padding: 20px 0;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.division-card {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 22px 16px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.division-card:hover {
    border-color: #2a47f0;
    background: #12182b;
}

.division-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.division-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ccc;
}

/* =============================================
   PROJECTS SECTION
   ============================================= */

.projects-section {
    padding: 20px 0 80px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    margin-top: 12px;
}

.project-card {
    background: #0f0f0f;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.25s, transform 0.25s;
}

.project-card:hover {
    border-color: #2a47f0;
    transform: translateY(-3px);
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
}

.tag-opensource  { color: #2a47f0; background: #2a47f030; }
.tag-framework   { color: #2a47f0; background: #2a47f030; }
.tag-multimedia  { color: #2a47f0; background: #2a47f030; }
.tag-franchise   { color: #2a47f0; background: #2a47f030; }
.tag-streaming   { color: #2a47f0; background: #2a47f030; }
.tag-free        { color: #2a47f0; background: #2a47f030; }
.tag-lang        { color: #2a47f0; background: #2a47f030; }
.tag-tool        { color: #2a47f0; background: #2a47f030; }
.tag-discord     { color: #2a47f0; background: #2a47f030; }

.project-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f9f9f9;
}

.project-subtitle {
    font-size: 0.85rem;
    color: #555;
}

.project-desc {
    font-size: 0.95rem;
    color: #8a8a8a;
    line-height: 1.65;
    flex: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2a47f0;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: gap 0.2s, color 0.2s;
    margin-top: auto;
}

.project-link:hover {
    color: #5a77ff;
    gap: 10px;
}

/* Sub-projects (Sectorfall) */
.sub-projects {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid #1e1e1e;
    padding-top: 16px;
}

.sub-project {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sub-project-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.sub-project h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ddd;
    margin-bottom: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.coming-soon {
    font-size: 0.7rem;
    font-weight: 600;
    color: #757575;
    background: #45454520;
    padding: 2px 8px;
    letter-spacing: 0.05em;
}

.sub-project p {
    font-size: 0.875rem;
    color: #777;
    line-height: 1.55;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.5rem;
    }
}
