/* --- Base Variables & Setup --- */
:root {
  --primary-color: #164b92;
  --secondary-color: #0f3a75;
  --accent-color: #e67e22; /* Keep or change if needed */
  --light-bg: #ffffff;
  --light-text: #333333;
  --light-text-secondary: #5f6c7b;
  --light-card-bg: #f8f9fa;
  --light-border: #e0e0e0;
  --light-shadow: rgba(0, 0, 0, 0.08);
  --light-shadow-hover: rgba(0, 0, 0, 0.15);

  /* Dark Mode Colors - Refined */
  --dark-bg: #121f3a; /* Dark Desaturated Blue */
  --dark-text: #e0e3e7; /* Light Gray/Off-white */
  --dark-text-secondary: #a0a7b1;
  --dark-card-bg: #1a2b4e; /* Slightly Lighter Dark Blue */
  --dark-border: #3a4a6e;
  --dark-shadow: rgba(0, 0, 0, 0.25);
  --dark-shadow-hover: rgba(0, 0, 0, 0.4);
  --dark-primary-accent: #4a90e2; /* Brighter, more vibrant blue for dark mode */
  --dark-secondary-accent: #3a7bd5; /* Alternative accent */

  /* Apply Theme Variables */
  --body-bg: var(--light-bg);
  --text-color: var(--light-text);
  --text-secondary-color: var(--light-text-secondary);
  --card-bg: var(--light-card-bg);
  --border-color: var(--light-border);
  --shadow-color: var(--light-shadow);
  --shadow-hover-color: var(--light-shadow-hover);
  --primary-accent: var(--primary-color); /* Default to light mode primary */

  --font-primary: 'Poppins', sans-serif;
  --font-display: 'Montserrat', serif; /* Using Montserrat for headings */
  --border-radius: 8px;
  --transition-speed: 0.3s;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

  --animate-delay: 0s;
}

html[data-theme="dark"] {
  --body-bg: var(--dark-bg);
  --text-color: var(--dark-text);
  --text-secondary-color: var(--dark-text-secondary);
  --card-bg: var(--dark-card-bg);
  --border-color: var(--dark-border);
  --shadow-color: var(--dark-shadow);
  --shadow-hover-color: var(--dark-shadow-hover);
  --primary-accent: var(--dark-primary-accent); /* Use dark mode accent */
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%; /* Base font size */
}

body {
  font-family: var(--font-primary);
  background-color: var(--body-bg);
  color: var(--text-color);
  line-height: 1.7; /* Increased line height */
  font-size: 1rem;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 80px 0;
  overflow: hidden; /* Prevent horizontal scrollbars from animations */
  position: relative; /* For pseudo-elements if needed */
}

@media (min-width: 992px) {
  .section {
      padding: 100px 0;
  }
}

.section--alt-bg {
  background-color: var(--card-bg); /* Use card-bg for subtle difference */
  transition: background-color var(--transition-speed) ease;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary-accent); /* Use the theme accent color */
  text-align: center;
  margin-bottom: 15px; /* Reduced bottom margin */
  position: relative;
  line-height: 1.3;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
  content: '';
  display: block; /* Changed from absolute */
  width: 70px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
  margin: 15px auto 0 auto; /* Spacing after title */
}

html[data-theme="dark"] .section-title::after {
    background-color: var(--dark-secondary-accent);
}

@media (min-width: 768px) {
  .section-title {
      font-size: 2.8rem;
  }
  .section-subtitle {
      font-size: 1.2rem;
      margin-bottom: 60px;
  }
}

.section-cta {
  text-align: center;
  margin-top: 50px;
}

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

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--dark-text);
}
html[data-theme="dark"] a:hover {
  color: var(--dark-secondary-accent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex; /* Align icon and text */
  align-items: center;
  justify-content: center;
  gap: 8px; /* Space between icon and text */
  padding: 12px 28px; /* Slightly more padding */
  border: 1px solid transparent; /* Base border */
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-smooth); /* Smoother transition */
  text-transform: uppercase;
  letter-spacing: 0.8px; /* Wider spacing */
  font-size: 0.9rem;
  white-space: nowrap; /* Prevent wrapping */
}

