/* ==================================================================
MEDIA QUERIES - RESPONSIVE FEATURES
================================================================== */

@media (max-width: 992px) {
  .home-loader-badge {
    width: 118px;
    height: 118px;
    top: -126px;
  }
  .home-loader-ring {
    width: 118px;
    height: 118px;
  }
  .home-loader-logo {
    width: 56px;
  }
  .homepage section {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 100vh;
  }
  .homepage .home-hero {
    margin-top: 0 !important;
    width: 100%;
  }
  body {
    font-size: 12px;
    line-height: 18px;
  }
  section,
  .aboutme .section-author-image,
  .testimonials-messages {
    padding: 75px 0px;
  }
  .aboutme .section-author-image-2 {
    padding-top: 75px;
  }
  .aboutme .author-image-2:before {
    content: " ";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.75;
    background: #fff;
  }
  h2 {
    font-size: 4em;
  }
  .homepage .messages h2 {
    font-size: 4.8em;
  }
  .homepage .messages {
    height: 126px;
  }
  .home-contact-cta button {
    padding: 12px 22px;
    letter-spacing: 0.22em;
    font-size: 0.8em;
  }
  .home-carousel-copyright {
    bottom: 14px;
  }
  .home-carousel-copyright p {
    font-size: 0.78em;
    letter-spacing: 0.06em;
    padding: 7px 12px;
  }
  .contact footer .copyright {
    font-size: 0.78em;
    letter-spacing: 0.06em;
  }
  .info footer .copyright {
    font-size: 0.78em;
    letter-spacing: 0.06em;
  }
  .contact footer {
    padding-bottom: 14px;
  }
  .info footer {
    padding-bottom: 14px;
  }
  .contact footer .container > .row:last-child {
    bottom: 14px;
  }
  .info footer .container > .row:last-child {
    bottom: 14px;
  }
  h3 {
    font-size: 1.2em;
    line-height: 1.35em;
  }
  h4 {
    font-size: 2.7em;
    line-height: 1.3em;
  }
  h5 {
    font-size: 1.05em;
    line-height: 1.25em;
  }
  .loader-logo {
    width: 92px;
    height: auto;
  }
  .homepage .messages {
    height: 126px;
  }
  .contact {
    background-attachment: scroll;
  }
  .contact-form .row > .col-md-12 {
    padding: 22px 18px 14px;
    border-radius: 14px;
  }
  .contact-form .container {
    padding-left: 30px;
    padding-right: 30px;
  }
  #contactform .col-md-6:first-child {
    margin-bottom: 12px;
  }
  .send-div {
    margin-top: 24px;
  }
  #map {
    height: 360px;
  }
  .aboutme .author-image {
    width: 280px;
    height: 280px;
    margin-bottom: 20px;
  }
  .aboutme .skills .skill {
    margin-bottom: 50px;
  }
  .experience a {
    padding: 0px;
  }
  .experience .date {
    width: 100px;
  }
  .panel-group .panel-heading + .panel-collapse > .panel-body,
  .panel-group .panel-heading + .panel-collapse > .list-group {
    margin-left: 103px;
  }
}

