/* COMPLETE FIXED responsive.css - REPLACE YOUR ENTIRE FILE WITH THIS */


/* MEDIA QUERIES */

@media screen and (max-width: 1400px) {
    section {
        margin: 0 5rem;
    }
}


/* Adjusted breakpoint for tablets and small laptops */

@media screen and (max-width: 1200px) {
    #desktop-nav {
        display: none;
    }
    #hamburger-nav {
        display: flex;
    }
    .section-container {
        flex-direction: column;
        align-items: center;
    }
    .section__pic-container {
        margin: 0 auto 2rem;
    }
}


/* Adjusted breakpoint for tablets and large phones */

@media screen and (max-width: 768px) {
    body {
        padding-top: 15vh;
    }
    #desktop-nav {
        display: none;
    }
    #hamburger-nav {
        display: flex;
        height: 15vh;
    }
    #hamburger-nav.scrolled {
        height: 8vh;
    }
    section {
        margin: 0 2rem;
        scroll-margin-top: 15vh;
    }
    .box-container {
        flex-direction: column !important;
    }
    .image-side {
        width: 100% !important;
        flex: 0 0 auto !important;
        max-width: 300px;
        margin: 0 auto;
    }
    .text-side {
        width: 100% !important;
        flex: 0 0 auto !important;
    }
    .about-containers {
        gap: 1rem;
    }
    .details-container {
        min-width: 100%;
    }
    .section__text__p2 {
        font-size: 1.5rem;
    }
    .title {
        font-size: 2.5rem;
    }
    .arrow {
        display: none;
    }
    .news-container {
        padding: 1.5rem;
    }
    .news-item {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    .news-date {
        flex: 0 0 90px;
    }
}


/* Mobile devices */

