/* Shared background image wrapper */
.background-wrapper {
  background: url('https://i.postimg.cc/zfDPZvYy/A-digital-illustration-in-modern-stylized-lands.webp') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  width: 100%;
  display: block;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  position: relative;
  z-index: 0;
}
/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Color Mode Fallbacks */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode):not(.dark-mode) {
        background-color: #000000;
        color: #ffffff;
    }
    body:not(.light-mode):not(.dark-mode) .logo-img {
        filter: none;
        transition: filter 0.4s ease;
    }
}

@media (prefers-color-scheme: light) {
    body:not(.light-mode):not(.dark-mode) {
        background-color: #f5f5f5;
        color: #000000;
    }
    body:not(.light-mode):not(.dark-mode) .navbar,
    body:not(.light-mode):not(.dark-mode) .text-bar,
    body:not(.light-mode):not(.dark-mode) footer,
    body:not(.light-mode):not(.dark-mode) .modal {
        background-color: #ffffff;
        color: #000000;
    }
    body:not(.light-mode):not(.dark-mode) .nav-links a {
        color: #000000;
    }
    body:not(.light-mode):not(.dark-mode) .btn-login,
    body:not(.light-mode):not(.dark-mode) .btn-primary,
    body:not(.light-mode):not(.dark-mode) .btn-secondary {
        background-color: #000000;
        color: #ffffff;
    }
    body:not(.light-mode):not(.dark-mode) .logo-img {
        filter: invert(1);
        transition: filter 0.4s ease;
    }
}

/* Base Styles */
body {
    color: #FFFFFF;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #000000;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.light-mode {
    background-color: #f5f5f5;
    color: #000000;
}

body.light-mode .navbar,
body.light-mode .text-bar,
body.light-mode footer,
body.light-mode .modal {
    background-color: #ffffff;
    color: #000000;
}

body.light-mode .nav-links a {
    color: #000000;
}

body.light-mode .nav-links a:hover {
    background-color: #000000;
    color: #ffffff;
}

body.light-mode .btn-login,
body.light-mode .btn-primary,
body.light-mode .btn-secondary {
    background-color: #000000;
    color: #ffffff;
}

body.light-mode .btn-login:hover,
body.light-mode .btn-primary:hover,
body.light-mode .btn-secondary:hover {
    background-color: #F8333C;
    color: #ffffff;
}

body.light-mode .project-card,
body.light-mode .product-card {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ccc;
}

body.light-mode .quote-generator,
body.light-mode .audio-player,
body.light-mode .featured-products,
body.light-mode .projects,
body.light-mode .shop,
body.light-mode .contact {
    background-color: #ffffff;
    color: #000000;
}

body.light-mode .quote-generator h2,
body.light-mode .audio-player h2,
body.light-mode .featured-products h2,
body.light-mode .projects h2,
body.light-mode .shop h2,
body.light-mode .contact h2 {
    color: #000000;
}

body.light-mode #quote-box {
    color: #000000;
}

body.light-mode .contact input,
body.light-mode .auth-form input {
    border-color: #000000;
    color: #000000;
}

/* Layout */
.navbar {
    background-color: #000000;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 20px;
    width: 30px;
    transition: filter 0.4s ease;
}

.logo-img.small-logo {
    height: 30px;
}

body.light-mode .logo-img {
    filter: invert(1);
}

/* Text Bar */
.text-bar {
    background-color: #000000;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    color: #ffffff;
    border-bottom: 0px solid #93A8AC;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover {
    background-color: #93A8AC;
    color: #000000;
}

/* Buttons */
.btn-login,
.btn-primary,
.btn-secondary {
    border: none;
    border-radius: 20px;
    cursor: pointer;
    padding: 8px 20px;
    transition: background-color 0.3s, transform 0.3s;
    color: #FFFFFF;
    background-color: #F8333C;
}

