/* ----- Global Styles ----- */
body {
  margin: 0;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #111;
  color: #fff;
  padding-top: 80px;  /* adjust based on navbar height */
}



/* ----- Navbar ----- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(17, 17, 17, 0.4);        /* glassy background */
  backdrop-filter: blur(10px);              /* frosted blur */
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);   /* slight shadow */
}

.logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
}

.nav-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* Nav link styling */
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;              /* bold */
  font-size: 15px;               /* slightly bigger */
  text-transform: uppercase;     /* uppercase */
  letter-spacing: 1px;           /* spacing between letters */
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #007bff;
}

/* Active link */
.nav-links a.active {
  color: #007bff;
}



/* ----- Sections ----- */
section {
  padding: 80px 20px;
}
/* ----- Hero Section ----- */
.hero {
  text-align: center;
  background: url('hero-bg.jpg') center / cover no-repeat;
  padding: 180px 20px;
}


.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  background: #007bff; /* blue */
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 20px;
  transition: all 0.3s;
}

.btn:hover {
  background: #0056b3; /* darker blue */
}
html {
  scroll-behavior: smooth;
}

#services ul li i {
  margin-right: 10px;
  color: #007bff;
}
/* ----- Responsive Navbar ----- */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
}

/* ----- Section Fade-in Animation ----- */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Gallery Hover Effect ----- */
.gallery-grid img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* ----- Button Hover Effect (already added) ----- */
.btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}
section {
  padding: 100px 20px;
}
.hero {
  padding: 180px 20px;
}
.btn:hover {
  box-shadow: 0 5px 15px rgba(0,123,255,0.4);
}
.nav-links a:hover {
  text-shadow: 0 2px 5px rgba(0,123,255,0.5);
}
/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #007bff;
  color: #fff;
  padding: 12px 16px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 24px;
  display: none; /* hidden by default */
  transition: all 0.3s;
  z-index: 1000;
}

#backToTop:hover {
  background: #0056b3;
  transform: translateY(-3px);
}
/* Section Hover Effect */
section:hover {
  transform: translateY(-5px);
  transition: transform 0.3s;
}
/* Lightbox overlay */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}
/* Navbar Logo */
.nav-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}
/* Footer */
footer {
  background: #111;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
  border-top: 1px solid #222;
}

footer p {
  margin: 0 0 10px 0;
}

footer .social-links a {
  color: #007bff;
  margin: 0 10px;
  font-size: 24px;
  text-decoration: none;
  transition: all 0.3s;
}

footer .social-links a:hover {
  color: #0056b3;
  transform: translateY(-3px);
}
/* Hero text */
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  margin-top: 20px;
}

/* Section headings */
section h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

/* Buttons */
.btn {
  font-size: 1.1rem;
  padding: 14px 32px;
}

/* Footer spacing */
footer p {
  font-size: 0.9rem;
}
.map-container {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background:#111;
  padding:20px;
  transition: left 0.3s;
}

.sidebar ul { list-style:none; padding:0; }
.sidebar a  { color:#fff; text-decoration:none; display:block; margin-bottom:15px; }

.menu-btn {
  position:fixed;
  top:20px;
  left:20px;
  background:#007bff;
  color:#fff;
  padding:10px 15px;
  border:none;
  border-radius:4px;
  cursor:pointer;
  z-index:1000;
}
/* ----- Services Section 2-column glassy design ----- */
#services ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
}

#services ul li {
  background: rgba(17, 17, 17, 0.3);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  font-size: 16px;
}

#services ul li i {
  font-size: 32px;
  margin-right: 15px;
  color: #007bff;
}
/* Services hover effect */
#services ul li {
  background: rgba(17, 17, 17, 0.3);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  font-size: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

#services ul li i {
  font-size: 32px;
  margin-right: 15px;
  color: #f3f5f7;
}

#services ul li i {
  font-size: 32px;
  margin-right: 15px;
  color: #0271e0;
}

#services ul li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Contact Section */
#contact {
  padding: 100px 20px;
  color: #fff;
}

#contact h2 {
  text-align: center;
  margin-bottom: 50px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.contact-info {
  flex: 1 1 300px;
  background: rgba(17,17,17,0.3);
  backdrop-filter: blur(8px);
  padding: 30px;
  border-radius: 12px;
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #cccccc; /* softer light grey for better contrast */
}

.contact-info a {
  color: #80bfff; /* light blue for better visibility */
  text-decoration: none;
}

.contact-info a:hover {
  color: #3399ff; /* darker blue on hover */
}

.map-container {
  flex: 1 1 300px;
  border-radius: 12px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
}
/* Fade-in for contact section */
#contact {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
#contact.visible {
  opacity: 1;
  transform: translateY(0);
}
/* --- Theme Toggle Button --- */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  left:  30px;
  border: none;
  background: #007bff;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2000;
}

/* Light Theme Overrides  */
body.light  { background:#fff; color:#000; }

body.light nav            { background:rgba(255,255,255,0.4); }
body.light .btn           { color:#fff; background:#007bff; }

body.light #about,
body.light #services,
body.light #why,
body.light #gallery,
body.light #contact {
  background:#f5f5f5;         /* light background for sections */
}

body.light #services ul li,
body.light #why ul li,
body.light .contact-info {
  background:rgba(0,0,0,0.05); /* light glassy cards */
}

body.light #services ul li i,
body.light #why ul li i {
  color:#007bff;   /* keep the blue icon */
}


/* Modal styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.modal-content {
  background: #222;
  padding: 30px;
  border-radius: 12px;
  min-width: 320px;
  color: #fff;
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: none;
}
/* Page Loader */
#loader{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}
#loader i{
  font-size:90px;
  color:#007bff;
  animation:drive 0.8s linear infinite;
}
@keyframes drive{
  0%  {transform: translateX(-60px);}
  50% {transform: translateX(0);}
  100%{transform: translateX(60px);}
}

#why ul li {
  background: rgba(255,255,255,0.1);  /* lighter background */
  backdrop-filter: blur(8px);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 15px;
  display: flex;                     /* align icon + text inline */
  align-items: center;
  gap: 12px;                         /* spacing between icon and text */
  transition: transform 0.3s, box-shadow 0.3s;
}

#why ul li i {
  font-size: 34px;
  color: #007bff;
  margin-bottom: 0;                  /* remove bottom margin */
}

/* About Section Layout */
.about-container{
  display:flex;
  gap:40px;
  margin: 0 40px;
  align-items:center;
}
.about-container img{
  width:100%;
  border-radius:12px;
  object-fit:cover;
}
@media(max-width:768px){
  .about-container{
    flex-direction:column;
  }
}
/* Alternate section backgrounds (lighter contrast) */
#services         { background:#1a1a1a; }
#gallery          { background:#1a1a1a; }
#about, #why, #contact { background:#111; }

/* Padding for section offset below navbar */
section { padding-top:100px; }
#loader {
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

#loader.hide {
  opacity: 0;
  pointer-events: none;
}

/* ===== Gallery Grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* always 2 columns */
  gap: 15px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* square images */
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.7);
}

/* ===== Lightbox ===== */
/* Lightbox overlay */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;              /* hide by default */
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.lightbox .prev,
.lightbox .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  transition: 0.3s;
  user-select: none;
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

.lightbox .prev:hover,
.lightbox .next:hover {
  color: #007bff;
}
