/* ================================================
   RESPONSIVE CSS FOR SUMESH PORTFOLIO
   Mobile & Tablet Devices
   Copy this entire block into your media.css file
   ================================================ */

/* Tablet Devices (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 0;
        margin-bottom: 1rem;
    }
    
    .hero-image img {
        max-width: 280px;
    }
    
    .about-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .about-img img {
        max-width: 220px;
    }
    
    .model-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.2rem;
    }
    
    .contact-flex-enhanced {
        gap: 1.5rem;
    }
    
    .contact-card-modern {
        padding: 1.5rem;
    }
}

/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Navigation */
    nav {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 0.8rem;
    }
    
    .logo {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
    
    .connect-nav-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .theme-controls {
        margin-top: 0.3rem;
    }
    
    .color-palette {
        padding: 0.2rem 0.6rem;
    }
    
    .color-dot {
        width: 20px;
        height: 20px;
    }
    
    .theme-toggle {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Typography */
    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    /* Sections Padding */
    section {
        padding: 3rem 0;
    }
    
    /* Hero Section */
    .hero {
        padding: 1rem 0 2rem;
        gap: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem !important;
    }
    
    .hero-image img {
        max-width: 220px;
    }
    
    .btn {
        padding: 0.6rem 1.4rem;
        font-size: 0.9rem;
    }
    
    /* About Section */
    .about-text .fade-up p {
        font-size: 0.95rem;
    }
    
    .about-img img {
        max-width: 180px;
    }
    
    /* Portfolio Tabs */
    .portfolio-tabs {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .tab-btn {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    /* Cards */
    .card {
        padding: 1.2rem;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .card p {
        font-size: 0.85rem;
    }
    
    .model-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .excel-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .dashboard-preview {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
    
    /* Skills Section */
    .skills-wrapper {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .skill-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Contact Section - Enhanced Mobile */
    .contact-enhanced {
        padding: 1.5rem;
        border-radius: 32px;
    }
    
    .contact-flex-enhanced {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .contact-card-modern {
        padding: 1.2rem;
    }
    
    .contact-icon-circle {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    
    .contact-card-modern h3 {
        font-size: 1.2rem;
    }
    
    .contact-detail-row {
        margin: 0.8rem 0;
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
    
    .contact-detail-row i {
        font-size: 1rem;
        width: 24px;
    }
    
    .social-links-enhanced {
        gap: 0.8rem;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .availability-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.8rem;
    }
    
    /* Modal for Skills */
    .modal-card {
        width: 90%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-card h3 {
        font-size: 1.2rem;
    }
    
    .modal-card ul li {
        font-size: 0.85rem;
        margin: 0.6rem 0;
    }
    
    .close-modal {
        top: 0.8rem;
        right: 1rem;
        font-size: 1.5rem;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem;
        font-size: 0.75rem;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .nav-links {
        gap: 0.6rem;
    }
    
    .nav-links a {
        font-size: 0.75rem;
    }
    
    .connect-nav-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .color-dot {
        width: 18px;
        height: 18px;
    }
    
    .hero-image img {
        max-width: 180px;
    }
    
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .tab-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .card h3 {
        font-size: 1rem;
    }
    
    .skill-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .contact-card-modern {
        padding: 1rem;
    }
    
    .contact-icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .contact-detail-row {
        font-size: 0.75rem;
    }
    
    .social-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
}

/* Landscape Mode for Mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    section {
        padding: 2rem 0;
    }
    
    .hero {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .hero-content {
        flex: 1;
    }
    
    .hero-image {
        flex: 0.5;
    }
    
    .hero-image img {
        max-width: 150px;
    }
    
    .about-grid {
        flex-direction: row;
    }
    
    .model-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-flex-enhanced {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contact-card-modern {
        flex: 1;
        min-width: 200px;
    }
}

/* Touch-friendly adjustments for mobile */
@media (hover: none) and (max-width: 768px) {
    .btn, .tab-btn, .skill-badge, .social-icon, .excel-link {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:active, .tab-btn:active, .skill-badge:active {
        transform: scale(0.97);
        transition: transform 0.05s;
    }
    
    .card {
        cursor: pointer;
    }
}