/* style.css */

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #1f1829;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden; /* Still important! */
}

.dark-mode {
    background-color: #1f1829;
    color: #fff;
}

.light-mode {
    background-color: #f8f8f8;
    color: #222;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* --- Header --- */
header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(31, 24, 41, 0.8);
    backdrop-filter: blur(10px);
}

.light-mode header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    color: #ccc;
    font-size: 0.9rem;
    user-select: none;
}

.light-mode .toggle-label {
    color: #333;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 25px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 21px;
    width: 21px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.dark-mode .slider {
    background-color: #444;
}

input:checked + .slider {
    background-color: #007bff;
}

.dark-mode input:checked + .slider {
    background-color: #6ab7ff;
}

input:checked + .slider:before {
    transform: translateX(25px);
}

/* --- Main Content --- */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-section {
    padding: 4rem 0;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: inherit;
    text-transform: uppercase;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: inherit;
}

p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}
.light-mode p {
     color: #555;
}

/* --- Splash Animation --- */
.splash {
    position: absolute;  /*  Use absolute positioning  */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f0f0f0;  /*  Simplified: Use CSS for base color  */
    animation: splash-effect 1.5s ease-out forwards;
    pointer-events: none;
}

/*  No need for dark-mode/light-mode specific splash colors  */
/*  The body's background color will determine the contrast  */

@keyframes splash-effect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    70% {
        transform: scale(50);
    }
    100% {
      transform: scale(60);
      opacity: 0;

    }
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 1rem 0;
    color: #888;
    border-top: 1px solid #333;
    position: relative;
    z-index: 1;
}

.light-mode footer {
    color: #333;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    header {
        flex-direction: column;
        align-items: stretch;
    }

    nav.container {
        flex-direction: column;
    }

    .toggle-container {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .toggle-label {
        display: none;
    }
}

/* --- NoScript Styles --- */
.noscript-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1f1829;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
}