.error-name, .error-email, .error-phone, .error-email-valid, .error-phone-valid {
    color: red;
    float: left;
    margin-bottom: 10px;
    display: none;
}

#loading_bottom_1, #loading_bottom_2, #loading_bottom_3 {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -50px 0px 0px -50px;
}

#contactForm {
    position: relative;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a4b8c;
    --secondary: #2d6ec4;
    --accent: #ff6b00;
    --light: #f5f7fa;
    --dark: #2c3e50;
    --text: #333;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.5; /* Reduced from 1.6 */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 60px; /* Reduced from 80px */
    height: 60px; /* Reduced from 80px */
    position: relative;
}

.loader:before, .loader:after {
    content: '';
    position: absolute;
    border: 3px solid var(--accent); /* Reduced from 4px */
    opacity: 1;
    border-radius: 50%;
    animation: pulse 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loader:after {
    animation-delay: -0.75s;
}

/* Navbar */
.navbar {
    background: rgba(26, 75, 140, 0.95);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1); /* Reduced shadow */
    padding: 15px 5%; /* Reduced from 20px */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 12px 5%; /* Reduced from 15px */
    background: rgba(26, 75, 140, 0.98);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.6rem; /* Reduced from 1.8rem */
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Reduced shadow */
    letter-spacing: 1px; /* Reduced from 1.5px */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px; /* Reduced from 30px */
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s;
    padding: 6px 12px; /* Reduced from 8px 15px */
    border-radius: 4px;
    position: relative;
    font-size: 1rem; /* Reduced from 1.1rem */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: white;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem; /* Reduced from 1.8rem */
    color: white;
    z-index: 1001;
    transition: transform 0.4s ease;
}

.hamburger.active {
    transform: rotate(90deg);
}

/* Banner */
.banner {
    height: 85vh; /* Reduced from 100vh */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('../images/tribeca-lulla/download.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.8); /* Reduced from 200px */
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px; /* Reduced from 900px */
    padding: 20px; /* Reduced from 30px */
}

.banner h1 {
    font-size: 3.5rem; /* Reduced from 4.5rem */
    font-weight: 700;
    margin-bottom: 15px; /* Reduced from 25px */
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); /* Reduced shadow */
    letter-spacing: 2px; /* Reduced from 3px */
}

.banner p {
    font-size: 1.4rem; /* Reduced from 1.8rem */
    color: #f5f7fa;
    margin-bottom: 25px; /* Reduced from 40px */
    font-style: italic;
}

.cta-button {
    display: inline-block;
    padding: 14px 35px; /* Reduced from 18px 45px */
    background: transparent;
    border: 2px solid white;
    color: white;
    font-size: 1.1rem; /* Reduced from 1.2rem */
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px; /* Reduced from 1px */
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: all 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button:hover {
    color: white;
    letter-spacing: 1px; /* Reduced from 2px */
    border-color: var(--accent);
}

/* Section Styling */
.section {
    padding: 70px 5%; /* Reduced from 100px */
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px; /* Reduced from 80px */
}

.section-title h2 {
    font-size: 2.5rem; /* Reduced from 3.2rem */
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px; /* Reduced from 20px */
    margin-bottom: 15px; /* Reduced from 20px */
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Reduced from 120px */
    height: 3px; /* Reduced from 4px */
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 15px auto 0; /* Reduced from 25px */
    font-size: 1.1rem; /* Reduced from 1.2rem */
    line-height: 1.6; /* Reduced from 1.8 */
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px; /* Reduced from 50px */
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px; /* Reduced from 25px */
    font-size: 1rem; /* Reduced from 1.1rem */
    line-height: 1.6; /* Reduced from 1.8 */
}

.about-image {
    flex: 1;
    border-radius: 12px; /* Reduced from 15px */
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); /* Reduced shadow */
    transition: transform 0.4s ease; /* Reduced from 0.5s */
}

.about-image:hover {
    transform: translateY(-8px); /* Reduced from -10px */
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Amenities Section */
.amenities {
    background: linear-gradient(to bottom, #f5f7fa, #e8eef7);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Reduced from 300px */
    gap: 25px; /* Reduced from 30px */
}

.amenity-card {
    background: white;
    border-radius: 12px; /* Reduced from 15px */
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Reduced shadow */
    transition: all 0.3s ease; /* Reduced from 0.4s */
}

.amenity-card:hover {
    transform: translateY(-8px); /* Reduced from -10px */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12); /* Reduced shadow */
}

.amenity-image {
    height: 180px; /* Reduced from 200px */
    overflow: hidden;
}

.amenity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease; /* Reduced from 0.5s */
}

.amenity-card:hover .amenity-image img {
    transform: scale(1.08); /* Reduced from 1.1 */
}

