/* ========================= */
/* PSV Residence 2 Styles */
/* ========================= */

 /* CSS Variables */
 :root {
     --primary-color: #2d3748;
     --secondary-color: #4a5568;
     --accent-color: #25d366;
     --text-dark: #1a202c;
     --text-light: #718096;
     --white: #ffffff;
     --light-gray: #f7fafc;
     --dark-gray: #2d3748;
     --charcoal: #1a202c;
     --silver: #e2e8f0;
     --platinum: #edf2f7;
     --gold: #d69e2e;
     --gradient-primary: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
     --gradient-secondary: linear-gradient(135deg, #4a5568 0%, #718096 100%);
     --gradient-accent: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
     --gradient-luxury: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
     --shadow: 0 10px 30px rgba(45, 55, 72, 0.15);
     --shadow-hover: 0 20px 40px rgba(45, 55, 72, 0.25);
     --shadow-luxury: 0 25px 50px rgba(26, 32, 44, 0.3);
     --border-radius: 12px;
     --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 }

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

 /* Loading Screen - Modern Design */
 #loading-screen {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: var(--gradient-luxury);
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 10000;
     transition: opacity 0.8s ease;
     overflow: hidden;
 }
 
 #loading-screen::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: 
         radial-gradient(circle at 20% 80%, rgba(214, 158, 46, 0.1) 0%, transparent 50%),
         radial-gradient(circle at 80% 20%, rgba(74, 85, 104, 0.1) 0%, transparent 50%);
     animation: backgroundShift 8s ease-in-out infinite;
 }
 
 .loading-content {
     text-align: center;
     color: var(--white);
     position: relative;
     z-index: 2;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     height: 100%;
 }
 
 .loading-logo-container {
     display: flex;
     flex-direction: column;
     align-items: center;
     margin-bottom: 4rem;
 }
 
 .loading-icon {
     margin-bottom: 2rem;
     position: relative;
 }
 
 .icon-building {
     width: 80px;
     height: 80px;
     position: relative;
 }
 
 .building-layer {
     position: absolute;
     background: linear-gradient(135deg, var(--gold), #f3d77a);
     border-radius: 4px;
     animation: buildingRise 2s ease-out infinite;
 }
 
 .building-layer:nth-child(1) {
     width: 20px;
     height: 60px;
     left: 10px;
     bottom: 0;
     animation-delay: 0s;
 }
 
 .building-layer:nth-child(2) {
     width: 20px;
     height: 80px;
     left: 30px;
     bottom: 0;
     animation-delay: 0.3s;
 }
 
 .building-layer:nth-child(3) {
     width: 20px;
     height: 50px;
     left: 50px;
     bottom: 0;
     animation-delay: 0.6s;
 }
 
 .loading-text {
     text-align: center;
 }
 
 .brand-name {
     font-family: 'Playfair Display', serif;
     font-size: 3rem;
     font-weight: 700;
     margin-bottom: 0.5rem;
     letter-spacing: 4px;
     animation: textGlow 3s ease-in-out infinite;
 }
 
 .brand-tagline {
     font-size: 1.1rem;
     opacity: 0.8;
     margin-bottom: 2rem;
     letter-spacing: 1px;
     color: var(--gold);
 }
 
 .loading-dots {
     display: flex;
     gap: 8px;
     justify-content: center;
 }
 
 .loading-dots span {
     width: 8px;
     height: 8px;
     background: var(--white);
     border-radius: 50%;
     animation: dotPulse 1.5s ease-in-out infinite;
 }
 
 .loading-dots span:nth-child(1) { animation-delay: 0s; }
 .loading-dots span:nth-child(2) { animation-delay: 0.2s; }
 .loading-dots span:nth-child(3) { animation-delay: 0.4s; }
 
 .loading-footer {
     position: absolute;
     bottom: 3rem;
     left: 50%;
     transform: translateX(-50%);
     opacity: 0.7;
     animation: fadeInOut 4s ease-in-out infinite;
 }
 
 .loading-footer p {
     font-size: 0.9rem;
     letter-spacing: 2px;
     text-transform: uppercase;
 }
 
 /* Loading Animations */
 @keyframes buildingRise {
     0%, 20% { 
         transform: translateY(100%);
         opacity: 0;
     }
     40%, 80% { 
         transform: translateY(0);
         opacity: 1;
     }
     100% { 
         transform: translateY(0);
         opacity: 1;
     }
 }
 
 @keyframes textGlow {
     0%, 100% { 
         text-shadow: 0 0 20px rgba(214, 158, 46, 0.5);
     }
     50% { 
         text-shadow: 0 0 30px rgba(214, 158, 46, 0.8), 0 0 40px rgba(255, 255, 255, 0.3);
     }
 }
 
 @keyframes dotPulse {
     0%, 20% { 
         transform: scale(1);
         opacity: 0.7;
     }
     50% { 
         transform: scale(1.3);
         opacity: 1;
     }
     80%, 100% { 
         transform: scale(1);
         opacity: 0.7;
     }
 }
 
 @keyframes fadeInOut {
     0%, 30% { opacity: 0.4; }
     50% { opacity: 0.8; }
     70%, 100% { opacity: 0.4; }
 }
 
 @keyframes backgroundShift {
     0%, 100% { transform: translateX(0) translateY(0); }
     25% { transform: translateX(20px) translateY(-20px); }
     50% { transform: translateX(-20px) translateY(20px); }
     75% { transform: translateX(20px) translateY(20px); }
 }

/* Navigation */
 .navbar {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     padding: 1rem 0;
     background: rgba(247, 250, 252, 0.95);
     backdrop-filter: blur(15px);
     border-bottom: 1px solid var(--silver);
     box-shadow: 0 4px 20px rgba(45, 55, 72, 0.08);
     z-index: 1000;
     transition: var(--transition);
     transform: translateY(-100%);
 }

.navbar.visible {
    transform: translateY(0);
}

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

.nav-logo h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.nav-logo span {
    font-size: 0.9rem;
    color: var(--text-light);
    display: block;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: -20%; /* Extended background to prevent white space */
    left: 0;
    width: 100%;
    height: 120%; /* Extended height to cover parallax movement */
    background: url('job_image/gallery/Aerial Night View.jpg') center/cover no-repeat;
    will-change: transform; /* Optimize for animation */
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

 .hero-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(135deg, rgba(26, 32, 44, 0.85) 0%, rgba(45, 55, 72, 0.7) 50%, rgba(74, 85, 104, 0.6) 100%);
 }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    margin: 0 auto;
    width: 100%;
    will-change: transform; /* Optimize for scroll animation */
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.title-line {
    display: block;
    font-size: 4.5rem;
    letter-spacing: 3px;
}

.title-accent {
    display: block;
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    display: block;
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInScrollIndicator 1.2s ease 3s forwards;
}

@keyframes fadeInScrollIndicator {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    50% {
        opacity: 0.3;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-text {
    font-size: 0.9rem;
    margin: 0 auto 15px auto;
    opacity: 0.8;
    text-align: center;
    display: block;
    width: 100%;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--white);
    margin: 0 auto;
    position: relative;
    animation: scrollBounce 2s infinite;
    display: block;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

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

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

 /* USP Section */
 .usp-section {
     padding: 100px 0;
     background: var(--platinum);
 }

.usp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.usp-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 400px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.usp-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.usp-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
    border: none;
    outline: none;
    background: transparent;
    vertical-align: top;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.usp-image:hover .image-overlay {
    transform: translateY(0);
}

.usp-features {
    display: grid;
    gap: 1.5rem;
}

.usp-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.usp-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.usp-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.usp-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.usp-text p {
    color: var(--text-light);
    font-size: 0.95rem;
}

 /* Gallery Section - Slideshow Design */
 .gallery-section {
     padding: 100px 0;
     background: var(--white);
 }
 
 .gallery-container {
     margin-top: 3rem;
     max-width: 1400px;
     margin-left: auto;
     margin-right: auto;
     padding: 0 20px;
 }
 
 .gallery-slideshow {
     position: relative;
     border-radius: var(--border-radius);
     overflow: hidden;
     box-shadow: var(--shadow-luxury);
 }
 
 .gallerySwiper {
     height: 600px;
     position: relative;
 }
 
 .gallery-slide {
     position: relative;
     height: 100%;
     overflow: hidden;
 }
 
 .slide-image {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 1;
 }
 
 .slide-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 8s ease-out;
 }
 
 .gallery-slide.swiper-slide-active .slide-image img {
     transform: scale(1.05);
 }
 
 .slide-content {
     position: absolute;
     bottom: 0;
     left: 0;
     right: 0;
     z-index: 2;
     background: linear-gradient(transparent, rgba(26, 32, 44, 0.9));
     padding: 3rem 2rem 2rem;
 }
 
 .slide-info {
     color: var(--white);
     position: relative;
 }
 
 .slide-info h3 {
     font-size: 2.5rem;
     font-weight: 700;
     margin-bottom: 1rem;
     font-family: 'Playfair Display', serif;
 }
 
 .slide-info p {
     font-size: 1.1rem;
     line-height: 1.6;
     opacity: 0.9;
     max-width: 600px;
 }
 
 .slide-number {
     position: absolute;
     top: -1rem;
     right: 0;
     font-size: 4rem;
     font-weight: 900;
     color: rgba(255, 255, 255, 0.2);
     font-family: 'Playfair Display', serif;
 }
 
 /* Navigation Buttons */
 .gallery-navigation {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 10;
     pointer-events: none;
 }
 
 .gallery-btn-prev,
 .gallery-btn-next {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     width: 55px;
     height: 55px;
     background: rgba(255, 255, 255, 0.95);
     border: none;
     border-radius: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--primary-color);
     font-size: 1.2rem;
     cursor: pointer;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
     backdrop-filter: blur(10px);
     pointer-events: all;
     z-index: 15;
     opacity: 0.9;
 }
 
 .gallery-btn-prev::before,
 .gallery-btn-next::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: var(--gradient-primary);
     border-radius: 12px;
     opacity: 0;
     transition: var(--transition);
     z-index: -1;
 }
 
 .gallery-btn-prev:hover,
 .gallery-btn-next:hover {
     opacity: 1;
     transform: translateY(-50%) translateY(-3px);
     box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
     color: var(--white);
 }
 
 .gallery-btn-prev:hover::before,
 .gallery-btn-next:hover::before {
     opacity: 1;
 }
 
 .gallery-btn-prev:active,
 .gallery-btn-next:active {
     transform: translateY(-50%) translateY(-1px);
     box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
 }
 
 .gallery-btn-prev {
     left: 2rem;
 }
 
 .gallery-btn-next {
     right: 2rem;
 }
 
 .gallery-btn-prev i,
 .gallery-btn-next i {
     transition: var(--transition);
     font-weight: 900;
     display: flex;
     align-items: center;
     justify-content: center;
     width: 100%;
     height: 100%;
     position: absolute;
     top: 0;
     left: 0;
 }
 
 /* Hide default Swiper navigation */
 .gallerySwiper .swiper-button-prev,
 .gallerySwiper .swiper-button-next {
     display: none !important;
 }
 
 .gallerySwiper .swiper-button-prev::after,
 .gallerySwiper .swiper-button-next::after {
     display: none !important;
 }
 
 .gallery-btn-prev:hover i {
     transform: translateX(-1px);
 }
 
 .gallery-btn-next:hover i {
     transform: translateX(1px);
 }
 
 /* Pagination */
 .gallery-pagination {
     position: absolute;
     bottom: 2rem;
     left: 2rem;
     z-index: 10;
 }
 
 .gallery-pagination .swiper-pagination-bullet {
     width: 12px;
     height: 12px;
     background: rgba(255, 255, 255, 0.5);
     opacity: 1;
     margin: 0 8px;
     transition: var(--transition);
 }
 
 .gallery-pagination .swiper-pagination-bullet-active {
     background: var(--white);
     transform: scale(1.3);
 }
 
 /* Progress Bar */
 .gallery-progress {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 4px;
     background: rgba(255, 255, 255, 0.2);
     z-index: 10;
 }
 
 .progress-bar {
     height: 100%;
     background: var(--gold);
     width: 0%;
     transition: width 0.3s ease;
 }
 
 /* Thumbnail Navigation */
 .gallery-thumbnails {
     display: flex;
     gap: 1rem;
     padding: 2rem 0;
     justify-content: center;
     flex-wrap: wrap;
 }
 
 .thumbnail-item {
     width: 80px;
     height: 60px;
     border-radius: 8px;
     overflow: hidden;
     cursor: pointer;
     transition: var(--transition);
     border: 3px solid transparent;
     opacity: 0.6;
 }
 
 .thumbnail-item.active {
     border-color: var(--primary-color);
     opacity: 1;
     transform: scale(1.1);
 }
 
 .thumbnail-item:hover {
     opacity: 1;
     transform: scale(1.05);
 }
 
 .thumbnail-item img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 /* Facilities Section - Button Selection */
 .facilities-section {
     padding: 100px 0;
     background: var(--platinum);
 }