.btn--primary {
  background-color: var(--primary-accent);
  color: #ffffff;
  border-color: var(--primary-accent);
}

.btn--primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .btn--primary {
    background-color: var(--dark-primary-accent);
    border-color: var(--dark-primary-accent);
}
html[data-theme="dark"] .btn--primary:hover {
    background-color: var(--dark-secondary-accent);
    border-color: var(--dark-secondary-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}


.btn--secondary {
  background-color: transparent;
  color: var(--primary-accent);
  border-color: var(--primary-accent);
}

.btn--secondary:hover {
  background-color: var(--primary-accent);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
html[data-theme="dark"] .btn--secondary {
    color: var(--dark-primary-accent);
    border-color: var(--dark-primary-accent);
}
html[data-theme="dark"] .btn--secondary:hover {
    background-color: var(--dark-primary-accent);
    color: var(--dark-text); /* Use standard dark text */
}

.btn--large {
  padding: 15px 40px;
  font-size: 1rem;
}
.btn--small {
  padding: 8px 18px;
  font-size: 0.8rem;
}

/* --- Floating Buttons --- */
.floating-contact-btn,
.theme-toggle-btn {
  position: fixed;
  bottom: 25px;
  width: 55px; /* Slightly larger */
  height: 55px;
  border-radius: 50%;
  background-color: var(--primary-accent);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem; /* Larger icon */
  box-shadow: 0 5px 20px var(--shadow-color);
  z-index: 990; /* Below header */
  cursor: pointer;
  border: none;
  transition: background-color var(--transition-speed) ease, transform 0.2s ease-out, box-shadow var(--transition-speed) ease;
}

.floating-contact-btn {
  right: 25px;
  background-color: #25D366; /* WhatsApp Green */
}
.floating-contact-btn:hover {
  background-color: #128C7E;
  transform: scale(1.1) rotate(5deg); /* Add slight rotation */
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.theme-toggle-btn {
  left: 25px;
}
.theme-toggle-btn:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 25px var(--shadow-hover-color);
}
html[data-theme="dark"] .theme-toggle-btn {
    background-color: var(--dark-card-bg); /* Match dark card bg */
    color: var(--dark-primary-accent);
    border: 1px solid var(--dark-border);
}

/* --- Theme Toggle Icons --- */
/* Icons are set via JS innerHTML now */

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  position: relative;
  color: #ffffff;
  display: flex;
  align-items: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); /* Stronger shadow */
}

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

.section__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* Behind overlay */
}

.overlayed::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 58, 117, 0.6) 0%, rgba(22, 75, 146, 0.85) 100%); /* Adjusted Gradient */
  z-index: 1;
}

.hero-content {
  max-width: 750px; /* Slightly wider */
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font size */
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15; /* Slightly tighter */
  color: #fff; /* Ensure white */
}

.hero-title span {
  display: block; /* Stack words vertically always */
  margin-bottom: 0.1em; /* Small gap between lines */
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem); /* Responsive font size */
  margin-bottom: 2.5rem; /* More space before button */
  max-width: 600px;
  opacity: 0.95; /* Slightly less opaque */
  font-weight: 300; /* Lighter weight */
}

.hero-cta {
  margin-top: 1.5rem;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-down-indicator a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: color var(--transition-speed) ease;
}
.scroll-down-indicator a:hover {
    color: #ffffff;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* --- Properties Section --- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); /* Slightly larger min size */
  gap: 35px; /* More gap */
}

.property-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  opacity: 0; /* For animation */
  /* transform is handled by JS animation */
}

.property-card:hover {
  transform: translateY(-8px); /* More lift */
  box-shadow: 0 12px 30px var(--shadow-hover-color);
}

.property-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.property-card__image-wrapper {
  position: relative;
  height: 230px; /* Slightly taller */
  overflow: hidden;
}

.property-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out; /* Smoother zoom */
}

.property-card:hover .property-card__image {
  transform: scale(1.1);
}

/* Image Overlay Effect */
.property-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Start transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: background-color 0.4s ease, opacity 0.4s ease;
    z-index: 3; /* Above badges */
}
.property-card:hover .property-card__overlay {
    background-color: rgba(22, 75, 146, 0.7); /* Use primary color */
    opacity: 1;
}
.overlay-text {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}
.property-card:hover .overlay-text {
    transform: translateY(0);
}
.overlay-text i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.property-card:hover .overlay-text i {
    transform: translateX(5px);
}


