/* ========================================
   Responsive Styles - Artisan Portfolio
   ======================================== */

/* Large Desktop */
@media (max-width: 1400px) {
  :root {
    --container-padding: 1.5rem;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .hero-container {
    gap: var(--space-3xl);
  }

  .hero-portrait {
    max-width: 380px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    gap: var(--space-lg);
  }

  .pricing-card.featured {
    transform: scale(1);
  }
}

/* Tablet */
@media (max-width: 992px) {
  :root {
    --fs-hero: clamp(2.5rem, 6vw, 4rem);
  }

  /* Navigation */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg);
    border-left: 1px solid var(--color-border);
    padding: var(--space-5xl) var(--space-2xl);
    transition: right var(--transition-base);
    z-index: var(--z-fixed);
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .nav-link {
    font-size: var(--fs-lg);
  }

  .nav-toggle {
    display: flex;
    z-index: calc(var(--z-fixed) + 1);
  }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

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

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-image-wrapper {
    margin: 0 auto;
  }

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

  .hero-social {
    display: none;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .about-image {
    text-align: center;
  }

  .about-image-wrapper {
    display: inline-block;
  }

  .experience-badge {
    right: 0;
  }

  /* Resume */
  .resume-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-item.large {
    grid-column: span 1;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    order: -1;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  :root {
    --space-5xl: 5rem;
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }

  /* Section */
  .section-title {
    font-size: var(--fs-3xl);
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* About Info */
  .about-info {
    grid-template-columns: 1fr;
  }

  .about-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Hero */
  .hero-title {
    font-size: var(--fs-4xl);
  }

  .hero-portrait {
    max-width: 300px;
  }

  .hero-image-frame {
    top: -10px;
    right: -10px;
  }

  .hero-image-decoration {
    width: 100px;
    height: 100px;
    bottom: -15px;
    left: -15px;
  }

  /* Video Section */
  .video-section {
    height: 400px;
  }

  .video-play-btn {
    width: 80px;
    height: 80px;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile Small */
@media (max-width: 576px) {
  :root {
    --container-padding: 1rem;
  }

  .hero {
    padding: var(--space-4xl) 0 var(--space-3xl);
  }

  .hero-title {
    font-size: var(--fs-3xl);
  }

  .hero-subtitle {
    font-size: var(--fs-lg);
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero-portrait {
    max-width: 250px;
  }

  /* Testimonials */
  .testimonial-content {
    padding: var(--space-lg);
  }

  .testimonial-text {
    font-size: var(--fs-base);
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }

  .author-info {
    text-align: center;
  }

  /* Cards */
  .service-card,
  .pricing-card {
    padding: var(--space-xl);
  }

  /* Timeline */
  .timeline {
    padding-left: var(--space-lg);
  }

  .timeline-marker {
    left: calc(-1 * var(--space-lg) - 5px);
  }

  .timeline-content {
    padding: var(--space-md);
  }

  /* About */
  .about-image-border {
    top: 10px;
    left: 10px;
  }

  .about-image-accent {
    width: 60px;
    height: 60px;
    bottom: -10px;
    right: -10px;
  }

  .experience-badge {
    bottom: 20px;
    right: -10px;
    padding: var(--space-md);
  }

  .exp-number {
    font-size: var(--fs-2xl);
  }

  /* Back to top */
  .back-to-top {
    width: 40px;
    height: 40px;
    right: 1rem;
    bottom: 1rem;
  }

  /* Video */
  .video-section {
    height: 300px;
  }

  .video-title {
    font-size: var(--fs-xl);
  }

  .video-play-btn {
    width: 60px;
    height: 60px;
    font-size: var(--fs-base);
  }

  /* Contact */
  .contact-form-wrapper {
    padding: var(--space-lg);
  }

  /* Scroll indicator */
  .scroll-indicator {
    display: none;
  }

  /* Portfolio filter */
  .portfolio-filter {
    gap: var(--space-xs);
  }

  .filter-btn {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--fs-xs);
  }
}

/* Mobile Extra Small */
@media (max-width: 400px) {
  .hero-portrait {
    max-width: 200px;
  }

  .about-portrait {
    max-width: 280px;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--fs-xs);
  }
}

/* Height based queries */
@media (max-height: 700px) {
  .hero {
    min-height: auto;
    padding: var(--space-5xl) 0;
  }

  .scroll-indicator {
    display: none;
  }
}

/* Landscape mobile */
@media (max-width: 992px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-4xl) 0;
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .hero-greeting {
    justify-content: flex-start;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-portrait {
    max-width: 250px;
  }
}

/* Print styles */
@media print {
  .header,
  .hero-social,
  .scroll-indicator,
  .back-to-top,
  .video-section,
  .preloader,
  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }

  .section {
    break-inside: avoid;
    padding: 2rem 0;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
