/* New Color Palette and Fonts */
        :root {
            --dark-blue: #0d1226;
            --mid-blue: #192a56;
            --light-blue: #2c4174;
            --gold: #b49463;
            --white: #fff;
            --light-gray: #a4b0be;
        }

        /* Basic Reset & Font */
        body {
            margin: 0;
            padding: 0;
            font-family: 'Poppins', sans-serif;
            color: var(--white);
            background-color: var(--dark-blue);
        }

        /* Header & Navigation */
        .header {
            background-color: var(--mid-blue);
            padding: 1.5rem 3rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            width: 100%;
            box-sizing: border-box;
            z-index: 100;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            }
        


            /* Hero Section Animation */
            .hero-image-container {
                opacity: 0;
                transform: translateX(-80px);
                animation: slideInLeft 1.2s ease-out forwards;
            }

            .hero-text-box {
                opacity: 0;
                transform: translateX(80px);
                animation: slideInRight 1.2s ease-out forwards;
                animation-delay: 0.4s; /* start after image */
            }

            @keyframes slideInLeft {
                to {
                    opacity: 1;
                    transform: translateX(0);
                }
            }

            @keyframes slideInRight {
                to {
                    opacity: 1;
                    transform: translateX(0);
                }
            }


        .logo {
            font-weight: 700;
            font-size: 1.75rem;
            color: var(--gold);
        }

        .nav-list {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .nav-item a {
            color: var(--white);
            text-decoration: none;
            font-weight: 400;
            font-size: 1rem;
            padding: 0 1.25rem;
            transition: color 0.3s ease;
            position: relative;
        }

        .nav-item a::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: -5px;
            width: 0;
            height: 2px;
            background-color: var(--gold);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }
        
        .nav-item a:hover::after {
            width: 80%;
        }

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

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1549216035-7c27ae027c9f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w0NTQwMjJ8MHwxfHNlYXJjaHwxNXx8Y2l0eSUyMHNreWxpbmV8ZW58MHx8fHwxNjk0NDQ1NTU4fDA&ixlib=rb-4.0.3&q=80&w=1080') no-repeat center center/cover;
            filter: brightness(0.4);
            z-index: -2;
        }

        .hero-content {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 90%;
            max-width: 1400px;
            z-index: 1;
            padding-top: 5rem;
        }

        .hero-image-container {
            /* Changed from 40% to 60% */
            width: 70%;
            max-width: 850px; /* Increased max-width for a larger image */
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            /* Adjusted margin to maintain overlap */
            margin-right: -4rem; 
        }

        .person-image {
            display: block;
            width: 100%;
            height: auto;
        }

        .hero-text-box {
            background-color: rgba(25, 42, 86, 0.85);
            padding: 3rem;
            /* Changed from 60% to 40% */
            width: 30%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 350px;
            box-sizing: border-box;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            position: relative;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 1rem;
            color: var(--gold);
        }

        .hero-subtitle {
            font-size: 1.2rem;
            font-weight: 400;
            line-height: 1.6;
            margin-bottom: 2rem;
        }

        .cta-button {
            display: inline-block;
            padding: 0.75rem 2rem;
            color: var(--white);
            background-color: var(--mid-blue);
            text-decoration: none;
            font-weight: 600;
            border: 2px solid var(--white);
            transition: all 0.3s ease;
            text-transform: uppercase;
        }

        .cta-button:hover {
            background-color: var(--gold);
            border-color: var(--gold);
            color: var(--dark-blue);
        }

        /* Properties Section */
        .properties-section, .services-section, .about-section, .services-page {
            padding: 6rem 3rem;
            display: block; /* Default to block */
        }

        .properties-header, .services-header, .about-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .properties-title, .services-title, .about-title, .services-page-title {
            font-size: 3rem;
            font-weight: 700;
            color: var(--white);
            margin: 0;
            position: relative;
            display: inline-block;
            padding-bottom: 0.5rem;
        }

        .properties-title::after, .services-title::after, .about-title::after, .services-page-title::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: 0;
            transform: translateX(-50%);
            width: 80%;
            height: 3px;
            background-color: var(--gold);
        }

        .properties-content {
            display: flex;
            gap: 4rem;
            align-items: center;
        }
        
        .properties-image-column {
            flex: 1;
            min-width: 400px;
        }

        .properties-image {
            display: block;
            width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .properties-list-column {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
        }

        .property-item {
            padding: 1.5rem 0;
            border-bottom: 1px solid var(--light-blue);
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .property-item:last-child {
            border-bottom: none;
        }

        .property-item:hover {
            background-color: rgba(255, 255, 255, 0.05);
            transform: translateY(-5px);
        }

        .property-title {
            font-size: 1.75rem;
            font-weight: 600;
            margin: 0 0 0.25rem;
        }

        .property-subtitle {
            font-size: 1rem;
            font-weight: 400;
            margin: 0;
            color: var(--light-gray);
        }


        /*Services Section  */
        .services-section {
            background-color: var(--mid-blue);
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 2rem;
            text-align: center;
        }
        
        .service-card {
            background-color: rgba(13, 18, 38, 0.5);
            padding: 2.5rem 1.5rem;
            border-radius: 10px;
            transition: transform 0.3s ease, background-color 0.3s ease;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
            cursor: pointer;
        }
        
        .service-card:hover {
            transform: translateY(-10px);
            background-color: var(--dark-blue);
        }
        
        .service-card i {
            font-size: 3rem;
            color: var(--gold);
            margin-bottom: 1rem;
        }
        
        .service-card h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin-top: 0;
        }
        
        .service-card p {
            font-size: 0.9rem;
            color: var(--light-gray);

    
        }

        .full-span {
    grid-column: 1 / -1;
}


/* ================= TWO STOREY ================= */

/* ================= TWO STOREY ================= */

.section-title {
  margin: 3rem 0 2rem;   /* FIX BIG EMPTY SPACE */
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Section wrapper (OPTIONAL but recommended) */
.two-storey-section {
  padding: 2rem 5% 4rem; /* ⬅ smaller top padding */
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 35, 0.95),
    rgba(5, 10, 25, 1)
  );
}

