@import url('css/nav-icons.css');

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

    body, html {
      font-family: 'Alata', sans-serif;
    }

















    /*--------------------------------------------------------- Navbar ---------------------------------------------------------*/
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent; /* ✅ Transparent by default */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 15px;
  z-index: 1000;
  transition: top 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Solid background when scrolled */
#navbar.scrolled {
  background: #246BCE; /* ✅ Blue background */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* subtle shadow */
}


.logo a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo a:hover {
  transform: scale(1.05);
  opacity: 0.92;
}

.logo img {
  height: 50px;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

/* -------------------- Desktop Dropdown (original style) -------------------- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  padding: 0;
  list-style: none;
  min-width: 180px;
  border-radius: 8px;
  z-index: 1000;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.5s ease, opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dropdown-menu li {
  width: 90%;
  text-align: center;
  margin: 3px 0;
  transition: width 0.3s ease;
}

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

.dropdown-menu li a {
  color: #fff;
  background-color: #6495ed;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  display: block;
  width: 100%;
  padding: 8px 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #4583f4;
}
@media (min-width: 769px){
.dropdown:hover .dropdown-menu {
  max-height: 500px;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  padding: 10px 0;
}
}
.dropdown:hover .dropdown-menu {
  max-height: 500px;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  padding: 10px 0;
}

/* -------------------- Mobile Layout -------------------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  /* ---------------- Mobile Menu ---------------- */
  #navbar {
    background: #246BCE;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #246BCE;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  /* When menu is active */
  .nav-links.active {
    max-height: 90vh; /* almost full screen */
    opacity: 1;
    overflow-y: auto; /* scroll if content is too long */
    padding-bottom: 1rem;
  }

  /* Center each nav item */
  .nav-links li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
  }

  /* ---------------- Dropdown Adjustments ---------------- */
  .dropdown-menu {
    position: relative;
    width: 100%;       
    max-height: 0;     
    opacity: 0;
    border-radius: 1px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;         /* center all children horizontally */
    justify-content: center;     /* center all children vertically */
  }

  /* When dropdown is active */
  .dropdown-menu.active {
    max-height: 300px;
    opacity: 1;
  }

  /* Dropdown list item styling */
  .dropdown-menu li,
  .dropdown-menu li a {
    width: 100%;
    box-sizing: border-box;
  }

  /* ✅ Perfect vertical & horizontal centering for dropdown links */
  .dropdown-menu.active li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px; /* consistent height */
    text-align: center;
    padding: 0;
  }

  /* Center the dropdown trigger */
  .nav-links li.dropdown {
    height: auto;
    flex-direction: column; /* stack trigger and dropdown vertically */
  }

  .nav-links li.dropdown > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px; /* height for trigger */
    width: 100%;
    text-align: center;
  }
}






