/* Comprehensive Mobile Optimizations */

@media (max-width: 768px) {
  /* Navigation */
  .site-header {
    padding: 0.75rem 4vw;
  }
  
  .logo {
    font-size: 0.8rem;
  }
  
  .nav {
    gap: 1rem;
  }
  
  .nav a {
    font-size: 0.9rem;
  }
  
  /* Hero Section */
  .hero {
    min-height: 70vh;
    padding: 60px 8vw 0 8vw;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 1rem;
  }
  
  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Sections */
  .section {
    padding: 3rem 8vw;
    margin-top: 1rem;
    text-align: center;
  }
  
  .section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    text-align: center;
  }
  
  /* About Section */
  .about-text {
    text-align: center;
  }
  
  .about-section {
    margin-bottom: 1.5rem;
  }
  
  .about-section p {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .about-photo {
    text-align: center;
    margin: 2rem auto 0;
    max-width: 300px;
  }
  
  .about-photo img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
  }
  
  /* Work Section - Mobile Slide System */
  .portfolio-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .slides-container {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
    width: 100%;
    height: auto;
  }
  
  .grid {
    display: flex;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    flex-shrink: 0;
    min-height: 400px;
  }
  
  .card {
    flex: 0 0 100%;
    margin: 0;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 400px;
  }
  
  .card.active {
    opacity: 1;
  }
  
  .card-img {
    width: 100%;
    overflow: hidden;
    flex: 1;
    min-height: 250px;
  }
  
  .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  /* Slide Navigation */
  .slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 0.9rem;
  }
  
  .slide-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
  }
  
  .slide-nav.prev-slide {
    left: 1rem;
  }
  
  .slide-nav.next-slide {
    right: 1rem;
  }
  
  /* Slide Indicators */
  .slide-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
  }
  
  .slide-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .slide-indicator.active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
  }
  
  .card-text {
    padding: 1rem;
    text-align: center;
  }
  
  .card-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .card-text p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* Contact Section */
  .contact-list {
    text-align: center;
    gap: 1rem;
    justify-content: center;
  }
  
  .contact-list li {
    font-size: 0.95rem;
    text-align: center;
  }
  
  .contact-form {
    max-width: 100%;
    text-align: center;
  }
  
  .form-group {
    margin-bottom: 1rem;
    text-align: left;
  }
  
  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: left;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 1rem;
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .form-group textarea {
    min-height: 120px;
  }
  
  .contact-form .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 4vw;
    text-align: center;
  }
  
  .footer p {
    font-size: 0.9rem;
  }
  
  /* General centering for all sections */
  .section > * {
    text-align: center;
  }
  
  .section p {
    text-align: center;
    max-width: 100%;
  }
  
  .section h3 {
    text-align: center;
  }
  
  /* To Top Button */
  .to-top-btn {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
  
  /* Typing Animation */
  .typing-text {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  
  /* Disable some hover effects on mobile */
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  /* Extra Small Mobile */
  .site-header {
    padding: 0.5rem 3vw;
  }
  
  .nav {
    gap: 0.75rem;
  }
  
  .nav a {
    font-size: 0.85rem;
  }
  
  .hero {
    min-height: 60vh;
    padding: 50px 3vw 0 3vw;
  }
  
  .hero-text h1 {
    font-size: clamp(1.5rem, 10vw, 2rem);
  }
  
  .section {
    padding: 2rem 8vw;
    text-align: center;
  }
  
  .section h2 {
    font-size: 1.3rem;
    padding: 0 1rem;
    text-align: center;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .card img {
    height: 180px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.6rem;
    font-size: 0.95rem;
  }
  
  .form-group textarea {
    min-height: 100px;
  }
  
  .to-top-btn {
    bottom: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 50vh;
  }
  
  .section {
    padding: 2rem 4vw;
  }
}
