/* =========================================================
   LUWA Consulting - Shared Stylesheet
   Used by: about.html, contact.html, consultancy-services.html,
   data-methods.html and any other secondary pages.
   ========================================================= */

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Body */
body {
  font-family: Arial, 'Inter', sans-serif;
  color: #333;
  background-color: #f8f9fa;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================================================
   Header
   Same large logo size as index.html
   ========================================================= */

header {
  background-color: #222;
  color: #fff;
  padding: 15px;
  text-align: center;
  position: relative;
  width: 100%;
  min-height: 110px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header img.logo {
  height: 90px;
  width: auto;
  position: absolute;
  left: 20px;
  top: 12px;
  object-fit: contain;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0.5rem 0;
  padding-left: 130px;
  padding-right: 130px;
  text-align: center;
}

/* Navigation */
nav {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

nav a {
  color: #bbb;
  margin: 0 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

nav a:hover,
nav a.active {
  color: #fff;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #007bff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Cloud Button */
.cloud-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  background: linear-gradient(135deg, #FFD700, #FFC107);
  color: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 2000;
}

.cloud-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.6);
  background: linear-gradient(135deg, #FFE082, #FFD54F);
}

/* =========================================================
   Main Layout
   ========================================================= */

main {
  padding: 2rem 1rem;
}

section {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  animation: fadeInUp 0.6s ease forwards;
}

/* =========================================================
   Cards
   ========================================================= */

.card,
.profile,
.service-card,
.method-card,
.contact-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card {
  padding: 2rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.card:hover,
.profile:hover,
.service-card:hover,
.method-card:hover,
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card h2,
.profile h2,
.service-card h2,
.method-card h2,
.contact-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a73e8;
}

.card p,
.profile p,
.service-card p,
.method-card p,
.contact-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.card img,
.profile img,
.method-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}

.card img:hover,
.method-card img:hover {
  transform: scale(1.02);
}

/* Announcement Card */
.card.announce {
  background-color: #444;
  color: white;
  padding: 1rem;
  border-radius: 8px;
}

.card.announce strong {
  color: white;
  font-weight: 600;
}

.card.announce img {
  cursor: pointer;
}

/* Lists */
.card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.card li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: #555;
}

.card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #007bff;
}

/* =========================================================
   Page-specific Layout Helpers
   ========================================================= */

.profiles,
.services-grid,
.methods-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.profile,
.service-card,
.method-card {
  width: 310px;
  padding: 1.5rem;
}

.profile {
  text-align: center;
}

.service-card,
.method-card {
  text-align: left;
}

.intro {
  max-width: 850px;
  margin: 0 auto 2rem auto;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.btn-row,
.button-group {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn,
.back-btn {
  display: inline-block;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn {
  background: #333;
}

.btn:hover {
  background: #555;
  transform: translateY(-2px);
}

.back-btn {
  margin-top: 2rem;
  background: linear-gradient(135deg, #007bff, #0056b3);
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* =========================================================
   Contact Form
   ========================================================= */

.contact-card {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
}

.contact-form {
  max-width: 400px;
  margin: 1rem auto;
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: Arial, 'Inter', sans-serif;
}

.contact-form button {
  width: 100%;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.success-message {
  display: none;
  color: green;
  margin-top: 1rem;
  font-weight: 500;
}

.sending {
  display: none;
  color: #007bff;
  font-weight: 500;
  margin-top: 1rem;
}

/* =========================================================
   Video Preview and Modal
   ========================================================= */

.video-preview {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.video-preview:hover {
  transform: scale(1.02);
}

.video-thumb {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.play-button {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(0, 123, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
}

.video-preview:hover .play-button {
  background: rgba(0, 123, 255, 1);
  transform: scale(1.1);
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.video-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-container video {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: -45px;
  right: -15px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.close-btn:hover {
  transform: scale(1.1);
  background-color: #f8f9fa;
}

/* =========================================================
   Lightbox
   ========================================================= */

.lb-data .lb-caption {
  font-family: Arial, 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next,
.lb-data .lb-close {
  opacity: 0.8;
}

/* =========================================================
   Footer
   ========================================================= */

footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  margin-top: 3rem;
}

.footer-logo {
  margin: 2rem auto 0;
  height: 40px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

/* =========================================================
   Animations
   ========================================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* =========================================================
   Responsive Design
   ========================================================= */

@media (max-width: 900px) {
  header {
    min-height: 130px;
  }

  header h1 {
    font-size: 1.3rem;
    padding-left: 110px;
    padding-right: 110px;
  }

  .cloud-btn {
    position: static;
    display: inline-block;
    margin-top: 0.75rem;
  }
}

@media (max-width: 768px) {
  header {
    min-height: auto;
    padding: 1rem;
  }

  header img.logo {
    position: static;
    display: block;
    height: 80px;
    margin: 0 auto 0.5rem auto;
  }

  header h1 {
    font-size: 1.2rem;
    padding-left: 0;
    padding-right: 0;
  }

  nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  nav a {
    font-size: 0.9rem;
    margin: 0 6px;
  }

  main {
    padding: 1.5rem 1rem;
  }

  section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .card,
  .profile,
  .service-card,
  .method-card,
  .contact-card {
    padding: 1.5rem;
  }

  .button-group,
  .btn-row {
    flex-direction: column;
    align-items: center;
  }

  .video-preview {
    height: 160px;
  }

  .play-button {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  header img.logo {
    height: 70px;
  }

  header h1 {
    font-size: 1.1rem;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .btn,
  .back-btn {
    width: 100%;
    padding: 10px 20px;
  }
}
