/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Hide desktop-only elements */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile-only elements */
    .mobile-only {
        display: block !important;
    }

    /* Navigation adjustments */
    .nav-container {
        padding: 1rem;
    }

    .nav-logo {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(1, 37, 125, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(20px);
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    /* Hero section mobile adjustments */
    .hero {
        padding: 2rem 1rem;
        min-height: 100vh;
    }

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

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

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

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Stats container mobile */
    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .stat-box {
        width: 100%;
        max-width: 300px;
        padding: 1.5rem;
    }

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

    /* Modal adjustments */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 70vh;
        padding: 1.5rem;
    }

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

    .skill-box {
        padding: 1rem;
    }

    .skill-box i {
        font-size: 1.5rem;
    }

    /* Projects section mobile */
    .projects {
        padding: 3rem 0;
    }

    .projects h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

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

    .project-card {
        padding: 1.5rem;
    }

    .project-icon {
        font-size: 2.5rem;
    }

    /* Contact section mobile */
    .contact {
        padding: 3rem 0;
    }

    .contact h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

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

    .contact-form {
        padding: 1.5rem;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    /* Social widget mobile */
    .social-widget {
        bottom: 15px;
        right: 15px;
    }

    .social-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .social-links {
        bottom: 60px;
    }

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

    /* Mobile games message styling */
    .mobile-games-message {
        padding: 3rem 0;
    }

    .mobile-message {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
    }

    .mobile-message i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .mobile-message h3 {
        font-size: 1.5rem;
    }

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

    .mobile-nav-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    /* Typography adjustments */
    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Container padding adjustments */
    .container {
        padding: 0 1rem;
    }

    /* Form adjustments */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Animated background mobile optimization */
    .bg-particle {
        width: 150px;
        height: 150px;
        opacity: 0.05;
    }

    /* Smooth scrolling adjustments */
    html {
        scroll-padding-top: 80px;
    }
}

/* DragonDev User Section Mobile Styles */
@media (max-width: 768px) {
    .dragondev-user-section {
        padding: 3rem 0;
    }

    .dragondev-user-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .dragondev-user-section .container {
        padding: 0 1rem;
    }

    .user-profile-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        margin: 0;
        width: 100%;
    }

    .avatar-img {
        width: 100px;
        height: 100px;
    }

    .username {
        font-size: 1.8rem;
        justify-content: center;
    }

    .user-stats {
        align-items: center;
    }

    .stat-item {
        justify-content: center;
    }

    .profile-actions {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-actions .btn {
        min-width: 120px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero {
        min-height: 120vh;
    }

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

    .stats-container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-box {
        max-width: 200px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .nav-logo {
        font-size: 1.3rem;
    }

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

    .modal-content {
        margin: 5% auto;
        padding: 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .skill-box {
        padding: 0.8rem;
    }

    .project-card,
    .contact-form {
        padding: 1rem;
    }

    .mobile-message {
        padding: 1.5rem 1rem;
    }

    h2 {
        font-size: 1.8rem !important;
    }

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

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 120vh;
    }

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

    .stats-container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-box {
        max-width: 200px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .social-link,
    .nav-menu a {
        min-height: 44px;
        min-width: 44px;
    }

    .social-toggle {
        min-height: 50px;
        min-width: 50px;
    }

    /* Remove hover effects on touch devices */
    .btn:hover,
    .project-card:hover,
    .skill-box:hover,
    .service-item:hover {
        transform: none;
    }

    /* Add active states for touch feedback */
    .btn:active {
        transform: scale(0.98);
    }

    .project-card:active,
    .skill-box:active {
        transform: scale(0.98);
    }
}

/* Show mobile warning only on actual mobile devices */
@media (max-width: 768px) {
    .mobile-warning {
        display: block;
    }

    .games-grid {
        display: none;
    }
}

/* Hide mobile warning on desktop */
@media (min-width: 769px) {
    .mobile-warning {
        display: none !important;
    }
}