/* Grid layout */
.two-storey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Card */
.two-storey-card {
  background-color: rgba(13, 18, 38, 0.75);
  padding: 0.8rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Hover effect */
.two-storey-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.6);
}

/* Image styling */
.two-storey-card img {
  width: 100%;
  height: 220px;                /* FIX uneven height */
  object-fit: cover;
  border-radius: 10px;
}

/* ================================================ */

/* SECTION */
.design-build {
  background-color: var(--mid-blue);
  padding: 4rem 2rem 0;
}

.design-build-header {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* CONNECTED GRID */
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* CONNECTED CARD */
.model-card {
  background-color: rgba(13, 18, 38, 0.6);
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.model-card:last-child {
  border-right: none;
}

.model-card:hover {
  background-color: var(--dark-blue);
  transform: translateY(-6px);
}

/* IMAGE */
.model-image img {
  width: 100%;
  height: auto;              /* important */
  object-fit: contain;       /* no cropping */
  display: block;
}
/* CONTENT */
.model-content {
  padding: 1.8rem;
  text-align: center;
}

.model-content h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.model-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.model-content li {
  font-size: 0.9rem;
  color: var(--light-gray);
  margin-bottom: 0.4rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .model-card:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 600px) {
  .model-grid {
    grid-template-columns: 1fr;
  }

  .model-card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .model-card:last-child {
    border-bottom: none;
  }
}





















        /* Quote form */
        .quote-section {
          margin-top: 60px;
          text-align: center;
        }

        .quote-section h2 {
          font-size: 2rem;
          margin-bottom: 10px;
        }

        .quote-section p {
          margin-bottom: 30px;
          color: #d1d1d1;
        }

        .quote-form {
          max-width: 800px;
          margin: 0 auto;
        }

        .form-row {
          display: flex;
          gap: 20px;
          flex-wrap: wrap;
          margin-bottom: 20px;
        }

        .form-group {
          flex: 1;
          display: flex;
          flex-direction: column;
        }

        .form-group.full-width {
          flex: 1 1 100%;
        }

        .form-group label {
          text-align: left;
          margin-bottom: 8px;
          font-size: 0.9rem;
          color: #ccc;
        }

        .form-group input,
        .form-group textarea {
          padding: 10px;
          border: 1px solid #444;
          border-radius: 5px;
          background: #151b3b;
          color: #fff;
          font-size: 0.9rem;
        }

        .submit-btn {
          background: #fff;
          color: #0a0f2c;
          padding: 12px 30px;
          border: none;
          border-radius: 5px;
          font-size: 1rem;
          cursor: pointer;
          transition: background 0.3s ease;
        }

        .submit-btn:hover {
          background: #ddd;
        }

        /* Responsive */
        @media (max-width: 768px) {
          .project-item {
            flex-direction: column;
          }
          .amenities {
            flex-direction: column;
            gap: 15px;
          }
        }


        /* About Us Section */
        .about-section {
            background-color: var(--dark-blue);
        }

        .about-media-container {
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: var(--mid-blue);
            margin-top: 3rem;
            position: relative;
            height: 600px;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }
        
         .about-video {
         position: absolute;
         top: 0;
         left: 0;
         width: 100%;   /* stretch horizontally */
         height: 100%;  /* stretch vertically */
         z-index: 1;
        }

        .about-media-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* background: linear-gradient(to right, rgba(25, 42, 86, 0.9), rgba(13, 18, 38, 0.5)); */
            z-index: 2;
        }
        
        .logo-play-container {
            position: absolute;
            z-index: 3;
            width: 150px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .logo-play-container:hover {
            transform: scale(1.1);
        }

        .logo-play-icon {
            font-size: 5rem;
            color: var(--gold);
        }

        .about-mv-container {
            display: flex;
            justify-content: space-around;
            text-align: center;
            margin-top: 4rem;
            gap: 2rem;
        }

        .about-mv-item {
            width: 45%;
            padding: 2rem;
            background-color: var(--light-blue);
            border-radius: 10px;
        }

        .about-mv-title {
            font-size: 2rem;
            font-weight: 700;
            margin: 0 0 1rem;
            color: var(--gold);
        }

        .about-mv-text {
            font-size: 1rem;
            font-weight: 400;
            line-height: 1.5;
            color: var(--light-gray);
        }

        /* Footer Section */
        .footer-info {
            background-color: var(--dark-blue);
            padding: 4rem 3rem;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border-top: 1px solid var(--light-blue);
            color: #ccc;
        }

        .info-block {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 0 1rem;
        }

        .info-block .icon {
            font-size: 2rem;
            color: var(--gold);
            margin-bottom: 0.5rem;
        }
        
        .info-block h4 {
            font-size: 1.2rem;
            font-weight: 600;
            margin: 0 0 0.5rem;
            color: var(--white);
        }

        .info-block p, .info-block a {
            font-size: 0.9rem;
            margin: 0;
            color: var(--light-gray);
            text-decoration: none;
            line-height: 1.6;
        }

        .info-block a:hover {
            text-decoration: underline;
            color: var(--white);
        }

        .social-icons a {
            color: var(--white);
            font-size: 1.5rem;
            margin: 0 0.75rem;
            transition: color 0.3s ease;
        }

        .social-icons a:hover {
            color: var(--gold);
        }

        .footer-image-container {
            background-color: var(--dark-blue);
            padding-bottom: 2rem;
        }

        .footer-image-container img {
            display: block;
            width: 100%;
            height: auto;
            object-fit: cover;
            border-top: 1px solid var(--light-blue);
        }
        
        /* New Styles for Services Page */
        .services-page {
            display: none; /* Hidden by default */
            padding-top: 8rem; /* Add spacing below the fixed header */
        }
        
        .service-page-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .service-page-card {
            background-color: var(--light-blue);
            border-radius: 10px;
            padding: 2rem;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease;
        }
        
        .service-page-card:hover {
            transform: translateY(-5px);
        }
        
        .service-page-card h3 {
            color: var(--gold);
            font-size: 1.5rem;
            margin-top: 0;
            border-bottom: 2px solid var(--gold);
            padding-bottom: 0.5rem;
        }
        
        .service-page-card p {
            color: var(--white);
            line-height: 1.6;
        }
        
        .service-page-card .service-details {
            list-style: none;
            padding: 0;
        }
        
        .service-page-card .service-details li {
            position: relative;
            padding-left: 20px;
            margin-bottom: 10px;
            color: var(--light-gray);
        }
        
        .service-page-card .service-details li::before {
            content: "\f00c"; /* Font Awesome check icon */
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            color: var(--gold);
            position: absolute;
            left: 0;
        }
        
        /* Utility class to hide sections */
        .hidden-section {
            display: none !important;
        }

        /* Added styles from the second code snippet */
        #services {
            font-family: 'Poppins', sans-serif;
            color: #fff;
            background-color: #000a29;
            padding: 80px 50px;
            text-align: center;
        }
        .services-header {
            max-width: 800px;
            margin: 0 auto 50px auto;
            position: relative;
        }
        .services-header h2 {
            font-size: 3rem;
            margin-bottom: 20px;
            font-weight: bold;
        }
        .services-header p {
            font-size: 1rem;
            line-height: 1.6;
            margin-bottom: 10px;
        }
        .man-image {
            position: absolute;
            right: -250px;
            top: 50%;
            transform: translateY(-50%);
            width: 300px;
            height: auto;
        }
        .services-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
            justify-items: center;
            align-items: stretch;
        }
        .service-card {
            background-color: #fff;
            color: #000;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            text-align: left;
            transition: transform 0.3s ease;
        }
        .service-card:hover {
            transform: translateY(-5px);
        }
        .card-image {
            width: 100%;
            height: 200px;
        }
        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .card-content {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }
        .card-content h3 {
            font-size: 1.25rem;
            margin-bottom: 10px;
            font-weight: bold;
        }
        .card-content p, .card-content ul {
            font-size: 0.9rem;
            color: #555;
            line-height: 1.5;
        }
        .card-content ul {
            list-style: none;
            padding: 0;
        }
        .card-content ul li {
            margin-bottom: 5px;
        }

        /* Media Queries for Responsiveness */
        @media (max-width: 992px) {
            .header {
                padding: 1rem 2rem;
            }
            .hero-content {
                flex-direction: column;
                width: 90%;
            }
            .hero-image-container {
                display: none;
            }
            .hero-text-box {
                width: 100%;
                padding: 2rem;
                text-align: center;
                min-height: auto;
            }
            .hero-title {
                font-size: 2.5rem;
            }
            .properties-section, .services-section, .about-section, .services-page {
                padding: 4rem 1.5rem;
            }
            .properties-content {
                flex-direction: column;
                gap: 2.5rem;
            }
            .about-title {
                font-size: 2.5rem;
            }
            .about-media-container {
                height: 400px;
            }
            .about-video {
                min-height: auto;
                object-position: top;
            }
            .about-media-container img {
                height: 100%;
                width: 100%;
                object-fit: cover;
                object-position: top;
            }
            .about-mv-container {
                flex-direction: column;
                gap: 2rem;
            }
            .about-mv-item {
                width: 100%;
            }
            .footer-info {
                flex-direction: column;
                gap: 2rem;
                align-items: center;
                text-align: center;
            }
            .info-block {
                width: 100%;
                padding: 0;
            }
        }

        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                align-items: flex-start;
                padding: 1rem;
            }
            .nav {
                margin-top: 1rem;
            }
            .nav-list {
                flex-wrap: wrap;
                justify-content: center;
            }
            .nav-item a {
                padding: 0.5rem;
            }
            
            
        }
        /* New styles for Terrazza Martha Project Page */
        #terrazza-martha-page {
            padding-top: 8rem;
            color: var(--white);
            background-color: var(--dark-blue);
            min-height: 100vh;
        }

        .project-offered-header {
            text-align: center;
            padding: 3rem 0;
        }

        .project-offered-header h1 {
            font-size: 2.5em;
            font-weight: 700;
        }

        .project-offered-header p {
            font-size: 1.1em;
            color: var(--light-gray);
        }

        .project-offered-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0 5%;
        }

        .package-section {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 40px;
        }

        .package-details-left, .package-details-right {
            flex: 1;
            min-width: 500px;
            padding-right: 20px;
        }
        
        .package-details-right {
            padding-right: 0;
            padding-left: 20px;
        }

        .package-details-left .package-images, .package-details-right .package-images {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .package-details-left .package-text, .package-details-right .package-text {
            flex: 1;
            padding-right: 20px;
            text-align: left;
        }

        .package-details-right .package-text {
            padding-right: 0;
            padding-left: 20px;
        }

        .img-full-width {
            width: 100%;
            height: auto;
            object-fit: cover;
            border-radius: 8px;
        }

        .package-gallery {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            flex-grow: 1;
            min-width: 45%;
        }

        .gallery-item {
            flex: 1 1 300px;
            position: relative;
            text-align: center;
        }

        .gallery-item img {
            width: 100%;
            height: auto;
            object-fit: cover;
            border-radius: 8px;
        }

        .gallery-item p {
            position: absolute;
            bottom: 10px;
            left: 10px;
            background-color: rgba(0, 0, 0, 0.5);
            padding: 5px 10px;
            margin: 0;
            font-size: 1.5em;
            font-weight: bold;
        }

        .gallery-item span {
            position: absolute;
            bottom: 5px;
            left: 10px;
            font-size: 0.9em;
            opacity: 0.8;
        }

        .view-details-btn {
            background-color: var(--mid-blue);
            color: var(--white);
            padding: 10px 20px;
            border: none;
            cursor: pointer;
            font-size: 1em;
            margin-top: 20px;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }

        .view-details-btn:hover {
            background-color: var(--gold);
        }

        .terrazza-header-text h2, .terrazza-header-text-standalone h2 {
            font-size: 2.2em;
            color: var(--white);
            margin-bottom: 5px;
        }
        
        .terrazza-header-text p, .terrazza-header-text-standalone p {
            font-size: 1em;
            color: var(--light-gray);
        }
        
        .project-media-location {
            flex: 1;
            min-width: 500px;
            padding-right: 20px;
        }
        
        .project-media-location img {
            width: 100%;
            height: auto;
            border-radius: 10px;
            object-fit: cover;
        }
        
        .project-location-details {
            flex: 1;
            min-width: 400px;
            padding-left: 20px;
        }
        
        .project-location-details h3 {
            font-size: 2em;
            color: var(--white);
            margin-bottom: 10px;
        }
        
        .project-location-details p {
            font-size: 1em;
            color: var(--light-gray);
        }
        
        .project-location-details a {
            display: inline-block;
            padding: 10px 20px;
            background-color: var(--mid-blue);
            color: var(--white);
            text-decoration: none;
            border-radius: 5px;
            margin-top: 15px;
            transition: background-color 0.3s ease;
        }
        
        .project-location-details a:hover {
            background-color: var(--gold);
        }

        html { scroll-behavior: smooth; }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glow hover effect */
.glow-hover:hover {
  box-shadow: 0 0 15px var(--gold), 0 0 25px rgba(180, 148, 99, 0.6);
  transition: box-shadow 0.4s ease;
}

/* Subtle hover for nav */
.nav-item a:hover {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(180,148,99,0.7);
}

/* Service card fix + hover enhancement */
.service-card {
  background: linear-gradient(145deg, var(--mid-blue), var(--dark-blue));
  color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 30px rgba(180,148,99,0.3);
}

/* Headings in services */
.service-card h3 {
  color: var(--gold);
  font-weight: 600;
}
.service-card p, .service-card ul, .card-content p, .card-content ul {
  color: var(--white);
}

/* Glow on buttons */
.cta-button, .btn, .submit-btn, .view-details-btn {
  transition: all 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover, .btn:hover, .submit-btn:hover, .view-details-btn:hover {
  box-shadow: 0 0 12px rgba(255,255,255,0.5);
}


/* Auto-hide play/pause button after inactivity */
.logo-play-container {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}
.about-media-container:hover .logo-play-container {
    opacity: 1;
}


/* ============================= */
/* PROJECTS SECTION PROFESSIONAL */
/* ============================= */
.projects-page {
  background-color: #0a0f2c;
  color: #f1f1f1;
  padding: 80px 8%;
}

.projects-header {
  text-align: center;
  margin-bottom: 50px;
}

.projects-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--gold);
}

