/* -------------------------------
   HOLISTIC DESIGN - GLOBAL STYLES
--------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* -------------------------------
   LOADER ANIMATION
--------------------------------- */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-logo-image {
  width: 160px;
  height: 160px;
  margin-bottom: 1rem;
  opacity: 0;
  transform: scale(0.9);
  animation: logoFadeIn 1.2s ease forwards, pulse 2.2s ease-in-out infinite 1.2s;
}

.loader-logo-text {
  font-size: 1.8rem;
  color: #0077b6;
  letter-spacing: 1px;
  opacity: 0;
  animation: textFadeIn 1.2s ease forwards;
  animation-delay: 1.2s;
}

.loader-logo-text span {
  color: #333;
}

/* Animations for loader */
@keyframes logoFadeIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px);
  }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes textFadeIn {
  from { opacity: 0; transform: translateY(15px);
  }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1;
  }
  50% { transform: scale(1.05); opacity: 0.85; }
}

/* -------------------------------
   NAVBAR
--------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease, padding 0.3s ease;
  z-index: 1000;
  padding: 0.4rem 0;
}

.navbar.visible {
  opacity: 1;
  transform: translateY(0);
}

.navbar.shrink {
  padding: 0.2rem 0;
}

/* Navbar container layout */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  max-width: 1200px;
  margin: auto;
  height: 70px;
}

/* Logo + text */
.logo-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-logo {
  width: 85px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0077b6;
  line-height: 1;
}

.logo span {
  color: #333;
}

/* Navigation links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #0077b6;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #0077b6;
}

.nav-links a:hover::after {
  width: 100%;
}


/* -------------------------------
   HERO SECTION
--------------------------------- */
.hero {
  /* FIX: Added './' to the image path to ensure it loads correctly from the 'images' folder on GitHub Pages. */
  background: url("./images/hero.jpg?v=2") center/cover no-repeat fixed;
  height: 100vh;
  position: relative;
  margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  color: white;
  z-index: 2;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-btn {
  background: #0077b6;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background: #005f8a;
}

/* -------------------------------
   ABOUT SECTION
--------------------------------- */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 4rem 1rem;
  gap: 2rem;
}

.about img {
  width: 350px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* -------------------------------
   SERVICES SECTION
--------------------------------- */
.services {
  text-align: center;
  padding: 4rem 1rem;
  background: #e8f0f7;
  overflow: hidden;
}

.services h2 {
  color: #0077b6;
  margin-bottom: 3rem;
  font-size: 2rem;
  position: relative;
  animation: fadeInDown 1s ease forwards;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.service-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  position: relative;
  cursor: pointer;
  transform: translateY(40px);
  opacity: 0;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-card h3 {
  color: #0077b6;
  margin: 1.2rem 0 0.8rem;
  font-size: 1.3rem;
}

.service-card ul {
  list-style-type: disc;
  text-align: left;
  padding: 0 1.5rem 1.5rem;
  line-height: 1.8;
}

.service-card ul li a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.service-card ul li a:hover {
  color: #0077b6;
  text-decoration: underline;
}

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-20px);
  }
  100% { opacity: 1; transform: translateY(0); }
}
/* 🌱 Contact Section Styles */
.contact-section {
  padding: 80px 20px;
  background: #f9f9f9;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #2b2b2b;
}

.contact-section p {
  color: #555;
  margin-bottom: 30px;
}

#contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact-form input,
#contact-form textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #1c7c54;
}

/* 🌿 Button + Spinner */
.contact-btn {
  position: relative;
  background: #1c7c54;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  overflow: hidden;
  transition: background 0.3s ease;
}

.contact-btn:hover {
  background: #145c3c;
}

/* Spinner Style */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Success Message */
.success-message {
  /* --- NEW STYLES for Floating/Fixed Position --- */
  position: fixed; /* Makes it float relative to the viewport */
  bottom: 30px; /* Positions it 30px from the bottom */
  left: 50%; /* Centers it horizontally */
  transform: translateX(-50%);
  z-index: 1050; /* Ensures it is above everything else */
  
  /* --- STYLING --- */
  background: #e6f7ee; /* Light green background */
  border: 1px solid #1c7c54;
  padding: 12px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  white-space: nowrap; /* Keeps the text on one line */

  /* --- ANIMATION CONTROLS --- */
  color: #1c7c54;
  font-weight: 600;
  
  /* Start hidden */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, bottom 0.4s ease;
}

.success-message.show {
  opacity: 1;
  visibility: visible;
  bottom: 40px; /* Moves it up slightly for a 'pop-up' effect */
}

/* -------------------------------
   FOOTER
--------------------------------- */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #0077b6;
  color: white;
}

/* -------------------------------
   BACK TO TOP BUTTON
--------------------------------- */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0077b6;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.4rem;
  cursor: pointer;
  display: none;
  transition: background 0.3s ease;
  z-index: 1000;
}

#backToTop:hover {
  background: #005f8a;
}

/* -------------------------------
   FADE-IN ANIMATION ON SCROLL
--------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------
   RESPONSIVE DESIGN
--------------------------------- */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 10px;
    height: auto;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* --- NEW PROFESSIONAL TWEAKS --- */

/* 1. Active Navigation Link State */
.nav-links a.active {
  color: #0077b6; /* Your primary color */
  font-weight: 600;
}
.nav-links a.active::after {
  width: 100%;
}

/* 2. Tagline Styling */
.tagline {
  font-size: 1rem;
  font-weight: 300;
  color: #777; /* Soft gray */
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* 3. Consistent Max-Width for Sections */
.about, .services, .contact-section {
    max-width: 1200px; /* Match navbar container width */
    margin-left: auto;
    margin-right: auto;
}

/* 4. Footer Navigation Styling */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffd700; /* Subtle gold hover for contrast */
}

/* --- Responsive adjustment for footer --- */
@media (min-width: 769px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        max-width: 1200px;
        padding: 0 20px;
        margin: auto;
    }
}



