/* Hide mobile menu toggle by default (for larger screens) */
.mobile-menu-toggle {
  display: none;
}

/* Mobile styles for screens ≤ 980px */
@media only screen and (max-width: 980px) {
  /* Reset and Base Styles */
  body {
    font-size: 14px;
    overflow-x: hidden;
  }

  /* Header */
  .header {
    height: 60px;
    padding: 0 20px;
  }

  .header .container {
    width: 100%;
    gap: 20px;
    flex-direction: row;
    justify-content: space-between;
  }

  .container .left {
    gap: 20px;
    flex: none;
  }

  .logo img {
    width: 80px;
    height: auto;
  }

  .nav {
    display: none; /* Hide navigation on mobile */
  }

  .nav a {
    font-size: 12px;
    letter-spacing: 0.3px;
  }

  .contact-btn {
    padding: 8px 16px;
    font-size: 12px;
    letter-spacing: 0.3px;
    height: 28px;
  }

  .header-actions {
    gap: 10px;
  }

  /* Hero Section */
  .hero {
    margin-top: 40px;
    padding-top: 60px;
  }

  .hero .container {
    padding: 0 20px;
  }

  .hero-gallery {
    width: 100%;
    margin-bottom: 30px;
  }

  .gallery-container {
    width: 100%;
    height: 200px;
    gap: 8px;
  }

  .gallery-item {
    border-radius: 15px;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3) {
    background-size: calc(100vw - 40px) 200px;
    animation: unset;
  }

  @keyframes slide-left {
    from {
      transform: translateX(calc(250% + 8px));
      -webkit-transform: translateX(calc(250% + 8px));
      background-position: center 0;
      clip-path: inset(0 20% 0 20% round 15px);
    }

    to {
      transform: translateX(0);
      -webkit-transform: translateX(0);
      background-position: left 0;
      clip-path: inset(0 0 0 0 round 15px);
    }
  }

  @keyframes slide {
    from {
      clip-path: inset(0 35% 0 35% round 15px);
    }

    to {
      clip-path: inset(0 0 0 0 round 15px);
    }
  }

  @keyframes slide-right {
    from {
      transform: translateX(calc(-250% - 8px));
      -webkit-transform: translateX(calc(-250% - 8px));
      background-position: center 0;
      clip-path: inset(0 20% 0 20% round 15px);
    }

    to {
      transform: translateX(0);
      -webkit-transform: translateX(0);
      background-position: right 0;
      clip-path: inset(0 0 0 0 round 15px);
    }
  }

  .hero-content {
    width: 100%;
    margin-top: 20px;
  }

  .hero-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-title-text {
    font-size: 32px;
    line-height: 1.1;
  }

  .here-title-right {
    display: none;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .hero-title-right-text {
    width: auto;
    font-size: 14px;
    margin-right: 0;
    border-bottom: 1px solid #2d6043;
    padding-bottom: 5px;
  }

  .hero-title-right-text::after {
    content: "(professionals only)";
    position: static;
    display: block;
    font-size: 10px;
    opacity: 0.6;
    margin-top: 5px;
  }

  .hero-title-right-contact {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 25px;
  }

  .tagline {
    font-size: 18px;
    line-height: 1.3;
    margin-top: 15px;
  }

  .description {
    font-size: 12px;
    line-height: 16px;
    margin-top: 10px;
    color: rgba(26, 52, 43, 0.6);
  }
  .mobile-contact-us {
    margin-top: 16px;
    display: block !important;
  }

  .hero-title-right-text {
    margin-left: 16px;
  }
  .hero-title-right-text::after {
    display: none;
  }
  /* What We Do Section */
  .what-we-do {
    margin-top: 60px;
  }

  .what-we-do .container {
    width: 100%;
    padding: 0 20px;
  }

  .what-we-do-title {
    font-size: 24px;
    margin-left: 0;
    margin-bottom: 15px;
  }

  .div-intro {
    font-size: 12px;
    line-height: 16px;
    width: 100%;
    margin-left: 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
  }

  .service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .service-content {
    padding: 15px 0;
  }

  .service-content-title {
    font-size: 18px;
    line-height: 1.2;
  }

  .service-content-text {
    font-size: 12px;
    line-height: 16px;
    margin-top: 10px;
    color: rgba(26, 52, 43, 0.6);
  }

  /* Our Approach Section */
  .our-approach {
    margin-top: 60px;
  }

  .our-approach .container {
    width: 100%;
    padding: 0 20px;
    flex-direction: column;
    gap: 30px;
  }

  .our-approach-title {
    font-size: 24px;
    margin-left: 0;
  }

  .our-approach .div-intro {
    width: 100%;
    color: rgba(26, 52, 43, 0.6);
  }

  .approach-grid-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .approach-grid {
    gap: 20px;
    padding: 0 0 20px 0;
  }

  .approach-card {
    width: 250px;
    flex-shrink: 0;
  }

  .approach-card img {
    width: 250px;
    height: 200px;
  }

  .approach-card-content {
    padding: 15px 10px;
  }

  .approach-card-title {
    font-size: 16px;
    line-height: 1.2;
  }

  .approach-card-text {
    font-size: 12px;
    line-height: 16px;
    margin-top: 8px;
    color: rgba(26, 52, 43, 0.6);
  }

  .line-container {
    margin-top: 30px;
    display: none;
  }

  .line-container .line {
    width: 100%;
  }

  /* Team Section */
  .team {
    height: auto;
    margin-top: 60px;
    padding: 40px 0;
  }

  .team .container {
    width: 100%;
    padding: 0 20px;
  }

  .team-header {
    margin-top: 0;
    margin-bottom: 40px;
  }

  .team-title {
    font-size: 24px;
  }

  .team-subtitle {
    font-size: 14px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.6);
  }

  .team-content {
    gap: 40px;
  }

  .team-member {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .member-photo {
    width: 100%;
    height: 200px;
    border-radius: 20px;
    margin: 0 auto;
  }

  .member-photo img {
    width: 180px;
    height: 180px;
  }

  .member-info {
    text-align: left;
  }

  .member-name {
    font-size: 20px;
    align-items: flex-start;
    gap: 8px;
  }

  .member-role {
    font-size: 12px;
    padding: 4px 8px;
  }

  .member-description {
    font-size: 12px;
    line-height: 16px;
    text-align: left;
    color: rgba(255, 255, 255, 0.6);
  }

  /* Investors Section */
  .investors {
    margin-top: 60px;
  }

  .investors .container {
    width: 100%;
    padding: 0 20px;
  }

  .investors-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .investors-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
  }

  .investors-info {
    padding: 0;
  }
  .investors-info-bottom {
    margin-top: 40px;
  }
  .investors-title {
    font-size: 24px;
  }

  .investors-text {
    font-size: 12px;
    line-height: 16px;
    margin-top: 15px;
  }
  .investors-text-mobile {
    color: rgba(26, 52, 43, 0.6);
  }
  .login-btn {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 25px;
  }

  .login-text {
    font-size: 10px;
    line-height: 14px;
    width: 100%;
    margin-top: 15px;
  }

  /* Projects Section */
  .projects {
    margin-top: 60px;
  }

  .projects .container {
    width: 100%;
    padding: 0 20px;
  }

  .projects-title {
    font-size: 24px;
    margin-left: 0;
  }

  .project-intro {
    font-size: 12px;
    line-height: 16px;
    margin-left: 0;
  }

  .projects-grid {
    margin-left: 20px;
    margin-right: 20px;
  }

  .project-card img {
    width: 200px;
    height: 200px;
    border-radius: 20px;
  }

  .project-card:last-child {
    margin-right: 20px;
  }

  .project-card-content {
    padding: 0 5px;
    margin-top: 10px;
  }

  .project-name {
    font-size: 16px;
  }

  .project-read-more {
    font-size: 12px;
  }

  /* Contact Section */
  .contact {
    margin-top: 60px;
  }

  .contact .container {
    width: 100%;
    padding: 0 20px;
    flex-direction: column;
    gap: 30px;
  }

  .contact-left {
    flex: none;
  }

  .contact-title {
    font-size: 24px;
  }

  .contact-intro {
    font-size: 12px;
    line-height: 16px;
    width: 100%;
    color: rgba(26, 52, 43, 0.6);
  }

  .intro-mobile {
    font-size: 16px;
    color: #1a342b;
  }
  .contact-email,
  .contact-investor-email {
    font-size: 12px;
    line-height: 16px;
    margin-top: 15px;
  }

  .contact-left a {
    font-size: 12px;
    line-height: 16px;
  }

  .contact-content {
    width: 100%;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 20px;
  }

  .contact-logo {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
  }

  .contact-form {
    width: 100%;
  }

  .contact-form-top {
    gap: 15px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 25px;
  }

  .contact-form-bottom {
    gap: 15px;
    margin-top: 20px;
  }

  .agree-privacy {
    font-size: 12px;
    margin-left: 16px;
    gap: 8px;
  }

  .agree-privacy .checkbox-custom {
    width: 16px;
    height: 16px;
    border-width: 1.5px;
  }

  .agree-privacy input[type="checkbox"]:checked + .checkbox-custom::after {
    font-size: 10px;
  }

  .btn-reCAPTCHA {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 25px;
  }

  /* Footer */
  .footer {
    margin-top: 60px;
    padding: 30px 20px;
  }

  .footer .container .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-top-links {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 15px;
  }

  .footer-top-links a {
    font-size: 12px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
  }
  .footer-links-pc {
    display: none;
  }
  .footer-links a {
    font-size: 10px;
    line-height: 14px;
  }
  .footer-links-mobile {
    display: flex !important;
  }
  .copyright {
    font-size: 12px;
    margin-top: 10px;
  }

  /* Article page mobile */
  .article {
    margin-top: 40px;
    padding-top: 60px;
  }

  .article .container {
    width: 100%;
    padding: 0 20px;
  }

  .article-title {
    font-size: 24px;
    line-height: 1.2;
  }

  .article-meta {
    font-size: 12px;
  }

  .article-cover {
    margin: 20px 0 15px;
  }

  .article-cover img {
    border-radius: 20px;
  }

  .article-content h2 {
    font-size: 18px;
    margin-top: 25px;
  }

  .article-content p {
    font-size: 12px;
    line-height: 16px;
  }

  .article-quote {
    border-left: 3px solid #2d6043;
    padding-left: 12px;
    margin: 15px 0;
    font-size: 12px;
  }

  /* Hide mobile menu toggle button */
  .mobile-menu-toggle {
    display: none !important;
  }

  /* Utility classes for mobile */
  .mobile-hidden {
    display: none !important;
  }

  .mobile-visible {
    display: block !important;
  }

  /* Responsive images */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Prevent horizontal scroll */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Touch-friendly interactions */

  button,
  input,
  textarea {
    min-height: 44px;
    min-width: 44px;
  }

  /* Improve readability */
  p,
  .description,
  .service-content-text,
  .approach-card-text {
    line-height: 1.5;
  }
}

/* Additional mobile-specific utilities */
@media only screen and (max-width: 480px) {
  .hero-title-text {
    font-size: 28px;
  }

  .what-we-do-title,
  .our-approach-title,
  .team-title,
  .investors-title,
  .projects-title,
  .contact-title {
    font-size: 22px;
  }

  .approach-card,
  .project-card img {
    width: 200px;
  }

  .approach-card img {
    width: 200px;
    height: 160px;
  }
}