/* -------------------- Register / Login button -------------------- */
.login-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #4da8ff 0%, #246bce 48%, #1a4f9e 100%);
  color: #fff;
  padding: 11px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
  transform: translateY(0);
  box-shadow:
    0 4px 16px rgba(36, 107, 206, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  overflow: hidden;
  isolation: isolate;
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.login-btn:hover {
  background: linear-gradient(135deg, #5eb8ff 0%, #2d7ad4 48%, #1e5aab 100%);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 8px 26px rgba(36, 107, 206, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.login-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(36, 107, 206, 0.35),
    0 8px 26px rgba(36, 107, 206, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 2px 10px rgba(36, 107, 206, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Ripple effect */
.login-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.login-btn:active::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.6;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

.login-btn--signout {
  background: linear-gradient(135deg, #64748b 0%, #475569 48%, #334155 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 16px rgba(51, 65, 85, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.login-btn--signout:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 48%, #b91c1c 100%);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.login-btn--signout i {
  font-size: 0.88rem;
}

/* -------------------- Underline Effect -------------------- */
.underline-effect {
  position: relative;
  padding-bottom: 4px;
  font-weight: bold;
}

.underline-effect::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #6495ed;
  transition: width 0.4s ease, left 0.4s ease;
}

.underline-effect:hover::after,
.underline-effect.active::after {
  width: 100%;
  left: 0;
}
/* -------------------- Mobile & Tablet Underline Adjustments -------------------- */
@media (max-width: 768px) {
  .underline-effect::after {
    height: 2px;
    width: 0; /* start hidden */
  }

  .underline-effect:hover::after,
  .underline-effect.active::after {
    width: 40%; /* ✅ make it shorter, around the text */
    left: 30%;  /* ✅ keep it centered under the text */
  }
}











/*  ------------------------------------------------------------------ Header and Background Overlay ------------------------------------------------------------------ */
header {
  position: relative;
  height: 100vh;
  background: url('images/housedesign1.jpg') no-repeat center center/cover;
  color: white;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.358);
  z-index: 1;
}


/* Header content */
.header-content {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  max-width: 90%;
  width: 600px;
}

.header-content h1 {
  font-size: 2.7rem;
  margin-bottom: 30px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}





/* Search bar container */
.search-container {
  width: 100%;
  max-width: 600px;
  position: relative;
}

/* Group input, icons and buttons */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 5px 15px;
  width: 100%;
}

.input-group i {
  color: gray;
  margin-right: 10px;
}


.input-group input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  font-size: 1rem;
  outline: none;
  border-radius: 50px;
}

.input-group button {
  background: linear-gradient(135deg, #4e54c8, #40c9ff);
  border: none;
  padding: 12px 10px;
  border-radius: 30px;
  margin-left: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.input-group button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.input-group button:hover::before {
  left: 130%;
}

.input-group button:hover {
  background: linear-gradient(135deg, #3846b0, #3bb6e0);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}
.input-group button:disabled {
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}


.input-group #voiceBtn {
  background: none;
  color: #666;
  font-size: 18px;
  margin-left: 8px;
}

/* Icon in search bar */
.search-container i {
  margin-right: 10px;
  color: gray;
}

/* Suggestions list styled like Google autocomplete */
#searchInput {
  flex: 1;
  padding: 12px 15px;
  border: none;
  font-size: 1rem;
  outline: none;
  border-radius: 50px;
}
#searchButton {
  background: linear-gradient(to right, #4e54c8, #40c9ff);
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  margin-left: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
#searchButton:hover {
  background: #fff;
  color: #4e54c8;
  border: solid 2px #4e54c8;
  padding: 10px 18px;
}

#suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
}

#suggestions-list li {
  padding: 12px 16px;
  cursor: pointer;
  color: #333;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

#suggestions-list li:hover,
#suggestions-list li.active {
  background: #eef4ff;
}

#suggestions-list .suggestion-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #246bce;
  background: rgba(36, 107, 206, 0.12);
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 8px;
}

#suggestions-list li:last-child {
  border-bottom: none;
}


/* Highlighted search results */
.highlighted {
  background-color: #6495ed; /* cornflower blue */
  color: white;
  padding: 2px;
  border-radius: 6px;
  transition: background-color 1s ease;
}

.fading-out {
  background-color: transparent;
}



/* Hide/Show classes */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}



/* Responsive styles */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .auth-buttons.mobile-only {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
  }

.header-content h1 {
  font-size: 1.7rem;
}


  .header-content {
    width: 90%;
    padding: 0 10px;
  }

  .search-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 15px;
  }

  .search-container input {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .search-container button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    margin: auto;
  }

.search-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0 auto;
}
.input-group {
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  gap: 10px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.input-group input,
.input-group button {
  width: 100%;
  border-radius: 12px;
  font-size: 1rem;
  padding: 12px 15px;
}

.input-group button {
  margin-left: 0;
}
.input-group i {
  display: none;
}

   #suggestions-list {
    font-size: 15px;
    border-radius: 0 0 10px 10px;
  }

  #suggestions-list li {
    padding: 14px 18px;
  }
  #searchButton {
    margin-left: auto;
  }

}


















/*  ------------------------------------------------------------------ popular-homes style ------------------------------------------------------------------ */
.popular-homes {
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  overflow: hidden;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.popular-homes h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: left;
  color: #222;
}

/* Wrapper & Arrows */
.carousel-wrapper {
  position: relative;
}

.carousel-arrows-top {
  position: absolute;
  top: -40px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 15;
}

.carousel-arrow {
  background-color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.2s, opacity 0.3s ease;
}

/* Arrow hover */
.carousel-arrow:hover {
  background-color: #f1f1f1;
  transform: scale(1.1);
}

/* Arrow dim at edges (inactive state) */
.carousel-arrow.inactive {
  background-color: #dcdcdc;
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Carousel Container */
.homes-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px 0;
  margin-top: 20px;
  overflow-y: hidden;
}
.homes-carousel::-webkit-scrollbar {
  display: none;
}

.homes-empty {
  flex: 1 1 100%;
  margin: 8px 0 16px;
  padding: 28px 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
}

/* Home Cards — simple fade-in */
.home-card {
  flex: 0 0 auto;
  width: 230px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  padding-bottom: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.25s ease;
}

.home-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.home-card.visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

/* Image Container */
.image-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}
.image-container img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.home-card:hover .image-container img {
  transform: scale(1.04);
}