@media (max-width: 767px) {
  .homepage section {
    padding-top: 0;
    padding-bottom: 0;
  }
  section,
  .aboutme .section-author-image {
    padding: 25px 0px;
  }
  .aboutme .section-author-image-2 {
    padding-top: 25px;
  }
  .aboutme .author-image-2 {
    background-size: 120%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .clearfix {
    margin: 10px 0px;
  }
  #mainNav {
    padding-top: 0px;
  }
  #mainNav .navbar-brand {
    float: left;
    margin-left: 0px;
    border: none;
  }
  #mainNav .navbar-brand svg {
    width: 1.3em;
  }
  .homepage section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 6px;
  }
  .homepage .messages {
    height: 168px;
  }
  .homepage .messages h2 {
    font-size: 5.1em;
    line-height: 1.05em;
  }
  .home-contact-cta {
    margin-top: -8px;
  }
  .home-contact-cta button {
    padding: 14px 26px;
    letter-spacing: 0.2em;
    font-size: 1.08em;
  }
  .home-carousel-copyright {
    bottom: 14px;
  }
  .home-carousel-copyright p {
    font-size: 0.82em;
    letter-spacing: 0.04em;
    padding: 6px 10px;
  }
  .pt-page {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }
  .contact {
    min-height: 100vh;
    min-height: 100dvh;
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.34)),
      url("../img/contact-bg-mobile.jpeg") !important;
  }
  .pt-page.info {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48)),
      url("../img/info-bg-mobile.jpeg") !important;
    background-size: cover;
    background-position: center center;
  }
  .contact .contact-form {
    flex: 0 0 auto;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    padding-bottom: 24px;
  }
  .contact {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .contact footer .copyright {
    font-size: 0.82em;
    letter-spacing: 0.04em;
  }
  .info footer .copyright {
    font-size: 0.82em;
    letter-spacing: 0.04em;
  }
  .contact footer {
    padding-bottom: 18px;
    margin-top: 12px;
  }
  .info footer {
    padding-bottom: 18px;
    margin-top: 12px;
  }
  .contact footer .container > .row:first-child {
    margin-bottom: 18px;
    margin-top: 0;
  }
  .info footer .container > .row:first-child {
    margin-bottom: 18px;
    margin-top: 0;
  }
  /* Footer copyright baseline is handled by unified footer rules below */
  .navTop .pt-trigger-container {
    height: 60px;
    width: 100%;
  }
  .services .twitter-content .twitter-heading span:before,
  .services .twitter-content .twitter-heading span:after {
    width: 100px;
  }
  .services .media {
    margin-bottom: 15px;
  }
  #filters button {
    font-size: 0.9em;
    margin-bottom: 5px;
  }
  .item .item-content,
  .item:hover .item-content {
    opacity: 1;
    border-radius: 0px;
  }
  .item,
  #gallery .grid-sizer {
    width: 50%;
  }
  .item.w2 {
    width: 100%;
  }
  .testimonials-messages .comment {
    font-size: 2em;
  }
  .testimonials-messages .comment-author {
    font-size: 1.2em;
  }
  .item .item-content a,
  .item .item-content button {
    border-radius: 0px;
    border: 0px;
    padding: 20px;
  }
  .item .item-content a h4,
  .item .item-content a p,
  .item .item-content button h4,
  .item .item-content button p {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }
  .item .item-content a h4,
  .item .item-content button h4 {
    font-size: 1.3em;
    margin-bottom: 5px;
  }
  .testimonials-messages {
    height: 250px;
  }
  .services .twitter-content .twitter-heading {
    margin-bottom: 10px;
  }
  #filters {
    margin-bottom: 20px;
  }
  #work-content h4 {
    padding-right: 40px;
  }
  .work-container button {
    top: 0px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.6em;
  }
  .blog .post-right .post-image {
    margin-bottom: 10px;
  }
  input.form-control,
  textarea.form-control,
  .send-div button {
    font-size: 1em;
  }
  #contactform textarea.form-control {
    margin-top: 8px;
  }
  .contact-form .row > .col-md-12 {
    padding: 18px 14px 12px;
    border-radius: 12px;
  }
  .contact-form .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  #map {
    height: 290px;
  }
  .blog .post-right a.read-more {
    margin-top: 0px;
  }
  footer .footer-social {
    margin: 10px 0px;
  }
  footer .footer-social li {
    margin: 0px 5px;
  }
  footer .footer-social li a {
    font-size: 1.3em;
    margin-top: 10px;
    margin-bottom: 0px;
  }
  footer {
    padding-bottom: 75px;
  }
  footer hr {
    margin-top: 0px;
  }
  footer a.toTop {
    padding: 0;
    bottom: 12px;
    right: 12px;
    width: 50px;
    height: 50px;
  }
}

/* Keep footer copyright on same vertical level as homepage copyright */
@media (max-width: 767px) {
  .info footer,
  .contact footer {
    position: relative;
    padding-bottom: 14px;
  }
  .info footer .container > .row:first-child,
  .contact footer .container > .row:first-child {
    margin-bottom: 70px;
  }
  .info footer .container > .row:last-child,
  .contact footer .container > .row:last-child {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .info footer,
  .contact footer {
    padding-bottom: 10px;
  }
  .info footer .container > .row:first-child,
  .contact footer .container > .row:first-child {
    margin-bottom: 58px;
  }
  .info footer .container > .row:last-child,
  .contact footer .container > .row:last-child {
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .homepage section {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .homepage .messages {
    height: 138px;
  }
  .homepage .messages h2 {
    font-size: 4.1em;
    line-height: 1.05em;
  }
  .home-contact-cta {
    margin-top: -10px;
  }
  .home-contact-cta button {
    padding: 12px 22px;
    letter-spacing: 0.18em;
    font-size: 0.98em;
  }
  .home-carousel-copyright {
    bottom: 10px;
  }
  .home-carousel-copyright p {
    font-size: 0.76em;
    padding: 5px 9px;
  }
  .contact footer .copyright {
    font-size: 0.76em;
  }
  .info footer .copyright {
    font-size: 0.76em;
  }
  .contact-form .container {
    padding-left: 18px;
    padding-right: 18px;
  }
  #map {
    height: 240px;
  }
  .item,
  .item.w2,
  #gallery .grid-sizer {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .info-section {
    padding-top: 110px;
    padding-bottom: 50px;
  }
  .info-section h4 {
    font-size: 2.2em;
  }
  .info-lead {
    font-size: 1.05em;
  }
  .info-pillar h5 {
    font-size: 1.25em;
    letter-spacing: 0.14em;
  }
  .info-pillar p {
    font-size: 0.95em;
  }
  #mainNav .pt-trigger-container li {
    margin: 0 10px;
  }
  #mainNav .pt-trigger-container li button {
    font-size: 1.1em;
    letter-spacing: 0.18em;
  }
}