.projects-header p {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.divider {
  border: none;
  border-top: 1px solid #333;
  margin: 50px 0;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

.project-media img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.project-media img:hover {
  transform: scale(1.05);
}

.project-details {
  padding: 25px;
  background: rgba(25, 42, 86, 0.7);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.project-details h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--gold);
}

.project-details p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #d1d1d1;
  line-height: 1.6;
}

.amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 40px;
  margin-bottom: 20px;
}

.amenities ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.amenities ul li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: #f1f1f1;
}

.amenities ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

.buttons .btn {
  display: inline-block;
  padding: 12px 24px;
  margin-right: 10px;
  background: var(--gold);
  color: #0a0f2c;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.buttons .btn:hover {
  background: #d1b97c;
  transform: translateY(-3px);
}

/* ============================= */
/* PROJECT MODALS STYLING        */
/* ============================= */
.modal {
  display: none; /* fixed: only hidden by default */
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.show {
  display: flex; /* visible when active */
}

.modal-content {
  background: #1c2550;
  color: var(--white);
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--gold);
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;

}

.modal-list li {
  margin-bottom: 12px;
  padding-left: 25px;
  position:relative;
  font-size: 1rem;
  color: #f1f1f1;

}

.modal-list li::before {
  content: "✔";
  font-weight: bold;
  color: var(--gold);
  position: absolute;
  left: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .project-item {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .project-media img {
    max-height: 280px;
  }
  .project-details {
    padding: 20px;
  }
  .modal-content {
    padding: 20px;
  }
}

/* View Properties Button Styling */
















.properties-header {
    display: flex;
    flex-direction: column;   /* stack title and button */
    align-items: center;      /* center the title */
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
}

.properties-title {
    margin-bottom: 1rem;  /* space below the title */
}

.view-properties-btn {
    align-self: flex-end;    /* push button to the right side */
    margin-top: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    background-color: var(--mid-blue);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-properties-btn:hover {
    background-color: var(--gold);
    color: var(--dark-blue);
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
}


/* Team roles - Latest update */

/* Team Section Container */
.team-section {
  margin-top: 3rem;
  text-align: center;
}

.team-section h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--white);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Player Cards */
.player-card {
  background: linear-gradient(145deg, var(--mid-blue), var(--dark-blue));
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 25px rgba(180,148,99,0.4);
}

/* Player Images */
.player-img img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.player-card:hover img {
  transform: scale(1.05);
}


.team-header {
  text-align: center;
  margin: 2rem 0 3rem 0;
}

.team-header h2 {
  font-size: 2rem;
  font-weight: 700;
}



/* ---------------------------------------TERRAZAPROJECTCONTENT------------------------------------------------ */

.package-section {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.package-section.reverse {
  flex-direction: row-reverse;
}

.package-text {
  flex: 1;
  color: #fff;
}

.package-text h2 {
  font-size: 2rem;
  margin-bottom: .5rem;
}

.package-text p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.details-list {
  list-style: none;
  padding: 0;
}

.details-list li {
  margin-bottom: .5rem;
}

.package-images {
  flex: 1;
}

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

.img-grid.two-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.img-box {
  position: relative;
}

.img-box img {
  width: 100%;
  height: 300px; /* make images bigger */
  object-fit: cover;
  border-radius: .5rem;
}

.caption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  font-size: 1rem;
  border-radius: 4px;
}


/* -----------------------------------FRANCISHOMEPROJECT CONTENT---------------------------------------------------- */
/* Container */
#francishome-page {
  background: #0a0e2a; /* Dark background for contrast */
  color: #fff;
  padding: 2rem;
}