/* Availability Badges */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  overflow: hidden;
}

/* Glowing and shiny sweep for Available */
.badge.available {
  background: linear-gradient(90deg, #28a745 0%, #34d058 50%, #28a745 100%);
  box-shadow: 0 0 12px rgba(40, 167, 69, 0.8);
  position: relative;
  animation: glowPulse 2s infinite alternate;
}

.badge.available::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  transform: skewX(-20deg);
  animation: shineSweep 2.5s infinite;
}

@keyframes shineSweep {
  0% {
    left: -50%;
  }
  100% {
    left: 120%;
  }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
  }
  100% {
    box-shadow: 0 0 16px rgba(40, 167, 69, 0.9);
  }
}

/* Unavailable badge (no effects) */
.badge.unavailable {
  background-color: #999;
  box-shadow: none;
}

/* Card Text */
.home-card h3 {
  font-size: 1rem;
  margin: 10px 0 5px;
  padding-left: 10px;
}
.home-card p {
  font-size: 0.85rem;
  color: #555;
  padding-left: 10px;
}

/* Remove link underline */
.home-link {
  text-decoration: none;
  color: inherit;
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
  .home-card {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .carousel-arrows-top {
    display: none; /* Hide arrows on mobile */
  }

  .homes-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 769px) {
  .homes-carousel {
    overflow-x: hidden; /* Remove scroll on large screens */
  }
}

@media (max-width: 480px) {
  .popular-homes h2 {
    font-size: 1.3rem;
  }
  .home-card {
    width: 160px;
  }
}















/*  ------------------------------------------------------------------Parallax container style ------------------------------------------------------------------ */
.parallax-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('images/housedesign12.jpg') no-repeat center center/cover;
  perspective: 1px;
  transform-style: preserve-3d;
}

/* Parallax content */
.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeIn 1.5s ease;
  color: #fff;
}

.parallax-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.parallax-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.parallax-content button {
  padding: 10px 20px;
  border: none;
  background: linear-gradient(to right, #4e54c8, #40c9ff);
  color: #fff;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.parallax-content button:hover {
  background-color: #595fcc;
  transform: scale(1.1);
}

/* Parallax background effect */
.parallax-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/housedesign12.jpg') no-repeat center center/cover;
  z-index: 1;
  transform: translateZ(-1px) scale(2); /* Parallax effect */
  filter: brightness(0.7);
  transition: transform 0.5s ease, filter 0.3s ease;
}

.parallax-container:hover::before {
  transform: translateZ(-1px) scale(2.2);
  filter: brightness(0.5);
}

/* Fade-in effect */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}












/*  ------------------------------------------------------------------ footer style ------------------------------------------------------------------ */
.site-footer {
  background-color: #246BCE;
  /* background: linear-gradient(to right, #4e54c8, #40c9ff); */
  color: #fff;
  padding: 60px 20px 20px;
  position: relative;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 200px;
}

.footer-column h4,
.about h3 {
  color: #fff;
  margin-bottom: 20px;
}

.about h3 {
  font-size: 24px;
}

.about p {
  font-size: 14px;
  line-height: 1.6;
}

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

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  padding-left: 2px;
  transition: color 0.3s ease, transform 0.25s ease;
}

.footer-column ul li a:hover {
  color: #40c9ff;
  transform: translateX(6px);
}


.social-icons {
  margin-top: 15px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.social-icons a {
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 16px;
  color: #fff;
  background: rgba(64, 201, 255, 0.18);
  border: 1px solid rgba(64, 201, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease;
  animation: socialFloat 4s ease-in-out infinite;
  will-change: transform;
}

.social-icons a:nth-child(1) { animation-delay: 0s; }
.social-icons a:nth-child(2) { animation-delay: 0.2s; }
.social-icons a:nth-child(3) { animation-delay: 0.4s; }
.social-icons a:nth-child(4) { animation-delay: 0.6s; }
.social-icons a:nth-child(5) { animation-delay: 0.8s; }

.social-icons a i {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-icons a::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.94);
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2;
}

.social-icons a::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  opacity: 0;
  border: 6px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.94);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2;
}

.social-icons a.is-paused,
.social-icons a:hover,
.social-icons a:focus-visible {
  animation: none;
}

.social-icons a:hover,
.social-icons a:focus-visible {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 22px rgba(64, 201, 255, 0.35);
  outline: none;
}

.social-icons a:hover i,
.social-icons a:focus-visible i {
  transform: scale(1.08);
}

.social-icons a:hover::after,
.social-icons a:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.social-icons a:hover::before,
.social-icons a:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.social-icons a:active {
  transform: translateY(-2px) scale(1.04);
  transition-duration: 0.12s;
}

