/* =======================================================
   MEAN TEAM - Modern, Professional Stylesheet
   Author: Walter Nienaber
   Last Updated: November 2025
======================================================= */

/* ===================
   🧩 GLOBAL STYLES
=================== */
:root {
  --primary: #004466;
  --accent: #ffb703;
  --accent-light: #ffd166;
  --text: #333;
  --bg: #f7fafc;
  --white: #ffffff;

  /* Extras for subtle improvements */
  --shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

/* ===================
   🚀 NAVIGATION
=================== */
nav {
  background: var(--primary);
  padding: 12px 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--accent);
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 5px;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  color: var(--accent);
  transform: scale(1.05);
}

/* ===================
   🌅 HEADER / HERO
=================== */
header {
  position: relative;
  height: 65vh;
  background-size: cover;
  background-position: center center;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

header .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.header-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 700px;
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.5);
}

header p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 12px 26px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
}

/* ===================
   📄 SECTIONS
=================== */
section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

h2 {
  color: var(--primary);
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 3px;
}

/* ===================
   🙌 ABOUT SECTION
=================== */
#about p {
  font-size: 1.1rem;
  text-align: center;
  max-width: 850px;
  margin: auto;
  color: var(--text);
}

/* ===================
   🧰 SERVICES
=================== */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.service {
  background: var(--white);
  padding: 24px 20px;
  border-radius: var(--radius);
  flex: 1 1 250px;
  max-width: 320px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.service h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* ===================
   🖼️ GALLERY / SLIDESHOW
=================== */
.slideshow-container {
  max-width: 900px;
  margin: auto;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.mySlides {
  display: none;
  width: 100%;
  height: 450px;
  border-radius: 10px;
  overflow: hidden;
  animation: fadeIn 0.8s ease-in-out;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-weight: bold;
  font-size: 22px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.6);
}

.next {
  right: 0;
}

.dots-container {
  text-align: center;
  margin-top: 12px;
}

/* ===================
   ✉️ CONTACT SECTION
=================== */
#contact {
  background: linear-gradient(135deg, var(--primary), #0191b1);
  color: var(--white);
  padding: 70px 20px;
}

.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 40px 35px;
  box-shadow: var(--shadow);
}

.contact-info {
  flex: 1 1 300px;
}

.contact-info a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--white);
}

.contact-form {
  flex: 1 1 320px;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--accent-light);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-family: inherit;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

/* ===================
   ✨ MODERN BUTTON
=================== */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 12px 32px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 183, 3, 0.3);
  transition: all 0.3s ease;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 183, 3, 0.5);
}

.btn-modern:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ===================
   🦶 FOOTER
=================== */
footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 18px;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent-light);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* ===================
   📱 RESPONSIVE DESIGN
=================== */

/* Laptop adjustments */
@media (max-width: 1024px) {
  .nav-container {
    flex-direction: column;
    gap: 10px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  header {
    height: 50vh;
  }

  header h1 {
    font-size: 2.2rem;
  }

  .cta-button {
    padding: 10px 22px;
  }

  .contact-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
  }

  .contact-form, .contact-info {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .services {
    flex-direction: column;
    gap: 15px;
  }

  .service {
    max-width: 100%;
  }

  .logo-img {
    height: 32px;
  }

  nav {
    padding: 10px;
  }

  .cta-button {
    width: 100%;
    font-size: 0.95rem;
  }

  section {
    padding: 40px 15px;
  }

  h2 {
    font-size: 1.6rem;
  }
}
/* ===========================
   📱 Improved Mobile Styling
=========================== */

/* Make images consistently responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Improve hero text scaling */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }
  header p {
    font-size: 1rem;
  }
}

/* Mobile menu visibility */
.nav-links {
  display: flex;
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--primary);
    width: 100%;
    text-align: center;
    position: absolute;
    top: 60px;
    left: 0;
  }
  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
  }

  .logo {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
}

/* Adjust section padding for small screens */
@media (max-width: 480px) {
  section {
    padding: 30px 15px;
  }
  .contact-box {
    padding: 25px 20px;
  }
}

/* ===================
   ✨ ANIMATIONS (continued)
=================== */
@keyframes fadeIn {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===================
   ⬇️ UTILITY CLASSES
=================== */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.btn {
  cursor: pointer;
}

/* ===================
   🌗 EXTRA POLISH
=================== */
/* On scroll animations */
.fade-up {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.8s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth hover highlight for cards and links */
.service,
.contact-info a {
  transition: all 0.3s ease;
}

/* Consistent border radius */
img,
input,
textarea,
select,
button {
  border-radius: var(--radius);
}

/* Accessible focus state */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}

/* ===================
   🌈 SCROLLBAR STYLING (optional aesthetic)
=================== */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: #e2e8f0;
}

/* ===================
   ⚡ HOVER EFFECTS IMPROVEMENT
=================== */
.service:hover h3 {
  color: var(--accent);
}

.cta-button:active,
.btn-modern:active {
  transform: scale(0.97);
}

/* ===================
   🌱 END OF FILE
=================== */