/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #e8eee4;
    --text: #1a1a1a;
    --white: #e8eee4;
    --input-bg: rgba(26, 26, 26, 0.05);
    --scrollbar-track: rgba(26, 26, 26, 0.03);
    --scrollbar-thumb: rgba(26, 26, 26, 0.15);
    --scrollbar-thumb-hover: rgba(26, 26, 26, 0.25);
    --scrollbar-width: 2px;
    /* Dark subtle scrollbar colors for modal state */
    --scrollbar-track-dark: #2a2a2a;
    --scrollbar-thumb-dark: rgba(0, 0, 0, 0.2);
    --scrollbar-thumb-hover-dark: rgba(0, 0, 0, 0.3);
    --dot-size: 3px;
    --dot-space: 60px;
}

/* Interactive Dot Grid */
.dot-grid, .dot, .dot.visible, .dot.active {
    display: none;
}

/* Modern Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        linear-gradient(to right, rgba(26, 26, 26, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26, 26, 26, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridFloat 15s linear infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(to right, rgba(26, 26, 26, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26, 26, 26, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridFloat 20s linear infinite reverse;
}

/* Radial gradient overlay for depth */
.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(232, 238, 228, 0) 0%,
        rgba(232, 238, 228, 0.2) 40%,
        rgba(232, 238, 228, 0.8) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* Grid animation */
