/*
 * portfolio-responsive.css
 * Custom responsive overrides for Renato Coronado's portfolio.
 * Targets gaps not covered by the theme's existing responsive.css.
 *
 * Breakpoints (Bootstrap 5 compatible):
 *   xs : < 576px
 *   sm : 576px – 767px
 *   md : 768px – 991px
 *   lg : 992px – 1199px
 *   xl : ≥ 1200px
 */

/* ─── Global ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* ─── Hero Section ────────────────────────────────────────────────────────── */
.slider-content h1 {
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  .slider-area.slider-bg-color {
    min-height: 100svh;
    display: flex;
    align-items: center;
  }
  .single-slider.slider-height {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .slider-content {
    padding: 0 16px;
    text-align: center;
  }
  .slider-content h1 {
    font-size: clamp(48px, 12vw, 80px) !important;
    line-height: 1.05;
    margin-bottom: 16px;
  }
  .slider-content h2 {
    font-size: clamp(16px, 4.5vw, 24px) !important;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  .slider-content .sub-heading {
    font-size: clamp(12px, 3.5vw, 18px) !important;
    letter-spacing: 3px;
  }
}

/* ─── Navigation / Header ─────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .header-btn {
    display: none !important;
  }
  .logo img {
    max-height: 40px;
    width: auto;
  }
}

@media (min-width: 576px) and (max-width: 1199px) {
  .header-btn a {
    font-size: 11px;
    padding: 8px 14px;
    white-space: nowrap;
  }
}

/* Lang toggle — hide on mobile header bar, show in slide menu */
@media (max-width: 1199px) {
  .lang-toggle.d-none.d-xl-flex {
    display: none !important;
  }
}

/* Side mobile menu improvements */
.side-mobile-menu {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 380px) {
  .side-mobile-menu {
    width: 100% !important;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ─── Intro Feature Cards ─────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .single-intro-feature-content {
    margin-bottom: 20px;
    padding: 40px 28px 28px 28px !important;
  }
  /* Remove staggered marginTop on mobile — they overlap */
  .single-intro-feature-content.mt-60 {
    margin-top: 0 !important;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .single-intro-feature-content.mt-60 {
    margin-top: 0 !important;
  }
}

/* ─── About Section ───────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  #about .about-content-wrapper {
    margin-top: 80px !important;
    margin-bottom: 60px !important;
  }
  #about .about-img-wrapper {
    margin-bottom: 40px !important;
    text-align: center;
  }
  #about .about-img-wrapper img {
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  #about .about-content-wrapper {
    margin-top: 60px !important;
    margin-bottom: 40px !important;
  }
  #about .about-img-wrapper img {
    max-width: 100%;
    border-radius: 10px;
  }
  #about .about-info-wrapper {
    padding-top: 16px;
  }
  /* Stack info columns on small screens */
  #about .about-info {
    gap: 16px !important;
  }
  #about .about-info div[style*="min-width: 120px"] {
    min-width: 90px !important;
  }
  #about .about-info li.pr-50 {
    padding-right: 24px !important;
    min-width: 90px !important;
  }
  #about .about-footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
  #about .signature {
    padding-right: 0 !important;
    margin-bottom: 16px;
  }
  #about .signature img {
    max-width: 160px;
  }
}

/* ─── Portfolio Marquee ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .marquee span {
    font-size: 48px !important;
  }
  .marquee-w.mb-125 {
    margin-bottom: 40px !important;
  }
}

@media (max-width: 400px) {
  .marquee span {
    font-size: 36px !important;
  }
}

/* ─── Portfolio List ──────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .single-portfolio {
    padding-top: 28px !important;
    padding-bottom: 20px !important;
  }
  .single-portfolio h3 {
    font-size: 20px !important;
    margin-top: 6px;
    line-height: 1.3;
  }
  .port-category span {
    font-size: 12px !important;
  }
}

@media (max-width: 575px) {
  /* Stack category above title */
  .single-portfolio .row {
    flex-direction: column;
    gap: 4px;
  }
  .single-portfolio .col-xl-2,
  .single-portfolio .col-xl-5 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0;
  }
}

