/* ==============================
   Sri Karthi Housing & Properties
   Custom CSS — style.css
   ============================== */

:root {
  --gold: #C9A227;
  --gold-light: #E8C547;
  --dark: #0D1117;
  --dark-card: #161B22;
  --cream: #FAF7F2;
  --text-dark: #1A1A2E;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ---- UTILITIES ---- */
.text-gold { color: var(--gold) !important; }
.bg-light-cream { background-color: var(--cream); }
.bg-dark-rich { background-color: var(--dark); }
.max-600 { max-width: 600px; }
.section-pad { padding: 90px 0; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,162,39,0.1);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-label.light { background: rgba(201,162,39,0.15); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.section-title span { color: var(--gold); }
.section-title.light { color: #fff; }

/* ---- BUTTON ---- */
.btn-gold {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  border: 2px solid var(--gold);
  padding: 10px 28px;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,162,39,0.3);
}

:root {
  --gold: #c9a227;
  --gold-light: #e0c366;
  --font-display: 'Playfair Display', serif; /* Ensure you have this font linked */
}

/* ---- NAVBAR ---- */
#mainNav {
  background: transparent;
  padding: 18px 0;
  transition: all 0.4s ease;
  z-index: 1050; /* Ensure it stays above hero content */
}

#mainNav.scrolled {
  background: rgba(13, 17, 23, 0.97);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.10rem;
  font-weight: 700;
  color: #fff;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 6px 12px !important;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
  color: var(--gold) !important;
}

.btn-gold {
  background-color: var(--gold);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
}
.navbar-toggler {
    padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);
    font-size: var(--bs-navbar-toggler-font-size);
    line-height: 1;
    color: var(--bs-navbar-color);
    background-color: white !important;
    border: var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);
    border-radius: var(--bs-navbar-toggler-border-radius);
    transition: var(--bs-navbar-toggler-transition);
}
/* ---- MOBILE MENU BACKGROUND ---- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(13, 17, 23, 0.98); /* Same dark color as your scrolled state */
    margin-top: 15px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.2); /* Optional gold border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  /* Center align items in mobile menu */
  .navbar-nav {
    text-align: center;
  }

  /* Add spacing between mobile links */
  .nav-item {
    padding: 10px 0;
  }

  /* Make the button full width in mobile */
  .btn-gold {
    width: 100%;
    margin-left: 0 !important;
  }
}
/* ---- HERO ---- */
.hero-section {
  min-height: 100vh;
  position: relative;
  background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600') center/cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* FIX: Added padding-top to prevent content from hiding under fixed navbar */
  padding-top: 80px; 
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.9) 0%, rgba(13, 17, 23, 0.6) 60%, rgba(13, 17, 23, 0.3) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  /* Ensure animations are defined in your AOS or global CSS */
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-title span {
  color: var(--gold);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  line-height: 1.7;
}

.stat-item {
  border-left: 2px solid var(--gold);
  padding-left: 15px;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-item { color: #fff; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 4px; }
.hero-stats { animation: fadeInUp 0.9s ease 0.45s both; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; margin-top: 28px !important; }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  cursor: pointer;        /* ← makes it clickable */
}

.scroll-hint:hover span { color: var(--gold); }

.scroll-arrow {
  color: var(--gold);
  font-size: 1.4rem;
  animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0);    opacity: 1; }
  50%       { transform: translateY(10px); opacity: 0.5; }
}

/* ---- ABOUT ---- */
.about-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-logo-img {
  width: 280px; height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--gold);
  box-shadow: 0 20px 60px rgba(201,162,39,0.2);
}
.about-badge-card {
  position: absolute;
  bottom: -10px;
  right: 20px;
  background: #fff;
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  text-align: center;
}
.feature-item {
  font-size: 0.92rem;
  padding: 8px 0;
  color: var(--text-dark);
  font-weight: 500;
}
.social-link {
  width: 40px; height: 40px;
  background: var(--cream);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
}
.social-link:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }

