/* mediaqueries.css */
/* Consolidated media queries for responsive design */

/* ==========================================================================
   Breakpoint Variables
   ========================================================================== */
   :root {
    /* These can be referenced in your other CSS if needed */
    --breakpoint-large-desktop: 1200px;
    --breakpoint-desktop: 992px;
    --breakpoint-laptop: 768px;
    --breakpoint-tablet: 576px;
  }
  
  /* ==========================================================================
     Large Desktop (1200px and up)
     ========================================================================== */
  @media (min-width: 1200px) {
    /* Any specific large desktop styles can go here */
    .projects-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  /* ==========================================================================
     Desktop (992px to 1199px)
     ========================================================================== */
  @media (max-width: 1199px) and (min-width: 992px) {
    .projects-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    
    .hero h1 {
      font-size: 3.5rem;
    }
  }
  
  /* ==========================================================================
     Laptop / Small Desktop (768px to 991px)
     ========================================================================== */
  @media (max-width: 991px) and (min-width: 768px) {
    .projects-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
      font-size: 3rem;
    }
    
    .hero p {
      font-size: 1.3rem;
      max-width: 600px;
    }
    
    section {
      padding: 4rem 1.5rem;
    }
    
    section h2 {
      font-size: 2.2rem;
    }
  }
  
  /* ==========================================================================
     Tablet (576px to 767px)
     ========================================================================== */
  @media (max-width: 767px) and (min-width: 576px) {
    /* Header & Navigation */
    header {
      flex-direction: column;
      padding: 1.5rem;
    }
    
    nav ul {
      margin-top: 1.5rem;
    }
    
    nav ul li {
      margin-left: 1rem;
      margin-right: 1rem;
    }
    
    /* Hero Section */
    .hero {
      height: auto;
      min-height: 80vh;
      padding: 2rem 1rem;
    }
    
    .hero h1 {
      font-size: 2.8rem;
    }
    
    .hero p {
      font-size: 1.2rem;
      max-width: 500px;
    }
    
    /* Projects Section */
    .projects-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }
    
    /* General Sections */
    section {
      padding: 3rem 1.5rem;
    }
    
    section h2 {
      font-size: 2rem;
      margin-bottom: 1.5rem;
    }
    
    /* Contact Form */
    .contact-form {
      max-width: 500px;
    }
    
    /* Background Element */
    .pyramid-container {
      width: 60%;
      right: 20%;
    }
  }
  
  /* ==========================================================================
     Mobile Phones (575px and below)
     ========================================================================== */
  @media (max-width: 575px) {
    /* Header & Navigation */
    header {
      flex-direction: column;
      padding: 1rem;
    }
    
    .logo {
      font-size: 1.8rem;
    }
    
    nav ul {
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 1rem;
    }
    
    nav ul li {
      margin: 0.5rem;
    }
    
    nav ul li a {
      font-size: 1rem;
    }
    
    /* Hero Section */
    .hero {
      height: auto;
      min-height: 70vh;
      padding: 2rem 1rem;
    }
    
    .hero h1 {
      font-size: 2.2rem;
    }
    
    .hero p {
      font-size: 1.1rem;
      max-width: 100%;
    }
    
    .cta-button {
      padding: 0.8rem 1.5rem;
      font-size: 1rem;
    }
    
    /* Projects Section */
    .projects-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    
    .project-card {
      max-width: 400px;
      margin: 0 auto;
    }
    
    /* General Sections */
    section {
      padding: 2.5rem 1rem;
    }
    
    section h2 {
      font-size: 1.8rem;
      margin-bottom: 1.2rem;
    }
    
    /* Form Elements */
    .form-group input,
    .form-group textarea {
      padding: 0.6rem;
    }
    
    /* Footer */
    footer {
      padding: 1.5rem 1rem;
      font-size: 0.9rem;
    }
    
    .social-links a {
      width: 35px;
      height: 35px;
    }
    
    /* Background Element */
    .pyramid-container {
      width: 90%;
      right: 5%;
      top: 25%;
    }
    
    .glow-pyramid {
      width: 110%;
      height: 110%;
    }
  }
  
  /* ==========================================================================
     Print Styles (Optional)
     ========================================================================== */
  @media print {
    /* Hide unnecessary elements for printing */
    nav, .cta-button, .contact-form, .social-links, .background-container {
      display: none;
    }
    
    body {
      background-color: white;
      color: black;
    }
    
    .hero h1, section h2, .project-content h3 {
      color: black;
      text-shadow: none;
    }
    
    a {
      text-decoration: underline;
      color: black;
    }
    
    /* Force page breaks where appropriate */
    section {
      page-break-before: always;
    }
    
    .project-card {
      page-break-inside: avoid;
    }
  }
  
  /* ==========================================================================
     Animation Adjustments for Reduced Motion Preference
     ========================================================================== */
  @media (prefers-reduced-motion: reduce) {
    /* Reduce or remove animations for users who prefer reduced motion */
    .glow-pyramid {
      animation: none;
      opacity: 0.5;
    }
    
    .project-card:hover {
      transform: none;
    }
  }
  
  /* ==========================================================================
     Dark Mode Support (Optional)
     ========================================================================== */
  @media (prefers-color-scheme: dark) {
    /* Your site is already dark themed, but this ensures it stays dark 
       if the user's browser tries to apply light styles */
    :root {
      --dark-bg: #121212;
      --medium-gray: #1e1e1e;
    }
  }

