/* ------------------- */
/* RESET & BASE STYLES */
/* ------------------- */
:root {
  --color-primary: #27807e;
  --color-primary-dark: #003d3b;
  --color-secondary: #45a1a0;
  --color-light: #E5F4F1;
  --color-white: #ffffff;
  --color-dark: #333;
  --color-gray: #555;

  --font-family: 'Poppins', sans-serif;
  --transition-fast: 0.3s ease;

  --fs-h1: clamp(2rem, 5vw + 1rem, 3rem);
  --fs-h2: clamp(1.75rem, 4vw + 1rem, 2.25rem);
  --fs-h3: clamp(1.25rem, 2vw + 1rem, 1.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a,
button {
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3 { line-height: 1.2; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); color: var(--color-primary); }
h3 { font-size: var(--fs-h3); }

.container {
  width: 80%;
  max-width: 1200px;
  margin-inline: auto;
}

section {
  padding-block: 4rem;
}

.h-content {
  margin-bottom: 3rem;
  text-align: center;
}

.h-content p {
  color: var(--color-gray);
}

/* ------------------- */
/* NAVIGATION          */
/* ------------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 3rem;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  color: var(--color-white);
}
.logo h3 { font-size: 1.5rem; }
.logo-img { width: 80px; height: auto; }

.nav-toggle {
  display: block;
  z-index: 1001;
  padding: 0.5rem;
  background: transparent;
  border: none;
}

.hamburger {
  position: relative;
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

#nav-menu {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
  background: var(--color-primary);
}

#nav-menu.active { display: flex; }

#nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
#nav-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(8px) rotate(45deg); }
#nav-toggle[aria-expanded="true"] .hamburger::after { transform: translateY(-8px) rotate(-45deg); }

#nav-menu a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-white);
}

#nav-menu a:not(.cbt):hover {
  color: var(--color-primary);
  background-color: var(--color-light);
  border-radius: 10px;
  transform: scale(1.1);
}

#nav-menu a.active-link {
  color: var(--color-primary);
  background-color: var(--color-light);
  border-radius: 10px;
}

.cbt {
  border: 1px solid var(--color-white);
  border-radius: 20px;
}
.cbt:hover { transform: scale(1.2); }
.dropdown-menu { display: none; }

/* ------------------- */
/* HERO SECTION        */
/* ------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  padding: 0;
  background-image: url('Illustrations/IT-CONSULTING/Generated\ image\ \(2\).jpeg');
  background-size: cover;
  background-position: center;
}

#heroImage {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient( to right,
    rgba(1, 41, 51,0.7) 0%,
    rgba(1, 41, 51, 0.7) 45%,
    rgba(1, 41, 51, 0.4) 55%,
    rgba(1, 41, 51, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%; /* Full width on mobile */
  padding: 2rem;
  color: var(--color-white);
}

.hero-text {
  max-width: 50ch;
  margin-inline: auto;
  text-align: center;
}

.hero-text h1 {
  margin-bottom: 1rem;
}

.hero-text p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  text-align: center;
  opacity: 0.95;
}

/* ------------------------- */
/* IT CONSULTING SECTIONS    */
/* ------------------------- */
.consulting-intro {
    background-color: var(--color-white);
}

.intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.intro-text {
    flex: 1;
    max-width: 65ch;
}
.intro-text p {
    text-align: justify;
}

.intro-image {
    flex: 1;
    max-width: 400px;
}

.intro-image img {
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.consulting-services {
    background-color: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    background-color: var(--color-light);
    border-radius: 20px;
    padding: 1rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
    border-bottom: 1.5px solid rgba(51, 51, 51, 0.2);
}

.service-card:last-child {
    border-bottom: none;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.service-card p {
    color: var(--color-gray);
    flex-grow: 1;
}

.cta-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 4rem 1rem;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 60ch;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--color-white);
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: var(--color-light);
    transform: scale(1.05);
}

