/* ===================================
   Responsive Design
   Mobile-First Approach
   =================================== */

/* === Tablet & Below (1024px) === */
@media (max-width: 1024px) {
    .hero-illustration {
        padding: 0;
    }
    
    .hero-image-main {
        max-width: 100%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* === Tablet & Below (768px) === */
@media (max-width: 768px) {
    .logo-name {
        font-size: 1.5rem;
    }
    
    .logo-dot {
        font-size: 1.125rem;
    }
    
    .logo-tagline {
        font-size: 0.625rem;
        letter-spacing: 2px;
        gap: 6px;
    }
    
    .logo-tagline .dot {
        font-size: 0.75rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link.contact-btn {
        text-align: center;
    }
    
    /* Sections */
    section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Hero */
    .hero-section {
        padding-top: 80px;
        padding-bottom: var(--spacing-xl);
    }
    
    /* Hero Illustration Mobile */
    .hero-illustration {
        padding: 0;
    }
    
    .hero-image-main {
        max-width: 100%;
        border-radius: var(--radius-lg);
    }
    
    /* Hero Overlay Buttons - Tablet */
    .hero-overlay-buttons {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        margin-top: var(--spacing-lg);
        gap: var(--spacing-md);
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }
    
    .hero-btn {
        min-width: 180px;
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .hero-btn:nth-child(3) {
        min-width: 200px;
    }
    
    /* Stats */
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    /* Skills */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Education */
    .education-header {
        flex-direction: column;
    }
    
    .education-year {
        align-self: flex-start;
    }
    
    .education-highlights {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-about {
        grid-column: 1 / -1;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
}

/* === Mobile (480px) === */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo-name {
        font-size: 1.25rem;
    }
    
    .logo-dot {
        font-size: 1rem;
    }
    
    .logo-tagline {
        font-size: 0.5rem;
        letter-spacing: 1.5px;
        gap: 4px;
    }
    
    .logo-tagline .dot {
        font-size: 0.625rem;
    }
    
    /* Hero Section Mobile - Full Width Image with Overlay Buttons */
    .hero-section {
        padding-top: 70px;
        min-height: auto;
        padding-bottom: var(--spacing-md);
    }
    
    .hero-section .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Mobile Hero Content */
    .hero-content {
        display: block !important;
        padding: var(--spacing-md) 0;
        text-align: center;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .hero-title {
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-name {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-family: 'Montserrat', sans-serif;
        font-size: 2rem;
        font-weight: 900;
        line-height: 1.2;
    }
    
    .hero-name .logo-first {
        color: #F8FAFC;
    }
    
    .hero-name .logo-last {
        background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        color: var(--text-secondary);
        margin-bottom: var(--spacing-sm);
        font-weight: 500;
    }
    
    .hero-description {
        font-size: 0.8125rem;
        color: var(--text-secondary);
        line-height: 1.6;
        margin-bottom: 0;
    }
    
    .hero-illustration {
        padding: 0;
        margin: 0;
        width: 100%;
        position: relative;
    }
    
    .hero-image-main {
        display: none;
    }
    
    /* Hero Overlay Buttons - Small, Below Content */
    .hero-overlay-buttons {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        flex-direction: row;
        gap: var(--spacing-xs);
        width: 100%;
        max-width: none;
        margin-top: var(--spacing-md);
        padding: 0;
    }
    
    .hero-btn {
        min-width: auto;
        flex: 1;
        padding: 0.5rem 0.625rem;
        font-size: 0.6875rem;
        font-weight: 600;
    }
    
    .hero-btn span {
        font-size: 0.6875rem;
    }
    
    .hero-btn svg {
        width: 12px;
        height: 12px;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: var(--spacing-md);
    }
    
    /* Skills Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .freelance-services {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: var(--spacing-md);
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
        padding-right: var(--spacing-xl);
    }
    
    /* Footer Mobile - Minimal & Compact */
    .footer {
        padding: var(--spacing-md) 0 0;
        margin-top: var(--spacing-lg);
    }
    
    .footer-content {
        display: none;
    }
    
    .footer-bottom {
        padding: var(--spacing-xs) 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: var(--spacing-xs);
        padding: var(--spacing-xs) 0;
    }
    
    .footer-bottom-links {
        flex-direction: row;
        gap: var(--spacing-xs);
        font-size: 0.625rem;
    }
    
    .footer-bottom-links a {
        font-size: 0.625rem;
    }
    
    .footer-bottom-links .divider {
        display: inline;
        font-size: 0.5rem;
    }
    
    .footer-copyright {
        font-size: 0.625rem;
        padding-top: 0;
        border-top: none;
    }
    
    /* Contact Modal */
    .contact-modal-content {
        padding: var(--spacing-md);
        width: 95%;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .contact-modal-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cards-modal {
        grid-template-columns: 1fr;
    }
}

/* === Large Desktop (1440px+) === */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}
