@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
        padding: 0 1.5rem;
    }

    .hero-content {
        gap: 3rem;
    }

    .hero-shovel {
        width: 160px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .skills-garden {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 968px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: var(--shadow-medium);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-section {
        padding: 6rem 1.5rem 4rem;
        min-height: auto;
    }

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

    .hero-visual {
        order: -1;
    }

    .hero-shovel {
        width: 120px;
    }

    .hero-actions {
        justify-content: center;
        gap: 1rem;
    }

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

    .bio-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .headshot {
        width: 100px;
        height: 100px;
    }

    .experience-timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        left: -38px;
        width: 12px;
        height: 12px;
        border-width: 3px;
    }

    .about-visual {
        order: -1;
    }

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

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

    .footer-brand,
    .footer-links,
    .footer-copyright {
        justify-self: center;
    }

    .footer-links {
        gap: 1.5rem;
    }

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

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

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

    section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .hero-section {
        padding: 5rem 1rem 3rem;
    }

    .hero-name {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-subtitle {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

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

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

    .project-filters {
        gap: 0.5rem;
        justify-content: center;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

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

    .skill-plot {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .professional-bio {
        padding: 1.5rem;
    }

    .bio-content p {
        font-size: 1rem;
    }

    .company-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .job-skills {
        justify-content: center;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .about-card {
        padding: 1.25rem;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    .nav-logo {
        width: 28px;
        height: 28px;
    }

    .hero-section {
        padding: 6rem 1rem 2rem;
        min-height: auto;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 3rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }

    .scroll-indicator {
        position: relative;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 2rem;
        text-align: center;
        width: 100%;
    }

    .hero-shovel {
        width: 100px;
    }

    .section-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

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

    .project-card {
        margin: 0 0.5rem;
    }

    .project-image {
        height: 160px;
    }

    .project-content {
        padding: 1.25rem;
    }

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

    .project-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .project-link {
        text-align: center;
        padding: 0.5rem;
        background: var(--bg-primary);
        border-radius: var(--border-radius);
        border: 1px solid var(--titanium-silver);
        transition: all var(--transition-medium);
    }

    .project-link:hover {
        background: var(--secondary-color);
        color: white;
        border-color: var(--secondary-color);
    }

    .skill-plot {
        padding: 1.25rem;
    }

    .skill-plot h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .skill-items {
        gap: 0.5rem;
    }

    .skill-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .contact-methods {
        gap: 0.75rem;
    }

    .contact-method {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .contact-icon {
        font-size: 1.25rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.95rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-links a {
        font-size: 0.95rem;
    }

    .footer-copyright {
        font-size: 0.85rem;
    }

    .footer-brand {
        font-size: 0.95rem;
    }

    .footer-logo {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .nav-container {
        padding: 0.5rem 0.75rem;
    }

    .nav-brand {
        font-size: 1rem;
        gap: 0.375rem;
    }

    .nav-logo {
        width: 24px;
        height: 24px;
    }

    .nav-links {
        padding: 1.5rem;
        gap: 1rem;
    }

    .hero-section {
        padding: 5.5rem 0.75rem 2rem;
    }

    .hero-name {
        font-size: clamp(2rem, 12vw, 3.5rem);
        margin-bottom: 0.25rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 6vw, 1.8rem);
    }

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

    .hero-shovel {
        width: 80px;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        max-width: 240px;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
        margin-bottom: 0.75rem;
    }

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

    .project-filters {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: 100px;
    }

    .project-image {
        height: 140px;
    }

    .project-content {
        padding: 1rem;
    }

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

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

    .tech-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .skill-plot {
        padding: 1rem;
    }

    .skill-plot h4 {
        font-size: 1.1rem;
        margin-bottom: 0.875rem;
    }

    .skill-item {
        padding: 0.35rem 0.7rem;
        font-size: 0.85rem;
    }

    .about-card {
        padding: 1rem;
    }

    .about-card h4 {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }

    .about-card p {
        font-size: 0.9rem;
    }

    .bio-placeholder {
        padding: 1.25rem;
    }

    .bio-placeholder h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .bio-placeholder p,
    .bio-placeholder li {
        font-size: 0.9rem;
    }

    .contact-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .contact-info p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .contact-method {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .contact-icon {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.375rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 1.5rem 0 0.75rem;
    }

    .footer-brand {
        font-size: 0.9rem;
    }

    .footer-logo {
        width: 18px;
        height: 18px;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .scroll-indicator {
        bottom: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .hero-name {
        font-size: clamp(1.8rem, 14vw, 3rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 7vw, 1.5rem);
    }

    .btn {
        max-width: 200px;
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }

    .filter-btn {
        min-width: 80px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .project-card {
        margin: 0 0.25rem;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .contact-method span:last-child {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .footer-links {
        gap: 0.5rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .hover-grow:hover,
    .hover-wiggle:hover,
    .hover-glow:hover {
        transform: none;
        animation: none;
    }

    .project-card:hover {
        transform: none;
        box-shadow: var(--shadow-soft);
    }

    .skill-plot:hover {
        transform: none;
    }

    .about-card:hover {
        transform: none;
    }

    .contact-method:hover {
        transform: none;
    }

    .skill-item:hover {
        background: var(--bg-primary);
        color: var(--text-primary);
        transform: none;
    }

    .nav-logo:hover {
        transform: none;
    }

    #custom-cursor,
    #cursor-trail {
        display: none;
    }

    body {
        cursor: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating,
    .dig-animation,
    .scroll-arrow,
    .nav-logo:hover,
    .hero-shovel:hover {
        animation: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    .hover-grow:hover,
    .hover-wiggle:hover {
        transform: none;
    }

    #custom-cursor,
    #cursor-trail {
        display: none;
    }

    body {
        cursor: auto;
    }

    * {
        transition-duration: 0.1s !important;
    }
}

@media print {
    .nav-container,
    .scroll-indicator,
    #custom-cursor,
    #cursor-trail {
        display: none;
    }

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

    section {
        padding: 1.5rem 0;
        page-break-inside: avoid;
    }

    .project-card,
    .skill-plot,
    .about-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }

    .section-title {
        color: black;
        page-break-after: avoid;
    }

    .btn {
        border: 1px solid black;
        color: black;
        background: white;
    }
}

/* Education Section Mobile Styles */
@media (max-width: 768px) {
    .education-section {
        padding: 4rem 0;
    }

    .education-item {
        padding: 2rem;
        margin: 0 1rem;
    }

    .education-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .achievement-item span:last-child {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .degree-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .education-item {
        padding: 1.5rem;
    }

    .achievement-item {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .achievement-icon {
        font-size: 1rem;
    }
}

/* Collaboration Modal Mobile Styles */
@media (max-width: 768px) {
    .collaboration-modal {
        padding: 1rem;
    }

    .collaboration-modal-content {
        max-width: 100%;
    }

    .collaboration-modal .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .collaboration-modal .modal-header h3 {
        font-size: 1.4rem;
        padding-right: 2rem;
    }

    .collaboration-modal .modal-body {
        padding: 1.5rem;
    }

    .collaboration-modal .modal-close {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .contact-option {
        padding: 1.25rem;
        min-height: 70px;
    }

    .contact-details strong {
        font-size: 1rem;
    }

    .contact-details small {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .collaboration-modal {
        padding: 0.5rem;
    }

    .collaboration-modal .modal-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }

    .collaboration-modal .modal-body {
        padding: 1rem;
    }

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

    .contact-details {
        text-align: center;
    }

    .request-note {
        padding: 1rem;
    }
}