.facilities-container {
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.facility-selector {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.facility-btn {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.facility-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.facility-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.facility-btn.active .btn-icon {
    opacity: 1;
    color: var(--white);
}

.btn-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.facility-btn.active .btn-content h4 {
    color: var(--white);
}

.btn-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.facility-btn.active .btn-content p {
    color: rgba(255, 255, 255, 0.9);
}

.facility-display {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-luxury);
}

.facility-content {
    display: none;
    position: relative;
}

.facility-content.active {
    display: block;
}

.facility-image-container {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.facility-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--white);
    transition: var(--transition);
}

.facility-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 32, 44, 0.95));
    padding: 3rem 2rem 2rem;
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

.facility-image-container:hover .facility-overlay {
    transform: translateY(0);
}

.facility-overlay h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.facility-overlay p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.view-detail-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-detail-btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Floor Plans Section */
.floor-plans-section {
    padding: 100px 0;
    background: var(--white);
}

.floor-plans-content {
    margin-top: 3rem;
}

.plans-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.plan-category-btn {
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1rem;
}

.plan-category-btn.active,
.plan-category-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.plans-grid {
    position: relative;
    min-height: 400px;
}

.plan-group {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-group.active {
    display: grid;
}

 .plan-item {
     background: var(--white);
     border-radius: var(--border-radius);
     overflow: hidden;
     box-shadow: var(--shadow);
     transition: var(--transition);
     cursor: pointer;
     position: relative;
 }
 
 .plan-item:hover {
     transform: translateY(-5px);
     box-shadow: var(--shadow-hover);
 }
 
 .plan-item::after {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(45, 55, 72, 0.1);
     opacity: 0;
     transition: var(--transition);
     pointer-events: none;
 }
 
 .plan-item:hover::after {
     opacity: 1;
 }

.plan-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.plan-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--light-gray);
    transition: var(--transition);
}