/* ---- SERVICES ---- */
.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  height: 100%;
  border: 1px solid rgba(201,162,39,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(201,162,39,0.15);
  border-color: rgba(201,162,39,0.3);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px;
  background: rgba(201,162,39,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 16px;
  transition: all 0.3s;
}
.service-card:hover .service-icon { background: var(--gold); color: #fff; }
.service-card h5 { font-family: var(--font-display); font-weight: 700; margin-bottom: 10px; }
.service-card p { color: #6b7280; font-size: 0.92rem; line-height: 1.65; }

.project-card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #C9A227;
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
}

.project-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---- CEO SECTION ---- */
.ceo-img-wrap {
  position: relative;
  display: flex;
  
}
.project-photo {
  object-fit: cover;
  object-position: top;
  border: 4px solid rgba(241, 240, 236, 0.911);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.ceo-photo {
    width: 100%;
    max-width: 500px;
    object-fit: cover;
    object-position: center top;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 20px 60px;
    border-radius: 16px;
    border-width: 4px;
    border-style: solid;
    border-color: rgba(201, 162, 39, 0.4);
    border-image: initial;
}
.ceo-experience-badge {
  position: absolute;
  bottom: -16px;
  right: 20px;
  background: var(--gold);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(201,162,39,0.4);
}
.exp-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.exp-label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; }
.ceo-title-tag {
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 500;
}
.text-light-muted { color: rgba(255,255,255,0.65); }
.timeline-strip { margin-top: 28px; }
.t-dot {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  padding: 8px 0;
  border-left: 2px solid rgba(201,162,39,0.2);
  padding-left: 20px;
  margin-left: 8px;
  position: relative;
}
.t-dot::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(201,162,39,0.4);
}
.t-dot.active { border-left-color: var(--gold); }
.t-dot.active::before { background: var(--gold); width: 10px; height: 10px; left: -6px; }
.t-dot span { font-weight: 700; color: var(--gold); min-width: 50px; }


/* ---- CONTACT ---- */
.contact-info-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 36px;
  height: 100%;
  border: 1px solid rgba(201,162,39,0.15);
}
.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(201,162,39,0.1);
}
.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: rgba(201,162,39,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
}
.contact-detail strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 4px; }
.contact-detail a { color: var(--text-dark); text-decoration: none; font-weight: 500; }
.contact-detail a:hover { color: var(--gold); }

.custom-input {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.93rem;
  transition: border-color 0.2s;
  background: #fafafa;
}
.custom-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
  background: #fff;
}
.form-label { font-size: 0.87rem; font-weight: 600; color: #555; margin-bottom: 6px; }

.social-btn {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.2s;
}
.social-btn:hover { transform: translateY(-3px); color: #fff; }
.social-btn.fb { background: #1877F2; }
.social-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.wa { background: #25D366; }

/* ---- FOOTER ---- */
.footer-section {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 60px 0 0;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.footer-social:hover { background: var(--gold); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-top: 20px;
}

/* ---- WHATSAPP FLOAT WITH OVERFLOW ---- */
.whatsapp-float {
  position: fixed;
  bottom: 100px; /* Adjust distance from bottom */
  right: 20px;  /* Adjust distance from right */
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff !important;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
  
  /* Critical for "Overflow" effect */
  z-index: 99999 !important; /* Highest priority */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  
  /* Animation to make it 'pop' out of the screen */
  animation: whatsapp-pulse 2s infinite;
  transition: all 0.3s ease-in-out;
}

/* Pulsing effect that overflows the button size */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
  color: #fff;
}

/* Prevent parent sections from clipping the icon */
#home, .hero-section, body {
    overflow-x: visible !important; 
}

/* Scroll Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 28px; /* Keep at bottom */
  right: 28px; /* Keep at bottom-right corner */
  width: 50px;
  height: 50px;
  background: #C9A227; /* Gold color */
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}
/* #scrollTopBtn:hover {
  background: #a8841f;
  transform: scale(1.1);
} */

/* Make carousel slide smooth */
#projectCarousel .carousel-inner {
    transition: transform 0.8s ease-in-out; /* smooth slide animation */
}

/* Text-based arrows */
.carousel-arrow {
    font-size: 3rem;
    font-weight: 900;
    color: whitesmoke;
    background-color: #C9A227 !important;
    user-select: none;
    width: 60px;
    height: 60px;
    line-height: 60px; /* center vertically */
    border-radius: 10px;
    text-align: center;
    display: inline-block;
    transition: transform 0.3s ease; /* smooth hover */
    cursor: pointer;
}

.carousel-arrow:hover {
    transform: scale(1.2);
}

/* Increase clickable area */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

/* Hide badges only on screens smaller than 768px (mobile) */
@media (max-width: 767px) {
   .hero-badge,
    .ceo-experience-badge {
    visibility: hidden;
  }
}
.hero-section {
  overflow-x: hidden; /* prevent horizontal scroll */
}
@media (max-width: 767px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
}@media (max-width: 991px) {
  .hero-section {
    padding-top: 80px; /* adjust to match navbar height */
    overflow-x: hidden; /* prevent horizontal scroll */
  }
}
/* Base Desktop Style */
  .ser-btn {
    display: inline-block;
    width: auto;
  }
  
  /* Mobile 100% Width Fix */
  @media (max-width: 991px) {
    .ser-btn {
      width: 100% !important;
      display: block !important;
      margin-top: 10px; /* Space between buttons when stacked */
    }
  }

  
/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 32px rgba(37,211,102,0.7); }
}

/* ---- SCROLL REVEAL ---- */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .section-pad { padding: 60px 0; }
  .about-logo-img { width: 220px; height: 220px; }
  .contact-info-card, .contact-form-card { padding: 24px; }
  .hero-stats .stat-num { font-size: 1.6rem; }
  .ceo-photo { max-width: 300px; }
}
