/* Additional Responsive Styles */

/* Extra Large Screens (above 1400px) */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.8rem;
    }
    
    .hero-content .description {
        font-size: 1.4rem;
    }
    
    .image-placeholder {
        width: 450px;
        height: 450px;
    }
    
    .skills-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Screens (1200px - 1399px) */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium Screens (992px - 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .image-placeholder {
        width: 380px;
        height: 380px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Screens (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero-section {
        height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        justify-content: center;
        margin-top: 50px;
    }
    
    .image-placeholder {
        width: 350px;
        height: 350px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-text {
        margin-top: 40px;
    }
    
    .personal-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

/* Extra Small Screens (576px - 767px) */
@media screen and (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .hero-section {
        height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.3rem;
    }
    
    .hero-content .description {
        font-size: 1.1rem;
    }
    
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        justify-content: center;
        margin-top: 40px;
    }
    
    .image-placeholder {
        width: 300px;
        height: 300px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-text {
        margin-top: 30px;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-filter {
        flex-wrap: wrap;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-icon {
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .timeline-block:nth-child(even) .timeline-content {
        margin-left: 60px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

/* Mobile Screens (below 576px) */
@media screen and (max-width: 575px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .hero-section {
        height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-content .description {
        font-size: 1rem;
    }
    
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        justify-content: center;
        margin-top: 40px;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .about-text {
        margin-top: 30px;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-filter {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-icon {
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding: 20px;
    }
    
    .timeline-block:nth-child(even) .timeline-content {
        margin-left: 60px;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
        padding: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Print Styles */
@media print {
    header, footer, .contact-section, .hero-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .btn, .social-links, .github-link, .project-links {
        display: none;
    }
    
    .about-content, .skills-content, .projects-grid, .timeline {
        display: block;
    }
    
    .about-content, .skills-content {
        page-break-inside: avoid;
    }
    
    .project-card, .skill-item, .timeline-block {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .timeline::before, .timeline-icon {
        display: none;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 0;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .timeline-block:nth-child(even) .timeline-content {
        margin-left: 0;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .image-placeholder {
        animation: none !important;
    }
    
    .glitch::before,
    .glitch::after {
        animation: none !important;
        opacity: 0 !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    :root {
        --primary-color: #000;
        --secondary-color: #0000EE;
        --accent-color: #CC0000;
        --light-color: #FFFFFF;
        --dark-color: #000000;
        --text-color: #000000;
        --bg-color: #FFFFFF;
        --card-bg: #FFFFFF;
    }
    
    * {
        border-color: #000 !important;
    }
    
    a, button, .btn {
        text-decoration: underline;
    }
    
    .skill-progress, .timeline::before, .timeline-icon {
        background-color: #000 !important;
    }
    
    .skill-item, .project-card, .timeline-content, .contact-card {
        border: 2px solid #000;
        box-shadow: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ecf0f1;
        --secondary-color: #3498db;
        --accent-color: #e74c3c;
        --light-color: #2c3e50;
        --dark-color: #ecf0f1;
        --text-color: #ecf0f1;
        --bg-color: #1a1a1a;
        --card-bg: #2c3e50;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    header {
        background-color: rgba(26, 26, 26, 0.95);
    }
    
    .nav-links a {
        color: var(--text-color);
    }
    
    .burger div {
        background-color: var(--text-color);
    }
    
    .hero-section {
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(44, 62, 80, 0.7));
    }
    
    .about-section, .projects-section {
        background-color: #222;
    }
    
    .skill-item, .project-card, .timeline-content, .contact-card, .contact-form {
        background-color: var(--card-bg);
        color: var(--text-color);
    }
    
    .project-content p {
        color: #ccc;
    }
    
    .project-tags span, .timeline-tags span, .timeline-date {
        background-color: #1a1a1a;
        color: var(--text-color);
    }
    
    .form-group input, .form-group textarea {
        background-color: #1a1a1a;
        border-color: #444;
        color: var(--text-color);
    }
    
    .form-group label {
        color: var(--text-color);
    }
    
    footer {
        background-color: #111;
    }
}