/* =============================================================================
   Brigade Gateway Neopolis - Modern Luxury Real Estate Website
   ============================================================================= */

/* CSS Variables for Theme */
:root {
    /* Colors */
    --primary-color: #1a365d;
    --primary-dark: #0f2744;
    --primary-light: #2d4a73;
    --accent-color: #c7956d;
    --accent-light: #d4a77e;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --off-white: #f7fafc;
    --border-color: #e2e8f0;
    --overlay: rgba(26, 54, 93, 0.85);
    --overlay-light: rgba(26, 54, 93, 0.6);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --container-padding: 20px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
   Reset & Base Styles
   ============================================================================= */

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

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* =============================================================================
   Typography
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section-label.light {
    color: var(--accent-light);
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-title.light {
    color: var(--white);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.section-description.light {
    color: rgba(255, 255, 255, 0.9);
}

/* =============================================================================
   Layout
   ============================================================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center {
    text-align: center;
}

section {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 4rem;
}

/* =============================================================================
   Buttons
   ============================================================================= */

.btn-primary, .btn-secondary, .btn-text {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    transition: var(--transition-base);
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-primary-small {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
}

.btn-primary-small:hover {
    background: var(--accent-light);
}

.btn-text {
    padding: 0;
    color: var(--accent-color);
    font-weight: 600;
    border: none;
}

.btn-text:hover {
    color: var(--accent-light);
    transform: translateX(5px);
}

.btn-full {
    width: 100%;
}

/* =============================================================================
   Header & Navigation
   ============================================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
}

.header.scrolled .nav-link,
.header .nav-link {
    color: var(--text-dark);
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* =============================================================================
   Hero Section
   ============================================================================= */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--overlay) 0%, var(--overlay-light) 100%);
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    padding: 0 20px;
    max-width: 100%;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-title .subtitle {
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    color: var(--accent-light);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.feature-tag {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-cta .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.hero-cta .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    font-size: 0.875rem;
}

.scroll-arrow {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    margin: 10px auto;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(15px); opacity: 0.5; }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s both;
}

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

/* =============================================================================
   Introduction Section
   ============================================================================= */

.introduction {
    background: var(--off-white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-content {
    padding-right: 2rem;
}

.intro-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* =============================================================================
   Residences Section
   ============================================================================= */

.residences {
    background: var(--white);
}

.residence-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.residence-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.residence-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.residence-card.featured {
    border: 2px solid var(--accent-color);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.residence-card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
}

.card-content {
    padding: 2rem;
}

.card-title {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-description {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.card-features {
    margin-bottom: 1.5rem;
}

.card-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* =============================================================================
   Master Plan Section
   ============================================================================= */

.masterplan {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.masterplan .section-label,
.masterplan .section-title,
.masterplan .section-description {
    color: var(--white);
}

.masterplan .section-label {
    color: var(--accent-light);
}

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

.masterplan-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.masterplan-zones {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.zone-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.zone-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.zone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.zone-item h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.zone-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* =============================================================================
   Amenities Section
   ============================================================================= */

.amenities {
    background: var(--off-white);
}

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

.amenity-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.amenity-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.amenity-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.amenity-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.amenity-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
}

/* =============================================================================
   Hospitality Section
   ============================================================================= */

.hospitality {
    position: relative;
    background: var(--primary-color);
    color: var(--white);
}

.hospitality-bg {
    padding: var(--section-padding) 0;
}

.hospitality-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

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

.hosp-feature {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hosp-feature h4 {
    color: var(--accent-light);
    margin-bottom: 0.75rem;
}

.hosp-feature p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* =============================================================================
   Location Section
   ============================================================================= */

.location {
    background: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location-subtitle {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.connectivity-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.connectivity-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: 8px;
    transition: var(--transition-base);
}

.connectivity-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.connectivity-item .icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.connectivity-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.connectivity-item p {
    color: var(--text-medium);
    margin: 0;
    font-size: 0.95rem;
}

.location-map {
    position: relative;
}

.map-placeholder {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-placeholder img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.map-placeholder:hover .map-overlay {
    opacity: 1;
}

/* =============================================================================
   Gallery Section
   ============================================================================= */

.gallery {
    background: var(--off-white);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.3);
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* =============================================================================
   Legacy Section
   ============================================================================= */

.legacy {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.legacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.legacy .section-label,
.legacy .section-title,
.legacy .section-description {
    color: var(--white);
}

.legacy .section-label {
    color: var(--accent-light);
}

.legacy .btn-secondary {
    border-color: var(--white);
    color: var(--white);
    margin-top: 2rem;
}

.legacy .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* =============================================================================
   Contact Section
   ============================================================================= */

.contact {
    background: var(--off-white);
}

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

.contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-detail-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.contact-detail-item p {
    color: var(--text-medium);
    margin: 0;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

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

.required {
    color: #e53e3e;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(199, 149, 109, 0.1);
}

.phone-input-group {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem;
}

.country-code-select {
    font-size: 0.95rem;
}

.error-message {
    display: block;
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #e53e3e;
}

.form-message {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.form-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.btn-loader {
    display: inline-block;
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--accent-light);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.footer-bottom a {
    color: var(--accent-light);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.rera-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.rera-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

.disclaimer {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* =============================================================================
   Modal / Popup
   ============================================================================= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem;
}

.modal.active {
    display: block;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: -1;
}

.modal-content {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    animation: modalSlideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-medium);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
    line-height: 1;
}

.modal-close:hover {
    background: var(--off-white);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-medium);
    font-size: 1rem;
    margin: 0;
}

.modal .contact-form {
    margin-top: 0;
}

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

/* =============================================================================
   Responsive Design
   ============================================================================= */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .intro-grid,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-content {
        padding-right: 0;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 24px;
    }

    .container,
    .container-fluid {
        padding-left: 24px;
        padding-right: 24px;
    }

    body {
        overflow-x: hidden;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        min-height: 600px;
        padding-top: 80px;
    }

    .hero-content {
        padding: 20px 24px;
        margin-top: 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-title .subtitle {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
    }

    .intro-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .residence-cards {
        grid-template-columns: 1fr;
    }

    .masterplan-zones,
    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .hospitality-features {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .phone-input-group {
        grid-template-columns: 110px 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal {
        padding: 1rem;
    }

    .modal-content {
        padding: 2rem;
        margin: 1rem auto;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 20px;
    }

    .container,
    .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        min-height: 500px;
        padding-top: 100px;
    }

    .hero-content {
        padding: 10px 20px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .hero-title .subtitle {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .hero-features {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 1.5rem;
    }

    .feature-tag {
        text-align: center;
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .phone-input-group {
        grid-template-columns: 1fr;
    }

    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .section-title,
    .hero-title {
        line-height: 1.3;
    }

    .hero-description,
    .section-description {
        font-size: 1rem;
    }

    .card-content,
    .contact-form-wrapper,
    .modal-content {
        padding: 1.5rem;
    }

    .footer-section {
        padding-right: 10px;
    }
}

/* =============================================================================
   Utility Classes
   ============================================================================= */

.hidden {
    display: none;
}

.visible {
    display: block;
}

.no-scroll {
    overflow: hidden;
}

/* =============================================================================
   Floating Action Buttons
   ============================================================================= */

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    animation: floatIn 0.6s ease-out;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    animation: floatBounce 2s ease-in-out infinite;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.float-btn:active {
    transform: scale(0.95);
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.float-btn:hover {
    animation: none;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: white;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #1DA851 100%);
}

.call-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #A37A4C 100%);
    color: white;
}

.call-btn:hover {
    background: linear-gradient(135deg, #A37A4C 0%, #8F6A42 100%);
}

.float-btn svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Tablet Adjustments */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }

    .float-btn {
        width: 56px;
        height: 56px;
    }

    .float-btn svg {
        width: 26px;
        height: 26px;
    }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .float-btn {
        width: 52px;
        height: 52px;
    }

    .float-btn svg {
        width: 24px;
        height: 24px;
    }
}
