/* ==== Global Styles ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* ==== Header ==== */
header {
  background: #005b96; /* deep blue */
  color: white;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo img {
  width: 60px;        
  height: auto;       
  border-radius: 12px; 
  object-fit: cover;  
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); 
  cursor: pointer;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

header nav a:hover {
  color: #ffcc00;
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: 0.4s;
}

/* Animation into "X" */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  .hamburger {
    display: flex; /* show hamburger only on mobile */
  }

  header nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #005b96;
    width: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    padding: 15px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
  }

  header nav.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  header nav ul {
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  header nav ul li {
    text-align: left;
  }

  header nav ul li a {
    display: block;
    padding: 8px 0;
    color: #fff;
    text-decoration: none;
  }
}

/* ==== Hero Section ==== */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),url("images/ddp.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.hero .btn {
  background: #ffcc00;
  color: #333;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.hero .btn:hover {
  background: #ffaa00;
  color: white;
}

/* ==== Sections ==== */
section {
  padding: 60px 40px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #005b96;
  text-align: center;
}

/* About Us */
#about {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f0f8ff, #ffffff);
  text-align: center;
}

#about h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #005b96;
  position: relative;
  display: inline-block;
}

#about h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: #005b96;
  margin: 10px auto 0;
  border-radius: 2px;
}

#about p {
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.mission-vision .card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-top: 4px solid #005b96;
}

.mission-vision .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.mission-vision h3 {
  color: #005b96;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.mission-vision p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* Services Section */
#services {
  background: #f1f7fc;
  padding: 40px 20px;
}

#services h2 {
  text-align: center;
  color: #004d80;
  margin-bottom: 30px;
}

/* Search bar wrapper */
.search-wrapper {
  text-align: center;
  margin: 20px 0;
}
.highlight {
  background: yellow;
  font-weight: bold;
  padding: 0 2px;
  border-radius: 3px;
}

#serviceSearch {
  width: 60%;
  max-width: 500px;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: 0.3s;
}

#serviceSearch:focus {
  border-color: #005b96;
  box-shadow: 0 0 8px rgba(0, 91, 150, 0.3);
}

/* Category cards */
.service-category-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 25px;
}

.service-category-card h3 {
  font-size: 18px;
  color: #004d80;
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Table styling */
.service-table {
  width: 100%;
  border-collapse: collapse;
}

.service-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #333;
}

/* Add icons next to services */
.service-table td a {
  display: flex;
  align-items: center;
  gap: 12px; /* spacing between icon & text */
  text-decoration: none;
  color: inherit;
}

.service-table td a i {
  color: #005b96;   /* highlight icon */
  font-size: 14px;
}

/* Align price column to right */
.service-table td.price {
  text-align: right;
  font-weight: 600;
  color: #005b96;
}

/* Hover effect for row */
.service-table tr:hover {
  background: #f9fcff;
  cursor: pointer;
}

/* Portfolio Section */
#portfolio {
  padding: 60px 20px;
  background: #fafafa;
  text-align: center;
}

#portfolio h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #003f63;
}

#portfolio p {
  margin-bottom: 30px;
  color: #555;
  font-size: 1.1rem;
}

/* Gallery Grid */
#portfolio .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

#portfolio .gallery .card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px; /* spacing around image */
  max-width: 1100px;
}

#portfolio .gallery .card:hover {
  transform: translateY(-6px);
}

#portfolio .gallery .card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; 
  border-radius: 6px;
}

/* Optional Hover Overlay */
#portfolio .gallery .card::after {
  content: "View Project";
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,91,150,0.8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  transition: 0.4s ease;
}

#portfolio .gallery .card:hover::after {
  bottom: 0;
}

/* Floating Card (Modal) */
.floating-card {
  display: none; /* hidden initially */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Card Content */
.floating-card-content {
  background: #fff;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
}

/* Image Container with Scroll */
.floating-card-images {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  max-width: 100%;
  max-height: 80vh;
}

.floating-card-images img {
  max-height: 75vh;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Close Button */
.floating-card .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: 0.3s;
}
.floating-card .close:hover {
  color: #ff4757;
}

/* Prev/Next Arrows */
.floating-card .prev,
.floating-card .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  font-weight: bold;
  color: #333;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  padding: 10px 15px;
  cursor: pointer;
  transition: 0.3s;
}

.floating-card .prev:hover,
.floating-card .next:hover {
  background: #005b96;
  color: #fff;
}

.floating-card .prev { left: 20px; }
.floating-card .next { right: 20px; }

