/* ==========================================================================
   SKYSQURE - MAIN STYLESHEET
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav-glass {
    background: rgba(16, 15, 15, 0.95);
    backdrop-filter: blur(12px);
}

/* Desktop Logo */
.desktop_logo {
    display: flex;
    align-items: center;
}

.desktop_logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.desktop_logo img:hover {
    transform: scale(1.02);
}

.desktop_logo h5 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background-color: white;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Mobile Logo */
.mobile-logo {
    display: none;
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 1002;
    background: #1e293b;
    padding: 8px 16px;
    border-radius: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    align-items: center;
    gap: 10px;
}

.mobile-logo img {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
}

.mobile-logo img:hover {
    transform: scale(1.02);
}

.mobile-logo h5 {
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin: 0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1001;
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke: #1e293b;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 80px;
    padding-left: 24px;
    padding-right: 24px;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.overlay.active {
    display: block;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */

.heading-xl {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.blue-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.dark-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 10px;
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: white;
    max-width: 480px;
    width: 90%;
    border-radius: 2rem;
    padding: 1.5rem;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

body.modal-open {
    overflow: hidden;
}

#imageModal,
#videoModal,
#floorPlanModal {
    animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   FORM MESSAGES & TOAST
   ========================================================================== */

.success-message,
.error-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.success-message {
    background: #4caf50;
    color: white;
}

.error-message {
    background: #f44336;
    color: white;
}

.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    color: white;
    padding: 12px 24px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    white-space: nowrap;
}

.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#downloadInfoMsg {
    animation: slideDown 0.3s ease-out;
    font-size: 0.85rem;
}

/* ==========================================================================
   GRIDS: AMENITIES & GALLERY
   ========================================================================== */

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.amenities-grid > div {
    animation: fadeInUp 0.5s ease backwards;
}

.gallery-item {
    cursor: pointer;
}

.gallery-filter-btn {
    transition: all 0.3s ease;
}

/* ==========================================================================
   AMENITIES CARD HOVER EFFECTS
   ========================================================================== */

.amenities-grid .group {
    padding: 2rem 1.5rem !important;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 20rem;
    min-height: 15rem;
    margin: 0 auto;
}

.amenities-grid .group svg,
.amenities-grid .group i {
    width: 40px !important;
    height: 40px !important;
    stroke-width: 1.5;
}

.amenities-grid .group h5 {
    font-size: 1.4rem !important;
    margin-bottom: 0.75rem !important;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.amenities-grid .group p {
    font-size: 0.9rem !important;
    color: #64748b;
    font-weight: 500;
}

.amenities-grid .group:hover {
    transform: scale(1.05) translateY(-8px) rotate(0.5deg);
    border-color: rgba(37, 99, 235, 0.3);
    background: white;
}

/* Image overlay on hover */
.amenities-grid .group .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.amenities-grid .group:hover .hover-image {
    opacity: 0.4;
}

/* Gradient overlay pseudo-element */
.amenities-grid .group::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0) 0%, rgba(37, 99, 235, 0) 100%);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.amenities-grid .group:hover::after {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
}

/* Icon container */
.amenities-grid .group .bg-white {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 1.5rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

.amenities-grid .group:hover .bg-white {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 15px 25px -10px rgba(37, 99, 235, 0.5);
    transform: scale(1.1) rotate(5deg);
}

.amenities-grid .group:hover .bg-white i,
.amenities-grid .group:hover .bg-white svg {
    color: white !important;
    stroke: white !important;
}

/* ==========================================================================
   SPECIFICATIONS SECTION
   ========================================================================== */

.specs-section {
    background-color: #090d16;
    color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.specs-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0) 70%);
    pointer-events: none;
}

.specs-section::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(226, 184, 85, 0.03) 0%, rgba(226, 184, 85, 0) 70%);
    pointer-events: none;
}

/* Tabs container - CHANGED to flex-wrap, no scrollbar, no internal sliders */
.specs-tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    padding: 0 10px 14px 10px;
    margin-bottom: 2.5rem;
}

/* Tab button */
.specs-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    outline: none;
    flex-shrink: 0;
}

