@import url(./variables.css);
@import url(./utility.css);
@import url(./font.styles.css);
@import url(./reset-styles.css);
@import url(./button.styles.css);
*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", serif;
  overscroll-behavior: contain;
  color: var(--text);
  text-decoration: none;
}

#main-wrapper {
  display: grid;
  grid-template:
    "f"
    "rs"
    "rp"
    "ul"
    "pl";
  grid-auto-rows: auto;
  grid-auto-columns: 1fr;
  gap: 2rem;
  padding: var(--space);
}

.navbar {
  padding-block: 1rem;
  padding-inline: var(--space);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;

  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(40px);
}

ul {
  list-style: none;
}

li {
  display: flex;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.75rem;
  font-weight: bold;
}

.logo .logo-text {
  display: none;
  background: -webkit-linear-gradient(
    hsl(var(--primary-light), 1),
    hsl(var(--primary-dark), 0.25)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card {
  border: 1px solid var(--border);
  background-color: var(--card);
  border-radius: var(--radius-md);
  padding: var(--space);
}

.paper {
  background-color: var(--paper);
  padding: var(--space);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  border: 1px solid light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
  box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.05);
}

.section-heading {
  background: linear-gradient(var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-align: center;
  font-size: x-large;
}

.container {
  position: fixed;
  top: 0;
  z-index: -2;
  height: 100vh;
  width: 100%;
  background-color: var(--bg); /* Equivalent to bg-white */
  background-image: radial-gradient(
    100% 50% at 50% 0%,
    hsl(var(--primary-light), 0.2) 0%,
    hsl(var(--primary-light), 0.1) 20%,
    hsl(var(--primary-light), 0.01) 100%
  );
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* service section */
.services-section {
  grid-column: span 12;
}

.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template:
    "f f f h h h"
    "c c t t b b";
  /* gap: var(--space); */
  list-style: none;
}

.service-container {
  padding: 1rem;
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  gap: var(--space-md);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border var(--t-speed-fast) ease-in-out;
  z-index: 1;
  /* backdrop-filter: blur(10px); */
  border-radius: 0px;
  box-shadow: none;
}
.service-container figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.service-container figure img {
  width: 60px;
  aspect-ratio: 1 /1;
  transition: scale var(--t-speed-fast) ease-in-out;
}

.service-container:hover {
  background-color: var(--paper);
  border: 1px solid hsl(var(--primary-light), 0.4);
}

.services li .glow {
  width: clamp(100px, 50%, 200px);
  height: clamp(100px, 50%, 200px);
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: var(--radius-full);
  filter: blur(20px);
  background-color: transparent;
  transition: background-color var(--t-speed-fast) ease-in-out;
}

.services li:hover .glow {
  background-color: hsl(var(--primary-light), 0.1);
}

.service-container:hover img {
  scale: 1.1;
}
.services .card .service-title {
  color: red;
  margin-bottom: var(--space-sm);
}
.service-container p {
  opacity: 0.8;
}

/* running projects */
.running-projects-section {
  grid-column: span 12;
}

.project-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.project-wrapper > img {
  object-fit: cover;
  border-radius: 0.5rem;
  width: 100%;
  max-height: 250px;
}

.project-wrapper > a {
  font-weight: 600;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.project-wrapper > a:hover {
  color: var(--primary);
}

.splide__pagination {
  position: initial;
  bottom: 0;
}

.running-projects-swiper {
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.running-projects-section .project-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* real estate section */
section.real-estate {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section.real-estate form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

section.real-estate form label {
  font-size: 1.25rem;
  display: block;
  text-align: center;
  opacity: 0.7;
}

section.real-estate form > input {
  width: 100%;
  max-width: 500px;
  background-color: transparent;
  font-size: 1.5rem;
  margin-inline: auto;
  outline: none;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 0.25em 1em;
  text-align: center;
  color: var(--primary);
  transition: border-color var(--t-speed-slow) ease-in-out;
}

section.real-estate form > input:hover {
  border-color: hsl(var(--primary-light), 0.6);
}

section.real-estate form > input:focus-within {
  border-color: var(--primary);
}

section.real-estate form > .actions {
  display: flex;
  /* flex-direction: column; */
  gap: var(--space);
}
section.real-estate form > .actions > .btn {
  width: 100%;
}




/* useful links */
.useful-links-section {
  display: hidden;
}

.useful-links-section .useful-link-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space);
}

.useful-links-section .useful-link-wrapper a {
  text-decoration: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.useful-links-section .useful-link-wrapper a > span {
  position: relative;
  color: var(--text);
}

.useful-links-section .useful-link-wrapper a > .icon {
  width: 2em;
  height: 2em;
}

.useful-links-section .useful-link-wrapper a > span:hover {
  color: var(--primary);
}
.useful-links-section .useful-link-wrapper a > span::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transform-origin: bottom center;
  transition: transform 0.25s ease-out;
}

.useful-links-section .useful-link-wrapper a > span:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

#package-carousel {
  max-width: calc(100vw - 74px);
  display: none;
}

.package-container {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space);
  display: flex;
  flex-direction: column;
  gap: var(--space);
  /* max-width: 250px; */
  margin-block: 1rem;
}

.package-container:hover {
  border-color: hsl(var(--primary-light), 0.5);
  box-shadow: 2px 5px 15px hsl(var(--primary-light), 0.25);
}

.package-container img {
  border-radius: var(--radius-sm);
  max-height: 200px;
  object-fit: cover;
}

.package-container .content > a {
  font-weight: 800;
}
.package-container .content > a:hover {
  color: var(--primary);
}

.package-container .footer {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.package-container .footer .price {
  color: var(--primary);
  font-weight: 600;
}

/* sm: 40rem / 640px */
@media (min-width: 40rem) {
  :root {
    --sec-px: var(--space-md);
  }

  .navbar {
    padding-inline: var(--space-md);
  }

  .logo .logo-text {
    display: initial;
  }

  #main-wrapper {
    padding: var(--space-md);
    max-width: 100vw;
    grid-template:
      "f rs"
      "rp rp"
      "ul ul"
      "pl pl";
  }

  /* service section */
  .services-section {
    grid-column: span 4;
  }
  .services {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas: "f f h h" "c c t t" "b b b b";
  }

  /* running projects */
  .running-projects-section {
    grid-column: span 8;
  }

  /* real estate section */
  section.real-estate {
    grid-column: span 6;
  }

  /* useful links */
  .useful-links-section {
    grid-column: span 6;
  }

  section.real-estate form > .actions {
    flex-direction: row;
    justify-content: center;
  }

  section.real-estate form > .actions > .btn {
    max-width: 200px;
  }
  #package-carousel {
    display: initial;
  }
  .packages-list {
    display: none;
  }
  .package-container {
    max-width: 250px;
  }
}

