/* ======================================
   RESPONSIVE CSS - MOBILE FIRST APPROACH
   ====================================== */

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        margin: 0;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-link:hover,
    .nav-link.active {
        background: #3498db;
        color: white;
    }

    /* Animation for menu items */
    .nav-menu.active .nav-item {
        animation: slideInLeft 0.3s ease forwards;
    }

    .nav-menu.active .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active .nav-item:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu.active .nav-item:nth-child(6) { animation-delay: 0.6s; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .section-container {
        padding: 4rem 2rem;
    }

    .about-content {
        gap: 2rem;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Header adjustments */
    .header-container {
        padding: 0 1rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 0 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.1rem;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }

    /* Section containers */
    .section-container {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-info {
        padding: 1.5rem;
    }

    /* Skills section */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill {
        padding: 1.5rem;
    }

    .skill-icon {
        font-size: 2.5rem;
    }

    /* Projects section */
    .projects-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-info {
        padding: 1.25rem;
    }

    .project-tech {
        justify-content: center;
    }

    /* Timeline adjustments */
    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    /* Contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-container {
        padding: 0 1rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .section-container {
        padding: 2.5rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-info {
        padding: 1rem;
    }

    .skill {
        padding: 1rem;
    }

    .project-info {
        padding: 1rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .btn-demo,
    .btn-repo {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0;
        text-align: center;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
    .hero-text h1 {
        font-size: 4rem;
    }

    .hero-image img {
        width: 350px;
        height: 350px;
    }

    .section-container {
        padding: 6rem 2rem;
    }

    .skills-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {
    header,
    .menu-toggle,
    .btn-download,
    .btn-demo,
    .btn-repo,
    .contact-form,
    footer {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }

    .hero-section {
        background: none !important;
        color: #000;
        min-height: auto;
        padding: 2rem 0;
    }

    .section-container {
        padding: 2rem 0;
    }

    .about-section,
    .projects-section {
        background: none !important;
    }

    .skill,
    .project-card,
    .timeline-content {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }

    .contact-section {
        background: none !important;
        color: #000;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .typed {
        animation: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .nav-link:hover,
    .nav-link.active {
        background: #000;
        color: #fff;
    }

    .btn-download:hover,
    .btn-submit:hover {
        background: #000;
    }

    .skill:hover {
        border: 2px solid #000;
    }
}

/* Dark mode preferences */
@media (prefers-color-scheme: dark) {
    /* This is a placeholder for dark mode support */
    /* Uncomment and customize if you want to add dark mode */
    /*
    body {
        background: #1a1a1a;
        color: #fff;
    }

    header {
        background: rgba(30, 30, 30, 0.95);
    }

    .about-section,
    .projects-section {
        background: #222;
    }
    */
}