/* ============================================
   RESPONSIVE DESIGN - ALL BREAKPOINTS
   ============================================
   
   This file contains ALL responsive styles for the entire website:
   - Hero Section
   - Featured Projects
   - Navigation
   - Portfolio Grid
   - Sections (About, Skills, Experience, etc.)
   - Timeline Components
   - Modals
   - Forms
   - And all other responsive breakpoints
   
   ============================================ */

/* ===== LARGE SCREENS (1800px+) ===== */
@media (max-width: 1800px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}



/* ===== DESKTOP MEDIUM (1200px) ===== */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== DESKTOP SMALL (1024px) ===== */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* ===== TABLET LARGE (992px) ===== */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .section {
        padding: 5rem  5rem;
    }

    .navbar {
        padding: var(--mb-1) var(--mb-2);
    }

    :target::before {
        height: 80px;
        margin: -80px 0 0;
    }

    .hero {
        padding: var(--mb-1);
        min-height: auto;
    }



    .hero-content .subtitle {
        font-size: 1.25rem;
        margin-bottom: var(--mb-1-5);
    }

    .hero-content .tagline {
        font-size: var(--normal-font-size);
        margin-bottom: var(--mb-2);
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        max-width: 300px;
        margin: var(--mb-3) auto var(--mb-1-5);
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: var(--mb-0-5) auto var(--mb-1);
        padding: 0.75rem var(--mb-1-5);
    }

    .home-blob {
        width: 420px;
    }

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

    .section-title {
        font-size: var(--mb-2);
        text-align: center;
        margin: 30px auto;
        display: flex;
        justify-content: center;
    }

    .btn {
        padding: 0.7rem var(--mb-1-5);
        font-size: 0.95rem;
    }

    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--mb-2);
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: var(--mb-2);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card {
        flex-direction: column;
    }

    .project-image {
        flex: 0 0 auto;
        height: 250px;
    }

    .project-content {
        padding: var(--mb-1-5);
    }

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

    .about-contact-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: var(--mb-2) auto 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--mb-3);
    }

    .about-sidebar {
        max-width: 500px;
        margin: 0 auto;
        position: static; /* Override sticky position on mobile */
    }

    .about-card,
    .contact-card {
        padding: 2.5rem;
    }

    .about-highlights {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--mb-1-5);
    }

    .contact-content {
        grid-template-columns: 1fr;
        max-width: 600px;
        padding: 0 var(--mb-1-5);
    }

    .contact-form {
        order: 2;
    }

    .contact-info {
        order: 1;
        margin-bottom: var(--mb-2);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .skill-item {
        padding: 1.25rem;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .skill-item h4 {
        font-size: var(--normal-font-size);
    }

    .skill-item p {
        font-size: 0.85rem;
    }

    .experience-item {
        padding: 1.25rem;
    }

    .experience-header h3 {
        font-size: 1.25rem;
    }

    .experience-header .company {
        font-size: 0.95rem;
    }

    .experience-header .duration {
        font-size: 0.85rem;
    }
}

/* ===== TABLET MEDIUM (768px) ===== */
@media (max-width: 768px) {
    .awards-section {
        text-align: center;
    }

    .section {
        padding: 5rem var(--mb-1-5) !important;
        margin: 0 auto !important;
    }

    :target::before {
        height: 60px;
        margin: -60px 0 0;
    }

    #notable-projects {
        padding: var(--mb-3) 0;
    }

    .featured-projects {
        padding: 0 var(--mb-0-5);
    }

    .section-title {
        font-size: var(--mb-2);
        margin-bottom: var(--mb-2);
    }

    .project-card {
        margin: 0 var(--mb-0-5);
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--mb-2);
        border-bottom: 2px solid var(--border-color);
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 0.75rem var(--mb-1);
        width: 100%;
        text-align: center;
    }

    .portfolio-filters {
        gap: var(--mb-0-5);
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0.75rem var(--mb-1);
        margin-bottom: var(--mb-1-5);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: var(--mb-0-5) 1.25rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .about-content,
    .contact-content,
    .portfolio-grid,
    .skills-grid,
    .expertise-grid,
    .project-grid,
    .project-gallery,
    .qualification__sections,
    .projects-grid,
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    /* For medium screens (769px - 1024px) */
    @media (min-width: 769px) and (max-width: 1024px) {
        .awards-grid {
            grid-template-columns: repeat(2, 1fr);
            max-width: 800px;
            margin: 0 auto;
        }
    }
    
    /* For small screens (up to 768px) */
    @media (max-width: 768px) {
        .awards-grid {
            grid-template-columns: 1fr;
            max-width: 400px;
            margin: 0 auto;
        }
    }

    .portfolio-grid,
    .projects-grid {
        gap: var(--mb-1-5);
        max-width: 600px;
        margin: 0 auto;
    }

    .project-grid {
        max-width: 500px;
    }

    .qualification__tabs {
        justify-content: center;
    }

    .qualification__button {
        margin: 0 var(--mb-1);
    }

    .profile-photo {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }

    .home-blob {
        width: 330px;
    }

    .about-card,
    .contact-card {
        padding: var(--mb-2) var(--mb-1-5);
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: var(--mb-1);
    }

    .contact-item {
        padding: var(--mb-1);
        text-align: center;
        gap: 0.75rem;
        flex-direction: column;
    }

    .contact-item i {
        font-size: 1.3rem;
    }

    .project-card {
        height: auto;
        max-width: 100%;
    }

    .project-image {
        padding-top: 56.25%;
    }

    .project-cover {
        height: 280px;
        padding-top: 60px;
        margin-top: -40px;
    }

    .project-cover .cover-image {
        border-radius: var(--border-radius);
    }

    .project-content {
        padding: var(--mb-1-5);
    }

    .project-title {
        font-size: 1.75rem;
    }

    .project-meta {
        flex-direction: column;
        gap: var(--mb-0-5);
    }

    .project-features {
        gap: var(--mb-0-5);
    }

    .feature-tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }

    .project-hero {
        height: 250px;
    }

    .experience-container {
        padding: 0 var(--mb-1);
    }

    .experience-item {
        width: 100%;
        padding: 1.25rem var(--mb-1);
        margin-bottom: var(--mb-1);
    }

    .experience-header {
        margin-bottom: var(--mb-1);
        padding-bottom: 0.75rem;
    }

    .experience-header h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .experience-header .company {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .experience-header .duration {
        font-size: 0.8rem;
    }

    .experience-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .experience-item,
    .project-details {
        padding: var(--mb-1-5);
    }

    .experience-header h3,
    .project-details h3 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: var(--mb-3);
        text-align: center;
        display: flex;
        justify-content: center;
    }

    #notable-projects .section-header h2 {
        font-size: 1.8rem;
    }

    .brand-item {
        margin: 0 var(--mb-1);
    }

    .brand-item img {
        height: 35px;
    }

    .featured-projects:before,
    .awards-section:before,
    .brands-section:before {
        clip-path: polygon(0 0, 100% 2%, 100% 98%, 0 100%);
    }
}

