:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2d2d2d;
    --tertiary-dark: #404040;
    --light-gray: #f8f8f8;
    --medium-gray: #e0e0e0;
    --gold: #B8860B;
    --muted-gold: #8B7355;
    --text-light: #666666;
}

* { font-family: 'Poppins', sans-serif; }
h1, h2, .display-1, .display-2, .display-3, .display-4, .display-5 { font-family: 'Playfair Display', serif; }

body { background-color: #ffffff; color: var(--secondary-dark); }

/* Header Styles */
.navbar { background: linear-gradient(to bottom, rgba(26,26,26,0.95), rgba(26,26,26,0.9)) !important; backdrop-filter: blur(20px); border-bottom: 1px solid rgba(184,134,11,0.3); transition: all 0.3s; }
.navbar-brand { font-weight: 700; letter-spacing: 2px; color: var(--gold) !important; font-size: 1.8rem; }
.navbar-nav .nav-link { color: #ffffff !important; font-weight: 500; letter-spacing: 1px; transition: all 0.3s; position: relative; }
.navbar-nav .nav-link::after { content: ''; position: absolute; bottom: -5px; left: 50%; width: 0; height: 2px; background: var(--gold); transition: all 0.3s; transform: translateX(-50%); }
.navbar-nav .nav-link:hover::after { width: 80%; }
.navbar-nav .nav-link:hover { color: var(--gold) !important; }

/* Hero Background Images */
.hero-bg-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-bg-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 2s ease-in-out; }
.hero-bg-slide.active { opacity: 1; }

/* Hero Section */
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%); z-index: 1; pointer-events: none; }
.carousel-caption { z-index: 2; bottom: 15%; }
.hero-title { font-size: 5rem; font-weight: 300; letter-spacing: -2px; line-height: 1.1; }
.hero-subtitle { font-size: 1rem; font-weight: 400; letter-spacing: 4px; text-transform: uppercase; color: #ffffff; opacity: 0.8; }
@media (max-width: 768px) { .hero-title { font-size: 3rem; } }

/* Hero Background Images */
.hero-bg-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-bg-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 2s ease-in-out; }
.hero-bg-slide.active { opacity: 1; }
.hero-content { position: relative; z-index: 2; }

/* Section Styles */
.section-dark { background-color: var(--primary-dark); color: #ffffff; }
.section-gray { background-color: var(--light-gray); }
.section-title { position: relative; padding-bottom: 20px; margin-bottom: 3rem; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background: var(--gold); }

/* Cards and Boxes */
.luxury-card { background: #ffffff; border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: all 0.4s; overflow: hidden; position: relative; }
.luxury-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(184,134,11,0.1), transparent); transition: left 0.7s; }
.luxury-card:hover::before { left: 100%; }
.luxury-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