@media (max-width: 767px) {
  .info-section {
    padding-top: 100px;
  }
  .info-section h4 {
    font-size: 1.95em;
    line-height: 1.15em;
  }
  .info-lead {
    font-size: 1em;
    line-height: 1.7;
    padding: 0 6px;
  }
  .info-pillar {
    padding: 14px 12px;
  }
  .info-pillar + .info-pillar::before {
    display: none;
  }
  .info-contact {
    padding: 18px 0;
  }
  .info-contact .col-md-4 {
    margin-bottom: 14px;
  }
  .info-contact .col-md-4:last-child {
    margin-bottom: 0;
  }
  .info-cta button {
    padding: 11px 28px;
    font-size: 0.78em;
    letter-spacing: 0.16em;
  }
  footer .container > .row > .col-md-4 {
    margin-bottom: 14px;
  }
  footer .container > .row > .col-md-4:last-child {
    margin-bottom: 0;
  }
  footer .container > .row:first-child {
    margin-bottom: 24px;
  }
  .contact footer .container > .row > .col-md-4 {
    margin-bottom: 20px;
  }
  .contact footer .container > .row > .col-md-4:last-child {
    margin-bottom: 8px;
  }
  .contact footer .info {
    font-size: 2.35em;
  }
  .contact footer .container > .row:first-child p {
    font-size: 0.82em;
    line-height: 1.8;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
  }
  .nav-hamburger {
    right: 16px !important;
    top: 12px !important;
  }
  #mainNav .pt-trigger-container li {
    margin: 0 12px;
  }
  #mainNav .pt-trigger-container li button {
    font-size: 1.2em;
    letter-spacing: 0.18em;
    padding: 8px 4px;
  }
}

@media (max-width: 480px) {
  #mainNav .pt-trigger-container li {
    margin: 0 9px;
  }
  #mainNav .pt-trigger-container li button {
    font-size: 1.1em;
    letter-spacing: 0.16em;
    padding: 6px 3px;
  }
  #mainNav.menu-open .pt-trigger-container li {
    margin: 14px 0 !important;
  }
  #mainNav.menu-open .pt-trigger-container li button {
    font-size: 1.85em !important;
    letter-spacing: 0.2em !important;
    padding: 12px 14px !important;
  }
  .info-section {
    padding-top: 88px;
  }
  .info-section h3 {
    font-size: 0.82em;
    letter-spacing: 0.34em;
  }
  .info-section h4 {
    font-size: 1.7em;
  }
  .info-lead {
    font-size: 0.95em;
  }
  .info-cta button {
    padding: 10px 24px;
    font-size: 0.74em;
    letter-spacing: 0.14em;
  }
  .contact footer .info {
    font-size: 2.15em;
  }
  .contact footer .container > .row:first-child p {
    font-size: 0.78em;
    line-height: 1.75;
  }
}

@media (max-width: 767px) {
  .home-loader-badge {
    width: 102px;
    height: 102px;
    top: -110px;
  }
  .home-loader-ring {
    width: 102px;
    height: 102px;
  }
  .home-loader-logo {
    width: 48px;
  }
  #mainNav {
    position: absolute !important;
    top: 0 !important;
  }
  #mainNav .nav-hamburger {
    display: block;
  }
  #mainNav.menu-open .nav-hamburger {
    position: fixed;
    z-index: 1300;
  }
  #mainNav .pt-trigger-container {
    display: none !important;
  }
  #mainNav.menu-open .pt-trigger-container {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 100%;
    background: rgba(10, 10, 10, 0.96);
    border-bottom: 0;
    z-index: 1200;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
  }
  #mainNav.menu-open .pt-trigger-container ul {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  #mainNav.menu-open .pt-trigger-container li {
    margin: 18px 0 !important;
  }
  #mainNav.menu-open .pt-trigger-container li button {
    font-size: 2.2em !important;
    letter-spacing: 0.22em !important;
    color: #fff !important;
    padding: 14px 18px !important;
    height: auto !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }
}

