/* =========================================================
   Base Styles — Gelson DevWorks
   Stack: Bootstrap 5
   ========================================================= */

/* ============================================
   0) VARIABLES (tipografías, colores, escala)
   ============================================ */
:root {
  /* Fonts */
  --gh-title-font: "Syne", sans-serif;
  --gh-subtitle-font: "Inter", sans-serif;
  --gh-body-font: "DM Sans", sans-serif;

  /* Core colors */
  --gh-dark-color: #333333;
  --gh-light-color: #deeefb;
  --gh-white-color: #ffffff;

  /* Typography scale */
  --gh-font-size: 1.2rem;
  --gh-font-weight: 400;
  --gh-line-height: 1.5rem;
  --gh-title-color: var(--gh-dark-color);

  /* Gray scale */
  --gh-gray-100: hsla(120, 5%, 95%, 1);
  --gh-gray-150: hsla(120, 4%, 91%, 1);
  --gh-gray-200: hsla(120, 3%, 86%, 1);
  --gh-gray-300: hsla(120, 2%, 81%, 1);
  --gh-gray-400: hsla(146, 6%, 78%, 1);
  --gh-gray-500: hsla(152, 10%, 74%, 1);
  --gh-gray-600: hsla(154, 15%, 67%, 1);
  --gh-gray-700: hsla(141, 7%, 48%, 1);
  --gh-gray-800: hsla(136, 6%, 37%, 1);
  --gh-gray-850: hsla(110, 4%, 26%, 1);
  --gh-gray-900: hsla(120, 1%, 25%, 1);

  /* Theme aliases */
  --gh-gray-core: #adb5bd;
  --gh-theme-core: var(--gh-gray-core);
  --gh-theme-100: var(--gh-gray-100);
  --gh-theme-150: var(--gh-gray-150);
  --gh-theme-200: var(--gh-gray-200);
  --gh-theme-300: var(--gh-gray-300);
  --gh-theme-400: var(--gh-gray-400);
  --gh-theme-500: var(--gh-gray-500);
  --gh-theme-600: var(--gh-gray-600);
  --gh-theme-700: var(--gh-gray-700);
  --gh-theme-800: var(--gh-gray-800);
  --gh-theme-850: var(--gh-gray-850);
  --gh-theme-900: var(--gh-gray-900);
}

/* ============================================
   1) BASE / RESETS
   ============================================ */

html,
body {
  width: 100%;
  overflow-x: hidden !important;
}
body {
  font-family: var(--gh-body-font);
  font-size: var(--gh-font-size);
  font-weight: var(--gh-font-weight);
  line-height: var(--gh-line-height);
  color: var(--gh-dark-color);
  background: var(--gh-white-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--gh-title-font);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gh-title-color);
  letter-spacing: 0.1rem;
}

a {
  text-decoration: none;
  color: var(--gh-dark-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gh-gray-700);
}

main {
  margin-bottom: 5rem;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1050px;
  }
}

/* Button Primary Styles (using Bootstrap variables) */
.btn-primary {
  --bs-btn-bg: var(--gh-theme-600);
  --bs-btn-border-color: var(--gh-theme-600);
  --bs-btn-hover-bg: var(--gh-theme-700);
  --bs-btn-hover-border-color: var(--gh-theme-700);
  --bs-btn-active-bg: var(--gh-theme-700);
  --bs-btn-active-border-color: var(--gh-theme-700);
}

/* Button Secondary Styles */
.btn-secondary {
  --bs-btn-bg: var(--gh-theme-800);
  --bs-btn-border-color: var(--gh-theme-800);
  --bs-btn-hover-bg: var(--gh-theme-900);
  --bs-btn-hover-border-color: var(--gh-theme-900);
  --bs-btn-active-bg: var(--gh-theme-900);
  --bs-btn-active-border-color: var(--gh-theme-900);
}

.btn-shadow:hover {
  box-shadow: 0 1px 3px;
}

/* ============================================
   2) LAYOUT DE SECCIONES
   ============================================ */