/* Medium screens (md: 48rem / 768px and up) */
@media (min-width: 48rem) {
  :root {
    --sec-px: var(--space-lg);
  }
  .section-heading {
    font-size: xx-large;
  }
}

/* Large screens (lg: 64rem / 1024px and up) */
@media (min-width: 64rem) {
  :root {
    --sec-px: var(--space-xl);
  }

  .navbar {
    padding-inline: var(--space-lg);
  }

  #main-wrapper {
    padding: var(--space-lg);
    grid-template:
      "f rp"
      "rs ul"
      "pl pl";
  }

  .services {
    height: 100%;
  }

  /* service section */
  .services-section {
    grid-column: span 2;
    grid-row: span 2;
  }

  .services {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas: "f f f h h h" "c c t t b b";
  }
  /* running projects */
  .running-projects-section {
    grid-column: span 10;
  }

  .running-projects-section .project-list {
    flex-direction: row;
  }

  /* real estate section */
  section.real-estate {
    grid-column: span 5;
  }

  /* useful links */
  .useful-links-section {
    grid-column: span 5;
  }

  .useful-links-section .useful-link-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Extra large screens (xl: 80rem / 1280px and up) */
@media (min-width: 80rem) {
  #main-wrapper {
    padding: var(--space-xl);
  }
  .navbar {
    padding-inline: var(--space-xl);
  }
}

/* 2X large screens (2xl: 96rem / 1536px and up) */
@media (min-width: 96rem) {
}

.toggle-theme-btn .sun-icon {
  display: none;
}

:root[data-theme="dark"] .toggle-theme-btn .sun-icon {
  display: flex;
}

:root[data-theme="dark"] .toggle-theme-btn .moon-icon {
  display: none;
}
