/* IMPORT FONTS */
@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');

/* GLOBAL RESET */
* {
    padding: 0;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
}

*::-webkit-scrollbar {
    width: 0;
}

/* REMOVE ALL LINK UNDERLINES */
a {
    text-decoration: none !important;
    color: inherit;
}

/* BODY */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    /* Mobile-first base font size, scales up on larger screens */
    font-size: clamp(0.875rem, 0.85rem + 0.3vw, 1rem);
    background-color: #1B1B1B;
    color: #eef8ce;
    background-image:
        url('bg.png'),
        repeating-linear-gradient(to right, transparent 0 500px, #73814B33 500px 501px);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* MEDIA ELEMENTS */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* SECTION */
.section {
    width: 100%;
    min-height: 90vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CONTENT-FIT */
.content-fit {
    width: min(1200px, 90vw);
    margin: auto;
    min-height: 90vh;
    position: relative;
    padding-block: 5em;
}

/* HEADER / NAVBAR */
header {
    padding-block: 0.75em;
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(20px);
    background-color: #1B1B1Bdd;
    background-image: repeating-linear-gradient(to right, transparent 0 500px, #eee1 500px 501px);
    z-index: 100;
}

header .content-fit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: unset !important;
    padding-block: 0 !important;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Base: mobile-first collapsed nav */
nav ul {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0.75rem 1rem;
    position: absolute;
    right: 1rem;
    top: 100%;
    background-color: #1B1B1B;
    border-radius: 0.75rem;
    border: 1px solid #445022;
}

body.nav-open nav ul {
    display: flex;
}

nav ul li {
    background: hsl(75, 100%, 64%);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

nav ul li:hover {
    background: #cc85e4;
    color: #000101;
    transform: translateY(-1px);
}

nav ul li .active {
    text-decoration: underline;
}

/* Hamburger toggle */
.nav-toggle {
    background: transparent;
    border: none;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0.5rem;
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: hsl(75, 100%, 64%);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* BANNER TITLE */
#banner .content-fit {
    padding-top: 15em;
    /* Pushes text down on mobile */
}

#banner .title {
    color: hsl(75, 100%, 64%);
    font-size: clamp(3rem, 12vw, 11rem);
    font-family: "devil breeze";
    font-weight: bold;
    position: relative;
    text-align: center;
}

#banner .title::before {
    content: attr(data-before);
    position: absolute;
    top: 0.5em;
    inset: 0.66em 0 0 0;
    z-index: -1;
    color: #445022;
}

/* IMAGE DECORATION */
.section .decorate {
    position: absolute;
}

.header-logo {
    width: clamp(100px, 15vw, 160px);
}

.hero-flower {
    width: clamp(200px, 35vw, 400px);
    bottom: 0;
    right: 0;
}

.hero-leaf {
    width: clamp(150px, 25vw, 300px);
    bottom: 0;
    left: 0;
}

.desc-leaf {
    width: clamp(160px, 28vw, 320px);
    bottom: 0;
    right: 0;
}

/* INTRO */
#intro .content-fit {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}

.section .number {
    font-family: "devil breeze";
    font-size: clamp(4rem, 12vw, 15rem);
    font-weight: bold;
}

.section .content-fit .title {
    font-family: "devil breeze";
    font-size: clamp(1.75rem, 4vw, 5rem);
    font-weight: bold;
}

/* DESCRIPTION */
#description .content-fit {
    padding-right: 0;
}

#description .number {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

#description .title {
    font-size: clamp(2.5rem, 7vw, 7rem);
    font-weight: 500;
}

/* CONTACT SECTION */
#contact .content-fit {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

#contact table {
    width: 100%;
    max-width: 800px;
    padding-top: 2em;
    font-size: clamp(1rem, 4vw, 2em);
    margin: auto;
}

#contact table td {
    padding-block: 0.5em;
    border-bottom: 1px dashed #445022;
}

#contact table td:nth-child(1) {
    text-align: left;
    font-weight: 500;
}

#contact table td:nth-child(2) {
    text-align: right;
    font-weight: 200;
}

#contact .sign {
    font-family: 'Bimbo', sans-serif;
    font-size: 10em;
}

/* PREMIUM GLASSMORPHISM EFFECT FOR TEXT SECTIONS */
.des {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.7) 0%, rgba(15, 15, 15, 0.9) 100%);
    border: 1px solid rgba(204, 255, 68, 0.2);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    overflow: hidden;
}

/* Glowing Neon Top Accent */
.des::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, hsl(75, 100%, 64%), #cc85e4, transparent);
    opacity: 0.7;
    transition: opacity 0.3s;
}

/* Inner Ambient Light */
.des::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(204, 255, 68, 0.05) 0%, transparent 50%);
    pointer-events: none;
    transition: transform 0.6s ease-out;
}

.des:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(204, 255, 68, 0.5);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.7),
        0 0 30px rgba(204, 255, 68, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.des:hover::before {
    opacity: 1;
    height: 4px;
}

.des:hover::after {
    transform: scale(1.1);
}

@media screen and (min-width: 600px) {
    .des {
        padding: 3.5rem;
    }
}

/* 3D CONTAINER */
#container3D {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
}

/* RESPONSIVE ENHANCEMENTS */
@media screen and (min-width: 600px) {
    .content-fit {
        padding-block: 8em;
    }

    #banner .content-fit {
        padding-top: 8em;
        /* Reset pushed down text for desktop */
    }

    /* Desktop: nav inline, content side-by-side where appropriate */
    nav ul {
        position: static;
        flex-direction: row;
        background: transparent;
        border: none;
        padding: 0;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    nav ul li {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .nav-toggle {
        display: none;
    }

    #intro .content-fit {
        flex-direction: row;
        gap: 15%;
        align-items: center;
    }

    #description .content-fit {
        padding-right: 20%;
    }
}

@media screen and (min-width: 1024px) {
    #description .content-fit {
        padding-right: 30%;
    }

    #container3D {
        position: fixed;
    }
} 
#container3D{
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

#container3D canvas{
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* SHARED FOOTER SOCIALS */
.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #a0aab2;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
}

.site-footer .footer-title {
    margin: 0 0 0.8rem 0;
    font-weight: 500;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(204, 255, 68, 0.35);
    background: rgba(204, 255, 68, 0.08);
    color: hsl(75, 100%, 64%);
    transition: all 0.25s ease;
    font-size: 0.92rem;
}

.social-icon .symbol {
    font-size: 1rem;
    line-height: 1;
}

.social-icon:hover {
    background: rgba(204, 255, 68, 0.2);
    border-color: rgba(204, 255, 68, 0.8);
    transform: translateY(-2px);
}

.footer-legal {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #8f9aa4;
}

.legal-links {
    margin-top: 0.35rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: #c7d2da;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: hsl(75, 100%, 64%);
}