@media screen and (max-width: 600px) {
    body {
        padding-top: 12vh;
    }
    section {
        margin: 0 1rem;
        scroll-margin-top: 12vh;
    }
    #hamburger-nav {
        height: 12vh;
    }
    #hamburger-nav.scrolled {
        height: 7vh;
    }
    article {
        font-size: 1rem;
    }
    .about-containers,
    .contact-info-upper-container,
    .btn-container {
        flex-direction: column;
        align-items: center;
    }
    .contact-info-container {
        margin: 0.5rem 0;
    }
    .contact-info-container p,
    .nav-links li a {
        font-size: 1rem;
    }
    .experience-sub-title {
        font-size: 1.25rem;
    }
    .logo {
        font-size: 1.5rem;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .text-side {
        padding: 1.5rem;
    }
    .text-side h2 {
        font-size: 1.75rem;
    }
    .section__text__p2 {
        font-size: 1.25rem;
    }
    .title {
        font-size: 2rem;
    }
    footer {
        padding: 1.5rem 1rem 2rem;
    }
    footer nav {
        margin-bottom: 0.5rem;
    }
    .nav-links-container .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        max-width: 100%;
    }
    .nav-links-container .nav-links li {
        margin: 0 0.25rem;
    }
    .nav-links-container .nav-links li a {
        font-size: 0.9rem;
    }
    footer p {
        margin-top: 1.5rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    .news-container {
        padding: 1rem;
    }
    .news-item {
        flex-direction: column;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    .news-date {
        flex: 0 0 auto;
        margin-bottom: 0.5rem;
        padding-right: 0;
    }
    .news-content {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 768px) {
    .news-container {
        max-height: 360px;
        padding-right: 2rem;
    }
    .news-container::after {
        width: 1.2rem;
    }
}

@media screen and (max-width: 600px) {
    .news-container {
        padding-right: 1.5rem;
        max-height: 320px;
        scrollbar-width: thin !important;
        scrollbar-color: rgb(100, 100, 100) rgb(230, 230, 230);
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .scroll-indicator {
        display: block;
    }
    .news-container::-webkit-scrollbar {
        width: 5px !important;
        background-color: rgba(240, 240, 240, 0.5) !important;
    }
    .news-container::-webkit-scrollbar-thumb {
        background: rgba(100, 100, 100, 0.6) !important;
        border: 1px solid rgb(230, 230, 230) !important;
    }
    .news-container::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 10px !important;
        margin: 15px 0 !important;
    }
    .news-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .news-item.mobile-indicator {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        border-bottom: none;
        padding-bottom: 0;
    }
    .news-item.mobile-indicator .news-date {
        display: none;
    }
    .news-item.mobile-indicator .news-content {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .skills-wrapper {
        gap: 0.75rem;
    }
    .skill-capsule {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .skill-info {
        width: 250px;
    }
}

@media screen and (max-width: 600px) {
    .skills-wrapper {
        gap: 0.5rem;
    }
    .skill-capsule {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }
    .skill-info {
        width: calc(100vw - 20px);
        max-width: 300px;
        max-height: 60vh;
        overflow-y: auto;
    }
    .skill-info:before {
        left: calc(50% - 10px);
    }
    .skill-info::-webkit-scrollbar {
        width: 4px;
    }
    .skill-info::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    .skill-info::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }
}

@media screen and (max-width: 992px) and (min-width: 769px) {
    .project-buttons-side {
        max-width: 120px;
    }
    .project-btn {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 768px) {
    .project-item {
        flex-direction: column;
    }
    .project-image-side {
        flex: 0 0 auto;
        width: 100%;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    .slideshow-container {
        height: 250px;
    }
    .project-text-side {
        flex: 0 0 auto;
        width: 100%;
        padding-right: 0;
        margin-bottom: 1.5rem;
    }
    .project-buttons-side {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    .project-btn {
        width: auto;
        min-width: 120px;
        max-width: 45%;
        margin: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .projects-container {
        padding: 1.5rem;
    }
    .slideshow-container {
        height: 200px;
    }
    .project-buttons-side {
        flex-wrap: wrap;
    }
    .project-btn {
        min-width: 100px;
        max-width: 45%;
        font-size: 0.8rem;
        padding: 0.5rem 0.25rem;
    }
}

@media screen and (max-width: 600px) {
    footer {
        padding: 1.5rem 1rem 2rem;
    }
    .nav-links-container .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .nav-links-container .nav-links li {
        margin: 0 0.5rem 0.5rem;
    }
    footer p {
        margin-top: 1.5rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 1400px) {
    .awards-container {
        max-width: 1000px;
    }
    .award-card-body {
        padding: 1.8rem;
    }
    .award-title {
        font-size: 1.3rem;
    }
    .award-details p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 992px) {
     :root {
        --card-top-padding: 1.2em;
    }
    .awards-container {
        max-width: 90%;
    }
    .award-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .award-title {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: left;
        font-size: 1.2rem;
    }
    .award-year {
        font-size: 1rem;
    }
    .award-details p {
        font-size: 0.95rem;
    }
    .award-image-container {
        margin: 1.5rem 0;
    }
    .award-image {
        max-height: 220px;
    }
}

@media screen and (max-width: 768px) {
     :root {
        --card-margin: 3vh;
    }
    .awards-container {
        margin: 1.5rem auto;
    }
    .award-card-body {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
    .award-header {
        margin-bottom: 1.5rem;
    }
    .award-title {
        font-size: 1.1rem;
    }
    .award-details p {
        margin-bottom: 0.7rem;
    }
    .award-link {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    #awards {
        padding-bottom: 6rem;
    }
    .award-image {
        max-width: 85%;
        max-height: 200px;
    }
}

@media screen and (max-width: 576px) {
     :root {
        --card-top-padding: 1em;
        --card-margin: 2vh;
    }
    .award-card-body {
        padding: 1.2rem;
        border-radius: 1.2rem;
    }
    .award-header {
        margin-bottom: 1.2rem;
        padding-bottom: 0.8rem;
    }
    .award-year {
        font-size: 0.9rem;
    }
    .award-title {
        font-size: 1rem;
    }
    .award-details p {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    .award-image-container {
        margin: 1.2rem 0;
    }
    .award-image {
        max-width: 90%;
        max-height: 180px;
    }
    .award-links {
        justify-content: center;
    }
    .achievement-list {
        padding-left: 1rem;
    }
    .achievement-list li {
        margin-bottom: 0.6rem;
        font-size: 0.9rem;
    }
    #awards {
        padding-bottom: 5rem;
    }
}

@media screen and (max-width: 375px) {
    .award-card-body {
        padding: 1rem;
    }
    .award-content {
        padding: 0.3rem;
    }
    .award-title {
        font-size: 0.95rem;
    }
    .award-year {
        font-size: 0.85rem;
    }
    .award-image {
        max-width: 95%;
        max-height: 160px;
    }
    #awards {
        padding-bottom: 4rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .award-header {
        margin-bottom: 1rem;
    }
    .award-details p {
        margin-bottom: 0.5rem;
    }
    .award-image-container {
        margin: 1rem 0;
    }
    .award-image {
        max-height: 140px;
    }
    #awards {
        padding-bottom: 3rem;
    }
}


/* ===================================
   SECTION PROGRESS RESPONSIVE - FIXED
   =================================== */

@media screen and (max-width: 1200px) {
    .section-progress {
        right: 1rem;
    }
    .progress-dot::before {
        right: 20px;
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

@media screen and (max-width: 768px) {
    .section-progress {
        right: 0.75rem !important;
        gap: 0.75rem;
        display: flex !important;
    }
    .progress-dot {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
    .progress-dot.active {
        transform: scale(1.4);
    }
    .progress-dot:hover {
        transform: scale(1.2);
    }
    .progress-dot::before {
        right: 18px;
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

@media screen and (max-width: 600px) {
    .section-progress {
        right: 0.5rem !important;
        gap: 0.6rem;
        display: flex !important;
    }
    .progress-dot {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
    .progress-dot.active {
        transform: scale(1.3);
    }
    .progress-dot:hover {
        transform: scale(1.1);
    }
    .progress-dot::before {
        display: none;
    }
}


/* ===================================
   COURSEWORK RESPONSIVE
   =================================== */

@media screen and (max-width: 768px) {
    .course-categories {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .coursework-section {
        padding: var(--space-md);
    }
    .course-category-header {
        font-size: var(--font-size-lg);
    }
    .course-list li {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 600px) {
    .coursework-title {
        font-size: var(--font-size-2xl);
    }
    .course-category-box {
        padding: var(--space-md);
    }
}


/* ===================================
   DOWNLOAD CV BUTTON RESPONSIVE
   =================================== */

@media screen and (max-width: 600px) {
    .download-cv-button {
        font-size: 13px;
    }
    .download-cv-button .docs {
        min-height: 36px;
        padding: 0 12px;
        gap: 8px;
    }
    #socials-container {
        gap: var(--space-sm);
    }
}


/* ===================================
   INDUSTRY PAGE RESPONSIVE FIXES
   =================================== */

@media screen and (max-width: 1200px) {
    .skills-container {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    .skill-category {
        padding: 1rem !important;
        margin-bottom: 2rem !important;
    }
}

@media screen and (max-width: 992px) {
    .skills-container {
        padding: 0 0.5rem !important;
    }
    .skill-category {
        margin-bottom: 1.5rem !important;
    }
    .skill-category-title {
        font-size: 1.1rem !important;
    }
}

@media screen and (max-width: 768px) {
    .skills-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    .skill-category {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
        border-left-width: 3px !important;
    }
    .skill-category:hover {
        transform: translateX(2px) !important;
        border-left-width: 4px !important;
    }
    .skill-category-title {
        font-size: 1rem !important;
    }
    .skill-category-title::before {
        font-size: 1rem !important;
    }
    .industry-container .experience-item {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 1rem !important;
    }
    .industry-container .experience-item h3 {
        font-size: 1.1rem !important;
    }
    .industry-container .experience-date {
        font-size: 0.9rem !important;
    }
    .industry-container .experience-item p {
        font-size: 0.95rem !important;
    }
    .industry-container .experience-item ul {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    .industry-container .experience-item li {
        padding-left: 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

@media screen and (max-width: 600px) {
    .skills-container {
        padding: 0 !important;
    }
    .skill-category {
        padding: 0.75rem !important;
        margin-bottom: 1rem !important;
        border-radius: 0.75rem !important;
    }
    .skill-category-title {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    .skill-category-title::before {
        margin-right: 0.5rem !important;
        font-size: 0.9rem !important;
    }
    .industry-container .experience-item {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        border-radius: 0.75rem !important;
    }
    .industry-container .experience-item h3 {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
    }
    .industry-container .experience-date {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }
    .industry-container .experience-item p {
        font-size: 0.85rem !important;
        margin-bottom: 0.4rem !important;
    }
    .industry-container .experience-item ul {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    .industry-container .experience-item li {
        padding-left: 1.25rem !important;
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.4 !important;
    }
    .industry-container .experience-item li::before {
        font-size: 0.9rem !important;
    }
}

@media screen and (max-width: 480px) {
    .skill-category {
        padding: 0.6rem !important;
    }
    .industry-container .experience-item {
        padding: 0.6rem !important;
    }
    .industry-container .experience-item h3 {
        font-size: 0.95rem !important;
    }
    .industry-container .experience-item li {
        font-size: 0.75rem !important;
    }
}

@media screen and (max-width: 375px) {
    .skill-category {
        padding: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    .skill-category-title {
        font-size: 0.9rem !important;
    }
    .industry-container .experience-item {
        padding: 0.5rem !important;
    }
    .industry-container .experience-item h3 {
        font-size: 0.9rem !important;
    }
    .industry-container .experience-item p {
        font-size: 0.8rem !important;
    }
    .industry-container .experience-item li {
        font-size: 0.7rem !important;
        padding-left: 1rem !important;
    }
}