/* AOS Animation Library */
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* Standardized Navbar Styling */
.navbar {
    background: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff8c00;
}

.cta-button {
    background: #ff8c00;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    color: white !important;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #e67e00;
}

.language-toggle {
    background: transparent;
    border: 2px solid #ff8c00;
    color: #ff8c00;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.language-toggle:hover {
    background: #ff8c00;
    color: white;
    transform: translateY(-1px);
}

.mobile-menu {
    display: none;
    color: #1e3a5f;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Spaces Hero Section */
.spaces-hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(44, 82, 130, 0.8) 100%), 
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 58, 95, 0.1), rgba(255, 140, 0, 0.05));
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.spaces-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f0f8ff, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 140, 0, 0.8), 0 0 40px rgba(255, 140, 0, 0.6); }
}

.spaces-hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 140, 0, 0.2);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.3);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff8c00;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollIndicator 2s infinite;
}

@keyframes scrollIndicator {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* Active Navigation Link */
.nav-links a.active {
    color: #ff8c00;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff8c00;
    border-radius: 1px;
}

/* Spaces Overview Section */
.spaces-overview {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.spaces-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 3rem;
    color: #1e3a5f;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff8c00, #e67e00);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.spaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.space-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.space-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.space-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.space-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.space-card:hover .space-image img {
    transform: scale(1.1);
}

.space-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.8), rgba(255, 140, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.space-card:hover .space-overlay {
    opacity: 1;
}

.space-price {
    text-align: center;
    color: white;
    font-size: 1.1rem;
}

.space-price strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.space-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.space-content h3 {
    font-size: 1.8rem;
    color: #1e3a5f;
    margin-bottom: 1rem;
    font-weight: 600;
}

.space-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.space-features {
    list-style: none;
    margin-bottom: 2rem;
}

.space-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #555;
}

.space-features i {
    color: #ff8c00;
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

.space-cta {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c00, #e67e00);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    align-self: center;
}

.space-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.space-cta:hover::before {
    left: 100%;
}

.space-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
}

/* Amenities Section */
.amenities {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.amenities::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.amenities .section-header h2 {
    color: white;
}

.amenities .section-header h2::after {
    background: linear-gradient(90deg, #ff8c00, #ffffff);
}

.amenities .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.amenity-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.amenity-item:hover {
    transform: translateY(-15px);
    background: rgba(255, 140, 0, 0.2);
    box-shadow: 0 25px 50px rgba(255, 140, 0, 0.3);
}

.amenity-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff8c00, #e67e00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.amenity-item:hover .amenity-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.5);
}

.amenity-icon i {
    font-size: 2rem;
    color: white;
}

.amenity-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.amenity-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Virtual Tour Section */
.virtual-tour {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.tour-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tour-text h2 {
    font-size: 2.8rem;
    color: #1e3a5f;
    margin-bottom: 1.5rem;
}

.tour-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.tour-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.tour-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e3a5f;
    font-weight: 600;
}

.tour-feature i {
    color: #ff8c00;
    font-size: 1.2rem;
}

.tour-btn {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a5f, #2c5282);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tour-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.tour-btn:hover::before {
    left: 100%;
}

.tour-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 58, 95, 0.4);
}

.tour-video {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #1e3a5f, #2c5282);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tour-video:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.3);
}

.video-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ff8c00;
    transition: all 0.3s ease;
}

.tour-video:hover .video-placeholder i {
    transform: scale(1.2);
}

.video-placeholder span {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Responsive Design - Consolidated Mobile Styles */
@media (max-width: 768px) {
    /* Force navbar to be visible and positioned correctly */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: white !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 1rem 0 !important;
    }
    
    .navbar .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
    }
    
    .mobile-menu {
        display: block !important;
        color: #1e3a5f !important;
        font-size: 1.5rem !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 10001 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hide desktop nav-links on mobile */
    .nav-links {
        display: none !important;
    }
    
    /* Show language toggle on mobile navbar */
    .language-toggle {
        display: block !important;
        margin-left: 1rem !important;
    }
    
    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 70px !important;
        right: 20px !important;
        background: white !important;
        border: 1px solid #ff8c00 !important;
        border-radius: 10px !important;
        padding: 1rem 2rem !important;
        box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3) !important;
        z-index: 10000 !important;
        width: 200px !important;
        max-height: calc(100vh - 90px) !important;
        overflow-y: auto !important;
    }
    
    /* Show language toggle in mobile dropdown menu */
    .nav-links.active .language-toggle {
        display: block !important;
        margin: 0.5rem 0 0 0 !important;
        padding: 0.5rem 1rem !important;
        align-self: center !important;
        width: auto !important;
    }
    
    /* Ensure body has proper top padding to account for fixed navbar */
    body {
        padding-top: 70px !important;
    }
    
    /* Hero section adjustments */
    .spaces-hero {
        height: calc(100vh - 70px) !important;
        margin-top: 0 !important;
        padding-top: 2rem !important;
        background-attachment: scroll !important;
    }

    .spaces-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        display: none !important;
    }

    .scroll-indicator {
        display: none;
    }
    
    .spaces-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .tour-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tour-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .spaces-hero {
        height: calc(80vh - 70px) !important;
        min-height: calc(60vh - 70px) !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        background-attachment: scroll !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-top: 0 !important;
    }
    
    .spaces-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    .spaces-hero p {
        font-size: 1.1rem;
        max-width: 90%;
        margin: 0 auto 1.5rem auto;
        padding: 0 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        margin-top: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        padding: 1rem 1.2rem;
        font-size: 1rem;
        border-radius: 12px;
        min-width: 120px;
        flex: 1 1 auto;
        max-width: 180px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .space-content {
        padding: 1rem;
    }
    
    .amenity-item {
        padding: 1rem 0.5rem;
    }
    
    .tour-video {
        height: 200px;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff8c00, #e67e00);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e67e00, #cc6600);
}