.property-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping if too many badges */
  gap: 6px;
  z-index: 2;
}

.badge {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.7rem; /* Slightly smaller */
  font-weight: 600; /* Bolder */
  text-transform: uppercase;
  backdrop-filter: blur(2px); /* Subtle blur effect */
}

/* Badge colors */
.badge--jual { background-color: #27ae60; } /* Green */
.badge--sewa { background-color: #f39c12; } /* Orange */
.badge--jual-cepat { background-color: #e74c3c; } /* Red */
.badge--jual-sewa { background: linear-gradient(to right, #27ae60 49%, #f39c12 51%); }
.badge--type { background-color: var(--primary-accent); }


.property-card__content {
  padding: 20px; /* More padding */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.property-card__title {
  font-family: var(--font-primary);
  font-size: 1.15rem; /* Slightly larger */
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
  line-height: 1.4;
  min-height: 2.8em; /* Reserve space for ~2 lines */
  transition: color var(--transition-speed) ease;
}
.property-card:hover .property-card__title {
    color: var(--primary-accent);
}

.property-card__location {
  font-size: 0.9rem;
  color: var(--text-secondary-color);
  margin-bottom: 12px; /* Space before price */
  display: flex;
  align-items: center;
}
.property-card__location i {
  margin-right: 6px;
  color: var(--secondary-color);
  width: 12px; /* Fixed width for alignment */
}
html[data-theme="dark"] .property-card__location i {
    color: var(--dark-secondary-accent);
}

.property-card__price {
  font-size: 1.3rem; /* Larger price */
  font-weight: 700;
  color: var(--primary-accent);
  margin-top: auto; /* Push to bottom */
}

.no-properties {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  font-style: italic;
  color: var(--text-secondary-color);
  opacity: 0.9;
  font-size: 1.1rem;
}


/* --- Listing Types Section --- */
.listing-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Smaller min size for more items */
  gap: 25px;
}

.listing-type-card {
  background-color: var(--body-bg); /* Match body background */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 25px 20px;
  text-align: center;
  box-shadow: none; /* Remove default shadow */
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
  opacity: 0; /* For animation */
}

.listing-type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px var(--shadow-hover-color);
  border-color: var(--primary-accent);
}

.listing-type-card__icon-wrapper {
  width: 65px; /* Smaller icon */
  height: 65px;
  border-radius: 50%;
  background-color: var(--primary-accent);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem; /* Smaller icon font size */
  margin: 0 auto 18px auto;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.listing-type-card:hover .listing-type-card__icon-wrapper {
   background-color: var(--secondary-color);
   transform: scale(1.1) rotate(-5deg); /* Add rotation */
}
html[data-theme="dark"] .listing-type-card:hover .listing-type-card__icon-wrapper {
   background-color: var(--dark-secondary-accent);
}

.listing-type-card__title {
  font-size: 1.1rem; /* Smaller title */
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color); /* Use standard text color */
  transition: color var(--transition-speed) ease;
}
.listing-type-card:hover .listing-type-card__title {
    color: var(--primary-accent);
}

.listing-type-card__desc {
  font-size: 0.85rem; /* Smaller description */
  color: var(--text-secondary-color);
  line-height: 1.5;
}

.listing-type-card__link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: var(--border-radius); /* Match parent radius */
}


/* --- Services Section ("Mengapa Memilih Agathos?") --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px; /* More gap */
}

.service-card {
  text-align: center;
  padding: 25px;
  background-color: var(--card-bg); /* Give cards a background */
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  opacity: 0; /* For animation */
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-hover-color);
}


.service-card__image {
  width: 150px; /* Smaller image */
  height: 150px;
  object-fit: contain;
  margin: 0 auto 25px auto;
  transition: transform 0.4s ease-out;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}
html[data-theme="dark"] .service-card__image {
    filter: brightness(0.9) drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.service-card:hover .service-card__image {
  transform: scale(1.08); /* Less aggressive scale */
}

.service-card__title {
  font-size: 1.25rem; /* Slightly smaller */
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary-accent);
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
}


/* --- Sell Property CTA Section --- */
.sell-cta-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) { /* Adjust breakpoint */
  .sell-cta-content {
      grid-template-columns: 1fr 0.8fr; /* Text takes more space */
      gap: 60px;
  }
   .sell-cta__image-wrapper {
      order: 1;
  }
  .sell-cta__text {
      order: 0;
  }
}