/* Section layout */
#francishome-page .package-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

#francishome-page .package-text {
  flex: 1 1 300px;
}

#francishome-page .package-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#francishome-page .details-list {
  list-style: none;
  padding: 0;
}

#francishome-page .details-list li {
  margin-bottom: .5rem;
  font-size: 1rem;
}

/* Image Grid */
#francishome-page .package-images {
  flex: 2 1 600px;
}

#francishome-page .img-grid.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#francishome-page .img-box {
  position: relative;
}

#francishome-page .img-box img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: .5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Captions inside images */
#francishome-page .caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 4px 10px;
  font-size: .95rem;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  #francishome-page .img-grid.three-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #francishome-page .img-grid.three-cols {
    grid-template-columns: 1fr;
  }
  #francishome-page .img-box img {
    height: 220px;
  }
}


/* ------------------------------------HACIENDASPROJECTCONTENT---------------------------------------------------- */
/* Container */
.project-offered-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 6%;
  gap: 1rem;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Left and right columns */
.project-offered-content,
.project-offered-content1 {
  flex: 1;
  text-align: left;
}

/* Inner text sections */
.package-text,
.package-text1 {
  width: 100%;
  font-size: 1rem;
  line-height: 1.8;
  color: #ffffff;
  margin: 0;
}

