/* Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #F5F1E7;
    scroll-behavior: auto;
}

/* Prevent automatic scroll on initial load */
body:not(.loaded) {
    overflow: hidden;
}

/* Smooth Scrolling - Only for anchor links, not on page load */
html {
    scroll-behavior: auto;
}

/* Enable smooth scroll only after page is loaded */
html.scroll-ready {
    scroll-behavior: smooth;
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: all 0.3s ease-in-out;
}

/* FAQ Accordion Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #1a3663;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.faq-answer:not(.hidden) {
    max-height: 500px;
    animation: slideDown 0.3s ease;
}

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

/* Hero Section Overlay */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

/* Statistics Circle Hover Effect */
section .bg-brand-blue.rounded-full {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section .bg-brand-blue.rounded-full:hover {
    transform: scale(1.05);
}

/* Team Member Images */
.team-member img {
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.1);
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Button Hover Effects */
button {
    transition: all 0.3s ease;
}

/* Image Hover Effects */
img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 100%;
    height: auto;
}

section img:hover {
    transform: scale(1.02);
}

/* Hero Section Specific */
#home img,
#home .bg-cover {
    object-fit: cover;
    object-position: center;
}

/* Hero Section Layers */
#skycrapersLayer {
    will-change: transform, opacity;
    z-index: 1;
    display: block;
}

/* Hero section should allow overflow at top */
#home {
    overflow: visible !important;
    position: relative;
    min-height: 100vh;
    z-index: 0;
    margin-top: 70px; /* Allow image top heads to be visible */
}

/* Ensure skycrapers image extends beyond container - towers visible above */
#home #skycrapersLayer {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
}

/* Allow overflow on body to show extended image */
html, body {
    overflow-x: hidden;
}

/* Prevent automatic scrolling on page load */
html {
    scroll-behavior: auto;
}

html, body {
    scroll-behavior: auto;
}

/* Ensure page starts at top */
html {
    scroll-padding-top: 0;
}

#home > div[style*="background-image"] {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Layer stacking order */
#home .absolute:first-of-type {
    z-index: 1; /* Skycrapers layer */
}

#home .absolute:nth-of-type(2) {
    z-index: 2; /* Sky layer */
}

#home .absolute:nth-of-type(3) {
    z-index: 3; /* Low opacity layer */
}

/* Ensure proper z-index layering for content */
#home .relative {
    z-index: 20;
    position: relative;
}

/* Ensure images display properly */
img[src*="images/"] {
    display: block;
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #1a3663;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #152842;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    line-height: 90%;
}

/* Link Hover Effects */
a {
    transition: color 0.3s ease;
}

/* Form Elements */
input, textarea, select {
    transition: all 0.3s ease;
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid #1a3663;
    outline-offset: 2px;
}

section#services {
    border-radius: 0 0 80px 80px;
}
section#programs {
    margin-top: -68px;
    z-index: -1;
    position: relative;
    padding-top: 120px;
}

.aboutussection h2 {
    font-size: 50px;
    line-height: 90%;
}
.aboutussection p {
    max-width: 418px;
    line-height: 120%;
}
.aboutussection button {
   letter-spacing: 2px;
}
.programssection h3 {
    letter-spacing: -0.93px;
    line-height: 110%;
    min-height: 140px;
    border-bottom: 2px solid #fff;
    padding: 20px;
}
.programssection p {
    letter-spacing: -1px;
    line-height: 120%;
    padding: 20px;
    min-height: 100px;
 }
 .programssection a {
    letter-spacing: -1px;
    line-height: 120%;
    padding: 20px;
 }
 .aboutvipan h2 {
    letter-spacing: -4.72px;
 }
 .aboutvipan p {
    letter-spacing: -0.32px;
    line-height: 150%;
 }
 .globalresidencysection h2 {
    letter-spacing: -6px;
    line-height: 95%;
 }
 .globalresidencysection p {
    letter-spacing: -1.2px;
    line-height: 120%;
    max-width: 400px;
 }
 .citizenshipbyinvestmentssection h2 {
    letter-spacing: -4px;
    line-height: 101%;
 }
 .citizenshipbyinvestmentssection p {
    letter-spacing: -1px;
    line-height: 120%;
 }
 .stepper h2 {
    letter-spacing: -3px;
    line-height: 95%;
 }
 .ourteam h2 {
    letter-spacing: -5px;
 }
 .ourteam p {
    letter-spacing: -1.27px;
 }
 p.testi_small_line {
    height: 2px;
    background: white;
    width: 15px;
}
.testimonials_section h2 {
    letter-spacing: -4px;
}
.blogs_and_news h2 {
    letter-spacing: -4px;
}
.aircuise_web p {
    letter-spacing: -0.93px;
    line-height:130%;
}
.faq_sec h2 {
    letter-spacing: -4px;
}
.faq_sec button {
    outline: 0 !important;
}
.rounded-about-right {
    width: 300px;
    height: 300px;
}