/* Responsive Breakpoints */

/* Extra Large Screens (1440px and up) */
@media (min-width: 1440px) {
  .textbox {
    font-size: 1.2vw;
  }
  
  .textboxdark {
    font-size: 1.2vw;
  }
  
  .textboxdark2 {
    font-size: 1.2vw;
  }
}

/* Large Screens (1200px to 1439px) */
@media (max-width: 1439px) and (min-width: 1200px) {
  .maintext p {
    font-size: 16em;
  }
  
  .textbox {
    font-size: 1.4vw;
  }
  
  .textboxdark {
    font-size: 1.4vw;
  }
  
  .textboxdark2 {
    font-size: 1.4vw;
  }
}

/* Medium-Large Screens (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .nav_bar {
    height: 80px;
  }
  
  .left_section {
    margin-left: 30px;
    font-size: 26px;
  }
  
  .logo {
    height: 50px;
  }
  
  .right_section {
    margin-left: 50px;
    margin-right: 50px;
    max-width: 350px;
  }
  
  .maintext p {
    font-size: 14em;
  }
  
  .textbox {
    font-size: 1.6vw;
    padding-right: 15px;
  }
  
  .textboxdark {
    font-size: 1.6vw;
    padding: 50px;
    padding-top: 100px;
  }
  
  .textboxdark2 {
    font-size: 1.6vw;
    padding: 50px;
  }
  
  .footer {
    padding: 20px 50px;
  }
  
  .tagcloud {
    font-size: 26px;
  }
}

/* Medium Screens (768px to 991px) - Tablet */
@media (max-width: 991px) and (min-width: 768px) {
  /* Hide desktop navigation */
  .right_section {
    display: none !important;
  }
  
  /* Show sidebar navigation */
  .sidebar {
    display: flex !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
  }
  
  .nav_bar {
    height: 70px;
    padding: 0 20px;
  }
  
  .left_section {
    margin-left: 20px;
    font-size: 22px;
  }
  
  .logo {
    height: 45px;
  }
  
  /* Increase parallax height for smaller screens */
  .parallax {
    height: 35vh;
  }
  
  /* Scale background image larger on smaller screens */
  .parallax .bg {
    height: 120vh;
    min-width: 120vw;
  }
  
  .maintext p {
    font-size: 8em;
  }
  
  .content1 {
    flex-direction: column;
    padding: 20px;
  }
  
  .responsive {
    order: 2;
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }
  
  .responsive img {
    max-width: 100%;
    height: auto;
  }
  
  .textbox {
    order: 1;
    font-size: 18px;
    padding: 20px;
    text-align: center;
  }
  
  .textbox h1 {
    font-size: 24px;
  }
  
  .textbox p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .typing h1 {
    font-size: 24px !important;
  }
  
  .textboxdark {
    font-size: 18px;
    padding: 40px 30px;
    padding-top: 80px;
    text-align: center;
  }
  
  .textboxdark h1 {
    font-size: 28px;
  }
  
  .textboxdark p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .textboxdark2 {
    font-size: 18px;
    padding: 40px 30px;
    text-align: center;
  }
  
  .textboxdark2 h1 {
    font-size: 28px;
  }
  
  .textboxdark2 p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .content2 {
    margin-left: 30px;
    margin-right: 30px;
    padding-bottom: 150px;
  }
  
  .content3 {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .spherepadding {
    margin-top: 30px;
  }
  
  .footer {
    padding: 20px 30px;
  }
  
  .container {
    flex-direction: column;
    gap: 30px;
  }
  
  .aboutus {
    width: 100%;
    padding-right: 0;
    margin-right: 0;
  }
  
  .quicklinks {
    width: 100%;
  }
  
  .contact {
    width: 100%;
  }
  
  .tagcloud {
    font-size: 20px;
  }
  
  .slider {
    height: 200px;
  }
  
  .slide {
    height: 150px;
    width: 200px;
  }
}

/* Small Screens (576px to 767px) - Mobile Landscape */
@media (max-width: 767px) and (min-width: 576px) {
  /* Hide desktop navigation */
  .right_section {
    display: none !important;
  }
  
  /* Show sidebar navigation */
  .sidebar {
    display: flex !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
  }
  
  .nav_bar {
    height: 60px;
    padding: 0 15px;
  }
  
  .left_section {
    margin-left: 15px;
    font-size: 18px;
  }
  
  .logo {
    height: 40px;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  /* Increase parallax height for mobile */
  .parallax {
    height: 45vh;
  }
  
  /* Scale background image even larger on mobile */
  .parallax .bg {
    height: 140vh;
    min-width: 140vw;
  }
  
  .maintext p {
    font-size: 5em;
  }
  
  .content1 {
    flex-direction: column;
    padding: 15px;
  }
  
  .responsive {
    order: 2;
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }
  
  .textbox {
    order: 1;
    font-size: 16px;
    padding: 15px;
    text-align: center;
  }
  
  .textbox h1 {
    font-size: 22px;
  }
  
  .textbox p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .typing h1 {
    font-size: 22px !important;
  }
  
  .textboxdark {
    font-size: 16px;
    padding: 30px 20px;
    padding-top: 60px;
    text-align: center;
  }
  
  .textboxdark h1 {
    font-size: 24px;
  }
  
  .textboxdark p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .textboxdark2 {
    font-size: 16px;
    padding: 30px 20px;
    text-align: center;
  }
  
  .textboxdark2 h1 {
    font-size: 24px;
  }
  
  .textboxdark2 p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .content2 {
    margin-left: 20px;
    margin-right: 20px;
    padding-bottom: 100px;
  }
  
  .content3 {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .spherepadding {
    margin-top: 30px;
  }
  
  .btn, .btndark {
    padding: 8px 16px;
    font-size: 16px;
    margin: 8px;
  }
  
  .footer {
    padding: 15px 20px;
  }
  
  .container {
    flex-direction: column;
    gap: 25px;
  }
  
  .aboutus {
    width: 100%;
    padding-right: 0;
    margin-right: 0;
  }
  
  .quicklinks {
    width: 100%;
  }
  
  .contact {
    width: 100%;
  }
  
  .tagcloud {
    font-size: 18px;
  }
  
  .slider {
    height: 180px;
  }
  
  .slide {
    height: 130px;
    width: 180px;
  }
}

/* Extra Small Screens (up to 575px) - Mobile Portrait */
@media (max-width: 575px) {
  /* Hide desktop navigation */
  .right_section {
    display: none !important;
  }
  
  /* Show sidebar navigation */
  .sidebar {
    display: flex !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
  }
  
  .nav_bar {
    height: 55px;
    padding: 0 10px;
  }
  
  .left_section {
    margin-left: 10px;
    font-size: 16px;
    width: auto;
  }
  
  .logo {
    height: 35px;
  }
  
  .logo-text {
    font-size: 1rem;
    left: 50px;
  }
  
  /* Significantly increase parallax height for small screens */
  .parallax {
    height: 55vh;
  }
  
  /* Scale background image much larger on small screens */
  .parallax .bg {
    height: 160vh;
    min-width: 160vw;
  }
  
  .maintext p {
    font-size: 3.5em;
  }
  
  .content1 {
    flex-direction: column;
    padding: 10px;
  }
  
  .responsive {
    order: 2;
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }
  
  .textbox {
    order: 1;
    font-size: 14px;
    padding: 10px;
    text-align: center;
  }
  
  .textbox h1 {
    font-size: 20px;
  }
  
  .textbox p {
    font-size: 13px;
    line-height: 1.6;
  }
  
  .typing h1 {
    font-size: 20px !important;
  }
  
  .textboxdark {
    font-size: 14px;
    padding: 25px 15px;
    padding-top: 50px;
    text-align: center;
  }
  
  .textboxdark h1 {
    font-size: 22px;
  }
  
  .textboxdark p {
    font-size: 13px;
    line-height: 1.6;
  }
  
  .textboxdark2 {
    font-size: 14px;
    padding: 25px 15px;
    text-align: center;
  }
  
  .textboxdark2 h1 {
    font-size: 22px;
  }
  
  .textboxdark2 p {
    font-size: 13px;
    line-height: 1.6;
  }
  
  .content2 {
    margin-left: 15px;
    margin-right: 15px;
    padding-bottom: 80px;
  }
  
  .content3 {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .spherepadding {
    margin-top: 20px;
  }
  
  .btn, .btndark {
    padding: 6px 12px;
    font-size: 14px;
    margin: 6px;
  }
  
  .footer {
    padding: 15px;
  }
  
  .container {
    flex-direction: column;
    gap: 20px;
  }
  
  .aboutus {
    width: 100%;
    padding-right: 0;
    margin-right: 0;
  }
  
  .quicklinks {
    width: 100%;
  }
  
  .contact {
    width: 100%;
  }
  
  .tagcloud {
    font-size: 16px;
  }
  
  .slider {
    height: 150px;
  }
  
  .slide {
    height: 100px;
    width: 150px;
  }
  
  .preload h1 {
    font-size: 60px;
  }
  
  .count {
    font-size: 200px;
  }
  
  /* Adjust sidebar for mobile */
  .sidebar {
    top: 10px;
    right: 10px;
    width: 2.5rem;
  }
  
  .sidebar__link {
    height: 2.5rem;
    width: 2.5rem;
  }
  
  .sidebar__link span {
    font-size: 0.75rem;
    padding: 0.4rem;
  }
}

/* Very Small Screens (up to 400px) */
@media (max-width: 400px) {
  /* Maximize parallax height for very small screens */
  .parallax {
    height: 65vh;
  }
  
  /* Scale background image to maximum on very small screens */
  .parallax .bg {
    height: 180vh;
    min-width: 180vw;
  }
  
  .maintext p {
    font-size: 2.8em;
  }
  
  .textbox {
    font-size: 13px;
  }
  
  .textbox h1 {
    font-size: 18px;
  }
  
  .textbox p {
    font-size: 12px;
  }
  
  .typing h1 {
    font-size: 18px !important;
  }
  
  .textboxdark {
    font-size: 13px;
    padding: 20px 10px;
    padding-top: 40px;
  }
  
  .textboxdark h1 {
    font-size: 20px;
  }
  
  .textboxdark p {
    font-size: 12px;
  }
  
  .textboxdark2 {
    font-size: 13px;
    padding: 20px 10px;
  }
  
  .textboxdark2 h1 {
    font-size: 20px;
  }
  
  .textboxdark2 p {
    font-size: 12px;
  }
  
  .preload h1 {
    font-size: 40px;
  }
  
  .count {
    font-size: 150px;
  }
  
  .tagcloud {
    font-size: 14px;
  }
  
  .slider {
    height: 120px;
  }
  
  .slide {
    height: 80px;
    width: 120px;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .parallax {
    height: 25vh;
  }
  
  .parallax .bg {
    height: 100vh;
    min-width: 100vw;
  }
  
  .maintext p {
    font-size: 3em;
  }
  
  .preload h1 {
    font-size: 50px;
  }
  
  .count {
    font-size: 180px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .maintext p {
    animation: none;
  }
  
  .slide-track {
    animation: none;
  }
}

/* Print styles */
@media print {
  .nav_bar,
  .sidebar,
  .parallax,
  .maintext,
  .slider,
  .footer {
    display: none;
  }
  
  .content1,
  .content2,
  .content3 {
    page-break-inside: avoid;
  }
}