/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Body */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background-image: url("./images/2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(6px); /* glassmorphism */
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden; /* hides horizontal scroll only */
  overflow-y: auto; /* allow vertical scrolling */
}

/* Navbar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  position: absolute;
  top: 0;
  width: 95%;
  z-index: 10;
}

.logo img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

nav a {
  text-decoration: none;
  color: #fff;
  margin: 0 15px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: 0.3s;
}

nav a.active {
  background: #673147; /* purple highlight */
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
}

.hero-box {
  display: flex;
  align-items: center;
  background: rgba(224, 205, 205, 0.781); /* medium gray, 70% opacity */
  border-radius: 20px;
  padding: 0;
  max-width: 900px;
  height: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px); /* glassmorphism */
  overflow: hidden;
}

.hero-img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  
  /* fade effect */
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.hero-text h1 {
  font-size: 36px;
  margin: 0 0 10px;
  color: #3d2c25;
}

.hero-text p {
  font-size: 16px;
  margin: 0 0 20px;
  color: #5b463f;
}

.hero-text button {
  padding: 6px 16px;
  border: none;
  background: #3d2c25;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  border-radius: 20px;
}

.hero-text button:hover {
  background: #673147;
}

/* Services Section */
.services {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 60px 20px;
}

/* Card Style */
.card {
  position: relative;
  width: 280px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px); /* glassmorphism */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

.card-content {
  padding: 20px;
  z-index: 1;
  color: #fff;
}

.card h3 {
  font-size: 18px;
  margin: 5px 0;
  text-transform: uppercase;
}

.card p {
  font-size: 14px;
  color: #ddd;
  margin: 0;
}

.number {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* overlay for readability */
}

/* Registration Section */
.register-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: url("../images/2.jpg") no-repeat center center / cover;
  backdrop-filter: blur(6px);
}

.register-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 30px 40px;
  border-radius: 20px;
  width: 350px;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.register-box h2 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Input Fields */
.register-box input {
  width: 100%;
  padding: 10px 14px;
  margin: 8px 0;
  border: none;
  border-radius: 15px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  outline: none;
}

.register-box input::placeholder {
  color: rgba(255,255,255,0.7);
}

/* Button */
.register-box button {
  width: 100%;
  padding: 10px;
  background: #3d2c25; /* brown theme */
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 15px;
  transition: 0.3s;
}

.register-box button:hover {
  background: #673147;
}

/* Login Link */
.login-link {
  margin-top: 15px;
  font-size: 14px;
}

.login-link a {
  color: #fff;
  text-decoration: underline;
}

/* ===================== RESPONSIVENESS ===================== */

/* Small Tablets / Medium Screens (max-width: 768px) */
@media (max-width: 768px) {
  header {
    padding: 10px 20px;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .hero-box {
    flex-direction: column;
    max-width: 100%;
    height: auto;
  }

  .hero-img {
    width: 100%;
    height: 250px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .card {
    width: 100%;
    height: 200px;
  }

  .register-box {
    width: 80%;
    padding: 25px;
  }
}

/* Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  header {
    padding: 10px 15px;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-text p {
    font-size: 12px;
  }

  .hero-box {
    flex-direction: column;
    padding: 20px;
    height: auto;
  }

  .hero-img {
    width: 100%;
    height: 200px;
  }

  .card {
    width: 100%;
    height: 160px;
  }

  .register-box {
    width: 90%;
    padding: 20px;
  }

  .register-box h2 {
    font-size: 18px;
  }

  .register-box button {
    font-size: 14px;
  }
}
