/* ===== VARIABLES ===== */
:root {
  --primary-color: #132444;
  --secondary-color: #315476;
  --light-gray: #f1f1f1;
  --dark-text: #333;
  --light-text: #fff;
}

/* ===== RESET & GLOBAL STYLES ===== */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--light-text);
}

h1,
h2,
h3 {
  color: var(--primary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--light-gray);
  padding: 20px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  color: var(--primary-color);
}

.logo img {
  width: 40px;
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero-text {
  color: var(--light-text);
  padding: 10vw 5vw;
  background-image: url("../img/background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
  color: var(--light-text);
}

.cta-button {
  margin-top: 20px;
  display: inline-block;
  padding: 12px 25px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--light-text);
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* ===== SECTIONS ===== */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 40px;
}

/* ===== ABOUT SECTION ===== */
.about-text {
  text-align: justify;
  line-height: 1.8;
}

/* ===== SERVICES SECTION ===== */
.services {
  background-color: #f9f9f9;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--light-text);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-card a {
  margin-top: auto;
  padding-top: 15px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
}

.service-icon img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* ===== CONTACT SECTION ===== */
.contact-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.contact-group .contact-point {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact form {
  max-width: 600px;
  margin: 40px auto 0;
}

.contact form input,
.contact form textarea {
  font-family: inherit;
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: all 0.3s ease-in;
}

.contact form input:focus,
.contact form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(19, 36, 68, 0.2);
}

.contact form button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--light-text);
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.contact form button:hover {
  background: var(--secondary-color);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary-color);
  color: var(--light-text);
  text-align: center;
  padding: 20px 0;
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

.modal.is-closing {
  animation: fadeOut 0.3s forwards;
}

.modal.is-visible {
  display: block;
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 30px;
  border: none;
  width: 90%;
  max-width: 800px;
  text-align: justify;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content .yt-vids iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: none;
}

.modal-content .yt-desc {
  margin-top: 20px;
}

.close-modal {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
  color: black;
}

/* === OVERHAUL MODAL STYLES === */
.modal-content.overhaul {
  display: flex;
  padding: 0;
  width: 90%;
  max-width: 750px;
  overflow: hidden;
  text-align: left;
}

.modal-visual {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 40%;
}

.modal-visual ion-icon {
  font-size: 80px;
  margin-bottom: 15px;
}

.modal-visual h3 {
  color: var(--light-text);
}

.modal-body {
  padding: 40px;
  width: 60%;
  position: relative;
}

.modal-body .subtitle {
  margin-bottom: 25px;
  color: #666;
}

.profile-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 30px;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-info strong {
  font-size: 1rem;
  color: var(--dark-text);
}

.profile-info span {
  font-size: 0.85rem;
  color: #555;
}

.profile-links a {
  color: var(--primary-color);
  font-size: 24px;
  margin-left: 15px;
  transition: opacity 0.3s;
}

.profile-links a:hover {
  opacity: 0.7;
}

.modal-cta {
  width: 100%;
  text-align: center;
  padding: 12px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.modal-cta:hover {
  background-color: var(--secondary-color);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fade-in {
  animation: fadeIn 0.5s;
}

.fade-out {
  animation: fadeOut 0.5s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--light-gray);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .nav-links.is-active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .about {
    padding: 40px 20px;
  }

  .modal-content {
    margin: 5% auto;
    width: 95%;
    padding: 20px;
  }

  /* Responsive for overhaul modal */
  .modal-content.overhaul {
    flex-direction: column;
  }

  .modal-visual,
  .modal-body {
    width: 100%;
  }

  .modal-visual {
    padding: 30px;
  }

  .modal-body {
    padding: 30px 25px;
  }

  .profile-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}