.social-icons a:focus-visible {
  box-shadow: 0 0 0 3px rgba(64, 201, 255, 0.45), 0 10px 22px rgba(64, 201, 255, 0.3);
}

.social-icons a.social-facebook:hover,
.social-icons a.social-facebook:focus-visible {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 10px 22px rgba(24, 119, 242, 0.35);
}

.social-icons a.social-instagram:hover,
.social-icons a.social-instagram:focus-visible {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  border-color: #dd2a7b;
  box-shadow: 0 10px 22px rgba(221, 42, 123, 0.35);
}

.social-icons a.social-x:hover,
.social-icons a.social-x:focus-visible {
  background: #0f1419;
  border-color: #2f3336;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.social-icons a.social-linkedin:hover,
.social-icons a.social-linkedin:focus-visible {
  background: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 10px 22px rgba(10, 102, 194, 0.35);
}

.social-icons a.social-youtube:hover,
.social-icons a.social-youtube:focus-visible {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 10px 22px rgba(255, 0, 0, 0.32);
}

@keyframes socialFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .social-icons a {
    animation: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .social-icons a:hover,
  .social-icons a:focus-visible {
    transform: none;
  }

  .social-icons a i {
    transition: none;
  }

  .social-icons a::after,
  .social-icons a::before {
    transition: none;
  }
}

@media (max-width: 480px) {
  .social-icons {
    flex-wrap: wrap;
    gap: 10px;
  }

  .social-icons a {
    width: 42px;
    height: 42px;
  }
}


.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-info i {
  color: #40c9ff;
  font-size: 16px;
  min-width: 20px;
}

.footer-bottom {
  border-top: 1px solid #fff;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
}

.footer-bottom .highlight {
  color: #40c9ff;
}

.footer-bottom a {
  color: #40c9ff;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
}


/*  ------------------------------------------------------------------ Gallery Section Styles ------------------------------------------------------------------ */
.portfolio {
  padding: 60px 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f1f5f9;
  min-height: 100vh;
}

.portfolio h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio p {
  text-align: center;
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 50px;
}

.gallery-section {
  margin-bottom: 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.image-card {
  border-radius: 16px;
  overflow: hidden;
  background-color: #1e293b;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.image-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

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

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #f1f5f9;
}

.card-description {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  color: #60a5fa;
  font-size: 0.9rem;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 15px;
}

.pagination-button {
  background-color: #334155;
  border: none;
  color: #f8fafc;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-button:hover:not(:disabled) {
  background-color: #4f5f7a;
  transform: scale(1.05);
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-indicator {
  background-color: #1e293b;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

.modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: #1e293b;
  border: none;
  color: #f8fafc;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

.modal-close:hover {
  background-color: #dc2626;
  transform: rotate(90deg);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 41, 59, 0.8);
  border: none;
  color: #f8fafc;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

.modal-nav:hover {
  background: rgba(30, 41, 59, 1);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.modal-nav.prev {
  left: -80px;
}

.modal-nav.next {
  right: -80px;
}

.image-info {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  text-align: center;
  color: #f1f5f9;
  background: rgba(30, 41, 59, 0.911);
  padding: 15px;
  border-radius: 8px;
}

.image-title {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.image-description {
  color: #cbd5e1;
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .image-card {
    height: 200px;
  }
  
  .image-card img {
    height: 120px;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .card-title {
    font-size: 1rem;
  }
  
  .card-description {
    font-size: 0.85rem;
  }

  .portfolio h2 {
    font-size: 2rem;
  }

  /* Modal navigation - hide buttons on small screens */
  .modal-nav {
    display: none;
  }

  /* Close button repositioning for small screens */
  .modal-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    z-index: 1002;
  }

  .image-info {
    bottom: -70px;
    padding: 12px;
    font-size: 0.9rem;
  }

  .image-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 30px;
  }

  .pagination-container {
    flex-direction: column;
    gap: 10px;
  }

  .pagination-button,
  .page-indicator {
    width: 100%;
    justify-content: center;
  }

  .page-indicator {
    order: -1;
  }

  .modal-content {
    max-width: 95%;
    padding: 10px;
  }

  .modal-image {
    max-height: 70vh;
  }
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.fade-in {
  animation: fadeIn 0.5s ease;
}

.slide-in-left {
  animation: slideInLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right {
  animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .image-card:hover {
    transform: none;
    animation-play-state: running;
  }
  
  .image-card:active {
    transform: scale(0.98);
  }
  
  .pagination-button:active:not(:disabled) {
    transform: scale(0.98);
  }
}