/* ------------------- */
/* FOOTER              */
/* ------------------- */
.footer {
  padding-block: 4rem 2rem;
  color: var(--color-white);
  background-color: var(--color-primary);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 90%;
  margin-inline: auto;
  padding-left: 2rem;
  text-align: left;
}

.footer h2, .footer h3 {
  margin-bottom: 1rem;
  color: var(--color-light);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.footer-links a, .footer-contact a { color: var(--color-white); }
.footer-links a:hover, .footer-contact a:hover { text-decoration: underline; }
.footer address, .footer p { margin-bottom: 1rem; font-style: normal; }

.footer address .location {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-links img { width: 40px; }
.social-links a:hover { transform: scale(1.1); }
.footer-brand img { display: none; }

/* -------------------------- */
/* MEDIA QUERIES              */
/* -------------------------- */
@media (max-width: 767px) {
  .hero {
    background-image: linear-gradient(rgba(1, 41, 51, 0.8), rgba(1, 41, 51, 0.8)), url('Illustrations/IT-CONSULTING/image.png');
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .intro-container { flex-direction: row; text-align: left; }
  .services-grid { 
      grid-template-columns: 1fr;
      padding: 2rem;
  }
  .hero-content { 
      width: 60%;
      text-align: left; 
  }
  .hero-text { 
      margin-inline: 0;
      text-align: left;
  }
   .hero-text p {
      text-align: justify;
  }
  .footer-container { grid-template-columns: repeat(2, 1fr); text-align: left; }
  .social-links, .footer-brand { justify-content: flex-start; }
}

@media (min-width: 1024px) {
  p { font-size: 1rem; }
  #navbar { 
      padding-top: 1.5rem;
      padding-bottom: 1.5rem;
  }
  .nav-toggle { display: none; }

  #nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 3rem;
    width: auto;
    height: auto;
    background: transparent;
  }
  #nav-menu a { font-size: 0.9rem; }
  
  .services-grid { 
      grid-template-columns: 1fr;
  }

  .dropdown-candidates:hover .dropdown-menu{
    position: absolute;
    top: 90%;
    right: 4.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    padding: 20px 25px !important;
    background: rgb(39, 128, 126, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(50%);
    transition: 0.4s ease;
  }
  .dropdown-about:hover .dropdown-menu{
    position: absolute;
    top: 90%;
    right: 19.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    padding: 20px 25px !important;
    background: rgb(39, 128, 126, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(50%);
    transition: 0.4s ease;
  }
  .dropdown-services:hover .dropdown-menu{
    position: absolute;
    top: 90%;
    right: 10.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    padding: 20px 25px !important;
    background: rgb(39, 128, 126, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(50%);
    transition: 0.4s ease;
  }
  .dropdown-candidates::after {
    content: "";
    position: absolute;
    top: 70%;
    right: 12.5rem;
    width: 8%;
    height: 40px;

  }

  #navbar.scrolled .dropdown-about:hover .dropdown-menu,
  #navbar.scrolled .dropdown-services:hover .dropdown-menu,
  #navbar.scrolled .dropdown-candidates:hover .dropdown-menu {
    top: 100%;
    background: rgb(39, 128, 126, 0.7);
  }

  .dropdown-menu a {
    width: 13rem;
    font-size: 1rem !important;
    text-align: left;
    border: 2px solid rgb(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .hero-content { 
      width: 50%;
      padding: 4rem 6rem;
  }
   .hero-text {
      max-width: 75ch;
   }
  .hero-text h1 { 
      font-size: 1.8rem;
  }

  .footer { padding-block: 4rem 0rem; }
  .footer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px; 
    font-size: 0.9rem;
  }
  .footer-details{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 70px;
  }
  .footer-brand{
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .footer-brand img {
    display: block;
    height: 250px;
    width: 300px;
  }
  .footer-brand h2 {
    color: var(--color-light);
    font-size: 1.3rem;
  }
  .social-links { display: flex; gap: 35px; }
  .social-links img { width: 50px; }
}