/* Mobile First - Base Responsive Adjustments */

/* Tablet and Below (768px) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
        height: 4rem;
    }
    
    .nav-motto {
        display: none; /* Hide motto on mobile */
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .nav-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding: 1rem;
    }
    
    .chirho {
        font-size: 5rem;
        width: 4rem;
        height: 4rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content h3 {
        font-size: 0.875rem;
        margin-bottom: 3rem;
    }
    
    .hero-verse {
        font-size: 1rem;
    }
    
    .hero-reference {
        margin-bottom: 3rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .glow-1, .glow-2 {
        width: 12rem;
        height: 12rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-body {
        font-size: 1rem;
    }
    
    .section-body h2 {
        font-size: 1.5rem;
    }
    
    .divider {
        width: 12rem;
    }
    
    /* About Section */
    .intro {
        flex-direction: column;
        min-height: auto;
        gap: 1.5rem;
    }
    
    #portrait {
        min-width: 100%;
        max-width: 400px;
    }
    
    .intro-text {
        text-align: center;
    }
    
    .about-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .about-buttons .btn-primary {
        width: 100%;
        max-width: 300px;
    }
    
    .skill-tags-display {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Projects */
    .project-card {
        flex-direction: column;
        padding: 1rem;
    }
    
    .project-image {
        min-width: 100%;
        margin-bottom: 1rem;
    }
    
    .project-info {
        margin-left: 0;
    }
    
    /* Footer */
    .footer {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        margin-left: 0;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    /* Navigation */
    .nav-links {
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .nav-links a {
        padding: 0.25rem 0.5rem;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .chirho {
        font-size: 4rem;
        width: 3rem;
        height: 3rem;
    }
    
    .hero-verse {
        font-size: 0.9rem;
    }
    
    .hero-reference,
    .hero-content h3 {
        font-size: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* Sections */
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-body h2 {
        font-size: 1.25rem;
    }
    
    .divider {
        width: 8rem;
    }
    
    #portrait {
        max-width: 100%;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Large Tablets and Small Desktops (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        max-width: 700px;
    }
    
    .section-body {
        max-width: 900px;
    }
    
    #portrait {
        min-width: 400px;
    }
    
    .footer-info {
        margin-left: 5rem;
    }
}

/* Very Small Screens (320px and below) */
@media (max-width: 320px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .nav-links {
        font-size: 0.7rem;
        gap: 0.25rem;
    }
    
    .hero-content h1 {
        font-size: 1.25rem;
    }
    
    .chirho {
        font-size: 3rem;
    }
    
    section {
        padding: 2rem 0.5rem;
    }
}

/* Landscape Mode for Mobile Devices */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    .hero-content h3,
    .hero-reference {
        margin-bottom: 1.5rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    section {
        padding: 2rem 1rem;
    }
}