/* 
 * Responsive Styles
 * Mobile-first approach with progressive enhancement
 */

/* Base styles for mobile (up to 576px) */
@media screen and (max-width: 576px) {
  .container {
    width: 95%;
    padding: 0 var(--spacing-xs);
  }
  
  /* Typography adjustments for small screens */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  /* Mobile navigation */
  .fixed-header {
    padding: 0.8rem 0;
  }
  
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  .menu-toggle.active i:before {
    content: "\f00d"; /* Change to X icon when menu is open */
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: -5px 0 15px var(--shadow);
    transition: right 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav li {
    margin: var(--spacing-sm) 0;
  }
  
  /* Hero section adjustments */
  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .hero-content, .hero-image {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .hero-image {
    margin-bottom: var(--spacing-md);
    justify-content: center;
  }
  
  .profile-photo {
    max-width: 250px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
  }
  
  /* Skills section adjustments */
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  
  /* Projects section adjustments */
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  /* About preview section adjustments */
  .about-preview .container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .about-content {
    text-align: center;
    max-width: 100%;
  }
  
  .about-content .section-title {
    text-align: center;
  }
  
  .about-content .section-title:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .stats-container {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .stat-item {
    width: 100%;
  }
  
  /* Footer adjustments */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-section {
    width: 100%;
    margin-bottom: var(--spacing-md);
  }
  
  .footer-section h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-media {
    justify-content: center;
  }
}

/* Small tablets (577px - 768px) */
@media screen and (min-width: 577px) and (max-width: 768px) {
  .container {
    width: 90%;
  }
  
  /* Navigation */
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: -5px 0 15px var(--shadow);
    transition: right 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav li {
    margin: var(--spacing-sm) 0;
  }
  
  /* Hero section */
  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .hero-content, .hero-image {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .hero-image {
    margin-bottom: var(--spacing-md);
    justify-content: center;
  }
  
  /* About preview section */
  .about-preview .container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .about-content {
    text-align: center;
    max-width: 100%;
  }
  
  .about-content .section-title {
    text-align: center;
  }
  
  .about-content .section-title:after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Medium tablets and laptops (769px - 992px) */
@media screen and (min-width: 769px) and (max-width: 992px) {
  .hero h2 {
    font-size: 3rem;
  }
  
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Laptops and desktops (993px - 1200px) */
@media screen and (min-width: 993px) and (max-width: 1200px) {
  .hero h2 {
    font-size: 3.2rem;
  }
}

/* Extra large screens (1201px and up) */
@media screen and (min-width: 1201px) {
  .container {
    max-width: 1400px;
  }
  
  .hero h2 {
    font-size: 4rem;
  }
}

/* Print styles */
@media print {
  .fixed-header, .hero, footer {
    display: none;
  }
  
  main {
    margin-top: 0;
  }
  
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a, a:visited {
    text-decoration: underline;
  }
  
  .btn {
    border: 1px solid #000;
    padding: 5px 10px;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}