@keyframes gridFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5px, 5px) rotate(0.5deg);
    }
    50% {
        transform: translate(0, 10px) rotate(0deg);
    }
    75% {
        transform: translate(-5px, 5px) rotate(-0.5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Add subtle blur to grid when modal is open */
body.modal-open::before,
body.modal-open::after {
    filter: blur(3px);
    opacity: 0.5;
    transition: all 0.4s ease;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
    line-height: 1.5;
    /* Prevent content shift when modal opens */
    padding-right: var(--scrollbar-width);
}

/* Prevent double scrollbar when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Adjust header position to account for scrollbar */
.header {
    right: var(--scrollbar-width);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Scrollbar Corner */
::-webkit-scrollbar-corner {
    background: transparent;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Custom Scrollbar for Popups */
.catalog-content::-webkit-scrollbar,
.nav-content::-webkit-scrollbar {
    width: 1px;
}

.catalog-content::-webkit-scrollbar-thumb,
.nav-content::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
}

.catalog-content::-webkit-scrollbar-track,
.nav-content::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

/* Show slightly wider scrollbar on hover for better usability */
.catalog-content:hover::-webkit-scrollbar,
.nav-content:hover::-webkit-scrollbar {
    width: 2px;
}

/* Add smooth transition for scrollbar width change */
.catalog-content,
.nav-content {
    transition: padding-right 0.3s ease;
}

/* Adjust modal positioning */
.nav-menu,
.catalog-popup {
    padding-right: var(--scrollbar-width);
}

.nav-content,
.catalog-content {
    margin-right: calc(var(--scrollbar-width) * -1);
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: var(--scrollbar-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    z-index: 10;
    background-color: var(--background);
}

.logo {
    background-color: var(--text);
    color: var(--white);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text);
}

.contact-btn {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.contact-btn:hover {
    opacity: 0.7;
}

.contact-btn .arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.contact-btn:hover .arrow {
    transform: translateX(5px);
}

/* Glassmorphism Menu Styles */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    height: 100vh;
    background: var(--background);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 9;
    display: flex;
    flex-direction: column;
}

.nav-menu.active {
    right: 0;
}

.nav-content {
    height: 100%;
    padding: 6rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 1.5rem 0;
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.nav-menu.active .nav-links li {
    transform: translateX(0);
    opacity: 1;
}

.nav-menu.active .nav-links li:nth-child(1) { transition-delay: 0.1s; }
.nav-menu.active .nav-links li:nth-child(2) { transition-delay: 0.2s; }
.nav-menu.active .nav-links li:nth-child(3) { transition-delay: 0.3s; }
.nav-menu.active .nav-links li:nth-child(4) { transition-delay: 0.4s; }
.nav-menu.active .nav-links li:nth-child(5) { transition-delay: 0.5s; }

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 400;
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -30px;
    width: 20px;
    height: 2px;
    background-color: var(--text);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.nav-link:hover::before {
    transform: scaleX(1);
}

.menu-footer {
    margin-top: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    transition-delay: 0.6s;
}

.nav-menu.active .menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.menu-footer .social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.menu-footer .social-links a {
    color: var(--text);
    font-size: 1.25rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.menu-footer .social-links a:hover {
    opacity: 1;
}

.menu-footer .contact-info {
    margin-top: 2rem;
}

.menu-footer .contact-info p {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-footer .contact-info i {
    width: 20px;
}

.menu-footer .contact-info a {
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.menu-footer .contact-info a:hover {
    opacity: 1;
}

/* Menu Toggle Button */
.menu-toggle {
    z-index: 10;
    width: 30px;
    height: 30px;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    position: absolute;
    transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu-toggle span:nth-child(1) {
    transform: translateY(-8px);
}

.menu-toggle span:nth-child(3) {
    transform: translateY(8px);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 8;
}

.nav-menu.active + .nav-overlay {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .nav-menu {
        width: 100%;
    }

    .nav-content {
        padding: 5rem 2rem;
    }

    .nav-link {
        font-size: 1.75rem;
    }

    .menu-footer .social-links {
        gap: 1rem;
    }

    .menu-footer .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 8rem 3rem 3rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.text-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text);
    max-width: 500px;
    margin-top: 0.75rem;
}

h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1px;
    max-width: 700px;
}

.discuss-btn {
    background-color: var(--input-bg);
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
    border-radius: 100px;
    align-self: flex-start;
    margin-top: -0.25rem;
}

/* Project Showcase */
.project-showcase {
    position: relative;
}

.image-frame {
    width: 100%;
    height: calc(100vh - 16rem);
    clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 85%);
    overflow: hidden;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    position: absolute;
    bottom: 2rem;
    left: 0;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.project-number {
    font-size: 16px;
    font-weight: 500;
}

.project-title {
    font-size: 24px;
    font-weight: 500;
}

/* Calculator Section */
.calculator {
    padding: 6rem 3rem;
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2rem;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
}

.form-group select,
.form-group input,
.form-row input {
    background-color: var(--input-bg);
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}

.number-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--input-bg);
    padding: 8px 12px;
    border-radius: 4px;
}

.number-selector button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text);
}

.submit-btn {
    background-color: var(--text);
    color: var(--background);
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* Additional Image */
.additional-image {
    padding: 0 3rem;
    margin: 4rem 0;
}

.additional-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Houses Section */
.houses {
    padding: 6rem 3rem;
}

.houses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.full-catalog {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.house-video {
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.house-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.house-card {
    background-color: var(--background);
    color: var(--text);
    border-radius: 4px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.house-image {
    height: 400px;
}

.house-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.house-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--background);
}

.house-info h3 {
    font-size: 32px;
    font-weight: 500;
}

.house-specs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec .label {
    opacity: 0.7;
    font-size: 14px;
}

.spec .value {
    font-size: 14px;
}

.view-project {
    background: none;
    border: 1px solid var(--text);
    color: var(--text);
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    align-self: flex-start;
    margin-top: auto;
    transition: opacity 0.3s ease;
}

.view-project:hover {
    opacity: 0.7;
}

.navigation {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Video Navigation Buttons */
.video-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.video-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* House Navigation Buttons */
.house-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.house-nav-btn:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    h1 {
        font-size: 48px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .image-frame {
        height: 60vh;
    }

    .house-card {
        grid-template-columns: 1fr;
    }
    
    .house-video {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 1.5rem;
    }
    
    h1 {
        font-size: 36px;
    }

    .calculator,
    .houses {
        padding: 4rem 1.5rem;
    }

    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .subtitle {
        font-size: 16px;
    }
    
    h1 {
        font-size: 32px;
    }
}

/* Services Section */
.services {
    padding: 6rem 3rem;
    background-color: var(--background);
}

.services h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.package-subtitle {
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.package-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.package-features li i {
    color: var(--text);
    font-size: 1rem;
    margin-top: 0.2rem;
}

.package-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    opacity: 0.7;
    font-size: 0.85rem;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.marketing-header {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.marketing-subitem {
    padding-left: 1rem;
    opacity: 0.9;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services {
        padding: 4rem 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* About Section */
.about {
    padding: 3rem 0 0 0;
    background-color: var(--background);
}

.about h2 {
    position: static;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(26, 26, 26, 0.8);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.stat-item p {
    font-size: 1rem;
    margin: 0;
}

/* About Image Section */
.about-image {
    width: 100%;
    margin: 1rem auto;
    overflow: hidden;
    max-width: 800px;
}

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .about {
        padding: 2rem 0 0 0;
    }
    
    .about-image {
        margin: 1rem auto;
    }
    
    .stats {
        gap: 1rem;
    }
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--background);
}

.contact h2 {
    position: static;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text);
    text-align: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 4px;
    background-color: var(--background);
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn:hover {
    background-color: #333;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--text);
}

.info-item p {
    font-size: 1rem;
    color: rgba(26, 26, 26, 0.8);
}

.info-item p a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.info-item p a:hover {
    opacity: 0.7;
}

/* Footer */
.footer {
    background-color: var(--background);
    color: var(--text);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text);
    font-size: 1.5rem;
    margin: 0 15px;
    opacity: 0.7;
    transition: all 0.3s ease;
    text-decoration: none;  /* Add this line to remove underline */
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 2rem 2rem;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .services,
    .about,
    .contact {
        padding: 4rem 1.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-content {
        padding: 0 1rem;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        padding: 1.5rem 1rem;
    }
}

/* Project Info Styles */
.project-info {
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 4px;
}

.specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-label {
    font-size: 0.9rem;
    color: rgba(26, 26, 26, 0.6);
}

.spec-value {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.learn-more:hover {
    opacity: 0.7;
}

/* Form Elements */
select,
input[type="text"],
input[type="email"],
input[type="tel"] {
    background-color: var(--background);
    border: 1px solid rgba(26, 26, 26, 0.1);
}

/* Navigation */
.nav-links.active {
    background-color: var(--background);
}

@media (max-width: 768px) {
    .nav-links.active {
        background-color: var(--background);
    }
}

/* House Slider */
.house-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.house-cards {
    position: relative;
    width: 100%;
}

.house-card {
    position: absolute;
    width: 100%;
    transition: transform 0.5s ease;
}

.house-card.active {
    position: relative;
}

/* Catalog Popup */
.catalog-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem;
    overflow-y: auto;
}

.catalog-popup.active {
    opacity: 1;
    visibility: visible;
}

.catalog-content {
    background: var(--background);
    width: 90%;
    max-width: 1200px;
    max-height: calc(100vh - 8rem);
    border-radius: 0;
    padding: 2.5rem 2rem;
    position: relative;
    overflow-y: auto;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s ease;
    margin: auto;
}

.catalog-popup.active .catalog-content {
    transform: scale(1);
    opacity: 1;
}

/* Prevent content shift when modal opens */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width);
    margin-right: calc(var(--scrollbar-width) * -1);
}

@media (max-width: 900px) {
    .catalog-popup {
        padding: 2rem;
    }
    
    .catalog-content {
        width: 100%;
        max-width: 100%;
        padding: 2rem 1rem;
    }
}

.close-catalog {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text);
    padding: 0.5rem;
    line-height: 1;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.catalog-item {
    background: var(--background);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.catalog-item:hover {
    transform: translateY(-5px);
}

.catalog-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.catalog-info {
    padding: 1.5rem;
}

.catalog-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.catalog-info p {
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.catalog-info .price {
    font-weight: 500;
    opacity: 1;
}

@media (max-width: 1300px) {
    .catalog-content {
        max-width: 98vw;
    }
}

@media (max-width: 900px) {
    .catalog-content {
        width: 98vw;
        max-width: 98vw;
        padding: 1.5rem 0.5rem;
    }
    .catalog-popup {
        padding: 1.5rem;
    }
}

/* Subtle dark scrollbar for modal content */
.nav-menu.active::-webkit-scrollbar,
.catalog-popup.active::-webkit-scrollbar {
    width: 1px;
}

.nav-menu.active::-webkit-scrollbar-track,
.catalog-popup.active::-webkit-scrollbar-track {
    background: var(--scrollbar-track-dark);
}

.nav-menu.active::-webkit-scrollbar-thumb,
.catalog-popup.active::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-dark);
}

.nav-menu.active::-webkit-scrollbar-thumb:hover,
.catalog-popup.active::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-dark);
}

/* Dark scrollbar when modal is open */
body.modal-open::-webkit-scrollbar-track {
    background: var(--scrollbar-track-dark);
}

body.modal-open::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-dark);
}

body.modal-open::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-dark);
}

