/* 3D Navigation Effects */
.nav-3d {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.nav-3d.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateZ(50px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    transform: translateZ(20px);
    transition: all 0.3s ease;
}

.logo h1:hover {
    transform: translateZ(30px) scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transform-style: preserve-3d;
}

.nav-item-3d {
    position: relative;
    margin: 0 15px;
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.nav-item-3d:hover {
    transform: translateZ(20px) rotateX(5deg);
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    transform-style: preserve-3d;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    transform: translateZ(10px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* 3D Dropdown Effects */
.dropdown-3d {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) rotateX(-15deg);
    transform-origin: top center;
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-3d {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) rotateX(0deg);
}

.dropdown-3d a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.dropdown-3d a:hover {
    background: #f8f9fa;
    color: #007bff;
    transform: translateX(5px);
}

.dropdown-3d a:last-child {
    border-bottom: none;
}

/* 3D Hero Section */
.hero-3d {
    height: 100vh;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
    background-image: url('../attached_assets/generated_images/Luxury_home_hero_background_b7d12fde.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.property-slider-3d {
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.slider-container {
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.slide-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateZ(-100px) rotateY(45deg);
    transition: all 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-3d.active {
    opacity: 1;
    transform: translateZ(0) rotateY(0deg);
}

.slide-3d.prev {
    transform: translateZ(-50px) rotateY(-15deg);
    opacity: 0.5;
}

.slide-3d.next {
    transform: translateZ(-50px) rotateY(15deg);
    opacity: 0.5;
}

.slide-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transform: translateZ(50px);
    max-width: 600px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* 3D Slider Controls */
.slider-controls-3d {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    transform: translateY(-50%);
}

.prev-btn-3d,
.next-btn-3d {
    width: 60px;
    height: 60px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    transform: translateZ(30px);
}

.prev-btn-3d:hover,
.next-btn-3d:hover {
    background: rgba(0, 123, 255, 0.8);
    transform: translateZ(40px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}

/* 3D Pagination */
.pagination-3d {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot-3d {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateZ(20px);
}

.dot-3d.active,
.dot-3d:hover {
    background: white;
    transform: translateZ(30px) scale(1.2);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* 3D Search Section */
.search-section-3d {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    perspective: 1000px;
}

.search-card-3d {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transform: translateZ(20px) rotateX(5deg);
    transition: all 0.3s ease;
    max-width: 900px;
    margin: 0 auto;
}

.search-card-3d:hover {
    transform: translateZ(30px) rotateX(0deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.search-card-3d h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.search-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 120px;
    gap: 15px;
    align-items: end;
}

.search-field-3d {
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.search-field-3d:hover {
    transform: translateZ(20px);
}

.search-field-3d input,
.search-field-3d select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.search-field-3d input:focus,
.search-field-3d select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
    transform: translateZ(5px);
}

.search-btn-3d {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateZ(15px);
}

.search-btn-3d:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateZ(25px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

/* 3D Video Section */
.video-section-3d {
    padding: 100px 0;
    background: #fff;
    perspective: 1200px;
}

.video-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    transform-style: preserve-3d;
}

.video-card-3d {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateZ(20px) rotateX(5deg);
    transition: all 0.4s ease;
}

.video-card-3d:hover {
    transform: translateZ(40px) rotateX(0deg) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.video-3d {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.video-card-3d h3 {
    padding: 20px 20px 10px;
    margin: 0;
    color: #333;
}

.video-card-3d p {
    padding: 0 20px 20px;
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* 3D Contact Form */
.contact-section-3d {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    perspective: 1000px;
}

.contact-form-3d {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transform: translateZ(30px);
    transition: all 0.3s ease;
}

.contact-form-3d:hover {
    transform: translateZ(50px) rotateX(2deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.contact-form-3d h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field-3d {
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.form-field-3d:hover {
    transform: translateZ(20px);
}

.form-field-3d input,
.form-field-3d textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-field-3d input:focus,
.form-field-3d textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
    transform: translateZ(5px);
}

.recaptcha-3d {
    margin: 20px 0;
    transform: translateZ(15px);
    display: flex;
    justify-content: center;
}

.submit-btn-3d {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateZ(20px);
}

.submit-btn-3d:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateZ(30px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

/* 3D Logo Carousel */
.logo-carousel-section-3d {
    padding: 100px 0;
    background: #fff;
    perspective: 1200px;
}

.logo-carousel-3d {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.logo-track-3d {
    display: flex;
    animation: scroll3d 20s linear infinite;
    transform-style: preserve-3d;
}

.logo-item-3d {
    flex: 0 0 150px;
    height: 80px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateZ(20px) rotateY(5deg);
    transition: all 0.3s ease;
}

.logo-item-3d:hover {
    transform: translateZ(40px) rotateY(0deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.logo-item-3d img {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
}

@keyframes scroll3d {
    0% {
        transform: translateX(0) translateZ(0);
    }
    100% {
        transform: translateX(-100%) translateZ(-50px);
    }
}

.carousel-controls-3d {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-prev-3d,
.carousel-next-3d {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 123, 255, 0.8);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    transform: translateZ(30px);
}

.carousel-prev-3d:hover,
.carousel-next-3d:hover {
    background: rgba(0, 86, 179, 0.9);
    transform: translateZ(40px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* 3D Footer */
.footer-3d {
    background: linear-gradient(135deg, #333, #222);
    color: white;
    padding: 60px 0 30px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

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

.footer-section {
    transform: translateZ(20px);
    transition: all 0.3s ease;
}

.footer-section:hover {
    transform: translateZ(30px) rotateX(5deg);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #007bff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #007bff;
    transform: translateX(5px);
}

.social-links-3d {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link-3d {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateZ(15px);
}

.social-link-3d:hover {
    background: #0056b3;
    transform: translateZ(25px) rotateY(360deg);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

/* Mobile Responsiveness for 3D Effects */
@media (max-width: 768px) {
    .search-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .video-grid-3d {
        grid-template-columns: 1fr;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    /* Reduce 3D effects on mobile for better performance */
    .nav-item-3d:hover,
    .search-field-3d:hover,
    .form-field-3d:hover {
        transform: translateZ(10px);
    }
    
    .video-card-3d:hover {
        transform: translateZ(20px);
    }
    
    /* Hamburger Menu */
    .hamburger {
        display: none;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: #333;
        margin: 3px 0;
        transition: 0.3s;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    @media (max-width: 768px) {
        .hamburger {
            display: flex;
        }
        
        .nav-menu {
            position: fixed;
            left: -100%;
            top: 70px;
            flex-direction: column;
            background-color: white;
            width: 100%;
            text-align: center;
            transition: 0.3s;
            box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
            padding: 20px 0;
        }
        
        .nav-menu.active {
            left: 0;
        }
        
        .nav-item-3d {
            margin: 10px 0;
        }
        
        .dropdown-3d {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            box-shadow: none;
            background: #f8f9fa;
            margin-top: 10px;
        }
    }
}

@media (max-width: 480px) {
    .logo-track-3d {
        animation-duration: 15s;
    }
    
    .logo-item-3d {
        flex: 0 0 120px;
        margin: 0 15px;
    }
}