section {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section-page {
  padding-top: 5rem;
  padding-bottom: 8rem;
  position: relative;
  overflow: visible;
  margin-top: -3rem;
}

.section-page:nth-child(even) {
  background-color: var(--gh-white-color);
}
.section-page:nth-child(odd) {
  background-color: var(--gh-theme-150);
}

/* ============================================
   3) NAVBAR
============================================ */
.navbar {
  padding: 0.8rem 0;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#mainNavbar {
  background-color: rgba(0, 0, 0, 0.2); /* inicio más suave */
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

#mainNavbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

#brandTag.scrolled {
  color: var(--gh-gray-700) !important;
  transition: color 0.4s ease;
}

/* Links */
.navbar-nav .nav-link {
  position: relative;
  padding-bottom: 3px;
  font-weight: 600;
  text-transform: capitalize;
  font-size: 16px;
  transition: color 0.4s ease, transform 0.2s ease;
}

.navbar-nav .nav-link.initial {
  color: var(--gh-white-color) !important;
}

.navbar-nav .nav-link.scrolled {
  color: var(--gh-gray-700) !important;
  transition: color 0.4s ease;
}

.navbar-nav .nav-link.active {
  color: #59645c !important;
}

.navbar-nav .nav-link.active.glow {
  text-shadow: 0 0 8px rgba(89, 100, 92, 0.6);
  transition: text-shadow 0.4s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0%;
  height: 2px;
  border-radius: 4px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-nav .nav-link i.initial {
  color: var(--gh-white-color);
  transition: color 0.4s ease;
}

.navbar-nav .nav-link i.scrolled {
  color: var(--gh-gray-700);
  transition: color 0.4s ease;
}

.navbar-nav .nav-link:hover i {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* ✅ Mobile */
@media (max-width: 991px) {
  /* Links */
  .navbar-nav .nav-link::after {
    display: none !important;
  }

  .navbar-nav .nav-link {
    padding: 10px 0;
    font-size: 1rem;
    width: 100%;
    text-align: left;
    transition: color 0.4s ease;
  }

  /* Fondo del menú desplegable (transparente empanado) */
  #navbarMenu {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease;
  }

  #navbarMenu .navbar-nav {
    align-items: flex-start !important;
    text-align: left !important;
  }
}

.navbar-collapse {
  max-height: 80vh;
  overflow-y: auto;
}

/* ============================================
   4) HERO
   ============================================ */
#home {
  background-image: url(/img/hero-section/hero-img-2.webp);
  background-size: cover;
  background-position: center;
  height: 100vh;
  position: relative;
  z-index: 2;
}

#homeCover {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: brightness(0.8);
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-title,
.hero-subtitle,
.hero-btn {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  color: #fff;
}

/* @media (max-width: 768px) {
  #home {
    min-height: 100vh;
    height: auto;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
} */

/* ============================================
   5) ABOUT SECTION
   ============================================ */
.about-text {
  max-width: 700px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--gh-dark-color);
}

#about span {
  color: #59645c;
}

#about small {
  color: var(--gh-gray-700);
}

#about a:hover i {
  transform: translateX(4px);
}

/* ============================================
   6) SERVICE SECTION
   ============================================ */
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-text {
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: start;
  color: var(--gh-dark-color);
}

@media (min-width: 992px) {
  .service-item {
    align-items: flex-start;
    text-align: left;
  }
}

/* ============================================
   7) WHY ME
   ============================================ */
#why-developer .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  border: 1px solid var(--gh-gray-150);
}

#why-developer .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#why-developer .card:hover i {
  color: #59645c;
}

/* ============================================
   8) CTA / LINKS
   ============================================ */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s, transform 0.3s;
}

.cta-link:hover {
  color: #59645c;
  transform: translateX(3px);
}

/* ============================================
   9) CONTACT
   ============================================ */
#contact {
  scroll-margin-top: 100px;
}

.contact-form {
  max-width: 800px;
}

.contact-input,
.contact-textarea {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--gh-gray-300);
  font-size: 1rem;
  color: var(--gh-dark-color);
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: #59645c;
  background-color: rgba(0, 0, 0, 0.02);
  outline: none;
  box-shadow: none;
}

/* ============================================
   10) FOOTER
   ============================================ */
footer {
  background-color: var(--gh-theme-150);
}

footer span,
footer li span {
  color: var(--gh-dark-color);
}

footer a {
  color: var(--gh-gray-800);
}

footer a:hover,
footer i:hover {
  color: var(--gh-gray-700) !important;
}

/* ============================================
   11) CAROUSEL
   ============================================ */
.carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: contain;
}
