/* Additional Responsive Design Rules */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content,
    .contact-content {
        gap: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .project-categories {
        gap: 0.75rem;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 70px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .profile-photo {
        width: 250px;
        height: 250px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .about,
    .experience,
    .projects,
    .skills,
    
    .contact {
        padding: 60px 0;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-container {
        padding: 1rem 0;
    }
    
    .timeline-line {
        left: 30px;
        transform: none;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 2rem;
    }
    
    .timeline-marker {
        min-width: 60px;
        margin-right: 1rem;
    }
    
    .timeline-content {
        max-width: none;
        margin: 0;
        flex: 1;
    }
    
    .experience-grid {
        gap: 1rem;
    }
    
    .experience-header {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .experience-logo {
        width: 50px;
    }
    
    .project-categories {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .category-btn {
        width: 100%;
        max-width: 200px;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
        height: 50px;
    }
    
    .experience-info h3 {
        font-size: 1rem;
    }
    
    .experience-info h4 {
        font-size: 0.9rem;
    }
    
    .experience-toggle {
        width: 35px;
        height: 35px;
    }
    
    .project-card {
        margin: 0 10px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1.5rem;
    }
    
    .skill-item {
        padding: 1rem;
    }
    
    .skill-item i {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Mobile Large */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .experience-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .experience-logo {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .experience-toggle {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .experience-card {
        position: relative;
    }
    
    .timeline-date-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .timeline-dot {
        width: 16px;
        height: 16px;
    }
    
    .region-filter {
        margin-bottom: 2rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .region-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .timeline-content {
        padding: 1.2rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact-details {
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .about-content,
    .contact-content {
        gap: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .timeline-content h4 {
        font-size: 1rem;
    }
    
    .project-content h3 {
        font-size: 1.3rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
    
    .project-categories {
        gap: 0.25rem;
    }
    
    .category-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        max-width: 150px;
    }
    
    .skills-category h3 {
        font-size: 1.3rem;
    }
    
    .skill-item {
        padding: 0.8rem;
    }
    
    .skill-item i {
        font-size: 1.8rem;
    }
    
    .skill-item span {
        font-size: 0.9rem;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .profile-photo {
        width: 180px;
        height: 180px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-container {
        padding: 0 10px;
    }
    
    .about,
    .experience,
    .projects,
    .skills,
    .contact {
        padding: 50px 0;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-photo,
    .about-image img,
    .project-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .scroll-indicator,
    .contact-form,
    .social-links,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 20px 0;
    }
    
    .section-title::after {
        display: none;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .project-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .skill-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .timeline-item,
    .project-card,
    .skill-item {
        page-break-inside: avoid;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a202c;
        --bg-secondary: #2d3748;
        --text-primary: #f7fafc;
        --text-secondary: #e2e8f0;
        --accent: #667eea;
    }
    
    body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }
    
    .navbar {
        background: rgba(26, 32, 44, 0.95);
    }
    
    .hero {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    }
    
    .about,
    .projects,
    .contact {
        background: var(--bg-primary);
    }
    
    .experience,
    .skills {
        background: var(--bg-secondary);
    }
    
    .timeline-content,
    .project-card,
    .skill-item,
    .contact-form {
        background: var(--bg-secondary);
        color: var(--text-primary);
    }
    
    .footer {
        background: var(--bg-primary);
    }
}