.amenity-content {
    padding: 20px; /* Reduced from 25px */
}

.amenity-content h3 {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    margin-bottom: 12px; /* Reduced from 15px */
    color: var(--primary);
}

.amenity-content p {
    color: #666;
    line-height: 1.6; /* Reduced from 1.7 */
}

/* Floor Plans */
.floor-plans-container {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Reduced from 50px */
}

.floor-plan-tabs {
    display: flex;
    justify-content: center;
    gap: 15px; /* Reduced from 20px */
    margin-bottom: 30px; /* Reduced from 40px */
}

.floor-plan-tab {
    padding: 12px 25px; /* Reduced from 15px 30px */
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.floor-plan-tab.active {
    background: var(--primary);
    color: white;
}

.floor-plan-content {
    display: none;
}

.floor-plan-content.active {
    display: block;
}

.floor-plan-card {
    background: white;
    border-radius: 12px; /* Reduced from 15px */
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1); /* Reduced shadow */
    display: flex;
    flex-direction: column;
}

.floor-plan-image {
    height: 350px; /* Reduced from 400px */
    overflow: hidden;
}

.floor-plan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floor-plan-details {
    padding: 25px; /* Reduced from 30px */
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Reduced from 20px */
}

.detail-item {
    flex: 1;
    min-width: 180px; /* Reduced from 200px */
    text-align: center;
    padding: 15px; /* Reduced from 20px */
    background: #f5f7fa;
    border-radius: 8px; /* Reduced from 10px */
}

.detail-item h4 {
    font-size: 1.1rem; /* Reduced from 1.2rem */
    margin-bottom: 8px; /* Reduced from 10px */
    color: var(--primary);
}

.detail-item p {
    font-size: 1rem; /* Reduced from 1.1rem */
    font-weight: 600;
    color: var(--secondary);
}

/* Map Section */
.map-section {
    background: linear-gradient(to bottom, #e8eef7, #f5f7fa);
    padding: 60px 5%; /* Reduced from 80px */
}

.map-container {
    height: 400px; /* Reduced from 500px */
    border-radius: 12px; /* Reduced from 15px */
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); /* Reduced shadow */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-details {
    margin-top: 30px; /* Reduced from 40px */
    text-align: center;
}

.location-details h3 {
    font-size: 1.7rem; /* Reduced from 2rem */
    margin-bottom: 15px; /* Reduced from 20px */
    color: var(--primary);
}

.location-details p {
    font-size: 1rem; /* Reduced from 1.1rem */
    line-height: 1.6; /* Reduced from 1.8 */
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px; /* Reduced from 60px */
    border-radius: 15px; /* Reduced from 20px */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); /* Reduced shadow */
    max-width: 750px; /* Reduced from 800px */
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px; /* Reduced from 30px */
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px; /* Reduced from 12px */
    font-weight: 600;
    color: #555;
    font-size: 1rem; /* Reduced from 1.1rem */
    padding-left: 8px; /* Reduced from 10px */
    border-left: 2px solid var(--primary); /* Reduced from 3px */
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px; /* Reduced from 20px 25px */
    border: 1px solid #ddd;
    border-radius: 10px; /* Reduced from 12px */
    font-size: 1rem; /* Reduced from 1.1rem */
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: #f5f7fa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 110, 196, 0.2);
}

.form-group textarea {
    min-height: 150px; /* Reduced from 180px */
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: #fff;
    padding: 16px 35px; /* Reduced from 20px 45px */
    border-radius: 50px;
    transition: all 0.4s ease;
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin: 30px auto 0; /* Reduced from 40px */
    width: 200px; /* Reduced from 240px */
    font-size: 1.1rem; /* Reduced from 1.2rem */
    box-shadow: 0 10px 25px rgba(45, 110, 196, 0.35); /* Reduced shadow */
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px; /* Reduced from 1px */
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.03); /* Reduced from -7px and 1.05 */
    box-shadow: 0 15px 30px rgba(45, 110, 196, 0.45); /* Reduced shadow */
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary), #0d2d5e);
    color: #f5f7fa;
    padding: 50px 5% 25px; /* Further reduced */
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 25px; /* Further reduced */
    margin-bottom: 30px; /* Further reduced */
    position: relative;
    z-index: 2;
}

