:root {
    --primary-bg: #1a1a1a; /* Dark grey / near black */
    --secondary-bg: #2c2c2c; /* Slightly lighter grey for elements */
    --text-color: #f0f0f0; /* Light grey / off-white */
    --accent-color: #007bff; /* A generic accent, can be changed */
    --border-color: #444;
    --font-family: 'Lato', sans-serif;
    --header-height: 80px;
    --mobile-header-height: 70px;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Enhanced Header Styles */
header {
    background-color: var(--secondary-bg);
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.translucent-header {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Styles */
header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

header .logo a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

header .logo a:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
    text-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

header .logo a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #00d4ff);
    transition: width 0.3s ease;
}

header .logo a:hover::after {
    width: 100%;
}

/* Navigation Styles */
.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-item {
    margin: 0;
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px;
    margin: 0 4px;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #00d4ff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 60%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--accent-color);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background-color: var(--accent-color);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    :root {
        --header-height: var(--mobile-header-height);
    }
    
    header {
        height: var(--mobile-header-height);
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    header .logo {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    header .logo a::after {
        display: none;
    }
    
    /* Hide desktop navigation */
    .main-nav {
        position: fixed;
        top: var(--mobile-header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--mobile-header-height));
        background-color: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: left 0.3s ease;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 20px;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        transform: translateX(-20px);
        animation: slideInLeft 0.3s ease forwards;
    }
    
    .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .nav-item:nth-child(3) { animation-delay: 0.3s; }
    
    @keyframes slideInLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-link {
        padding: 20px 30px;
        font-size: 1.1rem;
        text-align: center;
        border-radius: 0;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: none;
        box-shadow: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 10px;
    }
    
    header .logo {
        font-size: 1.3rem;
    }
    
    .nav-link {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }
}

section {
    padding: 60px 0;
    text-align: center;
}

section:nth-child(even) {
    background-color: var(--secondary-bg);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

p {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 20px;
    max-width: 700px; /* For readability of paragraphs */
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

#hero {
    position: relative; /* Establishes a positioning context for children */
    min-height: 70vh; /* Or your desired height */
    display: flex; /* To center the .hero-content */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Important to contain the video */
    color: white; /* Default text color for hero content */
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Crucial for object-fit to work as expected */
    z-index: -2; /* Behind overlay and content */
}

#hero-bg-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* This makes the video cover the area, cropping if necessary */
}

/* Image-based hero support */
.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Crucial for object-fit to work as expected */
    z-index: -2; /* Behind overlay and content */
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover area, cropping if necessary */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Adjust color and opacity as needed */
    z-index: -1; /* Sits on top of the video, but behind the content */
}

#hero .hero-content {
    position: relative; /* Ensures it's above the overlay */
    z-index: 1; /* Stacking order */
    padding: 20px; /* Add some padding if needed */
}

#hero .hero-content h2 {
    font-size: 3rem; /* Adjust as needed */
    font-weight: 700;
    margin-bottom: 0.5em;
}

#hero .hero-content .subtitle {
    font-size: 1.5rem; /* Adjust as needed */
    font-weight: 300;
}

/* Optional: Style for a button if you add one in hero-content */
#hero .hero-content .btn {
    margin-top: 20px;
    border-color: white;
    color: white;
}
#hero .hero-content .btn:hover {
    background-color: white;
    color: var(--primary-bg);
}


/* Why Urbanite & About Section Layout */
.content-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    text-align: left;
}
.content-layout .text-content {
    flex: 1;
    min-width: 300px;
}
.content-layout .text-content p {
    max-width: none; /* Override centered paragraph for this layout */
}
.content-layout .image-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
}
.content-layout .image-content img, .image-content video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    filter: grayscale(50%); /* Mimicking b&w/muted style from video */
}
#why-urbanite .image-content img {
    max-height: 350px;
    object-fit: cover;
}

/* Platform Section */
#platform .platform-features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}
.platform-features .feature {
    flex-basis: 30%;
    min-width: 280px;
    background-color: var(--primary-bg); /* Slightly different from section bg if section is secondary */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.platform-features .feature:hover {
    transform: translateY(-5px);
}
.platform-features .feature .feature-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    filter: grayscale(70%);
}
.platform-features .feature h3 {
    color: var(--text-color);
}

