@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #000;
    overflow: hidden;
    height: 100vh;
}

/* Day Scene Section */
.day-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.day-section.hidden {
    opacity: 0;
}

/* Night Scene Section */
.night-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.night-section.active {
    opacity: 1;
}

/* SVG Container - Full Screen */
.svg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* SVG Styling - Full Screen */
.scene-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Title Overlay */
.title-overlay {
    position: fixed;
    top: 50px;
    right: 50px;
    z-index: 100;
    color: white;
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.05em;
    opacity: 0.9;
    mix-blend-mode: difference;
    transition: all 0.3s ease;
}

/* Toggle Switch Container */
.toggle-container {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Toggle Labels */
.toggle-label {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
}

.toggle-label:first-child {
    opacity: 1;
}

.toggle-label:last-child {
    opacity: 0.5;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Toggle Slider */
.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #4285f4;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Checked state */
input:checked + .toggle-slider {
    background: #1a1a2e;
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.5);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Active state effects */
input:checked ~ .toggle-label:first-child {
    opacity: 0.5;
}

input:checked ~ .toggle-label:last-child {
    opacity: 1;
}

/* Hover effects */
.toggle-switch:hover .toggle-slider {
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4);
}

input:checked + .toggle-slider:hover {
    box-shadow: 0 6px 16px rgba(26, 26, 46, 0.6);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .title-overlay {
        top: 30px;
        right: 30px;
        font-size: clamp(3rem, 20vw, 8rem);
    }
    
    .toggle-container {
        bottom: 30px;
        padding: 12px 20px;
        gap: 12px;
    }
    
    .toggle-switch {
        width: 50px;
        height: 25px;
    }
    
    .toggle-slider:before {
        height: 19px;
        width: 19px;
        left: 3px;
        bottom: 3px;
    }
    
    input:checked + .toggle-slider:before {
        transform: translateX(25px);
    }
    
    .toggle-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .title-overlay {
        top: 20px;
        right: 20px;
        font-size: clamp(2.5rem, 25vw, 6rem);
    }
    
    .toggle-container {
        bottom: 20px;
        padding: 10px 18px;
        gap: 10px;
    }
    
    .toggle-switch {
        width: 45px;
        height: 22px;
    }
    
    .toggle-slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
    }
    
    input:checked + .toggle-slider:before {
        transform: translateX(23px);
    }
    
    .toggle-label {
        font-size: 0.8rem;
    }
}

/* Hide scroll bars */
body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
