/* Dark Theme Base */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
}

a {
    color: #9358ff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: #ffffff;
    transform: scale(1.05);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #ffffff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}

.nav-links li a {
    font-size: 1.1em;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
}

.nav-links li a:hover {
    background: rgba(111, 66, 193, 0.2);
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 4px;
    width: 30px;
    background: #ffffff;
    margin: 5px 0;
    transition: 0.4s;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(135deg, #1e1e1e, #121212);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(111, 66, 193, 0.4), rgba(13, 110, 253, 0.3));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: auto;
}

.typing-animation {
    font-size: 3.5em;
    border-right: 0.15em solid #ffffff;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(20, end), blink-caret 0.75s step-end infinite;
}

.subtitle {
    font-size: 1.7em;
    margin: 15px 0;
    color: #d1d1d1;
}

.housing-icon {
    width: 100px;
    height: 100px;
    margin-top: 20px;
    transition: transform 0.5s ease;
    loading: lazy;
}

.housing-icon:hover {
    transform: scale(1.1);
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: #6f42c1;
    color: #ffffff;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 1.2em;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background: #ffffff;
    color: #6f42c1;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(25, 135, 84, 0.5);
}

/* Sections */
.section {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.6);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13, 110, 253, 0.15), rgba(111, 66, 193, 0.15));
    z-index: 0;
}

.section-content {
    position: relative;
    z-index: 1;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    text-align: center;
}

.model-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.model-img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    loading: lazy;
}

.chart {
    max-width: 100%;
    margin: 20px 0;
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

/* Contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: auto;
}

input, textarea {
    padding: 12px;
    border: 1px solid #333333;
    border-radius: 6px;
    background: rgba(40, 40, 40, 0.8);
    color: #e0e0e0;
    font-size: 1em;
}

textarea {
    resize: vertical;
}

.social-links {
    text-align: center;
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    font-size: 1.2em;
    padding: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background: #1e1e1e;
    font-size: 0.95em;
    border-top: 1px solid #333333;
}

/* Animations */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #ffffff; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #1e1e1e;
        padding: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 80px 20px;
    }

    .typing-animation {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.3em;
    }

    .section {
        padding: 25px;
        margin: 30px 15px;
    }
}

@media (max-width: 480px) {
    .housing-icon {
        width: 80px;
        height: 80px;
    }

    .typing-animation {
        font-size: 2em;
    }
}