body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
}

/* --- ADDED BUTTON CONTAINER --- */
.top-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 10px; /* Adds space between buttons */
}

/* --- ADDED BUTTON STYLES --- */
.btn-toggle {
	padding: 7px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: #000000;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: background 0.3s, color 0.3s, opacity 0.3s;
}

.btn-toggle:hover {
    opacity: 0.85;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, rgba(122, 126, 188, 0.65), rgba(250, 208, 196, 0.65), rgba(161, 140, 209, 0.35), rgba(251, 194, 235, 0.65));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    z-index: 0;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(40px);
    z-index: 1;
    transition: opacity 0.5s ease; /* Added for smooth fade */
}

.circle-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(173, 216, 230, 0.45);
}

.circle-2 {
    width: 250px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.45);
}

.circle-3 {
    width: 200px;
    height: 200px;
    background-color: rgba(13, 79, 179, 0.15);
}

.circle-4 {
    width: 350px;
    height: 350px;
    background-color: rgba(141, 255, 255, 0.25);
}

.glass-plate {
    position: absolute;
    bottom: 0;
    left: 8%;
    right: 8%;
    height: 70%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    box-sizing: border-box;
    text-align: center;
    animation: slideUp 1s ease-out;
    z-index: 2;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.glass-title {
    font-size: 3.5rem;
    color: rgba(0, 0, 0, 0.85);
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-top: 20px;
}

/* --- ADDED DARK MODE STYLES --- */

body.dark .background {
    background: linear-gradient(-45deg, #00003A, #001E00, #000028, #280000);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

body.dark .circle {
    opacity: 0.55;
}

body.dark .glass-plate {
    background: rgba(155, 155, 155, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

body.dark .glass-title {
    color: rgba(255, 255, 255, 0.85);
}

body.dark .content-text {
    color: #E0E0E0;
}

body.dark .btn-toggle {
    background-color: white;
    color: black;
}

@media (max-width: 1100px) {
	.glass-title {
    font-size: 3.25rem;
}
.content-text {
    font-size: 1.05rem;
}
}

@media (max-width: 950px) {
	.glass-plate {
    left: 4%;
    right: 4%;
	height:75%;
}
	.glass-title {
    font-size: 3rem;
}
.content-text {
    font-size: 1rem;
}
}

@media (max-width: 750px) {
	.glass-plate {
    left: 3%;
    right: 3%;
}
	.btn-toggle {
        font-size: 0.9rem;
    }

}

@media (max-width: 670px) {
	.glass-plate {
	border-top-left-radius: 0px;
    border-top-right-radius: 0px;
	height: 80%;
    left: 0%;
    right: 0%;
}
}

@media (max-width: 550px) {
	.glass-plate {
	border-top-left-radius: 0px;
    border-top-right-radius: 0px;
	height: 100%;
	animation: none;
    left: 0%;
    right: 0%;
}
    /* --- Make button smaller on mobile --- */
    .btn-toggle {
        padding: 6px 10px;
    }
    .top-controls {
        top: 15px;
        right: 15px;
    }
	.glass-title {
	margin-top: 20%;
}
}

@media (max-width: 450px) {
	.glass-plate {
	height: 100%;
}
}

@media (max-width: 400px) {
	.glass-title {
	margin-top: 25%;
    font-size: 2.5rem;
}
.content-text {
    font-size: 0.95rem;
}
}

@media (max-width: 350px) {
	.glass-title {
	margin-top: 30%;
    font-size: 1.8rem;
}
	.glass-plate {
	padding: 30px;
	padding-top: 10px;
}
	.btn-toggle {
        font-size: 0.8rem;
    }

}