/* Responsive CSS */

/* Base Responsive Styles */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero-section .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: var(--spacing-xl);
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .about-content, .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .about-text {
    order: 1;
  }
  
  .about-cards {
    order: 2;
  }
  
  .project-card.featured {
    grid-template-columns: 1fr;
  }
  
  .project-card.featured .project-image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-nav.active {
    display: block;
  }
  
  .hero-image {
    width: 300px;
    height: 300px;
  }
  
  .orbit:nth-child(5) {
    width: 280px;
    height: 280px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .social-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .copyright {
    text-align: center;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .hero-image {
    width: 250px;
    height: 250px;
  }
  
  .orbit:nth-child(1) {
    width: 100px;
    height: 100px;
  }
  
  .orbit:nth-child(2) {
    width: 140px;
    height: 140px;
  }
  
  .orbit:nth-child(3) {
    width: 180px;
    height: 180px;
  }
  
  .orbit:nth-child(4) {
    width: 220px;
    height: 220px;
  }
  
  .orbit:nth-child(5) {
    width: 240px;
    height: 240px;
  }
  
  .planet {
    width: 40px;
    height: 40px;
    font-size: 0.7rem;
  }
  
  .section-header {
    margin-bottom: var(--spacing-lg);
  }
  
  .tab-btn {
    font-size: 0.9rem;
    padding: var(--spacing-sm);
  }
  
  .carousel-container {
    height: 600px;
  }
  
  .project-card.featured .project-image {
    height: 200px;
  }
  
  .project-card.featured .project-info {
    padding: var(--spacing-md);
  }
  
  .project-card.featured .project-info h3 {
    font-size: 1.3rem;
  }
  
  #scrollToTop {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* Responsive Hero Section */
@media (min-width: 993px) {
  .hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* Responsive Header */
@media (max-width: 76px) {
  #header .container {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .logo a {
    font-size: 1.5rem;
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Responsive Skills Section */
@media (max-width: 576px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive Projects Section */
@media (max-width: 576px) {
  .carousel-prev, .carousel-next {
    width: 30px;
    height: 30px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
  }
}

/* Responsive Contact Section */
@media (max-width: 576px) {
  .contact-form h3, .contact-info h3 {
    font-size: 1.5rem;
  }
  
  input, textarea {
    padding: 10px;
  }
}

/* Responsive Footer */
@media (max-width: 576px) {
  #footer {
    padding: var(--spacing-md) 0;
  }
  
  .social-links a {
    width: 35px;
    height: 35px;
  }
}
