/* ===================================
   Responsive Design - Mobile First
   =================================== */

/* Tablet Styles (768px and below) */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-xl) 0;
        gap: 0;
    }

    .nav-menu li {
        margin: var(--spacing-md) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .name {
        font-size: 2.5rem;
    }

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

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

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-links {
        justify-content: center;
    }

    .profile-image-wrapper {
        width: 280px;
        height: 280px;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

    /* About Stats */
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }    /* Skills Grid */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Certifications Grid */
    .certifications-grid {
        grid-template-columns: 1fr;
    }

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

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

    .contact-details {
        align-items: center;
    }

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

/* Mobile Styles (480px and below) */
@media screen and (max-width: 480px) {
    /* Typography */
    .name {
        font-size: 2rem;
    }

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

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

    /* Spacing */
    .container {
        padding: 0 var(--spacing-sm);
    }

    section {
        padding: var(--spacing-xl) 0;
    }

    /* Hero */
    .hero {
        padding: 5rem 0 3rem;
    }

    .profile-image-wrapper {
        width: 240px;
        height: 240px;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Stats */
    .stat-number {
        font-size: 2.5rem;
    }

    /* Skills */
    .skill-category {
        padding: var(--spacing-lg);
    }

    /* Projects */
    .project-image {
        height: 200px;
    }

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

    .contact-info h3 {
        font-size: 1.5rem;
    }
}

/* Large Desktop (1200px and above) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    .name {
        font-size: 4rem;
    }

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

/* Landscape Mobile */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 0 2rem;
    }

    .profile-image-wrapper {
        width: 200px;
        height: 200px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .social-links,
    .hero-buttons,
    .scroll-indicator,
    .contact-form-wrapper,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }

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

    .project-card,
    .certification-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    :root {
        --text-primary: #e2e8f0;
        --text-secondary: #94a3b8;
        --text-light: #64748b;
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-dark: #000000;
        --border-color: #334155;
    }

    .navbar {
        background-color: rgba(15, 23, 42, 0.95);
    }

    .hero {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }

    .profile-border {
        opacity: 0.7;
    }

    .skill-tag:hover,
    .btn-primary {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }
    */
}
