/* main.css - polished, modern styles with subtle animations */

/* page background */
.page-bg {
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 70%);
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #222;
}

/* navbar */
#mainNavbar {
  transition: all .3s ease;
  backdrop-filter: blur(6px);
  background: rgba(8, 57, 131, 0.945);
}
#mainNavbar.scrolled {
  box-shadow: 0 6px 20px rgba(20, 30, 70, .08);
  transform: translateY(-3px);
}

/* brand */
.brand-logo { filter: drop-shadow(0 2px 6px rgba(0,0,0,.06)); }
.brand-text { font-weight:700; letter-spacing: .2px; }

.hero {
  padding-top: 120px;
  padding-bottom: 40px;
  background-image: linear-gradient(120deg, rgba(99,102,241,0.06), rgba(0,199,190,0.02));
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* card hover lift */
.card.project-card {
  transition: transform .35s cubic-bezier(.2,.9,.2,1), box-shadow .35s;
  border: none;
  overflow: hidden;
  border-radius: 12px;
}
.card.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(20, 40, 80, .08);
}

/* smooth image crop */
.card-img-top .card-img {
  height: 180px;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.9,.2,1);
}
.card.project-card:hover .card-img { transform: scale(1.06); }

/* status badge */
.status-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-weight:600;
  padding: .35rem .6rem;
  border-radius: 8px;
  opacity: 0.98;
}

/* hero big image */
.hero-illus { max-width: 86%; transform: translateY(-6px); filter: drop-shadow(0 20px 40px rgba(3,18,55,0.06)); }

/* subtle entrance animation for cards */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.project-card { animation: fadeUp .45s ease both; }

/* footer style */
.footer {
  margin-top: 56px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  padding-top: 36px;
}

/* form elements: bigger, modern */
.form-control, .form-select {
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid #e6eef8;
  height: calc(2.25rem + .8rem);
}
.form-control:focus, .form-select:focus { box-shadow: 0 6px 20px rgba(99,102,241,.08); border-color: rgba(99,102,241,.6); }

/* subtle glass cards */
.card.p-4 {
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.7));
  border: 1px solid rgba(0,0,0,0.03);
}

/* small screens adjustments */
@media (max-width: 767px) {
  .hero { padding-top: 90px; }
  .hero-illus { max-width: 100%; }
}

/* utility */
.small-muted { color:#8b98a6; }

/* interactive button micro-anim */
.btn-primary {
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 18px rgba(99,102,241,0.08);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(99,102,241,0.12); }

/* responsive carousel image fit */
.carousel-item img { height: 420px; object-fit: cover; }

/* property list item */
.property-list-item { transition: background .2s ease; }
.property-list-item:hover { background: rgba(2,6,23,0.02); }

/* subtle focus ring for accessibility */
:focus { outline: none; box-shadow: 0 0 0 4px rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.6); }

.site-footer {
    background: url('/static/img/footer-bg.jpg') center/cover no-repeat;
    position: relative;
    color: #fff;
    padding: 50px 0 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-overlay {
    background: rgba(0, 0, 0, 0.8);
    padding: 50px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.footer-column h3:hover::after {
    width: 80px;
}

.footer-column p,
.footer-column ul {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #4CAF50;
}

.newsletter-form {
    display: flex;
    margin-top: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 3px 0 0 3px;
}

.newsletter-form button {
    padding: 10px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #45a049;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
}

.partners {
    display: flex;
    align-items: center;
    gap: 10px;
}

.partners img {
    height: 30px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partners img:hover {
    filter: grayscale(0%);
}

/* Animations */
.fade-in {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.slide-up {
    animation: slideUp 1s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.property-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeInUp 0.8s ease forwards;
}

.property-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.property-img {
  position: relative;
  overflow: hidden;
}

.property-img img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.property-card:hover .property-img img {
  transform: scale(1.08) rotate(1deg);
}

.overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(9, 20, 43, 0.8);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  font-size: 0.9rem;
  animation: slideUp 0.5s ease;
}

.property-content {
  padding: 15px;
}

.property-content h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

.price {
  font-size: 1rem;
  font-weight: 700;
  color: #8cc63f;
  margin: 5px 0;
  transition: transform 0.3s ease;
}

.property-card:hover .price {
  transform: scale(1.1);
}

.location {
  font-size: 0.9rem;
  color: #666;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

.carousel-item img {
    transition: transform 6s ease, filter 1.5s ease;
}
.carousel-item img:hover {
    transform: scale(1.05);
    filter: brightness(0.85);
}
.carousel-caption {
    animation: fadeInUp 1.5s ease;
}
@keyframes fadeInUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.usp-section {
    background: #f9f9f9;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.usp-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    align-items: center;
    gap: 20px;
}

.usp-image {
    flex: 1 1 45%;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    overflow: hidden;
}

.usp-image img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1);
    transition: transform 0.8s ease-in-out;
}
.usp-image:hover img {
    transform: scale(1.05);
}

.photo-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
}

.usp-content {
    flex: 1 1 50%;
}

.usp-content h2 {
    font-size: 26px;
    margin-bottom: 15px;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.usp-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usp-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0,0,0,0.1);
}

.usp-item .icon {
    font-size: 22px;
    display: inline-block;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .usp-container {
        flex-direction: column;
    }
    .usp-grid {
        grid-template-columns: 1fr;
    }
}

.features-area {
    background: #fdfdfd;
    padding: 50px 0;
}

.features-wrapper {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 5px 20px rgba(0,0,0,0.04);
}

.features-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    animation: fadeInLeft 1s ease;
}

.features-info {
    background: #ffffff;
    padding: 30px;
    line-height: 1.8;
    animation: fadeInRight 1s ease;
}

.section-title h2 {
    font-size: 26px;
    font-weight: 700;
    color: #333;
}

.features-include-list {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.4s ease;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.05);
}

.features-include-list:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0px 8px 20px rgba(0,0,0,0.1);
}

.features-include-list h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #222;
    font-weight: 600;
}

.features-include-list img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.features-include-list p {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

/* Animations */
@keyframes fadeInLeft {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .features-info {
        padding: 20px;
    }
    .features-image img {
        height: auto;
    }
}
