/* Mobile-specific styles for the new design */

@media (max-width: 480px) {
  :root {
    --section-padding: clamp(2rem, 6vw, 4rem);
  }

  .floating-nav {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .nav-container {
    gap: 1rem;
  }

  .brand-text {
    font-size: 1rem;
  }

  .nav-logo {
    width: 28px;
    height: 28px;
  }

  .essays-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .hero-container {
    padding: 0 1rem;
    margin-bottom: var(--section-padding);
    height: 100vh;
    bottom: 0;
  }

  .hero-fullscreen {
    min-height: calc(100vh + 80px);
    padding-bottom:-30px;
    
  }

  /* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) and (max-height: 667px) {
  .hero-fullscreen {
    min-height: calc(100vh + 120px);
    padding-top: 10px;

  }


}

  .hero-title {
    font-size: clamp(2rem, 15vw, 3rem);
    position: absolute !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%);
    margin: 0;
    z-index: 4;
    width: 100%;
  }

  .hero-title1 {
      display: flex;
      flex-direction: column !important;
  }

  .hero-title1 img {
      width: 80%;
  }

  .hero-subtitle {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
    margin-bottom: 1rem;
  }

  .hero-descriptor {
    font-size: clamp(0.875rem, 4vw, 1rem);
    position: relative !important;
    bottom: -57vh !important;
  }

  .hero-cta-container {
    flex-direction: row;
    align-items: center;
    gap: 5px!important;
    bottom: -55vh;
    position: relative;
    z-index: 3;
    
  }

  .hero-cta {
    width: 10rem;
  }

  .hero-roles{
    position: relative !important;
    bottom:-6vh;
  }

  .scroll-indicator{
    bottom: -55vh;
    position: relative !important;
  }

  .cta-button {
    padding: 0.5rem 1rem;
    text-align: center;
    border-radius: 10px;
  }
  .slideshow-container {
    padding: 0 1rem;
  }

  .slide-track {
    gap: 4rem;
  }

  .slide-content {
    min-height: auto;
  }

  .slide-text h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
    margin-bottom: 1rem;
  }

  .slide-text p {
    font-size: clamp(1rem, 4vw, 1.125rem);
    margin-bottom: 1.5rem;
  }

  .slide-meta {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .slide-image {
    aspect-ratio: 3/2;
  }

  .slide-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
    top: -10px;
    right: -10px;
  }

  /* Hero Scroll Indicator Mobile */
  .scroll-indicator {
    margin: 1.5rem 0 0.75rem 0;
  }

  .scroll-arrow {
    height: 25px;
  }

  .profile-container {
    padding: 0 1rem;
  }

  .profile-content {
    padding-top: 1rem;
  }

  .profile-header h2 {
    font-size: clamp(2rem, 10vw, 2.5rem);
  }

  .profile-header h3 {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
  }

  .profile-header h4 {
    font-size: clamp(1rem, 4vw, 1.125rem);
    margin-bottom: 2rem;
  }

  .profile-header a {
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px !important;
    
  }

  .profile-description {
    margin-bottom: 2rem;
  }

  .profile-description p {
    font-size: clamp(1rem, 4vw, 1.125rem);
    margin-bottom: 1rem;
  }

  .philosophy-section h3 {
    font-size: clamp(1.5rem, 7vw, 1.75rem);
    margin-bottom: 1rem;
  }

  .philosophy-section p {
    font-size: clamp(0.875rem, 4vw, 1rem);
    margin-bottom: 1rem;
  }

  

  .profile-img {
    height: 400px;
  }

  .image-frame {
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
  }

  .footer-content {
    padding: 0 1rem;
    gap: 1rem;
  }

  .footer-links {
    gap: 1rem;
  }

  .footer-links a,
  .footer-copyright p {
    font-size: 0.75rem;
  }

  .title-line1 {
    font-size: 3rem;
  }

  /* Essays Page Mobile */
  .essays-hero {
    padding: 6rem 0 3rem;
    margin-top: 4rem;
  }

  .essay-card.featured {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .essay-card.featured .essay-content {
    padding: 2rem;
  }

  .essays-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .essay-card {
    margin-bottom: 0;
  }

  .newsletter-section1{
    padding: 2rem;
    margin: 0 ;
  }

  .newsletter-section {
    padding: 2rem;
    margin: 0 1rem;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
  }

  .newsletter-button {
    padding: 1rem;
  }

  /* Social Follow Section Mobile */
  .social-follow-section {
    padding: 3rem 0;
  }

  .social-links {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-width: 320px;
  }

  .social-link {
    padding: 0.75rem 0.25rem;
  }

  .social-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .social-link span {
    font-size: 0.7rem;
  }

  .social-content h2 {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 0.75rem;
  }

  .social-content p {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    margin-bottom: 2rem;
  }

    .hero-roles {
  margin: 1rem auto;
  width: 90%;
  text-align: center;
  }
  
  .role-list {
    flex-direction: row;
    align-items: center;
  }
  .role-list li:not(:last-child)::after {
    display: none;
}

}

@media (max-width: 320px) {
  .hero-fullscreen {
    height: max-content !important;
    min-height: fit-content;
    padding: 2rem 0;
    margin-bottom: 50rem;
  }


  .hero-title {
    font-size: clamp(1.75rem, 18vw, 2.5rem);
  }

  .slide-track {
    gap: 3rem;
  }

  .slide-text h2 {
    font-size: clamp(1.25rem, 10vw, 1.75rem);
  }

  .profile-header h2 {
    font-size: clamp(1.75rem, 12vw, 2rem);
  }

  .title-line1 {
    font-size: 2rem;
  }

  .hero-roles {
  margin: 1rem auto;
  width: 80%;
  text-align: center;
  }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-fullscreen {
    height: max-content !important;
    min-height: fit-content;
    padding: 2rem 0;
    margin-bottom: 50rem;
  }

  .hero-container {
    padding: 2rem;
  }

  .scroll-indicator {
    bottom: 1rem;
  }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
  .nav-link {
    padding: 0.5rem;
  }

  .essays-btn {
    padding: 0.75rem 1.25rem;
  }

  .mobile-toggle {
    padding: 0.5rem;
  }

  .mobile-toggle span {
    width: 24px;
    height: 3px;
  }

  /* Increase touch targets */
  .footer-links a {
    padding: 0.5rem;
  }
}
