:root {
    --bg-color: #ffffff;
    --text-color: #333;
    --bg-alt-color: #f4f7f6;
    --primary-color: #4CAF50; /* Material Green */
    --primary-hover-color: #43A047; /* Darker Green */
    --card-bg-color: #ffffff;
    --card-shadow-color: rgba(0,0,0,0.08);
    --nav-shadow-color: rgba(0,0,0,0.1);
    --footer-bg-color: #333;
    --footer-text-color: #fff;
}

body.dark-theme {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --bg-alt-color: #1e1e1e;
    --primary-color: #4CAF50; /* Material Green */
    --primary-hover-color: #66BB6A; /* Lighter Green */
    --card-bg-color: #1e1e1e;
    --card-shadow-color: rgba(0,0,0,0.4);
    --nav-shadow-color: rgba(0,0,0,0.5);
    --footer-bg-color: #1e1e1e;
    --footer-text-color: #e0e0e0;
}

/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    background: var(--card-bg-color);
    box-shadow: 0 2px 4px var(--nav-shadow-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo img {
    height: 40px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.theme-switcher {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    background: var(--bg-alt-color);
    color: var(--text-color);
    text-align: center;
    padding: 80px 0;
    transition: background-color 0.3s;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.hero-logo {
    max-width: 350px;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover-color);
}

.notify-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.form-main-action {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.form-submit-action {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.notify-form input,
.notify-form select {
    padding: 10px 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    min-width: 250px;
    font-size: 0.9rem;
    background: var(--card-bg-color);
    color: var(--text-color);
    flex: 1;
    max-width: 100%;
}

.notify-form select {
    cursor: pointer;
}

.notify-form select option {
    background: var(--card-bg-color);
    color: var(--text-color);
}

.notify-form button {
    border: none;
}

/* Main Content Sections */
main section {
    padding: 60px 0;
    text-align: center;
}

#gallery {
    padding-bottom: 100px;
}

main section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.feature-item {
    background: var(--card-bg-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--card-shadow-color);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.feature-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Gallery Section */
#gallery {
    background: var(--bg-alt-color);
    transition: background-color 0.3s;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.gallery-nav-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.gallery-nav-btn:hover:not(:disabled) {
    background: var(--primary-hover-color);
}

.gallery-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.set-indicators {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.bullet.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.bullet:hover {
    background: var(--primary-hover-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Waitlist Section */
.waitlist-section {
    background: var(--bg-alt-color);
    padding: 60px 20px;
    text-align: center;
}

.waitlist-section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.waitlist-section .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Legal Pages */
.legal-page {
    text-align: left;
    max-width: 800px; /* Constrain width for readability */
    margin: 0 auto;
}

.legal-page h2, .legal-page h3 {
    text-align: center;
}

.legal-page h3 {
    margin-top: 40px;
    color: var(--primary-color);
}

.legal-page ul {
    padding-left: 20px;
}

.legal-page a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer a,
footer a:visited {
    color: #6B8E23; /* Olive Green */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Image Modal (Lightbox) */
.gallery-grid img {
    cursor: pointer; /* Add pointer to show it's clickable */
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Premium Interest Checkbox & Tooltip */
.premium-interest {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    color: var(--text-color);
    flex-wrap: wrap;
    gap: 15px;
}

.premium-label {
    font-size: 0.9rem;
    cursor: pointer;
}

/* The switch - a wrapper for the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-color);
}

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

/* Rounded sliders */
.slider.round {
  border-radius: 28px;
}

.slider.round:before {
  border-radius: 50%;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.info-icon {
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background-color 0.3s, color 0.3s;
}

.tooltip-container:hover .info-icon {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.tooltip-text {
    visibility: hidden;
    width: 240px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px 15px;
    position: absolute;
    z-index: 1;
    bottom: 140%;
    left: 50%;
    margin-left: -120px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text strong {
    color: var(--primary-color);
}

.tooltip-text ul {
    padding-left: 20px;
    margin: 8px 0 0;
    list-style-type: disc;
}

.tooltip-text li {
    margin-bottom: 5px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .form-main-action {
        flex-direction: column;
        gap: 15px;
    }
    
    .notify-form input,
    .notify-form select {
        min-width: unset;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .premium-interest {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .tooltip-text {
        width: 280px;
        margin-left: -140px;
        left: 50%;
        transform: translateX(-50%);
    }
}