/* For Firefox - dark scrollbar in modal state */
body.modal-open {
    scrollbar-color: var(--scrollbar-thumb-dark) var(--scrollbar-track-dark);
}

/* Dark scrollbar for modal content in Firefox */
.nav-menu.active,
.catalog-popup.active {
    scrollbar-color: var(--scrollbar-thumb-dark) var(--scrollbar-track-dark);
}

/* Add blur to dots when modal is open */
body.modal-open .dot {
    filter: blur(1px);
    opacity: 0.3;
}

/* Vertical Video Styles */
.vertical-video-container {
    width: 350px;
    height: calc(100vh - 16rem);
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.vertical-video-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.vertical-video-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.vertical-video-slide.active {
    opacity: 1;
}

.vertical-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vertical-video-container .navigation {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.vertical-video-container .nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.vertical-video-container .nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Update responsive styles */
@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .vertical-video-container {
        width: 100%;
        height: 70vh;
        margin: 2rem 0;
    }
}

/* Headline Section */
.headline-section {
    padding: 2rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.headline-section .text-section {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.headline-section h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text);
    text-align: center;
    margin: 0;
}

@media (max-width: 768px) {
    .headline-section {
        padding: 1.5rem 1.5rem;
    }

    .headline-section h1 {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .headline-section {
        padding: 1rem 1.5rem;
    }
    
    .headline-section h1 {
        font-size: 32px;
    }
}

.catalog-play-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Blog Styles */
.blog-header {
    padding: 8rem 3rem 4rem;
    text-align: center;
    background-color: var(--background);
}

.blog-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    padding: 2rem 3rem 6rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-post {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-post.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.post-image {
    height: 300px;
    overflow: hidden;
}

.blog-post.featured .post-image {
    height: 400px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
}

.post-category {
    padding: 0.2rem 0.8rem;
    background: rgba(26, 26, 26, 0.05);
    border-radius: 100px;
}

.blog-post h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post.featured h2 {
    font-size: 2rem;
}

.blog-post p {
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.read-more:hover {
    opacity: 0.7;
}

.read-more .arrow {
    transition: transform 0.3s ease;
}

.read-more:hover .arrow {
    transform: translateX(5px);
}

@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post.featured {
        grid-template-columns: 1fr;
    }

    .blog-post.featured .post-image {
        height: 300px;
    }

    .blog-post.featured h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 6rem 1.5rem 3rem;
    }

    .blog-header h1 {
        font-size: 2.5rem;
    }

    .blog-grid {
        padding: 1.5rem;
    }

    .post-content {
        padding: 1.5rem;
    }
}

/* Blog Post Full Page Styles */
.blog-post-full {
    padding-top: 6rem;
}

.blog-post-header {
    background: var(--background);
    padding: 4rem 0 2rem;
}

.blog-post-header .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: opacity 0.3s ease;
}

.back-to-blog:hover {
    opacity: 0.7;
}

.blog-post-header h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin: 1rem 0 2rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 500;
}

.author-role {
    font-size: 0.9rem;
    opacity: 0.8;
}

.featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.blog-post-content {
    padding: 4rem 0;
}

.blog-post-content .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-wrapper {
    font-size: 1.1rem;
    line-height: 1.8;
}

.lead {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text);
}

.content-wrapper h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-gallery img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

.content-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.content-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text);
}

blockquote {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.05);
    border-left: 4px solid var(--text);
    font-size: 1.3rem;
    line-height: 1.6;
    font-style: italic;
}

.cta-box {
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.05);
    border-radius: 8px;
    text-align: center;
}

.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background: var(--text);
    color: var(--background);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    opacity: 0.9;
}

.share-post {
    margin: 4rem 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.share-links {
    display: flex;
    gap: 1rem;
}

.share-link {
    color: var(--text);
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.share-link:hover {
    opacity: 0.7;
}

.related-posts {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.related-post {
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.related-post h4 {
    font-size: 1.1rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .blog-post-header h1 {
        font-size: 2rem;
    }

    .featured-image {
        max-height: 300px;
    }

    .featured-image img {
        max-height: 300px;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .image-gallery img {
        max-height: 250px;
    }

    .content-wrapper {
        font-size: 1rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    blockquote {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}