/* Statistics */
.stat-box { background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--tertiary-dark) 100%); padding: 3rem 2rem; text-align: center; position: relative; overflow: hidden; }
.stat-box::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--gold); transform: scaleX(0); transition: transform 0.4s; }
.stat-box:hover::after { transform: scaleX(1); }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--gold); }
.stat-label { color: #cccccc; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; }

/* Timeline */
.timeline { position: relative; padding: 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--gold); }
.timeline-item { margin-bottom: 50px; position: relative; }
.timeline-content { background: #ffffff; padding: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); position: relative; width: 45%; color: var(--secondary-dark); }
.timeline-item:nth-child(odd) .timeline-content { margin-left: auto; }
.timeline-dot { position: absolute; left: 50%; top: 20px; width: 20px; height: 20px; background: var(--gold); border-radius: 50%; transform: translateX(-50%); border: 4px solid #ffffff; box-shadow: 0 0 0 4px var(--primary-dark); }

/* Modern Masonry Gallery */
.masonry-gallery { column-count: 4; column-gap: 15px; }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; background: #000; margin-bottom: 15px; break-inside: avoid; border-radius: 10px; }
.gallery-item img, .gallery-item video { width: 100%; height: auto; display: block; transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.05); filter: brightness(0.8); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 70%); padding: 30px 20px 20px; opacity: 0; transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-title { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 5px; }
.gallery-subtitle { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* Vertical Video Container */
.vertical-video { position: relative; padding-bottom: 177.77%; height: 0; overflow: hidden; background: #000; border-radius: 10px; }
.vertical-video video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

/* Building Cards */
.building-card { position: relative; overflow: hidden; border-radius: 15px; cursor: pointer; transition: all 0.3s; }
.building-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.building-card img { width: 100%; height: 300px; object-fit: cover; }
.building-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: white; }

@media (max-width: 1200px) { .masonry-gallery { column-count: 3; } }
@media (max-width: 768px) { .masonry-gallery { column-count: 2; } }
@media (max-width: 480px) { .masonry-gallery { column-count: 1; } }

/* Modern Buttons */
.btn-modern { background: #ffffff; color: #000; border: 1px solid #ffffff; padding: 15px 40px; font-weight: 500; letter-spacing: 0.5px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.btn-modern:hover { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.6); transform: translateY(-2px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

/* Modal Button Fix */
.modal-body .btn-modern { background: var(--gold); color: #ffffff; border-color: var(--gold); }
.modal-body .btn-modern:hover { background: var(--muted-gold); border-color: var(--muted-gold); transform: translateY(-2px); }

.btn-outline-modern { background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.3); padding: 15px 40px; font-weight: 400; letter-spacing: 0.5px; transition: all 0.3s; backdrop-filter: blur(10px); }
.btn-outline-modern:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); color: #ffffff; }

/* Navbar Teklif Al Button */
.navbar .btn-outline-modern { padding: 8px 20px; border-color: var(--gold); color: var(--gold); backdrop-filter: none; }
.navbar .btn-outline-modern:hover { background: var(--gold); color: #ffffff; border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3); }
.navbar.scrolled .btn-outline-modern { border-color: var(--gold); color: var(--gold); }
.navbar.scrolled .btn-outline-modern:hover { background: var(--gold); color: #ffffff; }

/* Process Steps */
.process-step { text-align: center; padding: 2rem; position: relative; }
.process-number { display: inline-block; width: 60px; height: 60px; line-height: 60px; background: var(--gold); color: #ffffff; font-weight: 700; font-size: 1.5rem; border-radius: 50%; margin-bottom: 1rem; }
.process-step::after { content: ''; position: absolute; top: 30px; right: -50%; width: 100%; height: 2px; background: var(--medium-gray); z-index: -1; }
.process-step:last-child::after { display: none; }

/* Testimonials */
.testimonial-card { background: #ffffff; padding: 2rem; box-shadow: 0 5px 20px rgba(0,0,0,0.08); border-left: 4px solid var(--gold); }
.testimonial-text { font-style: italic; color: var(--text-light); line-height: 1.8; }
.testimonial-author { font-weight: 600; color: var(--secondary-dark); margin-top: 1rem; }
.testimonial-role { color: var(--gold); font-size: 0.9rem; }

/* Footer */
footer { background: linear-gradient(to bottom, var(--primary-dark), #000000); }
.footer-widget h5 { color: var(--gold); margin-bottom: 1.5rem; font-weight: 600; letter-spacing: 1px; }
.footer-link { color: #999999; text-decoration: none; transition: all 0.3s; display: inline-block; margin-bottom: 0.5rem; }
.footer-link:hover { color: var(--gold); transform: translateX(5px); }
.social-icon { display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center; background: var(--secondary-dark); color: #ffffff; margin-right: 10px; transition: all 0.3s; }
.social-icon:hover { background: var(--gold); transform: translateY(-3px); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--primary-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); }
::-webkit-scrollbar-thumb:hover { background: var(--muted-gold); }

/* Video Gallery */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.video-item { position: relative; padding-bottom: 177.77%; overflow: hidden; background: var(--secondary-dark); }
.video-item video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

/* Modern Modal Styles */
.modal-content { 
    border: none; 
    border-radius: 0; 
    overflow: hidden; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.5); 
    height: 90vh;
}
.modal-header { 
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); 
    color: #ffffff; 
    border: none; 
    padding: 1.5rem 2rem; 
    border-bottom: 1px solid rgba(184, 134, 11, 0.3);
}
.modal-title { 
    font-weight: 300; 
    font-size: 1.8rem; 
    letter-spacing: 1px; 
}
.modal-body { 
    padding: 0; 
    height: calc(90vh - 80px);
}

/* Room Selector */
.room-selector { 
    background: linear-gradient(to bottom, #ffffff, var(--light-gray)); 
    height: 100%; 
    padding: 2rem; 
}

.room-button { 
    background: #ffffff; 
    border: none; 
    padding: 1rem; 
    margin-bottom: 0.75rem; 
    border-radius: 15px; 
    transition: all 0.3s; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: relative; 
    overflow: hidden; 
}

.room-button::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(90deg, transparent, rgba(184,134,11,0.1), transparent); 
    transition: left 0.5s; 
}

.room-button:hover::before { 
    left: 100%; 
}

.room-button:hover { 
    transform: translateX(5px); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); 
}

.room-button.active { 
    background: var(--gold); 
    color: #ffffff; 
    transform: translateX(10px); 
}

/* Floor Plans Section */
.floor-nav { background: var(--light-gray); padding: 1.5rem; border-bottom: 1px solid var(--medium-gray); }
.floor-nav .nav-pills .nav-link { background: transparent; color: var(--secondary-dark); border: 1px solid var(--medium-gray); margin: 0 0.5rem; padding: 0.5rem 1.5rem; border-radius: 30px; transition: all 0.3s; }
.floor-nav .nav-pills .nav-link.active { background: var(--primary-dark); color: #ffffff; border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }


/* Room Preview */
.room-preview { position: relative; overflow: hidden; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.room-preview img { transition: transform 0.5s; }
.room-preview:hover img { transform: scale(1.05); }

/* Modal Animations */
.modal.fade .modal-dialog { transform: scale(0.8) translateY(50px); }
.modal.show .modal-dialog { transform: scale(1) translateY(0); }

/* Mobile Modal Styles */
@media (max-width: 991px) {
    .modal-content { 
        height: 100vh !important;
        border-radius: 0;
    }
    
    .modal-body { 
        height: calc(100vh - 70px) !important;
        overflow-y: auto;
    }
    
    /* Mobile room selector */
    .room-selector {
        background: #f8f9fa;
        padding: 1rem !important;
        height: auto !important;
        max-height: 40vh;
        overflow-y: auto;
    }
    
    .room-selector h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem !important;
    }
    
    .room-button {
        padding: 0.75rem !important;
        margin-bottom: 0.5rem !important;
        font-size: 0.9rem;
    }
    
    .room-button i {
        font-size: 1rem;
    }
    
    /* Mobile property info */
    .room-selector .bg-light {
        margin-top: 1.5rem !important;
        padding: 1rem !important;
    }
    
    /* Mobile image viewer */
    #mainViewContainer {
        height: 50vh !important;
        min-height: 300px;
    }
    
    #roomCarousel img {
        max-height: 100%;
        width: auto;
        object-fit: contain;
    }
    
    /* Mobile view title overlay */
    .view-title-overlay {
        padding: 1.5rem 1rem !important;
    }
    
    .view-title-overlay h3 {
        font-size: 1.2rem !important;
    }
    
    .view-title-overlay p {
        font-size: 0.85rem !important;
    }
    
    /* Mobile carousel controls */
    #roomCarousel .carousel-control-prev,
    #roomCarousel .carousel-control-next {
        width: 40px !important;
    }
    
    /* Mobile carousel indicators */
    #roomCarousel .carousel-indicators {
        bottom: 60px !important;
    }
    
    /* Mobile floor navigation */
    #floorNavigation {
        padding: 0.75rem !important;
    }
    
    #floorNavigation .btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    .modal-header {
        padding: 1rem !important;
    }
    
    .modal-title {
        font-size: 1.3rem !important;
    }
    
    .room-selector {
        max-height: 35vh;
    }
    
    #mainViewContainer {
        height: 45vh !important;
    }
    
    .view-title-overlay {
        padding: 1rem !important;
    }
    
    .view-title-overlay h3 {
        font-size: 1rem !important;
    }
    
    .view-title-overlay p {
        font-size: 0.75rem !important;
    }
}

