/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

@font-face {
  font-family: 'Angle';
  src: url('./Fonts/Angle.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  background-color: #f2f2f2;
  color: #111;
  padding: 20px 40px;
  font-family: 'Poppins', sans-serif;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.6rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 950;
  color: #ffffff;
  font-family: 'Angle', sans-serif;
  text-decoration: none;
  color: black;

}

.side-nav {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 20px 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
  z-index: 10000;
}

/* .side-logo {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.side-logo a {
  text-decoration: none;
  color: #111;
} */

.side-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}

.side-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.side-links a:hover {
  color: #000;
}

@media (max-width: 768px) {
  .side-nav {
    display: none;
  }
}

#custom-cursor {
  position: fixed;
  width: 30px;
  /* larger radius */
  height: 30px;
  border-radius: 50%;
  border: 1px solid white;
  /* thin border */
  background-color: transparent;
  /* hollow inside */
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  /* only affects the border */
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.magnetic-hover #custom-cursor {
  transform: translate(-50%, -50%) scale(1.8);
  /* was scale(2) */
}

body {
  cursor: none;
}

a,
button {
  cursor: none;
}

/* Disable default cursors on all interactive elements */
*,
*::before,
*::after {
  cursor: none !important;
}

/* Back Button */
.back-button {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 40px;
}

.arrow {
  font-size: 1.3rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.back-button a {
  background-color: #111;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.back-button a:hover {
  background-color: #333;
}

/* Fixed Mini Back Button on Scroll */
.back-button.scrolled {
  position: fixed;
  bottom: 20px;
  left: 20px;
  margin: 0;
  z-index: 9999;
  transition: all 0.4s ease;
}

.back-button.scrolled a {
  padding: 12px;
  border-radius: 50%;
  font-size: 1rem;
  background-color: #111;
  color: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

/* Hide the text span when in scrolled state */
.back-button.scrolled .text {
  display: none;
}

/* Section Headers */
.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.section-subtext {
  font-size: 1rem;
  color: #555;
  margin-bottom: 25px;
  max-width: 600px;
}

/* Grid Wrapper */
.card-section {
  margin-bottom: 60px;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Card Style */
.card {
  position: relative;
  flex: 1 1 calc(33.33% - 20px);
  background: #fff;
  color: #111;
  border-radius: 20px;
  overflow: hidden;
  min-height: 200px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: color 0.8s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Water fill circle */
.card::before {
  content: "";
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 0;
  height: 0;
  background: #111;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1), height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  mix-blend-mode: multiply;
  will-change: width, height;
}

/* Expand circle on hover */
.card.hovered::before {
  width: 300%;
  height: 300%;
}

/* Text and content above overlay */
.card * {
  position: relative;
  z-index: 1;
  transition: color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Change text color and shadow on hover */
.card.hovered {
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

/* Sub-service Tags */
.sub-services {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  z-index: 1;
}

.tag {
  background: #111;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1), color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tag color invert on hover */
.card.hovered .tag {
  background: #fff;
  color: #111;
}

/* Responsive */
@media (max-width: 1024px) {
  .card {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .card {
    flex: 1 1 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  .back-button {
    justify-content: center;
  }
}

/* ============================ */
/* 🔽 Card Expansion Add-on CSS */
/* ============================ */

.card.expanded {
  max-height: 600px;
  transition: max-height 0.5s ease-in-out;
}

.card .details-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 10px;
  color: #111;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}

.card.expanded .details-content {
  max-height: 300px;
  opacity: 1;
}

a {
  text-decoration: none;
  color: black;
}

/* Disable custom cursor & restore default pointer on mobile */
@media (max-width: 768px) {

  /* Hide the custom-cursor element entirely */
  #custom-cursor {
    display: none !important;
  }

  /* Restore normal cursors on mobile */
  body,
  a,
  button,
  * {
    cursor: auto !important;
  }
}