.package-text h2,
.package-text1 h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.package-text p {
  font-style: italic;
  margin-bottom: 1rem;
}

.details-list,
.details-list1 {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-list li,
.details-list1 li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* ✅ Remove divider */
.project-offered-wrapper::before {
  display: none;
}

/* Responsive */
@media (max-width: 992px) {
  .project-offered-wrapper {
    flex-direction: column;
    gap: 3rem;
  }
}


/* Container */
#haciendas-page {
  background: #1a1f36; /* Darker elegant tone */
  color: #fff;
  padding: 0rem;
  padding-bottom: 1rem !important; /* keep small buffer */
}

/* Section layout */
#haciendas-page .package-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
   margin-bottom: 1rem !important; /* reduce vertical gap */
  padding-bottom: 0 !important;
}

#haciendas-page .package-text {
  flex: 1 1 300px;
}

#haciendas-page .package-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#haciendas-page .details-list {
  list-style: none;
  padding: 0;
}

#haciendas-page .details-list li {
  margin-bottom: .5rem;
  font-size: 1rem;
}

/* Image Grid */
#haciendas-page .package-images {
  flex: 2 1 600px;
}

#haciendas-page .img-grid.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#haciendas-page .img-box {
  position: relative;
}

#haciendas-page .img-box img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: .5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Captions inside images */
#haciendas-page .caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 4px 10px;
  font-size: .95rem;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  #haciendas-page .img-grid.three-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #haciendas-page .img-grid.three-cols {
    grid-template-columns: 1fr;
  }
  #haciendas-page .img-box img {
    height: 220px;
  }
}