.specs-tab::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.specs-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.specs-tab.active {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(226, 184, 85, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.specs-tab.active::before {
    background: #e2b855;
}

/* Tab icon */
.specs-tab-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #e2b855;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid rgba(226, 184, 85, 0.15);
}

.specs-tab.active .specs-tab-icon {
    background: #e2b855;
    color: #090d16;
    border-color: #e2b855;
    box-shadow: 0 0 10px rgba(226, 184, 85, 0.4);
}

/* Content window */
.specs-content-window {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.specs-content-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

/* Details */
.specs-details {
    opacity: 0;
    transform: translateY(15px);
    animation: specsFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.specs-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e2b855 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.specs-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2rem;
    display: block;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.specs-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.specs-list-icon {
    width: 20px;
    height: 20px;
    color: #e2b855;
    flex-shrink: 0;
    margin-top: 3px;
}

.specs-list-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.specs-sub-list {
    margin-left: 2.2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    border-left: 2px solid rgba(226, 184, 85, 0.2);
    padding-left: 1rem;
}

.specs-sub-title {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e2b855;
    margin-bottom: 0.35rem;
}

.specs-sub-item {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.specs-sub-item::before {
    content: '—';
    color: rgba(226, 184, 85, 0.5);
}

/* Specs image */
.specs-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.95) translateY(15px);
    animation: specsFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.1s;
}

.specs-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.specs-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 13, 22, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

.specs-image-container:hover .specs-image {
    transform: scale(1.04);
}

/* ==========================================================================
   BACKGROUND VIDEO (HERO)
   ========================================================================== */

.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.video-background-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes specsFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* Tablet and up — Amenities 2-col */
@media (min-width: 640px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specs-content-window {
        padding: 3rem;
    }

    .toast-message {
        white-space: nowrap;
    }
}

/* Desktop — Amenities 4-col, Gallery 3-col */
@media (min-width: 1024px) {
    .amenities-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .specs-content-body {
        grid-template-columns: 1.2fr 1fr;
    }
    
    .specs-tabs-container {
        justify-content: flex-start;
    }
}

/* Hide desktop nav, show mobile elements below 1024px */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none !important;
    }

    .desktop_logo {
        display: none !important;
    }

    .mobile-logo {
        display: flex !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }
}

/* Show desktop nav and logo above 1024px */
@media (min-width: 1025px) {
    .mobile-logo {
        display: none !important;
    }

    .desktop_logo {
        display: flex !important;
    }
}

/* Tablet — general text scaling */
@media (max-width: 768px) {
    .heading-xl {
        font-size: 2rem !important;
    }

    section {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    button,
    .btn,
    a.btn {
        min-height: 44px;
    }

    .toast-message {
        white-space: normal;
        text-align: center;
        width: 90%;
        font-size: 0.75rem;
        padding: 10px 16px;
    }

    .seo-content-section h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .seo-content-section p {
        font-size: 0.95rem !important;
        text-align: left;
    }
}

/* Large tablet — SEO section tweaks */
@media (max-width: 1024px) {
    .seo-content-section {
        padding: 70px 20px;
    }

    .seo-content-section h2 {
        font-size: 1.75rem;
    }

    .seo-content-section p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .heading-xl {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .mobile-logo {
        top: 10px;
        left: 12px;
        padding: 6px 12px;
    }

    .mobile-logo img {
        height: 32px;
    }

    .mobile-logo h5 {
        font-size: 14px;
    }

    .seo-content-section {
        padding: 50px 15px;
    }

    .seo-content-section h2 {
        font-size: 1.3rem;
    }

    .seo-content-section p {
        font-size: 0.9rem !important;
        line-height: 1.8;
    }
    
    .specs-tabs-container {
        gap: 6px;
    }
    
    .specs-tab {
        padding: 10px 14px;
        font-size: 0.75rem;
    }
}

/* Video background aspect ratio handling */
@media (min-aspect-ratio: 16/9) {
    .video-background-iframe {
        width: 100%;
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-background-iframe {
        height: 100%;
        width: 177.78vh;
    }
}

/* Safe max-width on media elements */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}