/* ===== MOBILE LARGE (576px) ===== */
@media (max-width: 576px) {

    .skills-grid,
    .profile-stats,
    .expertise-list,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .qualification__sections {
        display: grid;
        grid-template-columns: 0.6fr;
        justify-content: center;
    }

    .section {
        padding: 60px var(--mb-1-5);
        margin: 0 auto;
    }

    .skill-item {
        padding: var(--mb-1);
    }

    .skill-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .skill-icon {
        margin-right: 0;
        margin-bottom: var(--mb-0-5);
    }

    .contact-form,
    .contact-info {
        padding: var(--mb-1-5);
    }

    .form-group {
        margin-bottom: var(--mb-1);
    }

    .contact-item {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .contact-item-icon {
        margin: 0 auto;
    }

    .project-card {
        height: auto;
        max-width: 400px;
    }

    .project-image {
        height: 180px;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .project-meta {
        flex-direction: column;
        gap: var(--mb-0-5);
    }

    .project-meta span {
        width: fit-content;
    }

    .section-header h2,
    .section-title {
        font-size: var(--mb-2);
    }

    .section-header p {
        font-size: var(--normal-font-size);
    }

    #notable-projects .section-header h2 {
        font-size: 1.8rem;
    }
}

/* ===== MOBILE MEDIUM (480px) ===== */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: var(--mb-2);
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }


    .hero-container {
        padding: 0 var(--mb-1);
        gap: var(--mb-1-5);
        margin-bottom: 10px;
    }

    .home-blob {
        width: 250px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--mb-1);
    }

    .qualification__data {
        gap: var(--mb-0-5);
    }

    .section-title {
        font-size: var(--mb-2);
    }

    .section-header h2 {
        font-size: var(--mb-2);
    }

    .project-info {
        padding: var(--mb-1);
    }

    .project-info h3 {
        font-size: 1.125rem;
    }

    .experience-item {
        padding: 1.25rem;
        border-radius: var(--mb-0-5);
    }

    .experience-header h3 {
        font-size: 1.25rem;
    }

    .experience-header .company,
    .experience-header .duration {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.7rem var(--mb-1-5);
        font-size: 0.95rem;
    }
}