#haciendas-page {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#design-build-page {
  margin-top: 0 !important;
  padding-top: 2rem !important; /* keep a little breathing room */
}




/* -------------------------------------FIESTACOMPROJECTCONTENT--------------------------------------------- */
/* Container */
#fiestacom-page {
  background: #1a1f36; /* Dark elegant tone */
  color: #fff;
  padding: 2rem;
}

/* Section layout */
#fiestacom-page .package-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

#fiestacom-page .package-text {
  flex: 1 1 300px;
}

#fiestacom-page .package-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#fiestacom-page .details-list {
  list-style: none;
  padding: 0;
}

#fiestacom-page .details-list li {
  margin-bottom: .5rem;
  font-size: 1rem;
}

/* Image Grid */
#fiestacom-page .package-images {
  flex: 2 1 600px;
}

#fiestacom-page .img-grid.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#fiestacom-page .img-box {
  position: relative;
}

#fiestacom-page .img-box img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: .5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Captions inside images */
#fiestacom-page .caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.65);
  color: #7a7777;
  padding: 4px 10px;
  font-size: .95rem;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  #fiestacom-page .img-grid.three-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #fiestacom-page .img-grid.three-cols {
    grid-template-columns: 1fr;
  }
  #fiestacom-page .img-box img {
    height: 220px;
  }
}

/* -----------------------------------MONTEVERDEPROJECTCONTENT---------------------------------------------------------- */
/* Container */
#monte-page {
  background: #1a1f36; /* Dark elegant tone */
  color: #fff;
  padding: 2rem;
}

/* Section Layout */
#monte-page .package-section {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

#monte-page .package-section.reverse {
  flex-direction: row-reverse;
}

#monte-page .package-text {
  flex: 1;
}

#monte-page .package-text h2 {
  font-size: 2rem;
  margin-bottom: .5rem;
}

#monte-page .package-text p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-style: italic;
}

#monte-page .details-list {
  list-style: none;
  padding: 0;
}

#monte-page .details-list li {
  margin-bottom: .5rem;
}

/* Images */
#monte-page .package-images {
  flex: 1;
}

#monte-page .img-grid.two-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

#monte-page .img-box {
  position: relative;
}

#monte-page .img-box img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: .5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

#monte-page .caption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  font-size: 1rem;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  #monte-page .package-section {
    flex-direction: column;
  }
  #monte-page .package-section.reverse {
    flex-direction: column;
  }
}

/* --------------------------SAN SEBASTIAN ESTATE PROECT------------------------------------ */


/* Container */
#san-sebastian-page {
  background: #1a1f36; /* Darker elegant tone */
  color: #fff;
  padding: 2rem;
}

/* Section layout */
#san-sebastian-page .package-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

#san-sebastian-page .package-text {
  flex: 1 1 300px;
}

#san-sebastian-page .package-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#san-sebastian-page .details-list {
  list-style: none;
  padding: 0;
}

#san-sebastian-page .details-list li {
  margin-bottom: .5rem;
  font-size: 1rem;
}

/* Image Grid */
#san-sebastian-page .package-images {
  flex: 2 1 600px;
}

#san-sebastian-page .img-grid.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#san-sebastian-page .img-box {
  position: relative;
}

#san-sebastian-page .img-box img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: .5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Captions */
#san-sebastian-page .caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 4px 10px;
  font-size: .95rem;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  #san-sebastian-page .img-grid.three-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #san-sebastian-page .img-grid.three-cols {
    grid-template-columns: 1fr;
  }
  #san-sebastian-page .img-box img {
    height: 220px;
  }
}

/* --------------------------DROPDOWN MORE OPTION---------------------------------------- */
/* Dropdown Styles */
/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--mid-blue);
  min-width: 160px;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 200;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background: var(--gold);
  color: var(--dark-blue);
}

/* Show menu on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}


/* ------------------------NAV FOR BLOG AT GALLERY------------------------- */
/* Fix Navbar Overlap + Layout for Blog & Gallery */
#blog-section,
#gallery-section {
  width: 100%;
  min-height: 100vh;
  padding: 8rem 3rem;   /* push content below fixed header */
  box-sizing: border-box;
  background-color: var(--dark-blue); /* keep consistent bg */
}

#blog-section h2,
#gallery-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 2rem;
}

