/* =================================
   RESPONSIVE STYLES
================================= */

/* Large devices (992px and under) */
@media (max-width: 992px) {
  /* Projects Grid */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    gap: 20px;
  }
}

/* Medium devices (768px and under) */
@media (max-width: 768px) {
  /* Layout */
  .container {
    flex-direction: column;
  }

  .card,
  .right-card {
    width: 100%;
    margin-bottom: 20px;
  }

  /* Project Cards */
  .projects-grid {
    max-height: none;
  }

  /* Typography */
  .section-title {
    font-size: 28px;
  }

  .name {
    font-size: 30px;
  }

  .title {
    font-size: 24px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px;
    margin-top: 40px;
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
  }

  .footer-logo,
  .footer-links,
  .footer-contact {
    width: 100%;
    margin-bottom: 25px;
    text-align: center;
  }

  .footer-links h4::after,
  .footer-contact h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links ul li a:hover {
    padding-left: 0;
  }

  .footer-contact p {
    justify-content: center;
  }

  .footer-contact p:hover {
    transform: none;
  }

  .footer-social {
    gap: 15px;
  }

  .footer-social a {
    width: 34px;
    height: 34px;
  }
}

/* Small devices (480px and under) */
@media (max-width: 480px) {
  /* Footer */
  .footer-container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 70px;
    gap: 0;
    flex-direction: column;
    background-color: rgba(43, 45, 66, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    padding: 20px 0;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 16px 0;
  }
}
/* Responsive navigation */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Repositioned Theme Toggle Button */
  .theme-toggle-btn {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    font-size: 18px;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
  }

  .theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Back to Top Button */
  .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
  }

  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 70px;
    gap: 0;
    flex-direction: column;
    background-color: rgba(43, 45, 66, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    padding: 20px 0;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 16px 0;
  }
}

/* =================================
   RESPONSIVE STYLES
================================= */

/* Large devices (992px and under) */
@media (max-width: 992px) {
  /* Projects Grid */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .skills-section {
    padding: 40px 20px;
    margin: 20px;
  }

  .skills-title {
    font-size: 36px;
  }

  .skills-subtitle {
    font-size: 16px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skill-card {
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  .skills-title {
    font-size: 28px;
  }

  .skill-card {
    padding: 20px 15px;
  }

  .skill-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Medium devices (768px and under) */
@media (max-width: 768px) {
  /* Layout */
  .container {
    flex-direction: column;
  }

  .card,
  .right-card {
    width: 100%;
    margin-bottom: 20px;
  }

  /* Project Cards */
  .projects-grid {
    max-height: none;
  }

  /* Typography */
  .section-title {
    font-size: 28px;
  }

  .name {
    font-size: 30px;
  }

  .title {
    font-size: 24px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px;
    margin-top: 40px;
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
  }

  .footer-logo,
  .footer-links,
  .footer-contact {
    width: 100%;
    margin-bottom: 25px;
    text-align: center;
  }

  .footer-links h4::after,
  .footer-contact h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links ul li a:hover {
    padding-left: 0;
  }

  .footer-contact p {
    justify-content: center;
  }

  .footer-contact p:hover {
    transform: none;
  }

  .footer-social {
    gap: 15px;
  }

  .footer-social a {
    width: 34px;
    height: 34px;
  }
}

/* Small devices (480px and under) */
@media (max-width: 480px) {
  /* Footer */
  .footer-container {
    padding: 0 20px;
  }
}