/* View Title Overlay */
.view-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.4) 60%, transparent);
    pointer-events: none;
    z-index: 20;
}

.view-title-overlay h3 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.view-title-overlay p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* Ensure carousel indicators don't overlap */
#roomCarousel .carousel-indicators {
    bottom: 100px;
    z-index: 15;
}

/* Image container adjustments */
#mainViewContainer {
    position: relative;
    background: #000;
    overflow: hidden;
}

#roomCarousel {
    height: 100%;
    position: relative;
}

#roomCarousel .carousel-inner,
#roomCarousel .carousel-item {
    height: 100%;
}

#roomCarousel .carousel-item > div {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

#roomCarousel img {
    max-height: calc(100% - 120px);
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Ensure controls are visible */
#roomCarousel .carousel-control-prev,
#roomCarousel .carousel-control-next {
    z-index: 15;
    width: 60px;
    background: linear-gradient(90deg, rgba(0,0,0,0.5), transparent);
}

#roomCarousel .carousel-control-next {
    background: linear-gradient(-90deg, rgba(0,0,0,0.5), transparent);
}

/* Project Info Cards */
.project-feature { background: var(--light-gray); padding: 1rem 1.5rem; border-radius: 10px; margin-bottom: 0.75rem; display: flex; align-items: center; transition: all 0.3s; }
.project-feature:hover { background: var(--medium-gray); transform: translateX(5px); }
.project-feature i { color: var(--gold); font-size: 1.3rem; margin-right: 1rem; }