/* --------------------------DESIGN FOR BLOG----------------------------- */
/* Blog Card Base */
.blog-card {
  display: flex;
  align-items: center;     /* ✅ center align image & text */
  gap: 1.2rem;             /* smaller gap */
  background: rgba(25, 42, 86, 0.9);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  max-height: 220px;       /* ✅ keep card smaller */
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(180,148,99,0.35);
}

/* Image Column */
.blog-image {
  flex: 0 0 250px;        /* ✅ smaller image */
  height: 100%;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05); /* ✅ slight zoom effect */
}

/* Alternate Layouts */
.blog-card:nth-child(even) {
  flex-direction: row-reverse;
}

.blog-card:nth-child(even) .blog-image img {
  border-radius: 0 10px 10px 0;
}

.blog-card:nth-child(odd) .blog-image img {
  border-radius: 10px 0 0 10px;
}

/* Content */
.blog-content {
  padding: 1rem 1.2rem;   /* ✅ tighter padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-content h3 {
  margin-bottom: 0.5rem;  /* smaller spacing */
}

.blog-content p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;     /* ✅ slightly smaller text block */
  line-height: 1.5;
}

/* Read More Button (subtle) */
.blog-readmore {
  align-self: flex-start;
  font-size: 0.9rem;
  border: 1px solid var(--gold);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--gold);
  transition: all 0.3s ease;
}

.blog-readmore:hover {
  background: var(--gold);
  color: var(--dark-blue);
}

/* Responsive */
@media (max-width: 768px) {
  .blog-card {
    flex-direction: column !important;
    max-height: none;     /* let it expand on mobile */
  }

  .blog-image {
    flex: none;
    width: 100%;
    max-height: 200px;
  }

  .blog-image img {
    border-radius: 10px 10px 0 0 !important;
  }
}


/* -----------------YELLOW STAY-------------- */

/* Keep nav highlight on active item */
.nav-item a.active {
  color: var(--gold);
}

.nav-item a.active::after {
  width: 80%; /* same as hover effect */
}

/* ========================================= */
/* FINAL UNIVERSAL MOBILE OPTIMIZATION RULES */
/* ========================================= */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.6;
    padding: 0 10px;
  }
  header.header {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }
  .nav-item a {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  .hero-section {
    height: auto;
    padding-top: 6rem;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text-box, .hero-image-container {
    width: 100%;
    margin: 0;
  }
  .project-item, .package-section, .properties-content {
    flex-direction: column !important;
    align-items: center !important;
  }
  .project-details, .package-text, .properties-list-column {
    width: 100% !important;
    padding: 1rem !important;
  }
  .img-grid.two-cols, .img-grid.three-cols {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  .project-offered-header h1, .blog-post-content h1 {
    font-size: 1.6rem;
  }
  .project-offered-header p, .blog-post-content p {
    font-size: 1rem;
  }
  footer, .footer-info {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}











/* ========================================= */
/* MOBILE-FRIENDLY FIX: Services Offered     */
/* ========================================= */

/* Desktop default */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  justify-items: center;
  align-items: start;
}

/* Uniform image container */
.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* shows full image correctly */
  display: block;
}

/* Card text section */
.card-content {
  padding: 1.2rem;
  text-align: left;
  background: rgba(25, 42, 86, 0.7);
}

/* Title and paragraph styling */
.card-content h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ========== RESPONSIVE GRID ADJUSTMENTS ========== */

/* Tablet View (2 columns) */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Mobile View (1 column) */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .card-image {
    height: 180px;
  }

  .card-content {
    padding: 1rem;
  }

  .card-content h3 {
    font-size: 1rem;
  }

  .card-content p {
    font-size: 0.85rem;
  }
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */


/* ========================================= */
/* MOBILE-FRIENDLY FIXES                     */
/* ========================================= */

/* ✅ Fix for Services Offered section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  align-items: start;
}

.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures image scales properly */
  display: block;
}

.card-content {
  padding: 1.2rem;
  text-align: left;
  background: rgba(25, 42, 86, 0.7);
}

.card-content h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ✅ Fix for person3.png (Hero Image) */
.hero-image-container img,
.person-image {
  width: 100%;
  height: auto;
  object-fit: contain; /* make sure full image is visible */
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* ✅ Responsive grid behavior */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 180px;
  }

  .hero-image-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .hero-text-box {
    width: 100%;
    text-align: center;
  }

  .hero-image-container img,
  .person-image {
    object-fit: contain;
    width: 100%;
    height: auto;
  }
}

/* ---------------------------------------------------------------------------------------------------- */



/* ========================================= */
/* FIX: Clean Compact Navigation for Mobile  */
/* ========================================= */

/* Keep header fixed and centered */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0e1a3b; /* same as your current dark blue */
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Make sure page content doesn't go under the header */
body {
  padding-top: 80px; /* adjust to your header height */
}

/* Nav styling */
.nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

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

.nav-item a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-item a:hover,
.nav-item a.active {
  color: var(--gold);
}

/* ✅ Tablet view: Slightly smaller spacing */
@media (max-width: 1024px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 1rem;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .nav-item a {
    font-size: 1rem;
  }
}

/* ✅ Mobile view: Compact single-line layout */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    padding: 0.5rem;
  }

  .logo {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .nav-item a {
    font-size: 0.95rem;
  }
}


/* --------------------------------------------------------------------------------------------------------------------------------------- */

