/* ==================== Global Reset ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;

  /* Restore left/right padding */
  padding-left: 5%;
  padding-right: 5%;

  /* Background image */
  background: url('pexels-fwstudio-33348-172289.jpg') no-repeat center center fixed;
  background-size: cover;

  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(240, 243, 243, 0);
  z-index: -1;
}

/* ==================== Navbar ==================== */
.navbar {
  background: #333;
  color: #fff;
  padding: 10px 20px;
  position: relative;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
}

.nav-logo-img {
  width: 35px;
  height: auto;
  border-radius: 50%;
}

.nav-logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ==================== Responsive Navbar ==================== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    flex-direction: column;
    background: #444;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 15px 0;
    border-radius: 0 0 8px 8px;
  }

  .nav-menu.active { display: flex; }

  .nav-menu li { text-align: center; padding: 10px 0; }

  .nav-logo-img { width: 28px; }
}

@media (max-width: 480px) {
  .nav-logo-img { width: 24px; }
}

/* ==================== Hero Section / Header ==================== */
header {
  text-align: center;
  padding: 60px 20px;
  margin-top: 20px; /* space between navbar and first section */
  background: 
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
    url('pexels-beige.jpg') no-repeat center center/cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #2c3e50;
}

header h2 { font-size: 2rem; margin-bottom: 10px; }
header p { font-size: 1.2rem; }

/* ==================== Sections ==================== */
section, .cards-section, .contact, .carousel-container, .portfolio {
  padding: 40px 20px;
  background: 
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
    url('pexels-beige.jpg') no-repeat center center/cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

/* Optional: center sections and limit width */
.cards-section, .contact, .carousel-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

/* Text color for readability */
section h2, section h3, section p {
  color: #2c3e50;
}

/* ==================== Footer ==================== */
footer {
  background-color: rgba(44, 62, 80, 0.85);
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  border-radius: 0 0 12px 12px;
}

/* ==================== Contact Form ==================== */
.contact h2 { text-align: center; margin-bottom: 20px; font-size: 1.8rem; }

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: border 0.3s ease;
}

#contactForm input:focus,
#contactForm textarea:focus { border-color: #2c3e50; outline: none; }

#contactForm textarea { resize: vertical; min-height: 120px; }

#contactForm button {
  background: #2c3e50;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

#contactForm button:hover { background: #1a2a38; }

/* ==================== Cards Section ==================== */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card h3 { margin-bottom: 10px; }

/* ==================== Carousel ==================== */
.carousel-container {
  position: relative;
  max-width: 600px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.carousel { display: flex; transition: transform 0.5s ease-in-out; }

.slide {
  min-width: 100%;
  position: relative;
  text-align: center;
}

.slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  cursor: pointer;
}

.overlay {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 8px;
}

.slide:hover .overlay { opacity: 1; }

.hover-btn {
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.hover-btn:hover { background: #cc5200; }

.slide p {
  margin: 10px 0;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Navigation arrows */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover { background: rgba(0,0,0,0.8); }

/* ==================== Modal / Zoom ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
}

#caption {
  margin: 15px auto;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover { color: #ff6600; }

@keyframes zoomIn { from { transform: scale(0.7); } to { transform: scale(1); } }

/* ==================== PDF Viewer ==================== */
.pdf-viewer {
  margin-top: 30px;
  text-align: center;
}

.pdf-viewer h3 { margin-bottom: 15px; color: #2c3e50; }

.pdf-viewer iframe {
  width: 100%;
  max-width: 900px;
  height: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==================== Responsive Adjustments ==================== */
@media (max-width: 768px) {
  .slide img { height: 200px; }
  .pdf-viewer iframe { height: 400px; }
}

@media (max-width: 480px) {
  .slide img { height: 150px; }
  .hover-btn { padding: 8px 16px; font-size: 0.9rem; }
  header h2 { font-size: 1.5rem; }
  header p { font-size: 1rem; }
  footer { font-size: 14px; padding: 15px; }
  .pdf-viewer iframe { height: 300px; }
}

