/* Navbar */

@media (max-width: 768px) {
  .auth-buttons {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .auth-buttons {
    width: 100%;
    flex-direction: column; /* Stack vertically on very small screens */
    gap: 0.5rem;
  }

  .btn {
    width: 100%;
    padding: 0.5rem;
  }
}

@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }
  .user-menu {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .search-box {
    width: 120%;
  }
  .nav-main {
    display: none;
  }
}
@media (max-width: 515px) {
  .search-box {
    width: 100%;
  }
}
@media (max-width: 430px) {
  .search-container {
    width: 12rem;
  }
  .logo img {
    width: 3.3rem;
    height: 3rem;
  }
}

/* Hero Page*/
@media (max-width: 1200px) {
  .tech-icons {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 992px) {
  .tech-icons {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .tech-icons {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .tech-icon {
    padding: 0.8rem;
  }

  .tech-icon img {
    width: 42px;
    height: 42px;
  }

  .tech-icon span {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .tech-icons {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }

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

@media (max-width: 400px) {
  .tech-icons {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .tech-icon {
    padding: 0.6rem;
  }

  .tech-icon img {
    width: 36px;
    height: 36px;
  }

  .tech-icon span {
    font-size: 0.8rem;
  }
}

/* No Blog Page */
@media (max-width: 768px) {
  .no-blogs-container {
    padding: 1.5rem;
  }

  .no-blogs-title {
    font-size: 1.75rem;
  }

  .no-blogs-subtitle {
    font-size: 1.1rem;
  }

  .illustration {
    width: 200px;
    height: 150px;
  }

  .apology-card {
    padding: 1.5rem;
  }

  .no-blogs-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .no-blogs-btn {
    width: 100%;
    justify-content: center;
  }
}

/* About Us Page */
@media (max-width: 768px) {
  .about-content,
  .about-content.reverse {
    flex-direction: column;
  }
  .about-image,
  .about-text {
    width: 100%;
  }
}

/* Contact Us Page */
@media (max-width: 992px) {
  .contact-hero {
    height: 50vh;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    height: 45vh;
    min-height: 350px;
    padding: 1.5rem;
  }

  .contact-hero-content h1 {
    margin-bottom: 0.8rem;
  }

  .contact-hero-content p {
    margin-bottom: 1.5rem;
  }

  .contact-hero-buttons {
    gap: 0.8rem;
  }

  .contact-btn-primary,
  .contact-btn-secondary {
    padding: 0.7rem 1.5rem;
    min-width: 160px;
  }
}

@media (max-width: 576px) {
  .contact-hero {
    height: 40vh;
    min-height: 300px;
    padding: 1rem;
  }

  .contact-hero-content h1 {
    margin-bottom: 0.5rem;
  }

  .contact-hero-content p {
    margin-bottom: 1.2rem;
  }

  .contact-hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }

  .contact-btn-primary,
  .contact-btn-secondary {
    width: 100%;
    max-width: 250px;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 400px) {
  .contact-hero {
    min-height: 280px;
  }

  .contact-hero-content h1 {
    font-size: 1.8rem;
  }

  .contact-hero-content p {
    font-size: 1rem;
  }
}

/* Logout Card */
@media (max-width: 576px) {
  .logout-modal-content {
    width: 95%;
  }

  .logout-modal-header {
    padding: 15px;
  }

  .logout-modal-body {
    padding: 20px 15px;
  }

  .logout-modal-footer {
    padding: 10px;
  }

  .logout-modal-btn {
    padding: 10px;
    font-size: 0.9rem;
  }
}

/* Large screens (Desktops - 1025px and above) */
@media (max-width: 1024px) {
  .blog-content h1 {
    font-size: 2.25rem;
  }

  .blog-content h2 {
    font-size: 1.75rem;
  }

  .ql-size-huge {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .blog-content {
    font-size: 1rem;
  }

  .blog-content h1 {
    font-size: 2rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
  }

  .blog-content p {
    font-size: 1rem;
  }

  .ql-size-huge {
    font-size: 1.75rem;
  }

  .ql-size-large {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .blog-content h1 {
    font-size: 1.75rem;
  }

  .blog-content h2 {
    font-size: 1.375rem;
  }

  .ql-size-huge {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
  }

  .blog-content blockquote {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
  }

  .blog-content pre {
    padding: 1rem;
    font-size: 0.8rem;
  }
}

/* Navbar Responsiveness Code*/

/* Hero Section */

@media (max-width: 1024px) {
  .tech-graph {
    display: none;
  }
}

@keyframes blink {
  from,
  to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive styles */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 5rem;
    min-height: auto;
    gap: 3rem;
  }

  .hero-content {
    width: 100%;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 5%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Founder Section Media Query*/

@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
  }

  .founder-img {
    max-width: 150px;
  }

  .founder-description {
    text-align: center;
  }
}

/* Responsive About Section */
@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
  }

  .founder-img {
    max-width: 100%;
  }

  .founder-img img {
    max-width: 200px;
  }

  .founder-description {
    text-align: center;
    max-width: 90%;
  }
}

/* Add responsiveness */
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column; /* Stack content vertically on small screens */
    align-items: center; /* Center align text and icons */
    gap: 10px; /* Add spacing between text and social links */
  }
}

@media (max-width: 480px) {
  .btn-container {
    flex-direction: column;
  }

  .btn-container button {
    width: 100%;
  }
}

/* Responsive Design */

@media screen and (max-width: 768px) {
  .blogs {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .blog {
    padding: 10px;
  }
  .read-now-btn {
    padding: 8px;
  }
}

/* Responsive Design Blogs*/
@media screen and (max-width: 480px) {
  .blogs {
    grid-template-columns: 1fr;
  }

  .read-now-btn {
    padding: 6px;
  }
}

/* --- Reply Section In Comments. --- */
@media (max-width: 768px) {
  .reply {
    padding: 10px;
  }

  .reply-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .right-section {
    align-self: flex-end;
  }

  .reply-box textarea {
    min-height: 60px;
  }
}

/* Delete Comment and Reply */
@media screen and (max-width: 500px) {
  .modal {
    padding: 15px; /* Reduce padding on smaller screens */
  }

  .card-delete-btn,
  .card-cancel-btn {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

/*  Hide Image When Width < 874px In User Sign In and Sign Up */

@media screen and (max-width: 968px) {
  .search-heading h3 span {
    padding: 4px;
  }
}
@media screen and (max-width: 400px) {
  .search-heading h3 span {
    padding: 2px;
  }
}

/* Author Profile */
@media (max-width: 768px) {
  .profile-body {
    flex-direction: column;
    padding: 1.5rem;
  }

  .profile-about,
  .profile-details {
    padding: 0 0 1.5rem 0;
  }
}

/* About Us Heading */
@media (max-width: 600px) {
  .about-section h2::after {
    width: 50px;
    height: 3px;
  }
}

/* Contact Us */
@media (max-width: 768px) {
  .contact-hero {
    height: 50vh;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    height: 40vh;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Sign Up and Login Page */
@media (max-width: 992px) {
  .signup-container,
  .login-container {
    padding: 20px;
  }

  .signup-card,
  .login-card {
    padding: 40px;
  }
  .shape-1,
  .shape-2,
  .shape-3 {
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  .signup-card,
  .login-card {
    padding: 40px 30px;
  }

  .signup-header h1,
  .login-header h1 {
    font-size: 24px;
  }

  .input-wrapper input {
    padding: 12px 16px 12px 44px;
  }

  .social-buttons {
    gap: 12px;
  }

  .social-btn {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .forgot-password {
    align-self: flex-end;
  }
  .signup-card,
  .login-card {
    padding: 32px 24px;
    border-radius: 12px;
  }

  .logo-container {
    margin-bottom: 16px;
  }
}

/* Shake Animation */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}
