/* Navigation Styles */
.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 12px 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    height: 60px;
    border-radius: 100px;
    width: 95%;
    max-width: 1300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: none;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 15px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-logo {
    font-size: 2em;
    font-weight: 800;
    background: linear-gradient(45deg, var(--text) 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.nav-link, .nav-page {
    color: var(--text);
    text-decoration: none;
    font-size: 1em;
    transition: all 0.3s ease;
    padding: 10px 15px;
    display: block;
    position: relative;
    opacity: 0.8;
}

/* Hover underline effect */
.nav-link::after, .nav-page::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--text);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover, .nav-page:hover {
    opacity: 1;
    color: var(--text);
}

.nav-link.active, .nav-page.active {
    color: var(--text);
    opacity: 1;
}

.nav-item {
    position: relative;
    padding: 0 5px;
}

.nav-item:hover {
    z-index: 1000;
}

/* Update Properties dropdown styles */
.nav-item:has(> .nav-link) {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(29, 185, 84, 0.1);
    border-radius: 8px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
    z-index: 1000;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 8px 12px;
    color: var(--text);
    font-size: 0.9em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background: rgba(29, 185, 84, 0.1);
    color: var(--secondary);
    transform: translateX(3px);
}

.nav-dropdown a:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-btn {
    background: var(--secondary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.contact-btn:hover {
    background: #1ed760;
    transform: translateY(-2px);
}

/* Update responsive styles */
@media (max-width: 768px) {
    .nav {
        top: 10px;
        padding: 10px 15px;
    }
    
    .logo {
        height: 35px;
    }
}

/* Property lookup link animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-lookup-link {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.property-lookup-link:hover {
    opacity: 1;
}

.nav-page {
    color: var(--text);
    text-decoration: none;
    font-size: 1em;
    transition: all 0.3s ease;
    padding: 10px 15px;
    display: block;
    position: relative;
    opacity: 0.8;
}

.nav-page.active {
    color: var(--secondary);
    opacity: 1;
}

.nav-page.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(1);
}

/* Prevent content from jumping when nav is fixed */
body {
    padding-top: 100px;
}

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