.sell-cta__text {
  opacity: 0; /* For animation */
}

.sell-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive */
  color: var(--primary-accent);
  margin-bottom: 20px;
  line-height: 1.3;
}

.sell-cta__desc {
  font-size: 1.05rem; /* Slightly larger */
  margin-bottom: 35px;
  line-height: 1.8; /* More line height */
  color: var(--text-secondary-color);
}

.sell-cta__image-wrapper {
   text-align: center;
   opacity: 0; /* For animation */
}

.sell-cta__image {
  max-width: 90%;
  height: auto;
  filter: drop-shadow(8px 8px 20px var(--shadow-color));
  transition: transform 0.5s ease-out;
}

@media (min-width: 992px) {
   .sell-cta__image {
      max-width: 100%;
  }
}

/* --- Transition Link Button Style (from example) --- */
.transitionLinkBtn {
  display: block;
  width: 100%;
  max-width: 400px; /* Max width for button */
  margin: 0 auto; /* Center it */
  background-color: var(--card-bg); /* Use card background */
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden; /* Clip the ::before element */
}

.transitionLinkBtn a {
  display: block;
  font-family: var(--font-display); /* Use display font */
  font-size: 1.4rem; /* Adjusted size */
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.5px; /* Adjusted spacing */
  color: var(--text-color);
  padding: 25px 15px; /* Adjusted padding */
  position: relative;
  transition: color 0.6s ease; /* Slower color transition */
  z-index: 1;
}

html[data-theme="dark"] .transitionLinkBtn {
    background-color: var(--dark-card-bg);
    border-color: var(--dark-border);
}
html[data-theme="dark"] .transitionLinkBtn a {
    color: var(--dark-text);
}

.transitionLinkBtn a::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  content: '';
  background: var(--primary-accent); /* Fill with accent color */
  transform-origin: right top;
  transform: scale(0, 1);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1); /* Smooth ease */
}

.transitionLinkBtn a:hover {
  color: #fff; /* Text becomes white on hover */
}
html[data-theme="dark"] .transitionLinkBtn a:hover {
    color: var(--dark-bg); /* Dark background text color for contrast */
}

.transitionLinkBtn a:hover::before {
  transform-origin: left top;
  transform: scale(1, 1);
}

.transitionLinkBtn a span {
  position: relative;
  display: inline-block; /* Needed for pseudo element */
}

.transitionLinkBtn a span::after {
  content: '\f061'; /* FontAwesome arrow right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  width: auto; /* Let icon define width */
  height: auto;
  color: var(--primary-accent); /* Arrow color matches accent */
  font-size: 1em; /* Match text size */
  top: 50%;
  transform: translateY(-50%);
  right: -30px; /* Position arrow */
  opacity: 0; /* Hide initially */
  transition: right 0.4s ease, opacity 0.4s ease, color 0.6s ease;
}
html[data-theme="dark"] .transitionLinkBtn a span::after {
    color: var(--dark-primary-accent);
}

.transitionLinkBtn a:hover span::after {
  right: -40px; /* Move further out */
  opacity: 1; /* Show arrow */
  color: #fff; /* White arrow on hover */
}
html[data-theme="dark"] .transitionLinkBtn a:hover span::after {
    color: var(--dark-bg); /* Dark text color arrow on hover */
}


@media (max-width: 767px) {
  .transitionLinkBtn a {
    font-size: 1.2rem;
    padding: 20px 10px;
    letter-spacing: 1px;
  }
  .transitionLinkBtn a span::after {
    right: -25px;
  }
   .transitionLinkBtn a:hover span::after {
    right: -30px;
  }
}


