/* ============================================
   LONDONCUK PORTFOLIO - Mobile CSS
   Clean Mobile Experience
============================================ */

/* ============================================
   Fix Horizontal Scroll Issue
============================================ */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Mobile Styles (max-width: 768px)
============================================ */
@media (max-width: 768px) {
    /* Base fixes */
    body {
        cursor: auto !important;
        overflow-x: hidden !important;
    }
    
    .cursor, .cursor-follower {
        display: none !important;
    }
    
    a, button {
        cursor: pointer !important;
    }
    
    /* Hide scan line for performance */
    .scan-line {
        display: none !important;
    }
    
    .bg-grid {
        opacity: 0.3;
    }
    
    /* Container overflow fix */
    section, .container, main, header, footer {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* ============================================
       Preloader
    ============================================ */
    .loader-logo {
        font-size: 1.2rem !important;
    }
    
    .loader-bar {
        width: 80% !important;
        max-width: 250px !important;
    }
    
    /* ============================================
       Navigation - FIXED
    ============================================ */
    .navbar {
        padding: 12px 15px !important;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .nav-brand {
        font-size: 0.9rem !important;
        gap: 4px !important;
    }
    
    .brand-bracket {
        font-size: 1.1rem !important;
    }
    
    /* Disable glitch on mobile */
    .glitch::before,
    .glitch::after {
        display: none !important;
    }
    
    /* Hamburger Menu Button */
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        padding: 10px;
        background: transparent;
        border: none;
        z-index: 1002;
        cursor: pointer;
    }
    
    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Mobile Menu */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(3, 3, 8, 0.98) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 0 !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease !important;
        z-index: 1001;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.5rem !important;
        padding: 20px 40px !important;
        width: 100%;
        text-align: center;
        color: var(--text-secondary);
        border: none !important;
        transition: color 0.2s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--accent-primary) !important;
    }
    
    .nav-link::before,
    .nav-link::after {
        display: none !important;
    }
    
    /* ============================================
       Hero Section
    ============================================ */
    .hero {
        min-height: auto !important;
        padding: 100px 20px 60px !important;
        flex-direction: column !important;
        text-align: center;
    }
    
    .hero-bg-text {
        font-size: 15vw !important;
        opacity: 0.02 !important;
    }
    
    .hero-content {
        max-width: 100% !important;
    }
    
    .hero-badge {
        padding: 8px 14px !important;
        margin-bottom: 20px !important;
    }
    
    .badge-text {
        font-size: 0.65rem !important;
    }
    
    .hero-greeting {
        font-size: 1rem !important;
    }
    
    .hero-name {
        font-size: 1.8rem !important;
        letter-spacing: 2px !important;
    }
    
    .hero-subtitle-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        margin-bottom: 15px !important;
    }
    
    .hero-subtitle {
        font-size: 0.75rem !important;
        letter-spacing: 1px !important;
    }
    
    .subtitle-decorator {
        font-size: 0.85rem !important;
    }
    
    .hero-desc {
        font-size: 0.9rem !important;
        line-height: 1.7 !important;
        margin-bottom: 25px !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 35px !important;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 0.75rem !important;
    }
    
    .hero-stats {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 25px !important;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.6rem !important;
    }
    
    .stat-plus {
        position: static !important;
        display: inline !important;
        font-size: 1rem !important;
    }
    
    .stat-label {
        font-size: 0.55rem !important;
        margin-top: 4px !important;
    }
    
    .stat-bar {
        display: none !important;
    }
    
    .hero-visual,
    .scroll-indicator {
        display: none !important;
    }
    
    /* ============================================
       Section Headers
    ============================================ */
    .section-bg-text {
        font-size: 18vw !important;
        opacity: 0.015 !important;
    }
    
    .section-header {
        margin-bottom: 40px !important;
    }
    
    .section-tag {
        font-size: 0.7rem !important;
    }
    
    .section-title {
        font-size: 1.4rem !important;
        letter-spacing: 2px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .title-line {
        width: 25px !important;
    }
    
    /* ============================================
       About Section
    ============================================ */
    .about {
        padding: 60px 20px !important;
    }
    
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
    }
    
    .about-image {
        max-width: 220px !important;
        margin: 0 auto !important;
    }
    
    .image-placeholder {
        padding: 25px !important;
    }
    
    .image-placeholder i {
        font-size: 2.2rem !important;
    }
    
    .terminal-text .typing-text {
        font-size: 0.75rem !important;
    }
    
    .terminal-text .typing-result {
        font-size: 0.9rem !important;
    }
    
    .frame-corner {
        width: 15px !important;
        height: 15px !important;
        border-width: 2px !important;
    }
    
    .experience-badge {
        width: 65px !important;
        height: 65px !important;
        bottom: -8px !important;
        right: -8px !important;
    }
    
    .exp-number {
        font-size: 1.3rem !important;
    }
    
    .exp-text {
        font-size: 0.45rem !important;
    }
    
    .about-paragraph {
        font-size: 0.9rem !important;
        line-height: 1.7 !important;
        margin-bottom: 15px !important;
    }
    
    .about-features {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-top: 25px !important;
    }
    
    .feature-item {
        padding: 12px 10px !important;
        gap: 8px !important;
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
    }
    
    .feature-item span {
        font-size: 0.7rem !important;
    }
    
    /* ============================================
       Skills Section
    ============================================ */
    .skills {
        padding: 60px 20px !important;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 25px !important;
    }
    
    .skill-card {
        padding: 15px 10px !important;
        border-radius: 8px !important;
    }
    
    .skill-icon-container {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 10px !important;
    }
    
    .skill-icon-container i {
        font-size: 1.2rem !important;
        line-height: 40px !important;
    }
    
    .skill-name {
        font-size: 0.65rem !important;
        margin-bottom: 10px !important;
    }
    
    .skill-level {
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    .level-bar {
        height: 4px !important;
    }
    
    .level-percent {
        font-size: 0.65rem !important;
    }
    
    .skill-glow {
        display: none !important;
    }
    
    .tools-section {
        padding: 18px 15px !important;
        border-radius: 8px !important;
    }
    
    .tools-title {
        font-size: 0.7rem !important;
        margin-bottom: 15px !important;
    }
    
    .tools-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }
    
    .tool-item {
        padding: 10px 5px !important;
        gap: 5px !important;
    }
    
    .tool-item i {
        font-size: 1.1rem !important;
    }
    
    .tool-item span {
        font-size: 0.5rem !important;
    }
    
    /* ============================================
       Projects Section
    ============================================ */
    .projects {
        padding: 60px 20px !important;
    }
    
    .projects-filter {
        gap: 8px !important;
        margin-bottom: 30px !important;
    }
    
    .filter-btn {
        padding: 8px 14px !important;
        font-size: 0.6rem !important;
        gap: 5px !important;
    }
    
    .filter-icon {
        font-size: 0.7rem !important;
    }
    
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    
    .project-card {
        border-radius: 10px !important;
    }
    
    .project-image {
        height: 130px !important;
    }
    
    .project-image i {
        font-size: 2.2rem !important;
    }
    
    .project-content {
        padding: 16px !important;
    }
    
    .project-category {
        font-size: 0.55rem !important;
        padding: 3px 10px !important;
    }
    
    .project-title {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    .project-desc {
        font-size: 0.8rem !important;
        margin-bottom: 12px !important;
    }
    
    .project-tech {
        gap: 5px !important;
        margin-bottom: 12px !important;
    }
    
    .project-tech span {
        font-size: 0.55rem !important;
        padding: 3px 7px !important;
    }
    
    .project-link {
        font-size: 0.65rem !important;
        padding: 8px 12px !important;
    }
    
    /* ============================================
       Services Section
    ============================================ */
    .services {
        padding: 60px 20px !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    
    .service-card {
        padding: 22px 18px !important;
        border-radius: 10px !important;
    }
    
    .service-number {
        font-size: 2.2rem !important;
    }
    
    .service-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 15px !important;
    }
    
    .service-icon i {
        font-size: 1.4rem !important;
    }
    
    .service-title {
        font-size: 1rem !important;
    }
    
    .service-desc {
        font-size: 0.8rem !important;
        margin-bottom: 15px !important;
    }
    
    .service-features li {
        font-size: 0.75rem !important;
    }
    
    /* ============================================
       Contact Section
    ============================================ */
    .contact {
        padding: 60px 20px !important;
    }
    
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .contact-card {
        padding: 14px !important;
        gap: 12px !important;
    }
    
    .contact-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1rem !important;
    }
    
    .contact-label {
        font-size: 0.55rem !important;
    }
    
    .contact-value {
        font-size: 0.85rem !important;
    }
    
    .contact-arrow {
        display: none !important;
    }
    
    .cta-box {
        padding: 28px 20px !important;
        border-radius: 12px !important;
    }
    
    .cta-box h3 {
        font-size: 1.1rem !important;
    }
    
    .cta-box p {
        font-size: 0.8rem !important;
        margin-bottom: 18px !important;
    }
    
    .cta-box .btn {
        width: 100% !important;
        padding: 14px !important;
        font-size: 0.75rem !important;
    }
    
    /* ============================================
       Footer
    ============================================ */
    .footer {
        padding: 40px 20px 25px !important;
    }
    
    .footer-brand {
        font-size: 1rem !important;
    }
    
    .footer-tagline {
        font-size: 0.8rem !important;
    }
    
    .social-link {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.95rem !important;
    }
    
    .footer-bottom p {
        font-size: 0.7rem !important;
    }
    
    /* ============================================
       Utilities
    ============================================ */
    .admin-link {
        display: none !important;
    }
    
    .back-to-top {
        bottom: 15px !important;
        right: 15px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 0.85rem !important;
    }
    
    /* Remove hover effects on touch */
    .project-card:hover,
    .skill-card:hover,
    .service-card:hover,
    .feature-item:hover,
    .contact-card:hover,
    .tool-item:hover {
        transform: none !important;
    }
}

/* ============================================
   Extra Small (max-width: 380px)
============================================ */
@media (max-width: 380px) {
    .hero-name {
        font-size: 1.5rem !important;
    }
    
    .section-title {
        font-size: 1.2rem !important;
    }
    
    .hero-stats {
        gap: 15px !important;
    }
    
    .stat-number {
        font-size: 1.4rem !important;
    }
    
    .about-features {
        grid-template-columns: 1fr !important;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
