/* Import section styles */
@import url('./section_1.css');
@import url('./section_2.css');
@import url('./section_3.css');
@import url('./section_4.css');
@import url('./section_5.css');
@import url('./nav_bar.css');


/* 1) Reset all styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-y: auto !important; 
    position: relative !important;
    top: 0;
    left: 0;
    font-family: sans-serif;
    color: white;
    -webkit-user-select: none; 
    -ms-user-select: none;     
    user-select: none;    
    touch-action: none;
}
html {
    background-color: transparent !important;
}

body:not([data-page="home"]) {
    overflow-y: auto !important;
    position: relative !important;
    touch-action: auto !important; 
    height: auto !important;
    min-height: 100vh;
}

body {
    transition: background-color 1s ease-in-out;
}

body.bg-state-0 { background-color: #d573ff !important; }
body.bg-state-1 { background-color: #d573ff !important; }
body.bg-state-2 { background-color: #9DFF73 !important; }
body.bg-state-3 { background-color: #47c5ff !important; }
body.bg-state-4 { background-color: #ffffff !important; }


body[data-page="home"] {
    background-color: #d573ff;
    overflow: hidden !important;
    position: fixed !important;
    touch-action: none !important;
    width: 100%;
    height: 100%;
}


img {
  pointer-events: none; 
  -webkit-user-drag: none;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.1; 
    pointer-events: none; 
    z-index: 0; 
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    pointer-events: none; 
    background: transparent; 
}


#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px; 
    z-index: 20;
    pointer-events: none; 
    background-color: #000000; 
    display: flex; /* Aligns hamburger and logo inline */
    align-items: center;
}

#main-header img {
    height: 30px;
    pointer-events: auto; 
}

/* 2) Fixed Footer */
#main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px; 
    text-align: right; 
    font-family: 'Roboto', sans-serif;
    font-weight: 100; 
    font-size: 0.6rem; 
    letter-spacing: 1px;
    z-index: 50;
    pointer-events: none;
    background-color: #000000; 
    color: #ffffff; 
}

.progress-dots {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.dot {
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2); /* Unlit state */
    border-radius: 50%;
    transition: background-color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
}

.dot.active {
    background-color: #ffffff; /* Lit up state */
    transform: scale(1.3);     /* Slightly larger */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); /* Glowing effect */
}

.hamburger {
    pointer-events: auto;
    cursor: pointer;
    margin-right: 20px; /* Shifts logo to the right */
    width: 25px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 21;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
}

/* Cross animation when active */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* --- Typography and Background Text Styles --- */

@font-face {
    font-family: 'PoLigon';
    src: url('../../static/assets/fonts/po-ligon.regular.otf') format('opentype');
}

@font-face {
    font-family: 'Showclick';
    src: url('../../static/assets/fonts/Showclick.otf') format('opentype');
}

@font-face {
    font-family: 'Rosehot';
    src: url('../../static/assets/fonts/rosehot-free-version.regular.ttf') format('truetype');
}

.hero-background-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 10; 
    width: 100%;
    text-align: center;
    pointer-events: none; 
    color: #111111; 
    line-height: 1.2;
    font-weight: 300;
}

.font-poligon { font-family: 'PoLigon', sans-serif; font-size: 3rem; }
.font-showclick { font-family: 'Showclick', sans-serif; font-size: 4.5rem; }
.font-rosehot { font-family: 'Rosehot', sans-serif; font-size: 5rem; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    #main-header {
        padding: 10px 15px;
    }

    #main-header img {
        height: 25px;
    }

    #main-footer {
        padding: 10px 15px;
        font-size: 0.5rem;
    }

    .font-poligon { font-size: 1.5rem; }
    .font-showclick { font-size: 2.5rem; }
    .font-rosehot { font-size: 3rem; }
}