/* Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 var(--spacing-md);
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transition: top var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        top: 70px;
    }
    
    .nav-list {
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Experience */
    .experience-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .expertise-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    /* Spacing adjustments */
    :root {
        --spacing-xxl: 3rem;
        --spacing-xl: 2rem;
    }
    
    /* Typography */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    /* Timeline */
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-item::before {
        left: 7px;
        width: 14px;
        height: 14px;
    }
    
    /* Expertise */
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact methods */
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    /* Form */
    .contact-form-wrapper {
        padding: var(--spacing-md);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Medium */
@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Header */
    .nav-brand h1 {
        font-size: 1.25rem;
    }
    
    .nav-brand .tagline {
        font-size: 0.75rem;
    }
    
    /* Hero */
    .hero {
        padding: calc(70px + var(--spacing-lg)) 0 var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .profile-card {
        padding: var(--spacing-md);
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .profile-stats {
        gap: var(--spacing-sm);
    }
    
    .stat h3 {
        font-size: 1.25rem;
    }
    
    /* Sections */
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* About */
    .about-intro .lead {
        font-size: 1.125rem;
    }
    
    /* Services */
    .service-card {
        padding: var(--spacing-sm);
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.25rem;
    }
    
    /* Experience */
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-areas {
        padding: var(--spacing-md);
    }
    
    /* Contact */
    .contact-info > p {
        font-size: 1rem;
    }
    
    .contact-method {
        padding: var(--spacing-sm);
    }
    
    .response-time {
        padding: var(--spacing-sm);
        flex-direction: column;
        text-align: center;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    
    .footer-content {
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    /* Further reduce spacing on very small screens */
    :root {
        --spacing-xxl: 2rem;
        --spacing-xl: 1.5rem;
        --spacing-lg: 1.25rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
    
    .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-xs);
        background: var(--bg-light);
        border-radius: var(--radius-sm);
    }
    
    .contact-form {
        gap: var(--spacing-sm);
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }
    
    .hero {
        padding-top: var(--spacing-lg);
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .section-title {
        color: #000;
        font-size: 18pt;
    }
    
    .service-card,
    .skill-item,
    .value-item {
        break-inside: avoid;
        margin-bottom: var(--spacing-md);
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #0000ff;
        --text-dark: #000;
        --text-light: #000;
        --light-gray: #ccc;
        --medium-gray: #666;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here when needed */
}
