/* CRITICAL: Base reset to prevent horizontal scroll */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #000;
  color: #fff;
  opacity: 0; /* fade-in start */
  transition: opacity 0.4s ease-in-out; /* page fade */
}

/* FADE-IN / FADE-OUT BODY */
body.fade-in { opacity: 1; }
body.fade-out { opacity: 0; }

/* Desktop/Default Styles */
.inner-body {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #000;
}

.main-content {
  width: 100%;
  max-width: 100%;
  background-color: #000;
}

.par1 { width: 100%; padding: 1rem; }
.label1 { width: 100%; margin-bottom: 2rem; }
.label1 h1 { font-size: 2.5rem; color: #fff; margin: 0; padding: 1rem 0; }

.card1 {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header1 { margin-bottom: 1rem; width: 100%; }
.header1 h2 { font-size: 1.75rem; color: #fff; margin: 0; }

.card1 p, .rolldown-list p { font-size: 1.1rem; line-height: 1.8; color: #ddd; margin-bottom: 1rem; }
.rolldown-list ul { list-style: disc; padding-left: 2rem; margin: 1rem 0; }
.rolldown-list li { font-size: 1.1rem; margin-bottom: 0.5rem; color: #ddd; }

.container-wrap { width: 100%; padding: 1rem; margin-bottom: 2rem; }
.team-row { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; width: 100%; }
.team-member { flex: 0 1 300px; background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 1.5rem; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.team-photo { width: 80px; height: 80px; border-radius: 50%; }
.item-title { font-size: 1.5rem; color: #fff; margin: 1rem 0 0.5rem 0; }
.item-excerpt p { font-size: 1rem; color: #ccc; line-height: 1.6; }
img { max-width: 100%; height: auto; }

/* MOBILE NAVIGATION */
.mobile-nav-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  background: #444;
  width: 100%;
  text-align: center;
}
.mobile-nav-menu.open {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav-menu li a { border-bottom: 1px solid rgba(255,255,255,0.25); display: block; padding: 12px 0; text-decoration: none; color: #fff; }
.mobile-nav-menu li:last-child a { border-bottom: none; }

/* HAMBURGER BUTTON */
.mobile-menu-btn {
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 101;
}
.mobile-menu-btn div {
  width: 25px;
  height: 3px;
  background: #fff;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  nav.navbar { padding: 10px 15px; gap: 10px; background-color: #212020; }
  .nav-menu { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-brand img { height: 40px; }
  .social-icons img { height: 20px; }
}

@media (max-width: 480px) {
  nav.navbar { padding: 8px 10px; }
  .nav-brand img { height: 35px; }
  .social-icons img { height: 18px; }
}

@media (max-width: 360px) {
  nav.navbar { padding: 8px; }
  .nav-brand img { height: 30px; }
  .social-icons img { height: 16px; }
}

/* PAGE HEADER & HERO */
.site-header { background-color: #444; width: 100%; background-image: url('https://padevgroup.com/img/techy2.png'); background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero { width: 100%; padding: 20px; }
.cardHeader { padding: 20px; text-align: center; color: #fff; }
.cardHeader h1 { font-size: 2rem; margin-bottom: 10px; }
.cardHeader p { font-size: 1.1rem; margin: 5px 0; }
