/* Responsive Styles for Portfolio Website */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .profile-placeholder {
    width: 250px;
    height: 250px;
    font-size: 6rem;
  }
}

@media (max-width: 1200px) {
    body {
        font-size: 16px;
    }

    header {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .portfolio-item {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 5%;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .profile-container {
    margin-top: 2rem;
  }
  
  .section h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .skills-container {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
    header {
        text-align: center;
    }

    nav {
        display: block;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }

    .portfolio-item {
        flex: 1 1 100%;
    }

    .contact-form {
        flex-direction: column;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .header {
    padding: 1rem;
  }
  
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background-color: var(--card-bg);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar.active {
    right: 0;
  }
  
  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.25rem;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .portfolio-item img {
        width: 100%;
        height: auto;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .profile-placeholder {
    width: 200px;
    height: 200px;
    font-size: 5rem;
  }
  
  main {
    padding: 1.5rem;
  }
  
  section {
    margin-bottom: 3rem;
  }
  
  section h2 {
    font-size: 1.5rem;
  }
  
  .skill-card {
    padding: 1.5rem;
  }
  
  .cv-contact-section {
    padding: 1.5rem;
  }
  
  .cv-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .cv-profile-image {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
  
  .cv-social-links {
    justify-content: center;
  }
  
  .project-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
  }
}