/* Responsive styles for mobile devices */

/* Mobile first approach - default styles */
@media screen and (max-width: 768px) {
  .main-header {
    height: auto;
    padding: 15px 0;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .logo {
    font-size: 42px;
  }

  .owner-name {
    font-size: 28px;
    margin-left: 0;
    text-align: center;
  }

  /* Mobile menu button */
  .menu-toggle {
    display: none;
  }

  /* Navigation menu - hidden by default on mobile */
  .main-menu {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 20px;
  }

  .main-menu ul {
    flex-direction: column;
    text-align: center;
    background: rgba(0, 51, 64, 0.9);
    border-radius: 10px;
    padding: 10px 0;
  }

  .main-menu li {
    margin: 5px 0;
  }

  .main-menu a {
    display: block;
    height: auto;
    line-height: 24px;
    color: #839496;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
  }

  /* Social icons - hidden on mobile, shown in menu */
  .social-icons {
    display: none;
  }

  /* Hero section */
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .profile-photo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
  }

  .hero-section h1 {
    font-size: 32px;
  }

  .description {
    font-size: 14px;
    padding: 0 20px;
  }

  /* Technology icons - smaller on mobile */
  .tech-icons {
    gap: 15px;
    margin-top: 20px;
  }

  .tech-icons img {
    max-width: 100px;
  }

  /* About section */
  .about-content dl {
    gap: 10px;
  }

  .about-content dt {
    font-size: 14px;
  }

  .about-content dd {
    font-size: 13px;
  }

  /* Portfolio section */
  .carousel-slides {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: wrap;
    justify-content: center;
  }

  .project-card {
    min-width: 250px;
    height: 180px;
  }

  /* Carousel buttons - centered on mobile */
  .carousel-btn {
    position: static;
    transform: none;
    margin: 20px auto;
    display: block;
  }

  .prev-btn,
  .next-btn {
    left: auto !important;
    right: auto !important;
  }

  /* Contact section */
  .contact-container {
    flex-direction: column;
    gap: 30px;
  }

  .contact-form {
    width: 100%;
  }

  .contact-info {
    width: 100%;
  }

  /* Footer */
  .main-footer {
    padding: 30px 20px;
  }

  .footer-logo {
    margin-bottom: 20px;
  }

  .footer-menu ul {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
  }
}

/* Tablet styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .main-header {
    padding: 30px 0;
  }

  .header-content {
    max-width: 750px;
  }

  .logo {
    font-size: 50px;
  }

  /* Menu adjustments */
  .main-menu ul {
    gap: 3px;
  }

  .main-menu a {
    padding: 0 12px;
    font-size: 11px;
  }

  /* Hero section - smaller on tablet */
  .profile-photo {
    width: 230px;
    height: auto;
  }

  .tech-icons img {
    max-width: 120px;
  }

  /* Carousel - fewer items visible */
  .carousel-slides {
    gap: 20px;
  }

  .project-card {
    min-width: 280px;
  }
}

/* Desktop styles (original) */
@media screen and (min-width: 1025px) {
  /* Restore original desktop layout */
  .header-content {
    max-width: 940px;
  }

  .main-menu {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    width: 940px;
  }

  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }

  .prev-btn {
    left: -25px;
  }

  .next-btn {
    right: -25px;
  }
}

/* Small mobile screens */
@media screen and (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .logo {
    font-size: 36px;
  }

  .owner-name {
    font-size: 24px;
  }

  .hero-section h1 {
    font-size: 28px;
  }

  .tech-icons img {
    max-width: 70px;
  }

  .project-card {
    min-width: 100%;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Print styles */
@media print {
  .menu-toggle,
  .social-icons,
  .carousel-btn,
  .project-modal {
    display: none !important;
  }

  body {
    background-color: #fff;
    color: #000;
  }

  .main-header,
  .main-footer {
    background-color: transparent;
    padding: 20px 0;
  }
}
