/* ===== RESPONSIVE STYLES ===== */

/* Tablets e dispositivos médios (768px - 1024px) */
@media (max-width: 1024px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-menu {
    gap: 2rem;
  }

  .logo {
    font-size: clamp(3rem, 8vw, 6rem);
  }

  .vertical-title {
    font-size: 3rem;
    margin-bottom: 3rem;
  }

  .projects-container {
    padding: 0 1.5rem;
  }

  .project-card {
    gap: 2rem;
    max-width: 900px;
  }

  .project-image {
    height: 380px;
  }

  .project-info {
    padding: 1.8rem;
    min-height: 350px;
  }

  .project-title {
    font-size: 1.9rem;
  }

  .project-subtitle {
    font-size: 1.1rem;
  }

  .description-box {
    padding: 2.5rem;
  }

  .description-box p {
    font-size: 1rem;
  }

  .splide__slide img {
    height: 380px;
  }

  #projectsCarousel .splide__arrow {
    width: 55px;
    height: 55px;
  }

  /* Dev cards em tablets */
  .dev-image-container {
    height: 260px;
  }
}

/* Tablets pequenos e smartphones grandes (481px - 768px) */
@media (max-width: 768px) {
  /* Navbar mobile */
  .navbar {
    padding: 1rem;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Hero section */
  .main-content {
    padding: 1.5rem;
  }

  .intro-text {
    font-size: 1rem;
    text-align: center;
  }

  .logo {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }

  /* Scroll indicator */
  .scroll-indicator {
    bottom: 1.5rem;
    font-size: 0.8rem;
  }

  .arrow {
    font-size: 1.5rem;
  }

  /* Sections */
  .section {
    padding: 4rem 1.5rem;
  }

  #projetos-tcc {
    padding: 6rem 1.5rem;
  }

  #fotos,
  #agradecimentos {
    padding: 3rem 1.5rem;
  }

  /* Description box */
  .description-box {
    padding: 2rem;
    border-radius: 16px;
  }

  .description-box p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
  }

  /* Carousel section */
  .carousel-section {
    padding: 3rem 1.5rem;
  }

  .carousel-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 0.6rem;
  }

  .devs-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  /* Dev cards */
  .dev-image-container {
    height: 240px;
  }

  .dev-info {
    padding: 0.9rem;
  }

  .dev-name {
    font-size: 1rem;
  }

  .dev-role {
    font-size: 0.8rem;
  }

  .dev-description {
    font-size: 0.8rem;
  }

  /* Projects section */
  .projects-container {
    padding: 0 1rem;
  }

  .vertical-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    letter-spacing: 0.1em;
  }

  .vertical-title span {
    margin-bottom: 0.15rem;
  }

  /* Project cards - layout vertical */
  .project-card {
    flex-direction: column;
    gap: 0;
    max-width: 100%;
  }

  .project-image-container {
    width: 100%;
    min-width: 100%;
    height: auto;
  }

  .project-image {
    width: 100%;
    height: 300px;
    border-radius: 16px 16px 0 0;
    object-fit: cover;
  }

  .project-info {
    padding: 1.5rem;
    text-align: center;
    border-radius: 0 0 16px 16px;
    min-height: auto;
  }

  .project-title {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
  }

  .project-subtitle {
    font-size: 1rem;
  }

  .project-members {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
  }

  .project-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .project-link,
  .project-details-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Carousel de projetos */
  #projectsCarousel {
    padding: 1.5rem 0;
  }

  #projectsCarousel .splide__track {
    padding: 0.8rem 0;
  }

  #projectsCarousel .splide__arrow {
    width: 45px;
    height: 45px;
  }

  #projectsCarousel .splide__pagination {
    bottom: -2.5rem;
  }

  #projectsCarousel .splide__pagination__page {
    width: 10px;
    height: 10px;
  }

  /* Teacher carousel */
  .splide__slide img {
    height: 350px;
  }

  .slide-overlay {
    padding: 1.2rem;
  }

  .person-name {
    font-size: 1.3rem;
  }

  .person-role {
    font-size: 0.85rem;
  }

  .person-description {
    font-size: 0.85rem;
  }

  /* Modal */
  .project-modal {
    padding: 1rem;
  }

  .modal-content {
    margin: 1rem auto;
    border-radius: 16px;
  }

  .close-modal {
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }

  .modal-header {
    padding: 2rem 1.5rem;
  }

  .modal-title {
    font-size: 1.8rem;
  }

  .modal-subtitle {
    font-size: 1rem;
  }

  .modal-members {
    font-size: 0.9rem;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .detail-section {
    margin-bottom: 1.5rem;
  }

  .detail-section h3 {
    font-size: 1.2rem;
  }

  .detail-section p {
    font-size: 0.9rem;
  }

  .modal-footer {
    padding: 1.5rem;
  }

  .modal-tags {
    gap: 0.4rem;
    margin-bottom: 1.5rem;
  }

  .modal-tags span {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .modal-back-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Footer */
  .site-footer {
    padding: 2.5rem 1.5rem;
  }

  .footer-text {
    font-size: 1.3rem;
  }

  .footer-year {
    font-size: 0.85rem;
  }

  /* Spotlights */
  .spotlight {
    width: 200px;
    height: 200px;
    filter: blur(80px);
  }
}

/* Smartphones (320px - 480px) */
@media (max-width: 480px) {
  /* Hero */
  .intro-text {
    font-size: 0.9rem;
  }

  .logo {
    font-size: clamp(2rem, 15vw, 4rem);
  }

  /* Sections */
  .section {
    padding: 3rem 1rem;
  }

  #projetos-tcc {
    padding: 5rem 1rem;
  }

  #fotos,
  #agradecimentos {
    padding: 2.5rem 1rem;
  }

  /* Description box */
  .description-box {
    padding: 1.5rem;
  }

  .description-box p {
    font-size: 0.9rem;
  }

  /* Carousel section */
  .carousel-section {
    padding: 2.5rem 1rem;
  }

  .carousel-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .devs-subtitle {
    font-size: 0.85rem;
  }

  /* Dev cards */
  .dev-image-container {
    height: 220px;
  }

  .dev-info {
    padding: 0.8rem;
  }

  .dev-name {
    font-size: 0.95rem;
  }

  .dev-role {
    font-size: 0.75rem;
  }

  .dev-description {
    font-size: 0.75rem;
  }

  /* Projects */
  .vertical-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .project-image {
    height: 250px;
  }

  .project-info {
    padding: 1.2rem;
  }

  .project-title {
    font-size: 1.4rem;
  }

  .project-subtitle {
    font-size: 0.95rem;
  }

  .project-members {
    font-size: 0.8rem;
  }

  .project-link,
  .project-details-btn {
    padding: 0.75rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Carousel */
  #projectsCarousel .splide__arrow {
    width: 40px;
    height: 40px;
  }

  #projectsCarousel .splide__pagination {
    bottom: -2rem;
  }

  /* Teacher carousel */
  .splide__slide img {
    height: 300px;
  }

  .slide-overlay {
    padding: 1rem;
  }

  .person-name {
    font-size: 1.1rem;
  }

  .person-role {
    font-size: 0.8rem;
  }

  .person-description {
    font-size: 0.8rem;
  }

  /* Modal */
  .modal-header {
    padding: 1.5rem 1rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-subtitle {
    font-size: 0.95rem;
  }

  .modal-body {
    padding: 1.5rem 1rem;
  }

  .detail-section h3 {
    font-size: 1.1rem;
  }

  .detail-section p {
    font-size: 0.85rem;
  }

  .modal-footer {
    padding: 1rem;
  }

  .modal-tags span {
    font-size: 0.75rem;
  }

  /* Footer */
  .site-footer {
    padding: 2rem 1rem;
  }

  .footer-text {
    font-size: 1.1rem;
  }

  .footer-year {
    font-size: 0.8rem;
  }

  /* Spotlights */
  .spotlight {
    width: 150px;
    height: 150px;
    filter: blur(60px);
    opacity: 0.2;
  }
}

/* Dispositivos muito pequenos (até 320px) */
@media (max-width: 320px) {
  .logo {
    font-size: 2rem;
  }

  .vertical-title {
    font-size: 1.5rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .carousel-title {
    font-size: 1.3rem;
  }

  #projectsCarousel .splide__arrow {
    width: 35px;
    height: 35px;
  }
}

/* Landscape em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
  .main-content {
    min-height: auto;
    padding: 4rem 2rem;
  }

  .logo {
    font-size: 3rem;
  }

  .scroll-indicator {
    display: none;
  }

  .section {
    min-height: auto;
  }

  .project-image {
    height: 280px;
  }

  .splide__slide img {
    height: 280px;
  }
}