.footer-column {
    flex: 1;
    min-width: 220px; /* Further reduced */
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 15px; /* Further reduced */
    font-weight: 700;
    font-size: 1.3rem; /* Further reduced */
    position: relative;
    padding-bottom: 8px; /* Further reduced */
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px; /* Further reduced */
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-column p, .footer-column li {
    margin-bottom: 10px; /* Further reduced */
    color: #e0e7f3;
    font-size: 0.9rem; /* Further reduced */
    line-height: 1.5; /* Further reduced */
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: #e0e7f3;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-column a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px; /* Further reduced */
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-column a:hover::before {
    width: 100%;
}

.footer-column a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.social-icons {
    display: flex;
    gap: 10px; /* Further reduced */
    margin-top: 15px; /* Further reduced */
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px; /* Further reduced */
    height: 35px; /* Further reduced */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    transform: translateY(0);
    font-size: 0.9rem; /* Further reduced */
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-4px) rotate(5deg); /* Further reduced */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Further reduced */
}

.copyright {
    text-align: center;
    padding-top: 25px; /* Further reduced */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #c5d0e3;
    line-height: 1.5; /* Further reduced */
    font-size: 0.9rem; /* Further reduced */
    position: relative;
    z-index: 2;
}

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 25px; /* Reduced from 30px */
    right: 25px; /* Reduced from 30px */
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 15px; /* Reduced from 15px 18px */
    border-radius: 50%;
    font-size: 18px; /* Reduced from 20px */
    display: none;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Reduced shadow */
}

#scrollTopBtn:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-3px); /* Reduced from -5px */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25); /* Reduced shadow */
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(50px); /* Reduced from 80px */
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - Further adjustments for mobile */
@media (max-width: 1200px) {
    .banner h1 {
        font-size: 3rem; /* Further reduced */
    }
}

@media (max-width: 992px) {
    .banner h1 {
        font-size: 2.5rem; /* Further reduced */
    }
    
    .banner p {
        font-size: 1.2rem; /* Further reduced */
    }
    
    .section-title h2 {
        font-size: 2.2rem; /* Further reduced */
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px; /* Further reduced */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15); /* Reduced shadow */
        padding: 80px 30px 30px; /* Reduced padding */
        z-index: 999;
        transition: right 0.4s ease; /* Reduced from 0.5s */
    }
    
    .nav-links.active {
        display: flex;
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0; /* Reduced from 20px */
    }
    
    .nav-links a {
        font-size: 1.1rem; /* Reduced from 1.3rem */
        padding: 8px 15px; /* Reduced from 10px 20px */
    }
    
    .hamburger {
        display: block;
    }
    
    .banner {
        height: 75vh; /* Further reduced */
    }
    
    .banner h1 {
        font-size: 2.2rem; /* Further reduced */
        margin-bottom: 10px; /* Further reduced */
    }
    
    .banner p {
        font-size: 1rem; /* Further reduced */
        margin-bottom: 20px; /* Further reduced */
    }
    
    .cta-button {
        padding: 12px 25px; /* Further reduced */
        font-size: 1rem; /* Further reduced */
    }
    
    .section {
        padding: 50px 5%; /* Further reduced */
    }
    
    .section-title {
        margin-bottom: 35px; /* Further reduced */
    }
    
    .section-title h2 {
        font-size: 1.8rem; /* Further reduced */
        padding-bottom: 10px; /* Further reduced */
        margin-bottom: 10px; /* Further reduced */
    }
    
    .section-title h2::after {
        width: 60px; /* Further reduced */
        height: 2px; /* Further reduced */
    }
    
    .section-title p {
        font-size: 0.95rem; /* Further reduced */
        margin: 10px auto 0; /* Further reduced */
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px; /* Further reduced */
    }
    
    .contact-form {
        padding: 25px; /* Further reduced */
    }
    
    .submit-btn {
        width: 180px; /* Further reduced */
        padding: 14px 25px; /* Further reduced */
        font-size: 1rem; /* Further reduced */
        margin: 25px auto 0; /* Further reduced */
    }
    
    .floor-plan-image {
        height: 250px; /* Further reduced */
    }
    
    .floor-plan-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px; /* Further reduced */
        margin-bottom: 20px; /* Further reduced */
    }
    
    .floor-plan-tab {
        width: 100%;
        max-width: 250px;
        text-align: center;
        padding: 10px; /* Further reduced */
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 20px; /* Further reduced */
    }
    
    .about-image {
        margin-top: 20px; /* Added for better spacing */
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 1.8rem; /* Further reduced */
        letter-spacing: 1px; /* Further reduced */
    }
    
    .banner p {
        font-size: 0.9rem; /* Further reduced */
    }
    
    .section-title h2 {
        font-size: 1.6rem; /* Further reduced */
    }
    
    .logo-text {
        font-size: 1.4rem; /* Further reduced */
    }
    
    .detail-item {
        min-width: 100%; /* Full width on mobile */
        margin-bottom: 10px;
    }
    
    .floor-plan-details {
        flex-direction: column;
        gap: 10px; /* Further reduced */
    }
    
    .map-container {
        height: 300px; /* Further reduced */
    }
}
    