/* ======================================================
   RESPONSIVE CSS
====================================================== */

/* TABLET */
@media (max-width: 991px) {
  html,
  body {
    overflow-x: hidden;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111111;
    padding: 18px 24px;
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mobile-logo {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
  }

  .menu-toggle {
    background: #c8a14a;
    color: #111111;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-menu {
    position: absolute;
    top: 78px;
    right: 24px;
    width: 230px;
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 16px;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .mobile-menu a.active,
  .mobile-menu a:hover {
    color: #c8a14a;
  }

  .section {
    padding: 70px 24px;
  }

  .hero {
    padding: 35px 18px;
  }

  .hero-card {
    width: 100%;
    max-width: 100%;
    padding: 38px 26px;
    overflow: hidden;
  }

  .hero-card h1 {
    font-size: 34px;
    line-height: 1.25;
  }

  .hero-card h2 {
    font-size: 17px;
    line-height: 1.4;
  }

  .hero-top-icon img {
    width: 100px;
    max-width: 100%;
  }

  .hero-img img {
    width: 110px;
    height: 110px;
  }

  .hero-title {
    font-size: 34px;
    line-height: 1.3;
  }

  .title-switch {
    height: 44px;
  }

  .title-track span {
    height: 44px;
  }

  @keyframes titleSlide {
    0%,
    45% {
      transform: translateY(0);
    }

    55%,
    90% {
      transform: translateY(-44px);
    }

    100% {
      transform: translateY(0);
    }
  }

  .about-grid,
  .contact-grid,
  .message-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 30px;
  }

  .services-grid,
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .personal-details {
    grid-template-columns: 1fr;
  }

  .footer-follow {
    font-size: 42px;
  }

  .footer-line {
    width: 100px;
  }

  .footer-social a {
    width: 95px;
    height: 95px;
  }

  .footer-social img {
    width: 52px;
    height: 52px;
  }

  .footer p {
    font-size: 26px;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  .section {
    padding: 50px 14px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .section-heading p {
    font-size: 14px;
  }

  .section-heading span {
    width: 42px;
  }

  .hero {
    padding: 24px 10px;
  }

  .hero-card {
    padding: 28px 14px;
    border-radius: 20px;
  }

  .hero-card h1 {
    font-size: 26px;
  }

  .hero-card h2 {
    font-size: 14px;
  }

  .hero-top-icon img {
    width: 85px;
  }

  .hero-img img {
    width: 95px;
    height: 95px;
  }

  .hero-title {
    display: block;
    font-size: 22px;
    line-height: 1.3;
  }

  .title-switch {
    display: block;
    width: 100%;
    height: 58px;
    overflow: hidden;
    margin-top: 4px;
  }

  .title-track span {
    height: 58px;
    display: flex;
    align-items: flex-start;
    font-size: 22px;
    line-height: 1.3;
    white-space: normal;
  }

  @keyframes titleSlide {
    0%,
    45% {
      transform: translateY(0);
    }

    55%,
    90% {
      transform: translateY(-58px);
    }

    100% {
      transform: translateY(0);
    }
  }

  .about-info h3,
  .contact-info h3 {
    font-size: 26px;
  }

  .services-grid,
  .skills-grid,
  .personal-details {
    grid-template-columns: 1fr;
  }

  .service-card,
  .skill-group,
  .contact-form {
    padding: 28px;
  }

  .skill-item {
    grid-template-columns: 34px 1fr 105px;
    column-gap: 12px;
  }

  .skill-item img {
    width: 34px;
    height: 34px;
  }

  .skill-item span {
    font-size: 15px;
  }

  .skill-level {
    width: 105px;
  }

  .skill-level::before {
    font-size: 16px;
    letter-spacing: 3px;
  }

  .project-card img {
    height: 200px;
  }

  .primary-btn,
  .secondary-btn,
  .project-btn {
    width: 100%;
  }

  .testimonial-banner {
    height: 150px;
  }

  .testimonial-profile {
    top: 105px;
    left: 22px;
  }

  .testimonial-profile img {
    width: 72px;
    height: 72px;
  }

  .testimonial-content {
    padding: 54px 22px 24px;
  }

  .testimonial-content h3 {
    font-size: 22px;
  }

  .message-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .message-contact-social {
    display: grid;
    grid-template-columns: repeat(3, 42px);
    gap: 12px;
  }

  .message-contact-social a {
    width: 42px;
    height: 42px;
  }

  .message-contact-social img {
    width: 18px;
    height: 18px;
  }

  .footer {
    padding: 28px 12px 18px;
    overflow: hidden;
  }

  .footer-follow-wrap {
    gap: 14px;
  }

  .footer-follow {
    font-size: 28px;
  }

  .footer-line {
    width: 55px;
  }

  .footer-line::after {
    width: 10px;
    height: 10px;
    right: -6px;
  }

  .footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 auto 14px;
  }

  .footer-social a {
    width: 70px;
    height: 70px;
  }

  .footer-social img {
    width: 34px;
    height: 34px;
  }

  .footer p {
    font-size: 16px;
  }
}

/* SMALL MOBILE */
@media (max-width: 575px) {
  html,
  body {
    overflow-x: hidden;
  }

  .main-content {
    width: 100%;
    overflow-x: hidden;
  }

  .hero {
    padding: 95px 14px 40px;
    min-height: auto;
  }

  .hero-card {
    width: 100%;
    max-width: 100%;
    padding: 28px 16px;
    overflow: hidden;
  }

  .hero-img {
    display: flex;
    justify-content: center;
  }

  .hero-img img {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: cover;
    border-radius: 150px !important;
    border: 2px solid #c8a14a;
    margin: 0 auto;
  }

  .hero-title {
    display: block;
    font-size: 28px;
    line-height: 1.25;
    word-break: normal;
  }

  .title-switch {
    display: block;
    height: 40px;
    max-width: 100%;
  }

  .title-track span {
    height: 40px;
    font-size: 28px;
    white-space: normal;
  }

  @keyframes titleSlide {
    0%,
    45% {
      transform: translateY(0);
    }

    55%,
    90% {
      transform: translateY(-40px);
    }

    100% {
      transform: translateY(0);
    }
  }

  .about-info p {
    font-size: 16px;
    line-height: 1.8;
  }

  .about-image img {
    border-radius: 24px;
  }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 480px) {
  .mobile-header {
    padding: 15px 18px;
  }

  .mobile-menu {
    right: 18px;
    width: calc(100vw - 36px);
  }

  .hero-card h1 {
    font-size: 32px;
  }

  .hero-card h2 {
    font-size: 16px;
  }

  .primary-btn,
  .secondary-btn,
  .project-btn {
    width: 100%;
  }

  .hero-actions,
  .about-buttons {
    flex-direction: column;
  }
}
