/* Responsive Design - Mobile and Tablet Support */

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-gif-showcase {
        margin-top: 2rem;
    }

    .about-grid,
    .about-grid-two-cols {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .intro-gif-showcase {
        margin-top: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .mobile-nav-links a {
        font-size: 2rem;
    }

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

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

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero .description {
        font-size: 1rem;
    }

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

    .nav-content {
        padding: 1rem;
    }
}

/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

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

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

    .mobile-nav-links a {
        font-size: 2.2rem;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }

    .hero .subtitle {
        font-size: 1.5rem;
    }

    .hero .description {
        font-size: 1.2rem;
    }

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

    .gif-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero .description {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 0.8rem;
    }

    .nav-content {
        padding: 0.8rem;
    }

    .gif-container {
        height: 200px;
    }

    .portfolio-item {
        margin-bottom: 1rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .mobile-nav-links a {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero .description {
        font-size: 0.95rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .portfolio-image,
    .gif-container {
        background-image: linear-gradient(45deg, var(--primary-color), var(--accent-color));
        background-size: cover;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .hero h1,
    .hero .subtitle,
    .hero .description,
    .cta-button {
        opacity: 1 !important;
        animation: none !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu,
    .hamburger,
    .gif-overlay,
    .control-btn {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero {
        background: var(--primary-color) !important;
        color: white !important;
        page-break-after: always;
    }

    .section {
        page-break-inside: avoid;
    }
}