/* ============================================
   PADANG RESIDENCES - MAIN STYLESHEET
   Mobile-First Responsive Design
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #1a5f4a;
    --primary-dark: #0d3d2e;
    --primary-light: #2d8b6a;
    --primary-rgb: 26, 95, 74;
    
    /* Accent Colors */
    --accent: #c9a961;
    --accent-light: #e8d4a0;
    --accent-dark: #a88b3d;
    
    /* Neutrals */
    --dark: #1a1a1a;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --light: #f8f7f4;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #c9a961 0%, #e8d4a0 50%, #c9a961 100%);
    --gradient-green: linear-gradient(135deg, #1a5f4a 0%, #2d8b6a 100%);
    --gradient-dark: linear-gradient(135deg, #0d3d2e 0%, #1a5f4a 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 60px;
    --container-padding: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
}

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

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

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px var(--container-padding);
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Removes underline from the link */
    cursor: pointer;       /* Ensures the hand icon appears */
    z-index: 10;          /* Keeps the logo above other elements */
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(90deg, #4a9d7c, #2563eb, #7c3aed, #1a5f4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
	pointer-events: none;
}

.logo-tagline {
    font-size: 0.6rem;
    color: var(--gray-500);
    letter-spacing: 2px;
    text-transform: uppercase;
	pointer-events: none;
}

.nav {
    display: none;
}

.header-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition-base);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    white-space: nowrap;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: var(--gradient-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(var(--primary-rgb), 0.4);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--dark);
    font-weight: 700;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 169, 97, 0.4);
}

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 1001;
    padding: 80px 24px 24px;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
}

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

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
    line-height: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark);
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav a:hover {
    color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 70px;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(10, 26, 20, 0.88) 0%, 
        rgba(26, 61, 46, 0.75) 50%, 
        rgba(13, 40, 32, 0.88) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 30px var(--container-padding);
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--dark);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    background: linear-gradient(90deg, #4a9d7c, #7dd3a8, #3b82f6, #a78bfa, #4a9d7c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent-light);
    font-style: italic;
    margin-bottom: 12px;
}

.hero-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-price {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-price-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-price-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
    padding: 0 20px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.hero-feature {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.hero-feature-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.hero-feature-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.4;
}
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.65)
  );
  z-index: -1;
}
/* ===============================
   HERO MOBILE TYPOGRAPHY FIX
   =============================== */
@media (max-width: 768px) {

  /* Entire title (Residences included) */
  .hero-title {
    font-size: 2.2rem !important;
    line-height: 1.1;
  }

  /* Padang (gradient word) */
  .hero-title span {
    font-size: 2.2rem !important;
  }

  /* Subtitle + tagline */
  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Price container */
  .hero-price {
    padding: 1rem;
  }

  /* RM 400,000 */
  .hero-price-value {
    font-size: 1.9rem !important;
  }

  .hero-price-label {
    font-size: 0.8rem;
  }
}


/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
    position: relative;
}

.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.section-label::before {
    right: calc(100% + 10px);
}

.section-label::after {
    left: calc(100% + 10px);
}