/* ============================= */
/* DESIGN & BUILD PAGE STYLING  */
/* ============================= */



#design-build-page {
  background: linear-gradient(160deg, var(--dark-blue) 0%, #0a1a35 100%);
  color: var(--white);
  padding: 8rem 5% 6rem;
  min-height: 100vh;
  text-align: center;
  overflow-x: hidden;
}

.design-build-header {
  margin-bottom: 5rem;
  animation: fadeInDown 1s ease;
}

.design-build-header .section-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(180, 148, 99, 0.4);
  margin-bottom: 1rem;
}

.design-build-header .section-subtitle {
  font-size: 1.2rem;
  color: var(--light-gray);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ----- Grid Layout ----- */
.design-build-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem;
  justify-items: center;
  align-items: stretch;
  padding: 0 1rem;
  animation: fadeInUp 1s ease forwards;
}

/* Add variation in card height for a dynamic layout */
.design-card:nth-child(odd) img {
  height: 360px;
}
.design-card:nth-child(even) img {
  height: 400px;
}

/* ----- Card Styling ----- */
.design-card {
  background: rgba(25, 45, 85, 0.85);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  transition: all 0.5s ease;
  max-width: 420px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(180, 148, 99, 0.25);
  position: relative;
  transform: translateY(30px);
  opacity: 0;
  animation: cardFadeIn 1s forwards;
}

.design-card:nth-child(1) { animation-delay: 0.2s; }
.design-card:nth-child(2) { animation-delay: 0.4s; }
.design-card:nth-child(3) { animation-delay: 0.6s; }
.design-card:nth-child(4) { animation-delay: 0.8s; }

.design-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 15px 45px rgba(180, 148, 99, 0.4);
  border-color: var(--gold);
}

/* ----- Image ----- */
.design-card img {
  width: 100%;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.05);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.design-card:hover img {
  transform: scale(1.15);
  filter: brightness(1.1) contrast(1.05);
}

/* ----- Info Section ----- */
.design-info {
  padding: 1.8rem;
  text-align: left;
  background: rgba(10, 20, 40, 0.5);
}

.design-info h3 {
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(180, 148, 99, 0.3);
}

.design-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.design-info ul li {
  color: var(--white);
  margin-bottom: 0.6rem;
  font-size: 1rem;
  position: relative;
  padding-left: 26px;
  line-height: 1.6;
  opacity: 0.95;
  transition: transform 0.3s ease;
}

.design-info ul li:hover {
  transform: translateX(6px);
  opacity: 1;
}

.design-info ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
  font-size: 1.1rem;
}

/* ----- Subtle Glow Effect ----- */
.design-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 25px rgba(180, 148, 99, 0.1);
  transition: opacity 0.4s ease;
  opacity: 0;
}

.design-card:hover::after {
  opacity: 1;
}

/* ----- Animations ----- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-25px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* ----- Responsive Adjustments ----- */
@media (max-width: 768px) {
  #design-build-page {
    padding: 6rem 4% 4rem;
  }

  .design-build-header .section-title {
    font-size: 2.4rem;
  }

  .design-card {
    max-width: 95%;
  }

  .design-build-grid {
    gap: 2rem;
  }

  .design-card img {
    height: auto;
  }

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

  .design-info ul li {
    text-align: left;
  }
}






/* -------------------------------------DESIGN&BUILD------------------------------- */
/* ===== DESIGN & BUILD SECTION ===== */

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

.db-section {
  padding: 90px 20px;
  background: radial-gradient(
    circle at top,
    #fdfdfd,
    #ededed
  );
}

.db-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #c9a24d, #e6c87a);
  border: none;
  margin: 0 auto 60px;
  border-radius: 5px;
}

/* ===== PROJECT CARD ===== */

.db-project-card {
  max-width: 1200px;
  margin: auto;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.db-project-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 55px 110px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

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

.db-project-media {
  position: relative;
  overflow: hidden;
}

.db-project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.55)
  );
  opacity: 0.6;
}

.db-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.db-project-card:hover .db-project-image {
  transform: scale(1.15);
}

/* ===== CONTENT ===== */

.db-project-info {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.db-project-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #1c1c1c;
  margin-bottom: 30px;
  position: relative;
}

.db-project-title::after {
  content: "";
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #c9a24d, #e6c87a);
  display: block;
  margin: 20px auto 0;
  border-radius: 4px;
}

/* ===== BUTTONS ===== */

.db-project-actions {
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

.db-btn {
  text-decoration: none;
  padding: 16px 44px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 999px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Gold Luxury Button */

.db-btn-secondary {
  border: 2px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #c9a24d, #e6c87a) border-box;
  color: #1c1c1c;
}

.db-btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.db-btn-secondary:hover::before {
  transform: translateX(100%);
}

.db-btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 45px rgba(201, 162, 77, 0.45);
}

/* ===== ANIMATION ===== */

.db-fade-in {
  animation: dbFadeIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes dbFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .db-project-card {
    grid-template-columns: 1fr;
  }

  .db-project-info {
    padding: 45px 30px;
  }

  .db-project-title {
    font-size: 30px;
  }
}


/* ===========================MILESTONE======================== */
.milestone-header h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.milestone-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.milestone-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.milestone-content {
  padding: 1.5rem;
}

.milestone-readmore {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}