/* ─── Awards Section ──────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .award-area {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  .award-wrapper {
    margin-top: 24px !important;
  }
  /* Stack award columns */
  .award-margin .col-xl-3,
  .award-margin .col-xl-4 {
    margin-bottom: 12px;
  }
  .award-content h3 {
    font-size: 18px !important;
  }
  .award-content p {
    font-size: 14px !important;
  }
}

/* ─── Experience Section ──────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .experience-bg-img {
    position: relative !important;
    width: 100% !important;
    min-height: 320px;
    border-radius: 12px;
    margin-bottom: 40px;
  }
  .experience-wrapper.extra-width {
    display: flex;
    flex-direction: column;
  }
  .experience-margin {
    margin-top: 0 !important;
    padding-left: 0 !important;
    padding-bottom: 40px;
  }
}

@media (max-width: 767px) {
  .experience-area {
    padding-bottom: 60px !important;
  }
  .experience-margin {
    padding-left: 0 !important;
    margin-top: 30px !important;
  }
  .experience-ser-icon {
    flex-shrink: 0;
    margin-right: 16px !important;
  }
  .experience-service-text h3 {
    font-size: 18px !important;
    line-height: 1.3;
  }
  .experience-service-text h4 {
    font-size: 15px !important;
    line-height: 1.4;
  }
  .experience-service-text h4 span {
    display: block;
    font-size: 13px !important;
  }
  .experience-service-text p {
    font-size: 15px !important;
    line-height: 1.6;
  }
}

/* ─── Education Section ───────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .education-area {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .education-img img {
    max-width: 380px;
    margin: 40px auto 0;
  }
}

@media (max-width: 767px) {
  .education-img {
    margin-top: 40px;
  }
  .education-img img {
    max-width: 100%;
  }
  .education-wrapper {
    margin-right: 0 !important;
  }
  .experience-service-text h3 {
    font-size: 17px !important;
  }
}

/* ─── Contact Section ─────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  #contact {
    margin-top: 80px !important;
    margin-bottom: 60px !important;
  }
}

@media (max-width: 767px) {
  #contact {
    margin-top: 60px !important;
    margin-bottom: 40px !important;
  }
  .contact-info-content li {
    flex-direction: row !important;
    align-items: center;
    margin-bottom: 16px;
  }
  .contact-icon {
    flex-shrink: 0;
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    margin-right: 16px;
  }
  .contact-form .row > div {
    padding-left: 12px;
    padding-right: 12px;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 15px;
  }
}

@media (max-width: 575px) {
  /* Stack name/email in one column each */
  .contact-info .col-xl-6.col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .footer-area {
    padding-top: 60px !important;
    margin-bottom: 30px !important;
    text-align: center;
  }
  .footer-widget .social {
    justify-content: center;
  }
  .foot-logo img {
    max-width: 140px;
    margin: 0 auto;
  }
  .copyright-text p {
    font-size: 14px;
  }
}

/* ─── Global Typography Clamp ─────────────────────────────────────────────── */
@media (max-width: 575px) {
  .title h2 {
    font-size: clamp(26px, 7vw, 36px) !important;
    line-height: 1.2;
  }
  .title span {
    font-size: 13px !important;
    letter-spacing: 2px;
  }
  h3 {
    font-size: clamp(18px, 5vw, 28px) !important;
  }
  h4 {
    font-size: clamp(15px, 4vw, 22px) !important;
  }
  p {
    font-size: 15px !important;
    line-height: 1.7;
  }
}

/* ─── Utility: prevent horizontal overflow ────────────────────────────────── */
body, html {
  overflow-x: hidden;
}

.container {
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 575px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ─── Fix: experience pl-100 on mobile ───────────────────────────────────── */
@media (max-width: 991px) {
  .experience-margin.pl-100 {
    padding-left: 0 !important;
  }
}

/* Desktop: restore pl-100 for experience margin */
@media (min-width: 992px) {
  .experience-area .experience-margin {
    padding-left: 100px;
  }
}