.plan-item:hover .plan-image img {
    transform: scale(1.05);
}

.plan-details {
    padding: 1.5rem;
}

.plan-details h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.plan-specs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.spec-item i {
    color: var(--secondary-color);
}

 /* VR Tour Section */
 .vr-tour-section {
     padding: 100px 0;
     background: var(--platinum);
 }

.vr-content {
    margin-top: 3rem;
}

.vr-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.vr-btn {
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.vr-btn.active,
.vr-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.vr-viewer {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 500px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.vr-frame {
    display: none;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    height: 500px;
    overflow: hidden;
}

.vr-frame.active {
    display: block;
}

.vr-frame iframe {
    width: 100%;
    height: 500px;
    border: none;
    outline: none;
    border-radius: var(--border-radius);
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    vertical-align: top;
    line-height: 0;
    font-size: 0;
}

/* Amenities Section */
.amenities-section {
    padding: 100px 0;
    background: var(--white);
}

.amenities-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.amenities-images {
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.amenity-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: none;
    position: relative;
    background: transparent;
    height: 400px;
    margin: 0;
    padding: 0;
    border: none;
}

.amenity-image.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.amenity-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
    border: none;
    outline: none;
    background: transparent;
    vertical-align: top;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
}
 
 .clickable-image {
     cursor: pointer;
     position: relative;
     transition: var(--transition);
 }
 
 .clickable-image:hover {
     transform: scale(1.02);
 }
 
 .image-zoom-hint {
     position: absolute;
     top: 10px;
     right: 10px;
     background: rgba(0, 0, 0, 0.7);
     color: var(--white);
     padding: 8px 12px;
     border-radius: 20px;
     font-size: 0.8rem;
     display: flex;
     align-items: center;
     gap: 5px;
     opacity: 0;
     transition: var(--transition);
 }
 
 .clickable-image:hover .image-zoom-hint {
     opacity: 1;
 }

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

.amenities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.amenity-category {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

 .category-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 1.5rem;
     background: var(--silver);
     cursor: pointer;
     transition: var(--transition);
 }
 
 .category-header:hover {
     background: var(--gradient-primary);
     color: var(--white);
 }

.category-header h3 {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-header i:last-child {
    transition: var(--transition);
}

.amenity-category.active .category-header i:last-child {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--silver);
}

.category-content::-webkit-scrollbar {
    width: 6px;
}

.category-content::-webkit-scrollbar-track {
    background: var(--silver);
    border-radius: 3px;
}

.category-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.category-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.amenity-category.active .category-content {
    max-height: 400px;
}

/* Education Subcategories */
.subcategory {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--silver);
}