/* ===== SECTIONS RESPONSIVE STYLES ===== */

/* Experience Section - Tablet */
@media screen and (max-width: 768px) {
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .experience-header .duration {
        align-self: flex-start;
    }

    .experience-details ul {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .experience-content {
        padding: 2rem;
    }
}

/* Timeline Section - Tablet */
@media screen and (max-width: 768px) {
    .education-timeline::before {
        left: 15px;
    }

    .timeline-item {
        justify-content: flex-start !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 2rem;
    }

    .timeline-left,
    .timeline-right {
        justify-content: flex-start !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .timeline-left .timeline-content,
    .timeline-right .timeline-content {
        margin-left: 2rem !important;
        margin-right: 0 !important;
        text-align: left !important;
        max-width: calc(100% - 2rem);
        min-height: 100px;
    }

    .timeline-dot {
        left: 8px;
        transform: translateX(0);
        width: 10px;
        height: 10px;
    }
}

/* Timeline Section - Mobile */
@media screen and (max-width: 480px) {
    .education-timeline::before {
        left: 12px;
    }

    .timeline-dot {
        left: 6px;
        width: 8px;
        height: 8px;
        border: 1px solid white;
    }

    .timeline-left .timeline-content,
    .timeline-right .timeline-content {
        margin-left: 1.5rem !important;
        padding: 1rem 0.75rem;
        max-width: calc(100% - 1.5rem);
        min-height: 90px;
    }

    .timeline-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .timeline-subtitle {
        font-size: 0.75rem;
    }

    .timeline-date {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ===== HERO SECTION RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
        margin-bottom: 10px;
    }

    .hero-content .subtitle {
        font-size: 1.25rem;
        text-align: center;
        margin-bottom: var(--mb-1-5);
    }
    
    .hero-content {
        margin: 0 auto;
        max-width: 700px;
        text-align: center;
    }
    
    .hero .tagline {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        order: -1;
        margin: 2rem auto;
        width: 100%;
        max-width: 800px;
    }
    
    .home-img {
        max-width: 400px;
        width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }

}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: var(--mb-2);
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .hero-container {
        padding: 0 var(--mb-1);
        gap: var(--mb-1-5);
        margin-bottom: 10px;
    }

    .home-blob {
        width: 250px;
    }

}

/* ===== FEATURED PROJECTS RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    .featured-projects {
        padding: 0 1rem;
    }

    .project-carousel {
        max-width: 100%;
        min-height: 900px;
    }

    .featured-projects .project-card {
        margin: 0 0.5rem;
    }

    .featured-projects .project-image {
        height: 250px;
    }

    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .featured-projects .project-info h3 {
        font-size: 1.2rem;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
    }

    .carousel-arrow.prev {
        left: 0.5rem;
    }

    .carousel-arrow.next {
        right: 0.5rem;
    }

    /* Modal responsiveness */
    .featured-modal {
        padding: 1rem;
    }

    .featured-modal-content {
        max-height: 95vh;
    }

    .featured-modal-header {
        padding: 1.5rem;
    }

    .featured-modal-header h2 {
        font-size: 1.5rem;
    }

    .featured-modal-body {
        padding: 1.5rem;
    }

    .featured-project-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .featured-modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    /* Wide layout responsive */
    .featured-project-card.wide-layout {
        flex-direction: column;
        min-height: auto;
        max-height: none;
    }
    
    .wide-layout .featured-project-image {
        height: 250px;
        flex: none;
    }
    
    .wide-layout .featured-project-info {
        padding: 1.5rem;
    }
    
    .project-carousel {
        max-width: 100%;
        padding: 0 1rem;
        min-height: 800px;
    }
}

@media screen and (max-width: 480px) {
    .featured-project-info h3 {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.85rem;
    }
    
    .project-cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .project-carousel {
        max-width: 100%;
        padding: 0 1rem;
    }
}