/* === Global Reset === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Body === */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: url('assets/images/background 2.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: #121212;
    color: #fff;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background-color: #f0f4ff;
    color: #000;
}

/* === Dark Mode Toggle === */
.dark-mode-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: #FF4B41;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

body.light-mode .dark-mode-toggle {
    background: #008CBA;
}

.dark-mode-toggle:hover {
    background: #FF1F1F;
    transform: scale(1.05);
}

body.light-mode .dark-mode-toggle:hover {
    background: #007B9A;
}

/* === Header === */
header {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    transition: background 0.3s ease;
}

body.light-mode header {
    background: #e1f5fe;
    color: #000;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* === Navigation === */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(32, 32, 32, 0.9);
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

body.light-mode nav {
    background: rgba(255, 255, 255, 0.9);
}

nav a {
    margin: 0.5rem 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

body.light-mode nav a {
    background: rgba(20, 91, 234, 0.9);
    color: #000;
    border: 1px solid #004080;
}

nav a:hover {
    background: rgba(255, 75, 65, 0.8);
    transform: scale(1.05);
}

body.light-mode nav a:hover {
    background: #007bb2;
}

body.light-mode nav a.active {
    background: #005a9e;
}

/* === Main Content === */
main {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: background 0.3s ease;
    animation: fadeIn 1s ease-out;
}

body.light-mode main {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #cce4f7;
}

main h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

main p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: justify;
}

/* === Typography === */
.heading-secondary {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding-top: 24px;
    margin: 15px;
    animation: fadeIn 1.5s ease-in-out;
}

.heading-tertiary {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

body.light-mode .heading-secondary,
body.light-mode .heading-tertiary,
body.light-mode main h2,
body.light-mode main p {
    color: #000;
}

/* === Lists === */
li {
    text-align: left;
    margin-bottom: 0.5rem;
}

li a {
    color: inherit;
    text-decoration: underline;
}

/* === Voice Notes === */
.voice-notes-section {
    position: relative;
    z-index: 1;
    padding: 2rem;
    margin: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .voice-notes-section {
    background: rgba(135, 206, 250, 0.9);
}

/* === Payment Options === */
.payment-options div {
    background: #e9ecef;
    color: grey;
    padding: 15px;
    border-radius: 5px;
    margin: 10px auto;
    width: 50%;
    text-align: left;
}

.payment-options a {
    font-weight: bold;
}

body.light-mode .payment-options div {
    color: #000;
}

body.light-mode .payment-options a {
    color: #000;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding-top: 60px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #999;
}

/* === Footer === */
footer {
    text-align: center;
    padding: 2rem;
    background: #1b1b1b;
    color: #bbb;
    margin-top: 4rem;
}

body.light-mode footer {
    background: #005a9e;
}

footer p {
    font-size: 1.1rem;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .gallery-item img {
        height: 200px;
    }
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