/* Add these media queries to your mediaqueries.css file */

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .contact-container {
    max-width: 700px;
  }
}

/* Laptop / Small Desktop (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .contact-container {
    max-width: 600px;
    padding: 2rem;
  }
  
  .social-icon {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }
  
  .email-btn {
    padding: 0.9rem 2.2rem;
    font-size: 1.2rem;
  }
}

/* Tablet (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
     /* Logo size adjustment */
     .logo {
      width: 150px;
      height: 150px;
    }  
  
  /* Hero section adjustments */
    .hero {
      height: auto;
      min-height: 50vh;
      padding: 3rem 1.5rem 2rem 1.5rem;
      margin-top: 0;
    }
    
    .hero h1 {
      font-size: 3rem;
      margin-bottom: 1rem;
    }
    
    .hero p {
      font-size: 1.8rem;
      padding-left: 0.75rem;
    }
    
    .hero p::before {
      width: 2px;
    }
    
    /* Hero decoration adjustment */
    .hero-decoration {
      bottom: 20%;
      right: 30%;
      width: 150px;
      height: 150px;
      opacity: 0.5;
    }
    
    .hero-decoration::before {
      width: 80px;
      height: 80px;
    }  
  
  .contact-container {
    max-width: 500px;
    padding: 1.8rem;
  }
  
  .contact-text p {
    font-size: 1.1rem;
  }
  
  .social-icons {
    gap: 1.2rem;
  }
  
  .social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .email-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }
}

/* Mobile Phones (575px and below) */
@media (max-width: 575px) {
   /* Logo size adjustment */
   .logo {
    width: 120px;
    height: 120px;
  }
  
  /* Header padding reduction */
  header {
    padding: 2rem 1.5rem;
  }
  
  /* Navigation adjustments */
  nav ul li {
    margin-left: 1rem;
  }
  
  nav ul li a {
    font-size: 1.5rem;
  }
  
  /* Hero section adjustments */
  .hero {
    height: auto;
    min-height: 50vh;
    padding: 3rem 1.5rem 2rem 1.5rem;
    margin-top: 0;
  }
  
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1.8rem;
    padding-left: 0.75rem;
  }
  
  .hero p::before {
    width: 2px;
  }
  
  /* Hero decoration adjustment */
  .hero-decoration {
    bottom: 20%;
    right: 30%;
    width: 150px;
    height: 150px;
    opacity: 0.5;
  }
  
  .hero-decoration::before {
    width: 80px;
    height: 80px;
  }

  
  .contact-container {
    max-width: 100%;
    padding: 1.5rem;
  }
  
  .contact-text p {
    font-size: 1rem;
  }
  
  .social-icons {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .email-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }
  
  .pyramid-container {
    width: 10%;    /* Reduced from 20% */
    right: 60%;    /* Moved closer to the edge */
    top: 10%;      /* Moved higher up */
  }

  .glow-pyramid {
    width: 100%;   /* Reduced glow spread */
    height: 10%;
  }
  
  /* Reduce glow intensity for better mobile performance */
  .glow-pyramid {
    filter: drop-shadow(0 0 5px var(--neon-blue))
           drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
  }

  footer {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
  }
}


/* Additional breakpoint for larger phones and small tablets */
@media (min-width: 576px) and (max-width: 767px) {
  .pyramid-container {
    width: 18%;    /* Slightly smaller than desktop */
    right: 25%;
    top: 22%;
  }
  
  .glow-pyramid {
    width: 115%;
    height: 115%;
  }
}

/* Print Styles - Update for new contact section */
@media print {
  .contact-container, .social-icons, .email-btn, .footer-pattern {
    display: none;
  }
}

/* Reduced Motion Preference - Update for new elements */
@media (prefers-reduced-motion: reduce) {
  .social-icon:hover {
    transform: none;
  }
  
  .email-btn::after {
    display: none;
  }
}

/* Responsive adjustments for carousel*/
@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .modal-carousel {
    height: 250px;
  }
  
  .modal-info {
    padding: 1.5rem;
  }
  
  .modal-content {
    width: 95%;
    height: auto;
    max-height: 90vh;
  }
  
  .carousel-button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .modal-header h2 {
    font-size: 1.8rem;
  }
}
