/* Mobile Responsive Design */

/* Tablet and Mobile Devices */
@media (max-width: 768px) {
    .hero-cursor-light {
        display: none;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border: 1px solid var(--border-color);
        transform: none;
    }

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

    .nav-link.btn-primary {
        display: inline-block;
        margin: 10px auto;
        padding: 10px 25px;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

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

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

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

    .hero-profile-image {
        width: 100%;
        max-width: 250px;
        height: auto;
        border-radius: 0;
        border: none;
        animation: float-mobile 5s ease-in-out infinite;
    }

    @keyframes float-mobile {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-8px);
        }
    }

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

    .about-highlights {
        justify-content: center;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

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

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

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

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

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

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

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

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 320px) {
    .container {
        padding: 0 15px;
    }

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

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

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

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

    .hero-profile-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        border-radius: 0;
        border: none;
        animation: float-mobile 5s ease-in-out infinite;
    }

    .logo-image {
        height: 30px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-container {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-profile-image {
        width: 100%;
        max-width: 180px;
        height: auto;
        border-radius: 0;
        border: none;
        animation: float-mobile 5s ease-in-out infinite;
    }

    .about-stats {
        flex-direction: row;
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }
}

/* Mobile Menu Animation */
@media (max-width: 768px) {
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

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

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .project-card:hover,
    .skill-category:hover,
    .stat-item:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }

    .social-link:hover {
        transform: none;
        background: rgba(0, 174, 239, 0.1);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-placeholder {
        border-width: 2px;
    }

    .social-link {
        border-width: 0.5px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero::before {
        animation: none;
    }

    .scroll-indicator {
        animation: none;
    }

    .hero-profile-image {
        animation: none !important;
    }
}
