/* Modern Real Estate Theme - Responsive UI/UX */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f1f4f9;
  color: #2b2b2b;
  line-height: 1.6;
}

.container.header {
  background: linear-gradient(to right, #003147, #0073a6);
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

nav {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.desktop-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  margin: 0;
}

.desktop-menu li {
  margin: 0 15px;
}

.desktop-menu a {
  color: #003147;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.desktop-menu a:hover {
  color: #0073a6;
}

.mobile-only {
  display: none;
}

/* Mobile Menu Styles */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  list-style: none;
}

.mobile-menu li {
  margin: 10px 0;
  text-align: center;
  width: 100%;
}

.mobile-menu a {
  padding: 1rem;
  width: 100%;
  border-radius: 6px;
  display: block;
  text-align: center;
  color: #003147;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  background: #f8f9fa;
  color: #0073a6;
}

.hero, .about, .services, .gallery, .contact {
  padding: 3rem 1rem;
  max-width: 1100px;
  margin: auto;
}

h2 {
  color: #003147;
  font-size: 2rem;
  margin-bottom: 1rem;
  border-left: 5px solid #0073a6;
  padding-left: 0.5rem;
}

ul {
  padding-left: 1.5rem;
  list-style-type: disc;
  margin-top: 1rem;
}

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

.property-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: 100%;
}

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

.property-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-image {
  transform: scale(1.05);
}

.property-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 49, 67, 0.9));
  padding: 1rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.property-type {
  background: #0073a6;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-price {
  font-size: 1.2rem;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.property-content {
  padding: 1.5rem;
}

.property-content h3 {
  color: #003147;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.property-details {
  display: grid;
  gap: 0.5rem;
}

.property-details p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #4a4a4a;
}

.property-details p i {
  color: #0073a6;
  width: 20px;
  text-align: center;
}

.facilities {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.facilities h4 {
  color: #003147;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.facilities ul {
  list-style: none;
  padding: 0;
}

.facilities li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #4a4a4a;
}

.facilities li i {
  color: #0073a6;
}

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

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #e6ecf3;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

.contact-form {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  max-width: 600px;
  margin-top: 2rem;
}

.contact-form label {
  font-weight: bold;
  display: block;
  margin-top: 1rem;
  color: #003147;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.3rem;
  border: 1px solid #ccd7e0;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form button {
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background-color: #0073a6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #005f87;
}

.footer {
  background: #003147;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.social-links a {
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.1);
  padding: 8px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: #fff;
  background: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.social-links a[href*="facebook"] {
  color: #3b5998;
}

.social-links a[href*="youtube"] {
  color: #ff0000;
}

.social-links a[href*="quora"] {
  color: #a82400;
}

.social-links a[href*="tumblr"] {
  color: #32506d;
}

.social-links a[href*="twitter"] {
  color: #1da1f2;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.social-list li {
  margin: 0;
}

.social-list a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.social-list a:hover {
  color: #007bff;
}

.footer-text {
  text-align: center;
  margin-top: 20px;
}

.footer-text p {
  margin: 5px 0;
  color: #fff;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .social-list {
    flex-direction: row;
    gap: 15px;
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .container.header h1 {
    font-size: 1.5rem;
  }

  .mobile-only {
    display: block;
  }

  .desktop-menu {
    display: none;
  }

  .hero, .about, .services, .gallery, .contact {
    padding: 3rem 1rem;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }

  h2 {
    font-size: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

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

  .header h1 {
    font-size: 24px;
  }

  .header p {
    font-size: 14px;
  }

  .gallery-grid div {
    padding: 10px;
  }

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

  .container.header {
    flex-direction: column;
    text-align: center;
  }

  footer p {
    font-size: 14px;
    text-align: center;
  }

  .menu-icon {
    display: block;
  }

  #menu-toggle:checked ~ .mobile-menu {
    display: block;
  }

  #menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  #menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

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

.hero-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.banner-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 800px;
  margin: 0 1rem;
}

.banner-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.banner-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  border: none;
}

.cta-button:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

@media (max-width: 768px) {
  .hero-banner {
    height: 80vh;
  }
  
  .banner-content h1 {
    font-size: 2.5rem;
  }
  
  .banner-content p {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Add smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Fix for mobile devices */
@media (max-width: 480px) {
  .hero-banner {
    background-attachment: scroll;
  }
}

.banner-img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 60px;
  height: 60px;
}

.whatsapp-float img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.whatsapp-float img:hover {
  transform: scale(1.1);
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .social-list {
    flex-direction: row;
    gap: 15px;
  }
}

/* Footer Styles */
footer {
  background: #003147;
  color: white;
  padding: 2rem 0;
  margin-top: auto;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Contact Page Styles */
.contact-section {
  padding: 3rem 0;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-details {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-details h3 {
  color: #003147;
  margin-bottom: 1.5rem;
}

.contact-details p {
  margin-bottom: 1rem;
  color: #333;
}

.contact-details strong {
  color: #0073a6;
}

.map-section {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-section h3 {
  background: #003147;
  color: white;
  padding: 1rem;
  margin: 0;
}

.map-container {
  padding: 1rem;
  background: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .contact-info {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 300px;
  }
}

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

.project-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project-card h3 {
  color: #003147;
  margin-bottom: 1rem;
  text-align: center;
}

.project-details {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.project-details th {
  background: #f8f9fa;
  color: #003147;
  font-weight: 600;
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #e6ecf3;
}

.project-details td {
  padding: 0.75rem;
  border: 1px solid #e6ecf3;
}

.project-details th:first-child {
  border-radius: 8px 0 0 0;
}

.project-details th:last-child {
  border-radius: 0 8px 0 0;
}

.project-details td:last-child {
  border-radius: 0 0 8px 0;
}

.project-details td:first-child {
  border-radius: 0 0 0 8px;
}

/* Mobile Menu Toggle Styles */
#menu-toggle {
  display: none;
}

#menu-toggle:checked ~ .mobile-menu {
  display: block;
}

#menu-toggle:checked ~ .menu-icon span {
  background-color: #0073a6;
}

.menu-icon {
  display: none;
  cursor: pointer;
  padding: 15px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #003147;
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Mobile Menu Toggle Animation */
#menu-toggle:checked ~ .menu-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle:checked ~ .menu-icon span:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .menu-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .desktop-menu {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
  
  .menu-icon {
    display: block;
  }
  
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    list-style: none;
  }
  
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
  
  .property-image-wrapper {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .property-card {
    height: auto;
  }
  
  .property-image-wrapper {
    height: 180px;
  }
}

@media screen and (max-width: 768px) {
  .property-details {
    font-size: 0.9rem;
  }
  
  .facilities li {
    margin-bottom: 0.3rem;
  }
  
  .facilities h4 {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .property-overlay {
    padding: 0.8rem;
  }
  
  .property-type {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .property-price {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }
}
