/* Responsive Styles */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

    .hero-stats {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .timeline::before {
        left: 2rem;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 4rem;
        margin-right: 0;
        text-align: left;
    }

    .timeline-marker {
        left: 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 4rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 4rem);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .avatar-placeholder {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

    .about {
        padding: 4rem 0;
    }

    .avatar-placeholder-large {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .about-contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .skills {
        padding: 4rem 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .projects {
        padding: 4rem 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        margin: 0;
    }

    .project-image {
        height: 150px;
    }

    .project-placeholder {
        font-size: 2rem;
    }

    .experience {
        padding: 4rem 0;
    }

    .timeline::before {
        left: 1rem;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 3rem;
        margin-right: 0;
        text-align: left;
    }

    .timeline-marker {
        left: 1rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .contact {
        padding: 4rem 0;
    }

    .contact-details {
        margin-bottom: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

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

    .avatar-placeholder {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

    .avatar-placeholder-large {
        width: 150px;
        height: 150px;
        font-size: 2rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .project-content {
        padding: 1rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    .timeline-company {
        font-size: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 90vh;
    }

    .hero-content {
        gap: 2rem;
    }

    .avatar-placeholder {
        width: 250px;
        height: 250px;
        font-size: 5rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .avatar-placeholder {
        width: 180px;
        height: 180px;
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before {
        background-size: 50px 50px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
        --background: #111827;
        --background-secondary: #1f2937;
        --background-dark: #000000;
        --border-color: #374151;
        --border-light: #4b5563;
    }

    .navbar {
        background: rgba(17, 24, 39, 0.95);
    }

    .nav-menu {
        background: #1f2937;
    }

    .skill-item {
        background: var(--background-secondary);
        color: var(--text-primary);
    }

    .timeline-content {
        background: var(--background-secondary);
    }

    .contact-icon,
    .social-link {
        background: var(--background-secondary);
        color: var(--text-primary);
    }

    .form-input,
    .form-textarea {
        background: var(--background-secondary);
        border-color: var(--border-color);
        color: var(--text-primary);
    }

    .form-input:focus,
    .form-textarea:focus {
        border-color: var(--primary-color);
    }
}

/* 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;
    }
}

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

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

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

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }
}