/* ------------------- Responsive Compact Layout ------------------- */
@media (max-width: 900px) {
  nav {
    flex-direction: column;
    padding: 0.6rem 1rem;
  }
  .nav-links {
    gap: 0.8rem;
  }
  .logo img {
    height: 44px;
  }
  header .hero-content h1 {
    font-size: 2.1rem;
  }
  header {
    height: 44vh;
    padding: 1.2rem 0;
  }
  #sites {
    padding: 2rem 0.5rem;
  }
  .cards {
    gap: 0.7rem;
  }
  .card {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.13);
  }
  .card img {
    height: 90px;
  }
  .card-info {
    padding: 0.5rem;
  }
  .modal-content {
    padding: 1rem 0.5rem;
    max-width: 98vw;
  }
  .project-card {
    max-width: 98vw;
    padding: 0.5rem;
  }
  .about-profile-img {
    width: 80px;
    height: 80px;
  }
  #about, #contact, footer {
    padding: 2rem 0.5rem;
  }
  .about-content {
    font-size: 0.98rem;
    max-width: 98vw;
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    padding: 0.3rem 0.2rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
  }
  .logo img {
    height: 36px;
  }
  header .hero-content h1 {
    font-size: 1.2rem;
  }
  header {
    height: 30vh;
    padding: 0.5rem 0;
  }
  #sites {
    padding: 1rem 0.1rem;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .card {
    border-radius: 7px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  }
  .card img {
    height: 60px;
  }
  .card-info {
    padding: 0.3rem;
  }
  .modal-content {
    padding: 0.5rem 0.1rem;
    max-width: 99vw;
  }
  .project-card {
    max-width: 99vw;
    padding: 0.2rem;
  }
  .about-profile-img {
    width: 54px;
    height: 54px;
  }
  #about, #contact, footer {
    padding: 1rem 0.1rem;
  }
  .about-content {
    font-size: 0.92rem;
    max-width: 99vw;
  }
  .section h2, .highlight-orange {
    font-size: 1.1rem !important;
  }
  .about-profile-name {
    font-size: 0.98rem;
  }
  .about-profile-designation {
    font-size: 0.88rem;
  }
}
/* Highlighted orange bold headings */
.highlight-orange {
  color: #ff9800;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(255,152,0,0.25);
}
/* ------------------- General Reset ------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #222;
  overflow-x: hidden;
  position: relative;
  /* Soft greyish gradient background */
  background: linear-gradient(180deg, #e0e0e0 0%, #f5f5f5 100%);
}

/* Particle Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ------------------- Navbar ------------------- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 0.8rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  background: #fff3e0;
  border-radius: 12px;
  padding: 0.5rem 1.2rem;
  box-shadow: 0 2px 8px rgba(243,156,18,0.10);
  color: #222;
  margin-left: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: 1.5px solid rgba(243,156,18,0.13);
}

.nav-links a:hover {
  background: #ffe29a;
  color: #d35400;
  box-shadow: 0 4px 16px rgba(243,156,18,0.18);
}

.logo img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 4px 16px #ffb347) drop-shadow(0 0 8px #fff3e0);
  background: #fff3e0;
  border-radius: 16px;
  padding: 0.5rem 1.2rem;
  box-shadow: 0 4px 16px rgba(243,156,18,0.18);
  border: 2px solid #ffb347;
  transition: box-shadow 0.2s, filter 0.2s;
}
.logo img:hover {
  box-shadow: 0 8px 32px #ffd200, 0 2px 8px #ffb347;
  filter: drop-shadow(0 6px 24px #ffd200) drop-shadow(0 0 12px #fff3e0);
}

.logo img {
  height: 50px;
  width: auto;
}

nav .nav-links a {
  color: #222;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav .nav-links a:hover {
  color: #f39c12;
}

/* ------------------- Hero Section ------------------- */
header {
  background: linear-gradient(135deg, rgba(255,115,0,0.7), rgba(255,210,0,0.6)),
    url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') center center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

header .hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

header .hero-content p {
  font-size: 1.2rem;
  color: #f0f0f0;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.3);
}

/* ------------------- Sites Section ------------------- */
#sites {
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

#sites h2, #sites h3 {
  color: #222;
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.card {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  border: 2px solid rgba(243,156,18,0.3);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-info {
  padding: 1rem;
  text-align: center;
}

.card-info h4 {
  font-size: 1rem;
  color: #222;
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 30px rgba(243,156,18,0.5);
}

.card:hover img {
  transform: scale(1.1);
}

/* ------------------- About + Contact ------------------- */
#about, #contact, footer {
  background: #fff7ec;
  color: #222;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #f39c12;
}

/* Contact form */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input, form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 1rem;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: #f39c12;
  box-shadow: 0 0 6px rgba(243,156,18,0.4);
}

form button {
  padding: 0.8rem;
  border: none;
  background: #f39c12;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  border-radius: 6px;
}

form button:hover {
  background: #d35400;
  transform: scale(1.05);
}

.map {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ------------------- Modal ------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 800px;
  padding: 2rem;
  border-radius: 16px;
  position: relative;
  animation: fadeIn 0.3s ease;
  color: #222;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  border: 2px solid #f39c12;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
}

.modal-content h3 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: #f39c12;
}

.project-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.project-card {
  background: #fafafa;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(243,156,18,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card img,
.project-card iframe,
.project-card video {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}

.project-card h4 {
  margin: 0.5rem 0 0.2rem 0;
  font-size: 1.1rem;
  color: #f39c12;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  z-index: 3000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Footer */
footer {
  background: #fff7ec;
  color: #444;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  border-top: 1px solid #eee;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}

/* Modal close button */
.modal-content .close {
  position: absolute;
  left: 24px;
  top: 18px;
  font-size: 2.2rem;
  color: #d35400;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10;
  transition: color 0.2s, transform 0.2s;
}
.modal-content .close:hover {
  color: #f39c12;
  transform: scale(1.18);
}

.about-profile-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(243,156,18,0.18);
  border: 3px solid #f39c12;
  margin-bottom: 0.7rem;
  background: #fff;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.about-profile-texts {
  text-align: center;
  margin-bottom: 0.5rem;
  margin-top: 0.2rem;
}
.about-profile-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: #d35400;
  margin-bottom: 0.1rem;
}
.about-profile-designation {
  font-size: 1.05rem;
  color: #444;
  font-weight: 500;
}
.about-content {
  text-align: center;
  font-size: 1.08rem;
  color: #222;
  margin-top: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}