.btn-login {
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-primary {
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 18px;
    text-decoration: none;
}

.btn-login:hover,
.btn-primary:hover,
.btn-secondary:hover {
    background-color: #D32F36;
    transform: scale(1.05);
}

/* fullscreen-hero Section */
.fullscreen-hero {
    height: 100vh;
    background: linear-gradient(to bottom, #000000 0%, #111111 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    flex-direction: column;
}

.hero-inner {
    max-width: 900px;
}

.hero-logo {
    max-width: 120px;
    margin-bottom: 20px;
}

/* scenic-section and scenic-img */
.scenic-section {
    background-color: #000;
    text-align: center;
    padding: 0;
}

.scenic-img {
    width: 100%;
    height: auto;
    display: block;
}

/* grid-showcase Section */
.grid-showcase {
    padding: 80px 20px;
    background-color: #111;
    color: #fff;
    text-align: center;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.grid-item {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    max-width: 300px;
    flex: 1 1 250px;
    transition: transform 0.3s;
}

.grid-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.05);
}

.grid-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.grid-item p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* audio-overlay styles */
.audio-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 300px;
}

.audio-overlay audio {
    width: 100%;
}

.audio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audio-header button {
    background: transparent;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.equalizer {
    display: flex;
    gap: 2px;
}

.equalizer span {
    display: block;
    width: 3px;
    height: 10px;
    background: red;
    animation: bounce 1s infinite ease-in-out alternate;
}

.equalizer span:nth-child(2) {
    animation-delay: 0.2s;
}

.equalizer span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    from { height: 10px; }
    to { height: 20px; }
}

/* Contact Section */
.contact {
    padding: 60px 20px;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #93a8ac;
    animation: fadeIn 1s ease-in-out;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact label {
    display: block;
    font-size: 18px;
    color: #93a8ac;
    margin-bottom: 5px;
}

.contact input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #93A8AC;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.contact input:focus {
    border-color: #F8333C;
    outline: none;
}

.contact button {
    align-self: center;
}

/* Shop Section */
.shop {
    padding: 60px 20px;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.shop-content {
    max-width: 600px;
    margin: 0 auto;
}

.shop h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #93a8ac;
    animation: fadeIn 1s ease-in-out;
}

.shop p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #93a8ac;
}

/* Footer */
footer {
    background-color: #000000;
    padding: 20px;
    text-align: center;
    position: relative;
    margin-top: 20px;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info a {
    color: #F8333C;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
    color: #D32F36;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.social-icon {
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #D32F36;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #93A8AC;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #F8333C;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    position: relative;
}

.close {
    color: #000000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #F8333C;
    text-decoration: none;
}

.auth-form {
    text-align: center;
}

.auth-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #000000;
}

.auth-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #000000;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    border-color: #F8333C;
    outline: none;
}

.auth-form a {
    color: #F8333C;
    text-decoration: none;
}

.auth-form a:hover {
    text-decoration: underline;
    color: #D32F36;
}

/* Projects Section */
.projects {
    padding: 60px 20px;
    background-color: #111111;
    text-align: center;
}

.projects-content {
    max-width: 1000px;
    margin: 0 auto;
}

.projects h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #93a8ac;
    animation: fadeIn 1s ease-in-out;
}

.project-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    flex: 1 1 250px;
    max-width: 300px;
    color: #ffffff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Audio Player */
.audio-player {
    background-color: #000000;
    padding: 60px 20px;
    text-align: center;
}

.audio-player h2 {
    font-size: 32px;
    color: #93a8ac;
    margin-bottom: 20px;
}

.audio-player audio {
    width: 100%;
    max-width: 500px;
}

/* Featured Products */
.featured-products {
    background-color: #111111;
    padding: 60px 20px;
    text-align: center;
}

.featured-products h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #93a8ac;
}

.product-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.product-card {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: #ffffff;
    max-width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Ensure product-card border visible in light mode */
body.light-mode .product-card {
    border: 1px solid #ccc;
}

.product-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Quote Generator */
.quote-generator {
    background-color: #000000;
    padding: 60px 20px;
    text-align: center;
}

.quote-generator h2 {
    font-size: 32px;
    color: #93a8ac;
    margin-bottom: 20px;
}

#quote-box {
    font-size: 20px;
    color: #ffffff;
    font-style: italic;
    margin-bottom: 20px;
}

/* Marquee Text */
.marquee-text {
    display: inline-block;
    animation: marquee 20s linear infinite;
    padding-left: 100%;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .text-content {
        text-align: center;
    }
    .rotating-gif {
        width: 300px;
        height: 300px;
        margin-top: 20px;
    }
    .contact, .shop {
        padding: 40px 10px;
    }
    .navbar {
        flex-direction: column;
        padding: 0.5rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    .text-bar {
        font-size: 14px;
        padding: 8px;
    }
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}

/* Theme Switch Toggle */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

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

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

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

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