.subcategory:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.subcategory-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--silver), var(--platinum));
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

.amenity-item:last-child {
    border-bottom: none;
}

 .amenity-item:hover {
     background: var(--platinum);
 }

.distance {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 60px;
}

.name {
    color: var(--text-dark);
    font-size: 0.95rem;
}

 /* Map Section */
 .map-section {
     padding: 100px 0;
     background: var(--platinum);
 }

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

.map-container iframe {
    width: 100%;
    filter: grayscale(20%);
    transition: var(--transition);
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

 /* Contact Section */
 .contact-section {
     padding: 100px 0;
     background: var(--gradient-luxury);
     color: var(--white);
 }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.whatsapp-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.whatsapp-highlight h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.whatsapp-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
}

.whatsapp-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.whatsapp-btn-large i {
    font-size: 2rem;
}

.whatsapp-btn-large span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.whatsapp-btn-large small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-group select {
    cursor: pointer;
}

.form-group select optgroup {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-group select option {
    padding: 8px;
    color: var(--text-dark);
    font-weight: 400;
}

 .form-group input:focus,
 .form-group select:focus,
 .form-group textarea:focus {
     outline: none;
     border-color: var(--primary-color);
     box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
 }

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

 /* Footer */
 .footer {
     background: var(--charcoal);
     color: var(--white);
     padding: 60px 0 20px;
 }

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: var(--accent-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-whatsapp a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 20px;
    background: var(--gradient-accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-weight: 600;
    animation: pulse 2s infinite;
}

.floating-whatsapp a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.floating-whatsapp i {
    font-size: 1.5rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .usp-content,
    .amenities-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-item.large {
        grid-column: span 1;
    }
    
    .contact-features {
        grid-template-columns: 1fr;
    }
}

/* Mobile Overflow Prevention */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling on mobile only */
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    body {
        overflow-x: hidden;
        max-width: 100vw;
        position: relative;
    }

    /* Mobile-specific overflow prevention for sections */
    .hero-background,
    .gallery-container,
    .facilities-container,
    .floor-plans-container,
    .amenities-container,
    .map-container {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Additional mobile elements safety */
    section, div, img, video {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
     .nav-menu {
         position: fixed;
         top: 100%;
         left: 0;
         width: 100%;
         background: var(--white);
         flex-direction: column;
         padding: 2rem;
         box-shadow: var(--shadow);
         transform: translateY(-100%);
         transition: var(--transition);
         opacity: 0;
         visibility: hidden;
     }
     
     .nav-menu.active {
         transform: translateY(0);
         opacity: 1;
         visibility: visible;
     }
     
     .hamburger {
         display: flex;
     }
     
     .hero-title {
         font-size: 2.5rem;
     }
     
     .title-line {
         font-size: 3rem;
     }
     
     .hero-subtitle {
         font-size: 2rem;
     }
     
     .hero-buttons {
         flex-direction: column;
         align-items: center;
     }
     
     .section-title {
         font-size: 2rem;
     }
     
     .plans-categories,
     .vr-controls {
         flex-direction: column;
         align-items: center;
     }
     
     .facility-selector {
         gap: 1rem;
     }
     
     .facility-btn {
         min-width: 160px;
         padding: 1.2rem 1.5rem;
         flex-direction: column;
         text-align: center;
         gap: 0.5rem;
     }
     
     .btn-icon {
         font-size: 1.5rem;
     }
     
     .btn-content h4 {
         font-size: 1.1rem;
     }
     
     .btn-content p {
         font-size: 0.8rem;
     }
     
     .facility-image-container {
         height: 400px;
     }
     
     .facility-overlay h3 {
         font-size: 1.5rem;
     }
     
     .facility-overlay p {
         font-size: 1rem;
     }
     
     .gallerySwiper {
         height: 400px;
     }
     
     .slide-info h3 {
         font-size: 2rem;
     }
     
     .slide-info p {
         font-size: 1rem;
     }
     
     .slide-number {
         font-size: 3rem;
     }
     
     .gallery-btn-prev,
     .gallery-btn-next {
         width: 50px;
         height: 50px;
         font-size: 1.1rem;
     }
     
     .gallery-btn-prev {
         left: 1.5rem;
     }
     
     .gallery-btn-next {
         right: 1.5rem;
     }
     
     .thumbnail-item {
         width: 60px;
         height: 45px;
     }
     
     .plan-specs {
         flex-direction: column;
         gap: 0.5rem;
     }
     
     .floating-whatsapp a span {
         display: none;
     }
     
     .floating-whatsapp a {
         width: 60px;
         height: 60px;
         border-radius: 50%;
         padding: 0;
         justify-content: center;
     }
 }

 @media (max-width: 480px) {
     .container {
         padding: 0 15px;
     }
     
     .hero-title {
         font-size: 2rem;
     }
     
     .title-line {
         font-size: 2.5rem;
     }
     
     .hero-subtitle {
         font-size: 1.5rem;
     }
     
     .section-title {
         font-size: 1.8rem;
     }
     
     .scroll-indicator {
         bottom: 20px;
     }
     
     .scroll-text {
         font-size: 0.8rem;
         margin-bottom: 12px;
     }
     
     .btn {
         padding: 12px 20px;
         font-size: 0.9rem;
     }
     
     .usp-item {
         flex-direction: column;
         text-align: center;
     }
     
     .facility-image {
         height: 300px;
     }
     
     .vr-frame iframe {
         height: 300px;
     }
     
     .gallerySwiper {
         height: 300px;
     }
     
     .slide-info h3 {
         font-size: 1.5rem;
     }
     
     .slide-info p {
         font-size: 0.9rem;
     }
     
     .slide-number {
         font-size: 2.5rem;
     }
     
     .slide-content {
         padding: 2rem 1rem 1rem;
     }
     
     .gallery-btn-prev,
     .gallery-btn-next {
         width: 45px;
         height: 45px;
         font-size: 1rem;
         border-radius: 10px;
     }
     
     .gallery-btn-prev {
         left: 1rem;
     }
     
     .gallery-btn-next {
         right: 1rem;
     }
     
     .thumbnail-item {
         width: 50px;
         height: 38px;
     }
     
     .gallery-thumbnails {
         gap: 0.5rem;
         padding: 1rem 0;
     }
     
     .facility-selector {
         flex-direction: column;
         gap: 0.8rem;
         align-items: center;
     }
     
     .facility-btn {
         min-width: 100%;
         max-width: 280px;
         padding: 1rem 1.5rem;
     }
     
     .facility-image-container {
         height: 300px;
     }
     
     .facility-overlay {
         padding: 2rem 1rem 1rem;
     }
     
     .facility-overlay h3 {
         font-size: 1.3rem;
     }
     
     .facility-overlay p {
         font-size: 0.9rem;
     }
 }

/* Performance Optimizations */
.gallery-item img,
.facility-image img,
.plan-image img,
.amenity-image img {
    will-change: transform;
}

.btn,
.usp-item,
.gallery-item,
.facility-card,
.plan-item {
    will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .floating-whatsapp,
    .hero-buttons,
    .gallery-filters,
    .vr-controls,
    .contact-form {
        display: none;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .section-title {
        color: var(--text-dark);
    }
}