/* Contact Section */
#contact {
  padding: 60px 20px;
  background: #f5f6fa;
  font-family: "Segoe UI", Arial, sans-serif;
}

#contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #003f63;
  position: relative;
}

#contact h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #005b96;
  display: block;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Grid layout */
.contact-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch; 
}

/* Left Info Card */
.contact-info {
  background: linear-gradient(135deg, #005b96, #003f63);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #fff;
}

.contact-info p {
  margin: 15px 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info i {
  font-size: 1.4rem;
  color: #ffdd57; /* highlight icons */
}

.contact-info a {
  color: #ffdd57;
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Right Form Card */
#contact form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact input,
#contact textarea {
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s;
}

#contact input:focus,
#contact textarea:focus {
  border: 1px solid #005b96;
  outline: none;
}

#contact textarea {
  min-height: 120px;
  resize: vertical;
}

#contact button {
  background: #005b96;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

#contact button:hover {
  background: #003f63;
  transform: translateY(-2px);
}

/* ---------------- RESPONSIVE FIXES ---------------- */ 
@media (max-width: 900px) { 
.contact-container { 
  grid-template-columns: 1fr; /* stack in one column */ 
  gap: 25px;
  }

.contact-info { 
  padding: 25px 20px; 
  text-align: center; 
  } 
  
.contact-info p { 
  justify-content: center; 
  } 
  
#contact form { 
  padding: 20px; 
  } 
} 

@media (max-width: 500px) { 
  #contact h2 { 
    font-size: 1.6rem; 
  } 
  .contact-info h3 { 
    font-size: 1.3rem; 
  } 
  .contact-info p { 
    font-size: 1rem; 
  } 
  #contact button { 
    font-size: 1rem; 
    padding: 12px; 
  }
}

/* Popup card styles */
.popup-message {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
  max-width: 350px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  display: none;
  z-index: 9999;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  align-items: center;
  gap: 10px;
  background: #fff;  /* fallback */
  animation: slideIn 0.4s ease;   /* ✅ only slide in */
}

/* Success card */
.popup-message.success {
  background: #d4edda;
  color: #155724;
  border-left: 6px solid #28a745;
}

/* Error card */
.popup-message.error {
  background: #f8d7da;
  color: #721c24;
  border-left: 6px solid #dc3545;
}

/* Loading card */
.popup-message.loading {
  background: #fff3cd;
  color: #856404;
  border-left: 6px solid #ffc107;
}

/* Animations */
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
footer {
  background: #005b96;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  header nav ul {
    flex-direction: column;
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* styles.css - minimal base styles */
:root {
  --accent: #005b96;
  --accent-dark: #003f63;
  --muted: #777;
  --card-bg: #fff;
}

* { box-sizing: border-box; }
body { font-family: "Segoe UI", Arial, sans-serif; margin:0; background:#f4f6f8; color:#222; }
.container { max-width: 1200px; margin: 0 auto; padding: 30px; }

/* Header */
.site-header { background: linear-gradient(90deg,var(--accent),var(--accent-dark)); color:#fff; padding:24px 30px; }
.site-header h1 { margin:0; font-size:1.4rem; }
.site-header .tagline { margin-top:6px; opacity:0.95; font-size:0.95rem; }

/* Services front page layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 20px;
  margin-top: 20px;
}

.service-category-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(10,20,40,0.06);
  min-height: 220px;
}

.service-category-card h3 { margin-top: 0; color: var(--accent-dark); }
.service-category-card ul { list-style: none; padding: 0; margin: 10px 0 0; }
.service-category-card li { display:flex; justify-content:space-between; padding:6px 0; border-bottom: 1px dashed #eee; }
.service-category-card .svc-name { font-weight:600; color:#333; }
.service-category-card .svc-price { color:var(--accent); font-weight:700; }

/* small utilities */
.muted { color:var(--muted); }

/* Admin & login styles */
.admin-login, .admin-panel {
  max-width: 720px;
  margin: 40px auto;
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(10,20,40,0.06);
}
.admin-login form, #adminForm { display:flex; flex-direction:column; gap:12px; }
.admin-login input, form input, form select, form button { padding:10px; border-radius:8px; border:1px solid #ddd; }
button { background:var(--accent); color:#fff; border:none; padding:10px 12px; border-radius:8px; cursor:pointer; }
button:hover { background:var(--accent-dark); }

/* Alerts */
.alert.error { background:#ffe5e5; color:#b00020; padding:10px; border-radius:6px; }

/* Responsive */
@media (max-width:720px) {
  .service-category-card { min-height: auto; }
}
