/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.4;
  color: #484848;
  background-color: #fefefe;
}

h1, h2, h3 {
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 2.2vw, 2.4rem);
  color: #196980;
  margin-bottom: 3rem;
}

h2 {
  font-size: clamp(1.6rem, 1.8vw, 2rem);
  margin-bottom: 1rem;
  color: #1f809b;
  text-align: center;
}

h3 {
  font-size: 1.2rem;
  color: #484848;
  text-align: justify;
}

p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #5c5c5c;
  text-align: justify;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  color: #196980;
  position: sticky;
  top: 0;
  z-index: 2000;
}

.logo img {
  height: 65px;
  object-fit: contain;
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icons a {
  color: #196980;
 font-size: clamp(1.2rem, 4vw, 1.4rem);
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #484848;
}

.hamburger {
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2100;
}

/* SIDE MENU */
.side-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
  transition: right 0.3s ease-in-out;
  z-index: 2050;
  overflow-y: auto;
}

.side-menu.active {
  right: 0;
}

.side-menu a {
  color: #fff;
  padding: 15px 0;
  font-size: 1.3rem;
  text-decoration: none;
  width: 100%;
  text-align: center;
  background: rgba(0, 12, 37, 0.15); /* stronger overlay for readability */
}

.side-menu a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Overlay for side menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* HERO SECTION */
.hero-section {
  display: flex;
  align-items:center;
  justify-content: center;
  text-align: center;

  background-image: url('img/background-v1.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #000c25;

  min-height: 100vh;
  min-height: 100dvh; /* modern fix for mobile */
  padding: 20px 10px;
}

.hero-content {
  background: rgba(0, 12, 37, 0.5); /* stronger overlay for readability */
  padding: 40px;
  border-radius: 8px;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  color: #ffffff;

  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.hero-content p {
  text-align: left;
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  line-height: 1.6;
   color: #ffffff;
}


/* ABOUT SECTION */
.wrapper {
  padding: 25px;
  display: flex;
  flex-direction: column;   /* stack on mobile */
  align-items: center;
  gap: 0.5rem;
  background-color: #fff;
}

.wrapper img {
  width: 100%;           /* full width on mobile */
  max-width: 350px;      /* prevents huge scaling */
  border-radius: 8px;    /* optional styling */
}

.intro {
  flex: 1;
  min-width: 400px;
  padding: 20px; 
}

.intro h2 {
  font-size: 1.4rem;
  padding: 0 10px; /* top/bottom = 0, left/right = 10px */
}

.intro h3 {
  font-size: 1.1rem;
  padding: 0 10px; /* top/bottom = 0, left/right = 10px */
}

.intro p ul{
  font-size: 0.9rem;
  padding: 0 20px; /* top/bottom = 0, left/right = 20px */
}




/* SERVICES SECTION */
.container,
.container-services {
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  background: #efefef;
}

.container-services {
  padding: 30px 10px;
  max-width: 900px;
}

.service-item {
  margin: 0 auto 1px;
  padding: 8px 3px;
  text-align: left;
  background: #083e4d;
  border-radius: 2px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.service-item input {
  display: none;
}

.service-title {
  font-size: 1.2rem;
  color: #fff;
  display: block;
  padding: 20px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}

.service-title:hover {
  background: #135366;
}

.service-title::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 20px;
  transition: transform 0.3s;
}

.service-item input:checked + .service-title::after {
  content: '-';
  transform: rotate(180deg);
}

.service-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 20px;
  background: #efefef;
}

.service-item input:checked ~ .service-content {
  max-height: 1000px; /* safer for longer text */
  padding: 20px;
}

.service-content p {
  margin: 0;
  line-height: 1.4;
  color: #484848;
  text-align: left;
}

/* CONTACT */
#contact {
  padding: 40px 20px;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  background: #fff;
}

ul {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
  text-align: left;
}

ul li {
  font-size: 1rem;
}

form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

button {
  padding: 12px;
  border: none;
  background: #278ca9;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

button:hover {
  background: #125568;
}

/* BACK TO TOP BUTTON */
#myBtn {
  display: none;
  position: fixed;
  bottom: 2em;
  right: 1em;
  z-index: 9999;
  font-size: clamp(1rem, 5vw + 0.75em, 2rem);
  background-color: rgba(40, 40, 40, 0.6);
  color: #f5f5f5;
  border-radius: 50%;
  width: 1.875em;
  height: 1.875em;
  cursor: pointer;
  padding: 0.375em;
}

#myBtn:hover {
  background-color: rgba(255,255,255,0.6);
  color: #484848;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 16px;
  background: #15596c;
}

footer p {
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 0.75rem;
  line-height: 1.4; /* fixed contrast issue */
}

footer a {
  background-color: transparent;
  color: #fff;
  padding: 15px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

footer a:hover {
  color: #1f7e99;
}

/* MEDIA QUERIES */
@media (max-width: 400px) {
  .side-menu {
    width: 80%;
  }
}


@media (min-width: 700px) {
  .hamburger {
    display: none;
  }

  .side-menu {
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    right: 0;
    transition: none;
  }

  .side-menu a {
    color: #196980;
    padding: 0 15px;
    background: none;
  }

  .overlay {
    display: none;
  }

 
  .wrapper {
    flex-direction: row;   /* horizontal layout */
    align-items: center;
    justify-content: space-between;
  }

  .wrapper img {
    flex: 1 1 100%;
    max-width: none;      /* let it fill half space */
  }

  .intro {
    flex: 1 1 50%;
    padding: 0 30px; /* top/bottom = 0, left/right = 30px */
  }
	
.intro h2 {
  padding: 0 20px; /* top/bottom = 0, left/right = 20px */
}

.intro h3 {
  
  padding: 0 20px; /* top/bottom = 0, left/right = 20px */
}

.intro p ul{
  
  padding: 0 30px; /* top/bottom = 0, left/right = 30px */
}


   .services {
    grid-template-columns: repeat(3, 1fr);
  }

}