/* --- Animations --- */
.animate-on-scroll {
  opacity: 0;
  /* Transform properties are set inline by JS or default CSS below */
  transition: opacity 0.7s ease-out, transform 0.7s ease-out; /* Default transition */
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: none !important; /* Ensure final state has no transform */
}

/* Default starting positions for animation types */
[data-animation="animate__fadeInUp"] { transform: translateY(60px); }
[data-animation="animate__fadeInDown"] { transform: translateY(-60px); }
[data-animation="animate__fadeInLeft"] { transform: translateX(-60px); }
[data-animation="animate__fadeInRight"] { transform: translateX(60px); }
[data-animation="animate__fadeIn"] { transform: scale(0.95); } /* Slight scale for fade */
[data-animation="animate__zoomIn"] { transform: scale(0.8); }

/* Animate.css Integration */
.animate__animated {
  --animate-duration: 0.9s; /* Default duration */
  --animate-delay: 0s; /* Base delay, overridden by data-delay */
   animation-fill-mode: both; /* Keep final state */
}

/* Delay utility (inline style data-delay is preferred) */
/* .delay-100ms { transition-delay: 100ms !important; animation-delay: 100ms !important; } */
/* etc. */

 .agents-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }
        
        /* Profile Card */
        .agent-profile-card {
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .agent-profile-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }
        
        .agent-card-inner {
            padding: 2rem;
            text-align: center;
            position: relative;
        }
        
        /* Top Badge */
        .agent-badge {
            position: absolute;
            top: 0;
            right: 0;
            background: linear-gradient(135deg, #ffd700, #ffed4e);
            color: #333;
            padding: 0.5rem 1rem;
            border-radius: 0 20px 0 20px;
            font-size: 0.8rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
        }
        
        .agent-badge i {
            font-size: 0.9rem;
        }
        
        /* Avatar Section */
        .agent-avatar {
            position: relative;
            width: 120px;
            height: 120px;
            margin: 0 auto 1.5rem;
        }
        
        .agent-photo {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid #fff;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease;
        }
        
        .agent-profile-card:hover .agent-photo {
            transform: scale(1.05);
        }
        
        .agent-status {
            position: absolute;
            bottom: 5px;
            right: 5px;
            width: 20px;
            height: 20px;
            background: #10b981;
            border-radius: 50%;
            border: 3px solid #fff;
        }
        
        /* Agent Info */
        .agent-info {
            margin-bottom: 1.5rem;
        }
        
        .agent-name {
            font-size: 1.4rem;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 0.3rem;
        }
        
        .agent-title {
            color: #6b7280;
            font-size: 0.95rem;
            margin-bottom: 1rem;
        }
        
        /* Rating */
        .agent-rating {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        
        .stars {
            display: flex;
            gap: 0.2rem;
        }
        
        .stars i {
            color: #fbbf24;
            font-size: 0.9rem;
        }
        
        .rating-text {
            font-weight: 600;
            color: #374151;
            font-size: 0.9rem;
        }
        
        /* Action Buttons */
        .agent-actions {
            display: flex;
            gap: 0.8rem;
            justify-content: center;
        }
        
        .btn-profile {
            flex: 1;
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: white;
            padding: 0.8rem 1.5rem;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }
        
        .btn-profile:hover {
            background: linear-gradient(135deg, #1d4ed8, #1e40af);
            transform: translateY(-2px);
            color: white;
            text-decoration: none;
        }
        
        .btn-contact {
            background: #25d366;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 1.2rem;
        }
        
        .btn-contact:hover {
            background: #128c7e;
            transform: translateY(-2px);
            color: white;
            text-decoration: none;
        }
        
        /* No agents message */
        .no-agents {
            text-align: center;
            padding: 3rem 0;
            color: #6b7280;
            font-size: 1.1rem;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .agents-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 1.5rem;
            }
            
            .agent-card-inner {
                padding: 1.5rem;
            }
            
            .agent-avatar {
                width: 100px;
                height: 100px;
            }
            
            .agent-name {
                font-size: 1.2rem;
            }
            
            .agent-actions {
                flex-direction: column;
                gap: 0.5rem;
            }
            
            .btn-contact {
                width: 100%;
                height: 45px;
            }
        }
        
        @media (max-width: 480px) {
            .agents-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
        }