/* Mobile carousel images use dedicated portrait assets via JS */

/* Landscape on phones: shorter heights — keep messages, button and copyright visible */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .pt-page {
    padding-top: 40px;
  }
  .homepage section {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .homepage .messages {
    height: 96px;
  }
  .homepage .messages h2 {
    font-size: 2.6em;
    line-height: 1.05em;
  }
  .home-contact-cta {
    margin-top: -8px;
  }
  .home-contact-cta button {
    padding: 9px 20px;
    font-size: 0.9em;
  }
  .home-carousel-copyright {
    bottom: 6px;
  }
  .home-carousel-copyright p {
    font-size: 0.62em;
    padding: 4px 8px;
  }
  .info-section {
    padding-top: 70px;
    padding-bottom: 30px;
  }
  .contact .contact-form {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .contact footer {
    padding-bottom: 10px;
  }
  .info footer {
    padding-bottom: 10px;
  }
}

/* Footer/mobile baseline rules were consolidated below to avoid conflicts. */

/* Absolute final alignment lock */
@media (max-width: 992px) {
  .pt-page.contact,
  .pt-page.info {
    min-height: 100vh;
    min-height: 100dvh;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .pt-page.contact,
  .pt-page.info {
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .pt-page.contact .contact-form,
  .pt-page.info .info-section {
    -webkit-box-flex: 1 !important;
    -webkit-flex: 1 0 auto !important;
    -ms-flex: 1 0 auto !important;
    flex: 1 0 auto !important;
    padding-bottom: 0 !important;
  }

  .pt-page.contact footer,
  .pt-page.info footer {
    margin-top: auto !important;
    padding-bottom: 0 !important;
  }

  .pt-page.contact footer .container > .row:first-child,
  .pt-page.info footer .container > .row:first-child {
    margin-bottom: 96px !important;
  }

  .pt-page.contact footer .container > .row:last-child,
  .pt-page.info footer .container > .row:last-child {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0 !important;
    margin: 0 !important;
  }

  /* Ensure mobile scrolling works on transformed page containers */
  .pt-page.contact,
  .pt-page.info {
    -webkit-transform: none !important;
    transform: none !important;
    -webkit-transform-style: flat !important;
    transform-style: flat !important;
  }

  /* Ensure info background covers full page height, not only viewport */
  .pt-page.info,
  .pt-page.info.pt-page-current {
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
}

/* Slightly higher unified copyright baseline on mobile/tablet */
@media (max-width: 992px) {
  .home-carousel-copyright {
    bottom: 8px !important;
  }
  .pt-page footer .container > .row:last-child {
    bottom: 8px !important;
  }
}

@media (max-width: 480px) {
  .home-carousel-copyright {
    bottom: 6px !important;
  }
  .pt-page footer .container > .row:last-child {
    bottom: 6px !important;
  }
}

/* Contact page only: enable body-scroll mode on mobile/tablet */
@media (max-width: 1200px) {
  body:not(.contact-scroll-mode) {
    overflow: hidden !important;
    height: 100% !important;
    min-height: 100% !important;
  }
  body:not(.contact-scroll-mode) .pt-wrapper {
    height: 100% !important;
    min-height: 100% !important;
  }
  body.contact-scroll-mode {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100%;
  }
  body.contact-scroll-mode .pt-wrapper {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }
  body.contact-scroll-mode .pt-page.contact.pt-page-current {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }
  body.contact-scroll-mode .pt-page.info.pt-page-current {
    overflow-y: hidden !important;
  }
  body.contact-scroll-mode .pt-page.contact.pt-page-current footer .container > .row:last-child {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 8px !important;
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  body.contact-scroll-mode .pt-page.contact.pt-page-current footer .container > .row:last-child {
    bottom: 6px !important;
  }
}

/* Smaller copyright text on mobile */
@media (max-width: 767px) {
  .home-carousel-copyright p,
  .pt-page footer .copyright,
  .pt-page footer .copyright-white {
    font-size: 0.68em !important;
  }
}

@media (max-width: 480px) {
  .home-carousel-copyright p,
  .pt-page footer .copyright,
  .pt-page footer .copyright-white {
    font-size: 0.62em !important;
  }
}

/* More breathing room between contact form and contact details on mobile */
@media (max-width: 767px) {
  .pt-page.contact footer,
  body.contact-scroll-mode .pt-page.contact.pt-page-current footer {
    margin-top: 26px !important;
  }
}

@media (max-width: 480px) {
  .pt-page.contact footer,
  body.contact-scroll-mode .pt-page.contact.pt-page-current footer {
    margin-top: 22px !important;
  }
}