.section-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-desc {
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* ============================================
   LOCATION SECTION
   ============================================ */
.location {
    background: var(--light);
}

.location-grid {
    display: grid;
    gap: 32px;
    align-items: center;
}

.location-map {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.location-map img {
    width: 100%;
    height: auto;
}

.location-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.location-content p {
    color: var(--gray-500);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

.amenity-card {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

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

.amenity-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-green);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.amenity-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.amenity-distance {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ============================================
   FEATURES / WHY CHOOSE
   ============================================ */
.why-choose {
    background: var(--white);
}

.features-grid {
    display: grid;
    gap: 20px;
}

.feature-card {
    background: var(--light);
    padding: 24px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-green);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.feature-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   FLOOR PLANS
   ============================================ */
.floor-plans {
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.floor-plans-showcase {
    display: grid;
    gap: 24px;
}

.floor-plan-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.floor-plan-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.floor-plan-image img {
    width: 100%;
    height: auto;
}

/* ============================================
   FACILITIES
   ============================================ */
.facilities {
    background: var(--primary-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

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

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

.facilities .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.facilities-showcase {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.facilities-showcase img {
    width: 100%;
    height: auto;
}

.facility-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.facility-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/12;
}

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

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

.facility-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.facility-card-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================
   SPECIFICATIONS
   ============================================ */
.specifications {
    background: var(--light);
}

.specs-grid {
    display: grid;
    gap: 20px;
}

.spec-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.spec-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem;
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--gray-500);
}

.spec-value {
    font-weight: 500;
    color: var(--dark);
    text-align: right;
}

/* ============================================
   DEVELOPER
   ============================================ */
.developer {
    background: var(--white);
}

.developer-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.developer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.developer-logo {
    background: var(--light);
    padding: 20px 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.developer-logo-text {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.developer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.developer-content p {
    color: var(--gray-500);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--gradient-dark);
    color: var(--white);
    position: relative;
}

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

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

.contact .section-desc {
    color: rgba(255, 255, 255, 0.8);
}

.contact-grid {
    display: grid;
    gap: 40px;
}

.contact-info {
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.contact-form-wrapper h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.contact-form-wrapper > p {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    background: var(--white);
}

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

.form-input::placeholder {
    color: var(--gray-500);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-btn {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
}

/* Honeypot field - hidden from users */
.hidden-field {
    position: absolute;
    left: -9999px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0 24px;
}

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

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #4a9d7c, #7dd3a8, #4a9d7c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-disclaimer {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.8;
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.whatsapp-float-text {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
}

/* ============================================
   CHATBOT
   ============================================ */

.chatbot-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.chatbot-trigger:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.chatbot-trigger svg {
    width: 20px;
    height: 20px;
}

.chatbot-trigger-text {
    display: none;
}

.chatbot-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 360px;
    max-width: calc(100% - 40px);
    height: 520px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.chatbot-panel.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}



.chatbot-header {
    background: var(--gradient-green);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chatbot-header-text h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.chatbot-header-text p {
    font-size: 0.75rem;
    opacity: 0.9;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    line-height: 1.5;
    animation: messageSlide 0.3s ease;
}

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

.chat-message.bot {
    background: var(--gray-100);
    color: var(--dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    background: var(--primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.faq-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.faq-option {
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
    color: var(--dark);
}

.faq-option:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.chatbot-footer {
    padding: 16px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-whatsapp-btn {
    width: 100%;
    padding: 14px;
    font-size: 0.9rem;
}

.chatbot-back-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    padding: 8px;
    transition: var(--transition-fast);
}

.chatbot-back-btn:hover {
    color: var(--primary-dark);
}

/* Chatbot overlay for mobile */
.chatbot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.chatbot-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   ANIMATIONS
   ============================================ */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ============================================
   RESPONSIVE - TABLET (576px+)
   ============================================ */
@media (min-width: 576px) {
    :root {
        --container-padding: 24px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        padding: 0;
    }

    .hero-features {
        grid-template-columns: repeat(4, 1fr);
        max-width: 600px;
    }

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

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

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

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

    .chatbot-trigger-text {
        display: inline;
    }

    .whatsapp-float {
        width: auto;
        padding: 14px 24px;
        border-radius: var(--radius-full);
    }

    .whatsapp-float-text {
        display: inline;
        font-weight: 600;
        font-size: 0.9rem;
        margin-left: 8px;
    }
}

/* ============================================
   RESPONSIVE - TABLET LANDSCAPE (768px+)
   ============================================ */
@media (min-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-price-value {
        font-size: 2rem;
    }

    .hero-features {
        max-width: 700px;
    }

    .location-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .floor-plans-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 36px;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP (992px+)
   ============================================ */
@media (min-width: 992px) {
    :root {
        --section-padding: 100px;
        --container-padding: 32px;
    }

    .nav {
        display: flex;
        gap: 32px;
    }

    .nav a {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--dark);
        position: relative;
    }

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

    .nav a:hover::after {
        width: 100%;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

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

    .developer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chatbot-panel {
        bottom: 90px;
        right: 40px;
    }

    .chatbot-trigger {
        bottom: 30px;
		right: 40px;
    }

    .whatsapp-float {
        bottom: 90px;
    }
}

/* ============================================
   RESPONSIVE - LARGE DESKTOP (1200px+)
   ============================================ */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-tagline {
        font-size: 1rem;
        max-width: 600px;
    }

    .hero-features {
        max-width: 800px;
    }

    .section-title {
        font-size: 2.8rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .whatsapp-float,
    .chatbot-trigger,
    .chatbot-panel,
    .chatbot-overlay {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .section {
        padding: 40px 0;
    }
}
/* ================================
   Chatbot Preview Bubble
================================ */

.chatbot-preview {
  display: none; /* hidden initially */
  position: fixed;
  bottom: 95px;
  right: 40px;
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  max-width: 260px;
  z-index: 9998;
}


.chatbot-preview p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
}

.chatbot-preview button {
  background: none;
  border: none;
  color: #f5b400;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}

.chatbot-preview button:hover {
  text-decoration: underline;
}

/* small tail like chat bubble */
.chatbot-preview::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 28px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  box-shadow: 5px 5px 15px rgba(0,0,0,0.05);
}

@keyframes previewFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chatbot-preview {
    display: none;
    position: fixed;
    bottom: 95px;
    right: 20px;
    background: #ffffff;
    padding: 14px 16px 16px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    max-width: 260px;
    z-index: 9999;
}

.preview-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
}

.preview-close:hover {
    color: #333;
}

.preview-start {
    background: none;
    border: none;
    color: #c9a961;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
/* FINAL REFINED FIX: Place at the end of styles.css */

.chatbot-trigger {
    bottom: 20px !important;
    right: 20px !important;
}

/* We remove 'display: block' so JS can control it */
.chatbot-preview {
    bottom: 85px !important; /* Adjusted slightly for better gap */
    right: 20px !important;
}

.chatbot-panel {
    bottom: 20px !important;
    right: 20px !important;
}

@media (min-width: 992px) {
    .chatbot-trigger, .chatbot-preview, .chatbot-panel {
        right: 40px !important;
    }
}
/* ============================================
   PREMIUM HERO SECTION OVERRIDE
   ============================================ */

/* 1. Gradient Overlay: Replaces flat green with depth */
.hero-overlay {
    background: linear-gradient(
        135deg, 
        rgba(10, 26, 20, 0.4) 0%, 
        rgba(26, 61, 46, 0.85) 100%
    ) !important;
}

/* 2. Title Enhancement: Glow and weight */
.hero-title {
    font-size: 4.5rem !important;
    font-weight: 800 !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    letter-spacing: -1.5px !important;
}

/* 3. Subtitle: Elegant Gold contrast */
.hero-subtitle {
    color: #c9a961 !important; /* Premium Gold */
    font-size: 1.3rem !important;
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    font-weight: 500 !important;
}

/* 4. Glassmorphism Price Badge: Modern transparency */
.hero-price {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    padding: 20px 40px !important;
}

.hero-price-value {
    color: #f1d38e !important; /* Brighter Gold for visibility */
    font-size: 2.2rem !important;
}

/* 5. Interactive Feature Cards */
.hero-feature {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #c9a961 !important;
    transform: translateY(-8px) scale(1.02) !important;
}
/* ===============================
   MOBILE HERO TYPOGRAPHY FIX
   =============================== */
@media (max-width: 768px) {

  .hero-title {
    font-size: 2.4rem;      /* desktop likely ~4–5rem */
    line-height: 1.1;
  }

  .hero-title span {
    font-size: 2.2rem;      /* "Padang" gradient text */
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero-price {
    padding: 1rem;
  }

  .hero-price-value {
    font-size: 2rem;        /* RM 400,000 */
  }

  .hero-price-label {
    font-size: 0.85rem;
  }
}
@media (max-width: 768px) {

  h1.hero-title {
    font-size: 2.1rem !important;
    line-height: 1.1 !important;
  }

  h1.hero-title span {
    font-size: 2.1rem !important;
  }

  .hero-price .hero-price-value {
    font-size: 1.8rem !important;
  }

  .hero-price {
    padding: 1rem !important;
  }
}
/* ============================================
   FINAL MOBILE TYPOGRAPHY OVERRIDE
   ============================================ */
@media (max-width: 768px) {
    /* Reduce the main title size and line spacing */
    .hero-title {
        font-size: 2.2rem !important; 
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
        letter-spacing: normal !important;
    }

    /* Ensure the gradient word "Padang" matches */
    .hero-title span {
        font-size: 2.2rem !important;
    }

    /* Shrink the subtitle so it doesn't push content down */
    .hero-subtitle {
        font-size: 0.85rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 8px !important;
    }

    /* Constrain the tagline width so it doesn't hit the screen edges */
    .hero-tagline {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        padding: 0 15px !important;
        margin-bottom: 15px !important;
    }

    /* Shrink the Price Badge container */
    .hero-price {
        padding: 12px 20px !important;
        margin-bottom: 20px !important;
    }

    /* Make the RM price fit on one line */
    .hero-price-value {
        font-size: 1.5rem !important;
    }
}
/* ============================================
   MOBILE COMPONENT RESIZING (MAX-WIDTH: 768px)
   ============================================ */
@media (max-width: 768px) {
    
    /* 1. Price Badge ("Starting from RM 400,000") */
    .hero-price {
        padding: 10px 15px !important; /* Reduces vertical and horizontal bulk */
        margin-bottom: 15px !important;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-price-label {
        font-size: 0.7rem !important; /* Shrinks the "Starting from" text */
    }

    .hero-price-value {
        font-size: 1.4rem !important; /* Reduces the size of "RM 400,000" */
    }

    /* 2. CTA Buttons (WhatsApp & Call) */
    .hero-buttons {
        gap: 8px !important; /* Tightens the space between buttons */
        margin-bottom: 25px !important;
        padding: 0 10px !important;
    }

    .hero-buttons .btn {
        padding: 10px 20px !important; /* Makes buttons less "tall" */
        font-size: 0.85rem !important; /* Adjusts text size */
    }

    /* 3. Feature Cards (4 Towers, Bedrooms, etc.) */
    .hero-features {
        gap: 10px !important; /* Reduces gap between the grid items */
        padding: 0 5px !important;
    }

    .hero-feature {
        padding: 12px 8px !important; /* Reduces internal padding of the boxes */
    }

    .hero-feature-icon {
        font-size: 1.4rem !important; /* Shrinks the icons */
        margin-bottom: 4px !important;
    }

    .hero-feature-text {
        font-size: 0.7rem !important; /* Reduces text size for better fit */
        line-height: 1.2 !important;
    }
	
}
/* ============================================
   ULTRA-COMPACT MOBILE OVERRIDE
   ============================================ */
@media (max-width: 480px) {
    
    /* 1. Ultra-Small Price Badge */
    .hero-price {
        padding: 6px 12px !important;
        margin-bottom: 12px !important;
        border-radius: 8px !important;
    }

    .hero-price-label {
        font-size: 0.65rem !important;
    }

    .hero-price-value {
        font-size: 1.2rem !important; /* Significantly smaller RM price */
    }

    /* 2. Compact CTA Buttons */
    .hero-buttons {
        gap: 6px !important;
        margin-bottom: 20px !important;
    }

    .hero-buttons .btn {
        padding: 8px 15px !important; /* Slimmer buttons */
        font-size: 0.8rem !important;
        min-height: auto !important;
    }

    .btn svg {
        width: 16px !important; /* Smaller icons in buttons */
        height: 16px !important;
    }

    /* 3. Minimalist Feature Cards */
    .hero-features {
        gap: 8px !important;
    }

    .hero-feature {
        padding: 8px 4px !important; /* Very tight padding */
        min-height: 100px !important; /* Ensures boxes stay uniform */
    }

    .hero-feature-icon {
        font-size: 1.2rem !important;
        margin-bottom: 2px !important;
    }

    .hero-feature-text {
        font-size: 0.65rem !important;
        transform: scale(0.95); /* Slight shrink to ensure text stays on lines */
    }
}
/* ============================================
   ULTRA-FORCE SIDE-BY-SIDE LAYOUT
   ============================================ */
@media screen and (max-width: 768px) {
    /* 1. Force the container into a horizontal row */
    .hero-content .hero-buttons {
        display: flex !important;
        flex-direction: row !important; /* Forces side-by-side */
        flex-wrap: nowrap !important; /* Prevents wrapping to a new line */
        gap: 10px !important;
        padding: 0 10px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    /* 2. Make each button take up exactly half the space */
    .hero-content .hero-buttons .btn {
        flex: 1 !important;
        width: 50% !important;
        padding: 10px 5px !important; /* Reduced padding for fit */
        font-size: 0.75rem !important; /* Smaller text size */
        white-space: nowrap !important;
        justify-content: center !important;
    }

    /* 3. Scale down the Price Badge to save vertical space */
    .hero-price {
        padding: 8px 15px !important;
        margin-bottom: 15px !important;
    }

    .hero-price-value {
        font-size: 1.4rem !important;
    }

    /* 4. Shrink the Feature Cards grid gap */
    .hero-features {
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .hero-feature {
        padding: 10px 5px !important;
        min-height: 90px !important;
    }

    .contact-form-wrapper {
        max-width: 92%;
        margin: 0 auto;
    }
	.contact::before {
        background: rgba(0, 0, 0, 0.25);
    }
	.contact {
        background-position: center top;
        background-size: cover;
    }
	.contact-form-wrapper {
        border: 1px solid rgba(255, 255, 255, 0.4);
    }

}

/* ============================================
   SMALL SCREEN FEATURE CARDS FIX
   Single column layout for very small screens
   ============================================ */
@media (max-width: 380px) {
    /* Switch to single column on very small screens */
    .hero-features {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        max-width: 200px !important;
    }
    
    .hero-feature {
        padding: 12px 16px !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        text-align: left !important;
    }
    
    .hero-feature-icon {
        font-size: 1.5rem !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }
    
    .hero-feature-text {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
}

/* Alternative: Keep 2x2 but more compact on small screens */
@media (min-width: 381px) and (max-width: 480px) {
    .hero-features {
        gap: 6px !important;
        max-width: 320px !important;
        padding: 0 !important;
    }
    
    .hero-feature {
        padding: 10px 6px !important;
        min-height: 80px !important;
        border-radius: 8px !important;
    }
    
    .hero-feature-icon {
        font-size: 1.3rem !important;
        margin-bottom: 3px !important;
    }
    
    .hero-feature-text {
        font-size: 0.65rem !important;
        line-height: 1.25 !important;
    }
}
.contact {
    position: relative;
    /* Updated path: ../ moves out of the 'css' folder into 'assets', then into 'images' */
    background-image: url('../images/contact_background.webp'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    color: #ffffff;
    background-attachment: scroll; /* Recommended for mobile stability */
}

/* Lightened overlay: Changed 0.75 to 0.4 to make it less "grey" and more transparent */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}
@media (max-width: 768px) {
    .contact {
        /* This pushes the focal point 20% from the left to keep the towers in view */
        background-position: 20% center; 
        padding: 60px 0;
    }
}
@media (max-width: 768px) {
    /* Stack elements vertically and reverse the order */
    .contact-grid {
        display: flex;
        flex-direction: column-reverse; 
        gap: 40px;
    }

    /* Adjust the contact info to be horizontal and compact */
    .contact-info {
        padding: 20px;
        background: rgba(10, 22, 40, 0.6); /* Semi-transparent to see background */
        border-radius: 12px;
        text-align: center;
    }

    /* Layout the contact items horizontally in a row */
    address {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        font-style: normal;
    }

    /* Make individual items smaller and side-by-side */
    .contact-item {
        flex: 1 1 140px; /* Allows items to sit side-by-side */
        margin-bottom: 0 !important;
        font-size: 0.85rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .contact-detail h4 {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    /* Ensure the background image focal point is visible above the form */
    .contact {
        background-position: 30% top;
        padding: 40px 0;
    }
}
@media (max-width: 768px) {
    .contact-form-wrapper {
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
}
/* ============================================
   MOBILE CONTACT BACKGROUND VISIBILITY FIX
   ============================================ */

@media (max-width: 768px) {

    /* Glass effect for the form */
    .contact-form-wrapper {
        background: rgba(255, 255, 255, 0.78) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 18px 16px !important;
        max-width: 92%;
        margin: 0 auto;
        border-radius: 16px;
    }

    /* Reduce form vertical bulk */
    .form-group {
        margin-bottom: 12px;
    }

    .contact-form-wrapper h3 {
        font-size: 1.1rem;
    }

    .contact-form-wrapper > p {
        font-size: 0.8rem;
        margin-bottom: 14px;
    }

    /* Make background image visible above the form */
    .contact {
        padding-top: 80px;
        padding-bottom: 40px;
        background-position: center top;
    }
}
/* Update the container of the entire hero text area */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem; /* Adds a consistent global gap between groups */
    padding: 60px var(--container-padding);
}

/* Add more breathing room specifically above the feature cards */
.hero-features {
    margin-top: 40px !important; /* Forces separation from the buttons */
    gap: 20px !important;
}

/* Space out the Title from the Subtitle/Tagline */
.hero-title {
    margin-bottom: 20px !important;
}

.hero-tagline {
    margin-bottom: 32px !important;
}
@media (min-width: 992px) {
    .hero-subtitle {
        margin-bottom: 24px !important;
    }
    
    .hero-buttons {
        margin-bottom: 60px !important; /* Larger gap before the feature cards */
    }
}
@media (min-width: 1200px) {
    .hero-features {
        max-width: 1000px !important; /* Widens the base to anchor the section */
        grid-template-columns: repeat(4, 1fr);
        gap: 30px !important;
    }
}
@media (min-width: 768px) {
    /* ... existing styles ... */
    .hero-tagline {
        font-size: 1.1rem !important; /* Increased from 0.9rem */
        max-width: 650px !important;  /* Wider to match the bigger text */
        line-height: 1.6;
    }
}
@media (min-width: 1200px) {
    /* ... existing styles ... */
    .hero-tagline {
        font-size: 1.25rem !important; /* Premium readable size for desktop */
        max-width: 750px !important;   /* Prevents the text from stretching too wide */
        margin-bottom: 40px !important; /* Adds spacing from the buttons below */
    }
}
/* target mobile devices specifically to force 2x2 layout */
@media screen and (max-width: 768px) {
    .hero-features {
        display: grid !important;
        /* Force two equal columns even on narrow screens */
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .hero-feature {
        /* Ensure boxes don't grow too tall or shrink too much */
        min-height: 85px !important; 
        padding: 10px 5px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-feature-text {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        margin-top: 4px !important;
    }
}