/* Intro Video Section */
#intro-video .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 20px auto;
    border: 2px solid var(--border-color);
    border-radius: 8px;
}
#intro-video .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#intro-video .video-caption {
    font-size: 0.9rem;
    margin-top: 10px;
    color: #aaa;
}

/* Image Background Sections (Position Paper, Subscribe) */
.image-bg-section {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white; /* Text color on dark overlay */
    padding: 100px 0;
}
.image-bg-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7); /* Dark overlay */
    z-index: 1;
}
.image-bg-section .content-over-bg {
    position: relative;
    z-index: 2;
}
#position-paper {
    background-image: url('https://images.unsplash.com/photo-1542649768-99324237A159?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NHx8YWVyaWFsJTIwcm9hZHxlbnwwfHwwfHx8MA%3D&auto=format&fit=crop&w=1000&q=80');
}
#subscribe {
     background-image: url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8Y2l0eSUyMHNreWxpbmV8ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=1000&q=80');
}

/* Value Proposition Section */
#value-proposition .value-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.value-columns .value-column {
    flex-basis: 30%;
    min-width: 280px;
    text-align: left; /* Align text left within columns */
    padding: 20px;
    background: var(--primary-bg);
    border-radius: 5px;
}
.value-columns .value-column h3 {
    text-align: center;
}

/* Subscribe Form */
.subscribe-form {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.subscribe-form input[type="email"] {
    padding: 12px 15px;
    min-width: 250px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: #f0f0f0;
    color: var(--primary-bg);
    font-size: 1rem;
}
.subscribe-form input[type="email"]::placeholder {
    color: #555;
}


/* FAQ Section */
#faq .faq-contact {
    margin-bottom: 30px;
    font-size: 0.9rem;
}
#faq .faq-contact a {
    color: var(--text-color);
    text-decoration: underline;
}
.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--secondary-bg); /* Ensure contrast if section bg is primary */
}
.faq-question {
    background-color: transparent;
    color: var(--text-color);
    border: none;
    width: 100%;
    padding: 15px 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}
.faq-question::after {
    content: '+'; /* Collapsed state */
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.2s;
}
.faq-question.active::after {
    content: '−'; /* Expanded state */
}
.faq-answer {
    padding: 0 20px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    text-align: left;
    background-color: var(--secondary-bg);
}
.faq-answer p, .faq-answer ul {
    margin-bottom: 10px;
    max-width: none;
}
.faq-answer ul {
    list-style-position: inside;
    padding-left: 10px;
}
.faq-answer li {
    margin-bottom: 5px;
}

/* Founder Section */
#founder .founder-profile {
    max-width: 600px;
    margin: 0 auto;
}
.founder-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--border-color);
    filter: grayscale(100%); /* Black and white as in video */
}

/* Footer */
footer {
    background-color: var(--secondary-bg);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    .content-layout {
        flex-direction: column;
    }
    .platform-features .feature,
    .value-columns .value-column {
        flex-basis: 100%;
    }
    #hero {
        min-height: 50vh;
    }
    #hero h2 {
        font-size: 2.5rem;
    }
    #hero .subtitle {
        font-size: 1.2rem;
    }

}



/* Neighborhood Tool (reuses your palette & inputs) */
#neighborhood-tool input[type="text"],
#neighborhood-tool input[type="email"] {
  padding: 12px 15px;
  min-width: 280px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background-color: #f0f0f0;
  color: var(--primary-bg);
  font-size: 1rem;
  margin-right: 8px;
}
#neighborhood-tool input::placeholder {
  color: #555;
}

#preview-results .card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px;
  text-align: left;
}
#preview-results .kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
#preview-results .kpi {
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
}
#preview-results .map-wrap {
  position: relative;
  margin-top: 12px;
}
#preview-results .overlay-slider {
  width: 100%;
  max-width: 500px;
  margin-top: 8px;
}

/* Position Paper Email Capture Form */
.email-capture-form {
    max-width: 500px;
    margin: 30px auto 0;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.paper-form {
    width: 100%;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.form-group input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #0056b3);
    border: none;
    color: white;
    padding: 15px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.form-message {
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    min-height: 20px;
    transition: all 0.3s ease;
}

.form-message.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.form-message.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.form-message.loading {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

/* Mobile responsive for form */
@media (max-width: 768px) {
    .email-capture-form {
        margin: 20px 15px 0;
        padding: 25px 20px;
    }
    
    .form-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary {
        width: 100%;
        padding: 18px 25px;
    }
}
