@import url('https://fonts.cdnfonts.com/css/devil-breeze');
@import url('https://fonts.cdnfonts.com/css/poppins');
@import url('https://fonts.cdnfonts.com/css/bimbo');

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font: 0.875rem/1.6 'Poppins', sans-serif;
    color: #cfe8ff;
    background: #0f0f1a;
    overflow-x: hidden;
    padding-top: 6rem;
    min-height: 100vh;
}

/* ========== Header ========== */
header {
    position: fixed;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(95%, 75rem);
    height: 4.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    z-index: 100;
}

/* ========== Flex Container ========== */
.content-fit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
}

/* ========== Branding ========== */
.site-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.125rem;
}

.site-title {
    font-family: 'Devil Breeze', cursive;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: #6ab5ff;
    line-height: 1.1;
    text-decoration: none;
}

/* ========== Navigation ========== */
nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

nav a {
    font-family: 'Devil Breeze', cursive;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: bold;
    color: #6ab5ff;
    text-decoration: none;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #6ab5ff;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ========== Sections ========== */
.section,
#banner,
#contact {
    padding-top: calc(6rem + 1rem);
    margin-top: -6rem;
    margin-bottom: 9vh;
    padding-inline: 1rem;
    width: min(95%, 75rem);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ========== Banner ========== */
#banner .title {
    font-family: 'Devil Breeze', cursive;
    font-size: clamp(3.5rem, 8vw, 10rem);
    font-weight: bold;
    color: #6ab5ff;
    text-align: center;
    line-height: 1;
    position: relative;
}

/* ========== Typography ========== */
.number {
    font-family: 'Devil Breeze', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #6ab5ff;
    margin-bottom: 1rem;
}

.content-fit .des .title {
    font-family: 'Devil Breeze', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #6ab5ff;
    margin-bottom: 1rem;
}

.content-fit .des p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    opacity: 0.9;
    max-width: 600px;
}

/* ========== Contact ========== */
#contact table {
    width: 100%;
    max-width: 45rem;
    margin-top: 2rem;
    font-size: 1rem;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    overflow: hidden;
    table-layout: fixed;
}

#contact td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(30, 52, 77, 0.3);
    vertical-align: middle;
}

#contact td:first-child {
    font-weight: 600;
    color: #6ab5ff;
    font-size: 0.95rem;
    width: 25%;
    text-align: left;
}

#contact td:last-child a {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #6ab5ff;
    text-decoration: underline;
    word-wrap: break-word;
    cursor: pointer;
}

#contact tr:hover td {
    background: rgba(106, 181, 255, 0.05);
}

#contact tr:last-child td {
    border-bottom: none;
}

/* ========== Signature ========== */
.sign {
    font-family: 'Bimbo', cursive;
    font-size: 2.5rem;
    color: #6ab5ff;
    margin-top: 2rem;
}

/* ========== 3D Canvas ========== */
/* Responsive 3D Canvas */
#container3D {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    opacity: 0.9;
    background: transparent;
    will-change: transform;
}

@media (max-width: 1024px) {
    #container3D {
        height: 80vh;
        opacity: 0.85;
    }
}

@media (max-width: 768px) {
    #container3D {
        height: 65vh;
        top: 3rem;
        opacity: 0.8;
    }
}

@media (max-width: 480px) {
    #container3D {
        height: 50vh;
        top: 2rem;
        opacity: 0.75;
    }
}

@media (max-width: 600px) {
    #container3D {
        height: 60vh;
        top: 4rem;
    }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .content-fit {
        flex-direction: column;
        padding: 0 1.2rem;
        text-align: center;
    }

    .number {
        margin-right: 0;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    }

    .section,
    #banner,
    #contact {
        padding-top: calc(4rem + 1rem);
        margin-top: -4rem;
        padding-inline: 1.5rem;
    }

    #contact table {
        font-size: 0.95rem;
    }

    #contact td {
        padding: 0.8rem 1rem;
    }

    .sign {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    header {
        height: auto;
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .site-info {
        width: 100%;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        gap: 0.8rem;
        width: 100%;
    }

    nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .section,
    #banner,
    #contact {
        padding-top: calc(3rem + 1rem);
        margin-top: -2rem;
        padding-inline: 1rem;
        margin-bottom: 5vh;
    }

    .content-fit .des p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .sign {
        font-size: 1.5rem;
    }

    #contact td:first-child {
        width: 30%;
    }

    #contact td:last-child {
        width: 70%;
    }
}
