/* Mobile Responsive Styles */

/* Tablet and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .projects-modern-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Mobile devices */
@media (max-width: 768px) {

    /* Hide custom cursor on mobile */
    #cursor-dot,
    #cursor-outline {
        display: none;
    }

    body {
        cursor: auto;
    }

    a,
    button {
        cursor: pointer;
    }

    /* Navigation */
    .glass-nav {
        padding: 15px 20px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        cursor: pointer;
    }

    .hamburger-line {
        cursor: pointer;
    }

    /* Hero Section */
    #hero {
        min-height: 100vh;
        padding: 100px 20px 60px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .hero-content p {
        font-size: 0.95rem;
    }

    .status-badge {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }

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

    .scroll-indicator {
        display: none;
    }

    /* About Section */
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-title {
        font-size: 1.6rem;
    }

    .about-text {
        font-size: 1rem;
    }

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

    .image-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }

    /* Background Section - Timeline Mobile */
    .background-timeline {
        padding-left: 40px;
    }

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

    .timeline-item {
        grid-template-columns: 50px 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .timeline-left .card-icon,
    .timeline-right .card-icon {
        width: 50px;
        height: 50px;
    }

    .timeline-left .card-icon i,
    .timeline-right .card-icon i {
        width: 24px;
        height: 24px;
    }

    .background-card {
        padding: 0;
    }

    .card-header {
        padding: 20px 20px 0 20px;
        gap: 10px;
    }

    .card-header h4 {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 0 20px 20px 20px;
    }

    .card-duration {
        font-size: 0.8rem;
    }

    .card-institution {
        font-size: 0.85rem;
    }

    /* Skills Section */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-category h3 {
        font-size: 1.2rem;
    }

    /* Projects Section */
    .projects-modern-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-card {
        height: auto;
        min-height: 480px;
    }

    .project-image {
        height: 240px;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .project-info p {
        font-size: 0.95rem;
    }

    .tech-tags {
        gap: 8px;
    }

    .tech-tag {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    /* Contact Section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-intro h3 {
        font-size: 1.8rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .modern-form {
        padding: 30px 20px;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Stats Counter */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Footer */
    footer {
        padding: 30px 0;
        margin-top: 60px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        gap: 16px;
    }

    .footer-content p {
        font-size: 0.85rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {

    /* Hero Section */
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content .subtitle {
        font-size: 0.9rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 1.5rem;
    }

    /* About Section */
    .about-title {
        font-size: 1.4rem;
    }

    .about-text {
        font-size: 0.95rem;
    }

    /* Background Cards */
    .background-card h3 {
        font-size: 1.1rem;
    }

    .background-card h4 {
        font-size: 0.95rem;
    }

    /* Project Cards */
    .project-card {
        min-height: 450px;
    }

    .project-image {
        height: 200px;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }

    /* Contact Section */
    .contact-intro h3 {
        font-size: 1.5rem;
    }

    .contact-intro p {
        font-size: 0.95rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    /* Form */
    .modern-form input,
    .modern-form textarea {
        font-size: 0.95rem;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Landscape mobile devices */
@media (max-width: 896px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 80px 20px 40px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch devices */
    .project-card:hover {
        transform: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }

    /* Increase touch target sizes */
    .nav-links a,
    .mobile-nav-links a {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer-socials a {
        width: 48px;
        height: 48px;
    }

    .hero-social a {
        width: 48px;
        height: 48px;
    }
}