/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0c4b8e, #1a1a1a);
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Glassmorphic Containers ===== */
header, section, footer, .rating-box, .team-member, .blog-post {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  padding: 20px;
  margin: 20px auto;
  max-width: 1100px;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: #fff;
}

.menu-toggle {
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: bold;
  transition: 0.3s;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Responsive Nav */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav {
    position: fixed;
    top: 0;
    left: -250px;
    width: 220px;
    height: 100%;
    background-color: #0c4b8e;
    transition: left 0.3s ease;
    padding-top: 60px;
  }
  nav.open {
    left: 0;
  }
  nav ul {
    flex-direction: column;
    padding-left: 20px;
  }
  nav ul li {
    margin: 15px 0;
  }
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 120px 20px;
  background: linear-gradient(135deg, #0c4b8e, #ff6600);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: white;
  border-radius: 20px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@keyframes gradientShift {
  0% { background-position: left top; }
  50% { background-position: right center; }
  100% { background-position: left top; }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

/* Slide-in for heading */
.animate-slide {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(-50px);
  animation: slideIn 1.2s ease-out forwards;
}
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in for subtitle */
.animate-fade {
  font-size: 20px;
  margin-top: 15px;
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.8s;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ===== Buttons ===== */
.btn {
  padding: 14px 28px;
  border-radius: 50px;
  background: rgba(255, 102, 0, 0.9);
  color: #fff;
  border: none;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
.btn:hover {
  background: #ff4500;
  box-shadow: 0 0 15px #fff;
  transform: scale(1.05);
}
.btn-glow {
  margin-top: 25px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.6);
}
.btn-glow:hover {
  background: #d62839;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.9), 0 0 40px rgba(230, 57, 70, 0.7);
  transform: translateY(-3px);
}

/* ===== Ratings ===== */
.rating-box {
  margin: 15px auto;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
.rating-box:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ===== Team Section ===== */
.team {
  text-align: center;
}
.team-member {
  display: inline-block;
  margin: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 300px;
}
.team-member img {
  border-radius: 50%;
  width: 150px;
  border: 3px solid rgba(255, 255, 255, 0.2);
}
.team-member:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ===== Blog Posts ===== */
.blog-section {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
}
.blog-section h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
}
.blog-post {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 15px;
  display: inline-block;
  width: 280px;
  transition: transform 0.3s ease;
}
.blog-post img {
  width: 100%;
  border-radius: 20px;
}
.blog-post:hover {
  transform: translateY(-5px);
}
.blog-post .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.blog-post:hover .overlay {
  transform: translateY(0);
}

/* ===== Services Grid ===== */
.services-page {
  padding: 50px 20px;
  color: #fff;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.service-box {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s;
}
.service-box:hover {
  transform: translateY(-5px);
}
.service-box h3 {
  margin-bottom: 10px;
  color: #fff;
}
.service-box p {
  font-size: 0.95em;
}

/* ===== Floating Social Bar ===== */
.floating-social-bar {
  position: fixed;
  top: 40%;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.floating-social-bar a {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  color: #fff;
  backdrop-filter: blur(8px);
  transition: 0.3s;
}
.floating-social-bar a:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,0.3);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 30px;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #0c4b8e, #08407a);
  color: #fff;
  border-radius: 20px;
}
footer .social-links a {
  margin: 0 10px;
  color: #fff;
  font-size: 1.2rem;
  transition: 0.3s;
}
footer .social-links a:hover {
  color: #00acee;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Forms ===== */
.form-container {
  max-width: 600px;
  margin: 50px auto;
  padding: 25px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  animation: fadeInUp 0.6s ease-in-out;
}
.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 26px;
  color: #b00020;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
  font-size: 15px;
  transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #b00020;
  box-shadow: 0 0 8px rgba(176, 0, 32, 0.3);
}
textarea { height: 120px; resize: none; }
.btn-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #b00020, #000);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== Contact & Consult Forms ===== */
.contact-section, .consult-form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: url('images/bg-pattern.jpg') no-repeat center/cover;
  min-height: 100vh;
}
.contact-section form,
.consult-form form {
  width: 100%;
  max-width: 600px;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 0.8s ease-in-out;
}
.contact-section h2,
.consult-form h2 {
  text-align: center;
  font-size: 28px;
  color: #fff;
  margin-bottom: 25px;
  letter-spacing: 1px;
}
.contact-section label,
.consult-form label {
  display: block;
  margin: 12px 0 6px;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
}
.contact-section input,
.contact-section textarea,
.consult-form input,
.consult-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}
.contact-section input::placeholder,
.contact-section textarea::placeholder,
.consult-form input::placeholder,
.consult-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.contact-section input:focus,
.contact-section textarea:focus,
.consult-form input:focus,
.consult-form textarea:focus {
  border-color: #ff0033;
  box-shadow: 0 0 12px rgba(255, 0, 51, 0.4);
}
.contact-section button,
.consult-form button {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff0033, #000);
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.contact-section button:hover,
.consult-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 0, 51, 0.4);
}
.service-btn {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.service-btn:hover {
  background: rgba(255, 0, 51, 0.5) !important;
  transform: scale(1.05);
}
#formSuccess {
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
  display: none;
}


/* Fade-in effect */
.animate-fade {
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Typewriter effect */
.animate-typewriter {
  overflow: hidden; /* hides overflowing text */
  white-space: nowrap; /* keeps text on one line */
  border-right: 3px solid #fff; /* cursor */
  width: 0;
  animation: typing 4s steps(60, end) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}
