/* Reset & Base */
:root {
    --color-primary: #1995ad;
    --color-dark: #05161A;
    --color-green-deep: #072E25;
    --color-green-mid: #0C4A3A;
    --color-green-light: #145E46;
    --color-text: #EAFDF8;
    --transition-speed: 0.8s;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-dark);
    color: var(--color-text);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    overflow-y: hidden;
    height: 100vh;
    width: 100%;
    /* Use % to avoid scrollbar width issues */
}

/* Accordion Container */
.accordion-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.accordion-item {
    position: relative;
    height: 100%;
    flex: 0 0 60px;
    background: var(--color-green-mid);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: flex var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.accordion-item:nth-of-type(1) .accordion-header {
    background: #105b49;
}

.accordion-item:nth-of-type(2) .accordion-header {
    background: #0e4e3e;
}

.accordion-item:nth-of-type(3) .accordion-header {
    background: #0c4034;
}

.accordion-item:nth-of-type(4) .accordion-header {
    background: #093229;
}

.accordion-item:nth-of-type(5) .accordion-header {
    background: #07251e;
}

.accordion-item.active {
    flex: 1;
    cursor: default;
    background-color: var(--color-green-deep);
    z-index: 100;
}

.accordion-header {
    height: 100%;
    width: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    transition: background 0.3s;
}

.accordion-header h2 {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 4px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s, letter-spacing 0.3s;
}

.accordion-item:hover .accordion-header h2,
.accordion-item.active .accordion-header h2 {
    color: #fff;
    letter-spacing: 6px;
}

.accordion-content {
    flex: 1;
    height: 100%;
    margin-left: 60px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out 0.2s, transform 0.6s ease-out 0.2s;
    transform: translateX(20px);
    position: relative;
    overflow-y: auto;
}

.accordion-item.active .accordion-content {
    opacity: 1;
    visibility: visible;
    transform: none;
    z-index: 20;
}

/* Curriculum Tab Specifics */
#tab-curriculum .accordion-content {
    padding-bottom: 0.5rem;
}

#tab-curriculum .content-wrapper {
    padding-top: 2rem;
    text-align: inherit;
}

/* Desktop-only Scroll Lock & Styled PDF Scroll */
@media (min-width: 901px) {
    #tab-curriculum .accordion-content {
        overflow: hidden !important;
        /* Disable Page Scroll */
        display: flex;
        flex-direction: column;
    }

    #tab-curriculum .content-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        /* Prevent wrapper scroll */
        padding-bottom: 1rem !important;
        height: 100%;
    }

    .curriculum-embed-container {
        flex: 1;
        width: 100%;
        /* Ensure full width */
        height: 100% !important;
        /* Fit to parent */
        overflow: hidden !important;
        /* Disable Container Scroll */
        margin-bottom: 0;
        display: block;
        /* Ensure block layout */
    }

    /* Force iframe to be tall enough to trigger container scroll 
       but essentially match the aspect ratio of the zoomed content 
       (85vh * 1.82 = ~155vh) to avoid empty gray space */
    .curriculum-iframe {
        width: 100% !important;
        /* Force full width */
        height: 100% !important;
        /* Fit to container */
        min-height: 0;
        display: block;
    }
}

#tab-curriculum .section-title {
    width: 85%;
    margin: 0 auto 1rem auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#tab-curriculum .section-title h1 {
    margin: 0;
    padding: 0;
    line-height: 1;
    text-align: left;
}

.content-wrapper {
    max-width: 100%;
    padding: 2rem 4rem;
    position: relative;
    z-index: 2;
}

/* About Wrapper Specifics for Full Height */
.about-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    /* Prevent internal scroll if possible */
    padding: 2vh 4rem !important;
    /* Dynamic padding */
}

/* Fix for Short Desktop Screens: Enable scrolling to prevent button overlap */
@media (min-width: 901px) and (max-height: 900px) {
    .about-wrapper {
        height: auto !important;
        min-height: 100%;
        overflow: visible !important;
        display: block !important;
        /* Ensure natural stacking */
        padding-bottom: 2rem !important;
    }

    .top-section {
        margin-bottom: 3rem;
        /* Push footer away */
    }

    .bottom-section {
        margin-top: 0;
    }
}

.top-section {
    flex: 1;
    /* Take available space */
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center vertically content */
    gap: 2rem;
    margin-bottom: 1vh;
    min-height: 0;
    /* Allow shrinking */
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2vh;
    /* Reduced gap slightly to fit more text */
    height: 100%;
}

.hero-text h4 {
    color: #64ffda;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: clamp(1.2rem, 3.5vw, 4.5rem);
    /* Dynamic width-based scaling */
    line-height: 1.2;
    max-width: 100%;
    margin-bottom: 0;
}

.hero-text h1 {
    font-size: clamp(1.2rem, 2.8vw, 4rem);
    /* Drastic reduction to prevent multi-line overflow */
    line-height: 1.1;
    background: linear-gradient(to right, #a5d6c8, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
    width: 100%;
    margin-bottom: 1vh;
    padding-top: 0;
    max-width: 100%;
    /* Occupy full available width as requested */
}

/* Photo Block */
.photo-block {
    flex: 0 1 auto;
    width: auto;
    height: auto;
    max-height: 55vh;
    /* STRICT height limit */
    min-height: 250px;
    /* Prevent being crushed too small */
    flex-shrink: 1;
    /* Allow shrinking */
    max-width: 35vw;
    /* STRICT width limit */
    aspect-ratio: 3 / 5;
    /* User requested 3x5 on web */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px solid #64ffda;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0;
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    align-items: center;
    overflow: hidden;
    /* Ensure rounded corners apply correctly */
}

.photo-block img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Strictly prevent cropping/zoom */
    border-radius: 10px;
}

.description {
    font-size: clamp(1rem, 1.5vw, 1.6rem);
    /* Dynamic width-based scaling */
    line-height: 1.6;
    max-width: 100%;
    color: #c4ccd6;
    margin-top: 0;
    margin-bottom: 2vh;
    text-align: justify !important;
    /* Always justify */
    flex-grow: 0;
}

/* Cleaned up CSS syntax error here */

/* Button "Minha Trajetória" & "Baixar Currículo" */
.buttons-container {
    display: flex;
    justify-content: center;
    /* Center buttons relative to container */
    gap: 2rem;
    /* Increased space between buttons */
    margin: 2vh auto 2vh auto;
    /* Adjusted margins */
    width: 100%;
    flex-wrap: wrap;
    /* Allow wrapping */
}

/* Cleaned up duplicate styling */

.read-more-btn {
    display: inline-block;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid #64ffda;
    color: #64ffda;
    padding: 0.6em 1.5em;
    /* Scalable padding */
    font-size: clamp(0.9rem, 1.5vh, 1rem);
    /* Responsive font */
    font-family: inherit;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    margin: 0;
    /* Margin handled by container gap */
}

.download-btn-about {
    display: inline-block;
    background: rgba(100, 255, 218, 0.1);
    /* Subtle background to differentiate */
    border: 1px solid #64ffda;
    color: #64ffda;
    padding: 0.6em 1.5em;
    /* Scalable padding matching read-more */
    font-size: clamp(0.9rem, 1.5vh, 1rem);
    /* Responsive font */
    font-family: inherit;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    /* Link reset */
    width: fit-content;
    line-height: normal;
    /* Ensure vertical alignment */
}

.download-btn-about:hover {
    background: rgba(100, 255, 218, 0.2);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.read-more-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.2);
}

/* Footer Section */
.bottom-section {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    width: 100%;
    margin-top: auto;
    /* Push footer to bottom */
    flex-shrink: 0;
    /* Never shrink footer */
}

.contact-block {
    text-align: right;
    /* Force right alignment */
    flex: 1;
}

.hobbies-block {
    text-align: left;
    /* Force left alignment */
    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: start;
    gap: 0.5rem 2rem;
    flex: 1;
}

.hobby-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #8892b0;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.hobby-item img {
    width: 20px;
    height: 20px;
    filter: invert(84%) sepia(35%) saturate(546%) hue-rotate(106deg) brightness(101%) contrast(101%);
}

.hobbies-block h3 {
    grid-column: 1 / -1;
}

.contact-block h3,
.hobbies-block h3 {
    font-size: clamp(1.2rem, 2.5vh, 1.5rem);
    margin-bottom: 0.5vh;
    color: #fff;
    line-height: 1.2;
}

.contact-block p {
    color: #8892b0;
    margin-bottom: 0.2rem;
    font-size: clamp(0.9rem, 1.8vh, 1.1rem);
}

.contact-block a {
    color: #64ffda;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-block a:hover {
    color: #fff;
}

/* --- General Content --- */
.section-title h4 {
    color: #64ffda;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title h1 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: #e6f1ff;
}

/* Timeline */
.timeline {
    margin-top: 3rem;
    border-left: 2px solid rgba(100, 255, 255, 0.2);
    padding-left: 2rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    height: 100%;
    align-items: start;
}

.split-col {
    position: relative;
    padding-right: 2rem;
}

.split-col.left-col {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.split-col.right-col {
    padding-left: 1rem;
    padding-right: 0;
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split-col.left-col {
        border-right: none;
        padding-right: 0;
    }

    .split-col.right-col {
        padding-left: 0;
    }
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--color-dark);
    border: 2px solid #64ffda;
    border-radius: 50%;
    z-index: 2;
}

.timeline-item .year {
    color: #64ffda;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    line-height: 1;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.cert-item {
    position: relative;
    max-width: 100%;
    cursor: pointer;
    transition: transform 0.2s;
}

.cert-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.cert-item::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 6px;
    width: 10px;
    height: 10px;
    background: #64ffda;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(100, 255, 218, 0.5);
}

.cert-item h3 {
    font-size: 1.5rem;
    color: #e6f1ff;
    margin-bottom: 0.2rem;
}

.cert-item h4 {
    font-size: 1.3rem;
    color: #a8b2d1;
    margin-bottom: 0.1rem;
    font-weight: 500;
    font-style: normal;
}

.cert-item p {
    font-size: 1.15rem;
    color: #b0c4de;
    line-height: 1.5;
    margin-top: 0;
}

/* PDF Preview */
.cert-preview {
    display: none;
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    max-width: 50vw;
    max-height: 90vh;
    background: #fff;
    border: 5px solid #64ffda;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 999999;
    padding: 0;
}

.cert-item:hover .cert-preview {
    display: block;
    animation: fadeIn 0.3s ease;
}

.cert-preview iframe,
.cert-preview object,
.cert-preview embed {
    width: 100%;
    height: 100%;
    border: none;
}

.cert-preview img {
    display: block;
    max-width: 45vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(10px, -50%);
    }

    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

.global-preview-container {
    display: none;
    position: fixed;
    left: 5rem;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    max-width: 45vw;
    max-height: 85vh;
    background: #fff;
    border: 5px solid #64ffda;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 2147483647;
    /* Max z-index possible */
    padding: 0;
    pointer-events: none;
    /* Pass through clicks */
}

.global-preview-container img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

/* Hide original nested preview on desktop since we use global */
@media (min-width: 901px) {
    .cert-item:hover .cert-preview {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .cert-preview {
        display: none !important;
    }
}

/* Certificate Modal */
.cert-modal-content {
    background: #1e1e1e;
    width: 95%;
    max-width: 1200px;
    height: 95vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cert-modal-body {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-modal-body embed,
.cert-modal-body iframe,
.cert-modal-body img {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
}

/* Projects & Skills */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-bottom: 2rem;
    padding: 0;
    position: relative;
    height: 65vh;
    grid-template-rows: repeat(2, 1fr);
}

.project-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    padding-bottom: 3.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card h3 {
    text-transform: uppercase;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.card-text {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    /* Additional buffer from footer */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    /* Default stricter limit */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s;
}

/* Dynamic Line Clamp based on Height - Agressive prevention of overlap */
@media (min-width: 901px) and (min-height: 951px) {
    .card-text {
        -webkit-line-clamp: 6;
        /* Only for very tall screens */
    }
}

@media (min-width: 901px) and (max-height: 950px) {
    .card-text {
        -webkit-line-clamp: 5;
    }
}

@media (min-width: 901px) and (max-height: 800px) {
    .card-text {
        -webkit-line-clamp: 4;
    }
}

@media (min-width: 901px) and (max-height: 700px) {
    .card-text {
        -webkit-line-clamp: 3;
    }
}

@media (min-width: 901px) and (max-height: 600px) {
    .card-text {
        -webkit-line-clamp: 2;
    }
}

/* Restore margin for inner elements */
.card-text ul {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
    font-size: 1.15rem;
}

.card-text li {
    margin-bottom: 0.3rem;
}

.card-tags {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
}

.card-tags span {
    font-size: 0.9rem;
    color: #64ffda;
    background: rgba(100, 255, 218, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
}

.card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 1rem;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #64ffda;
    font-size: 1rem;
    font-weight: 500;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
    filter: invert(84%) sepia(35%) saturate(546%) hue-rotate(106deg) brightness(101%) contrast(101%);
}

.card-image-col {
    display: none;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(100, 255, 218, 0.3);
    border-radius: 8px;
    height: auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Always Square */
    position: relative;
    overflow: hidden;
}

/* Expansion Logic */
/* Hover Expansion Logic - DESKTOP ONLY (min-width: 901px) */
/* Prevents hover from triggering on mobile devices */
@media (min-width: 901px) {
    .projects-grid:hover .project-card:not(:hover) {
        opacity: 0.2;
        filter: blur(2px);
        transition: opacity 0.3s, filter 0.3s;
    }

    /* Desktop Collapsed Card Title */
    .project-card h3 {
        font-size: 1.4rem;
        /* Increased from 1.15rem */
    }

    .project-card:hover {
        position: absolute;
        z-index: 1000;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        margin: 0 !important;
        background: #0d2d24;
        border: 2px solid #64ffda;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.95);

        /* Grid Setup for Unboxed Content */
        /* Grid Setup for Unboxed Content */
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        /* Text Area vs Image Area */
        grid-template-rows: auto min-content min-content;
        /* Title, Text, Tags - Natural height */
        gap: 0.5rem 2rem;
        /* Reduced vertical gap */
        padding: 2.5rem;
        align-content: start;
        /* Align content to start to keep title at top */
        transform: none;
        overflow-y: auto;
        /* Enable scroll if content overflows */
    }

    /* Unbox the card-content wrapper so children participate in main grid */
    .project-card:hover .card-content {
        display: contents;
    }

    /* Title: Top Center */
    .project-card:hover h3 {
        grid-column: 1 / -1;
        text-align: center;
        font-size: 2.2rem;
        /* Larger Title */
        margin-bottom: 2rem;
        width: 100%;
        border-bottom: 1px solid rgba(100, 255, 218, 0.1);
        padding-bottom: 1rem;
    }

    /* Text: Left Column */
    .project-card:hover .card-text {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        -webkit-line-clamp: unset;
        overflow: visible;
        /* No scroll needed */
        display: block;
        padding-right: 1rem;
        max-height: none;
        /* Remove constraint */
        font-size: clamp(1rem, 2vh, 1.4rem);
        /* Dynamic Font Size */
        text-align: justify;
        margin-bottom: 1rem;
        /* Space before tags */
    }

    /* Tags: Left Column, below text */
    .project-card:hover .card-tags {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        display: flex;
        flex-wrap: wrap;
        opacity: 1;
        animation: none;
        align-self: start;
        /* Follows text immediately */
        margin-top: 0;
    }

    /* Image: Right Column, Spanning Text & Tags rows */
    .project-card:hover .card-image-col {
        grid-column: 2 / 3;
        grid-row: 2 / 4;
        display: block;
        width: 100%;
        height: 100%;
        max-width: 550px;
        /* Safety cap */
        max-height: 550px;
        /* Safety cap */
        min-height: 0;
        align-self: center;
        /* Center in cell */
        justify-self: center;
        /* Center in cell */
        order: unset;
        border-radius: 8px;
        overflow: hidden;
        margin: auto;
        /* Ensure spacing from edges */
    }

    .project-card:hover .card-image-col img {
        object-fit: cover;
        /* Cover the area without distortion */
        width: 100%;
        height: 100%;
        border-radius: 8px;
        display: block;
    }

    /* Hide footer */
    .project-card:hover .card-footer {
        display: none;
    }

    /* SPECIFIC: No-Image Card Layout */
    .project-card.no-image:hover {
        grid-template-columns: 1fr;
        /* Single column */
        justify-items: center;
        /* Center content horizontally */
    }

    .project-card.no-image:hover .card-text {
        grid-column: 1 / -1;
        /* Span full width */
        max-width: 80%;
        /* Restrict width for readability */
        justify-self: center;
        text-align: justify;
        /* Keep text justified */
        margin-right: 0;
        /* Reset padding/margin */
        padding-right: 0;
    }

    .project-card.no-image:hover .card-tags {
        grid-column: 1 / -1;
        justify-self: center;
        justify-content: center;
    }

    /* Custom Scrollbar for text area */
    .project-card:hover .card-text::-webkit-scrollbar {
        width: 4px;
    }

    .project-card:hover .card-text::-webkit-scrollbar-thumb {
        background-color: rgba(100, 255, 218, 0.3);
        border-radius: 4px;
    }
}

.card-image-col img,
.carousel-slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the square */
    /* Ensure full image is visible */
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    /* Dark background for letterboxing */
}

/* Skills List */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.skill-tag {
    padding: 0.5rem 1.2rem;
    border: 1px solid #64ffda;
    color: #64ffda;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.skill-tag:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Updated Skills List */
.skills-content {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category h3 {
    color: #64ffda;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.skill-category ul {
    list-style: none;
    padding-left: 0;
}

.skill-category li {
    font-size: 1.15rem;
    color: #b0c4de;
    margin-bottom: 1.3rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    top: 0.3rem;
    color: #64ffda;
    font-size: 1.3rem;
    line-height: 1.5;
}

.skill-category strong {
    color: #e6f1ff;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
    display: block;
}

/* Curriculum Download Button */
.download-btn {
    position: static;
    display: inline-block;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid #64ffda;
    color: #64ffda;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
    margin: 0;
    float: none;
    transform: none;
}

.download-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.mobile-btn-container {
    display: none;
}

.curriculum-embed-container {
    margin: 1rem auto 0 auto;

    /* Width increased by ~30% from previous 1.4 multiplier (1.4 * 1.3 ≈ 1.82) */
    width: min(100%, calc(85vh * (210 / 297) * 1.82));

    /* Fixed height to screen portion, iframe handles scroll internally */
    height: 85vh;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: transparent;
    overflow-y: hidden;
    /* Prevent scrollbar double */
    scrollbar-width: thin;
    scrollbar-color: #64ffda rgba(255, 255, 255, 0.05);
}

.curriculum-svg {
    width: 100%;
    min-width: 800px;
    height: auto;
    display: block;
    transition: width 0.3s ease;
}

/* Backgrounds */
.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.about-bg {
    background-image: radial-gradient(circle at 10% 20%, #064e3b 0%, transparent 50%);
}

.exp-bg {
    background-image: radial-gradient(circle at 90% 80%, #064e3b 0%, transparent 50%);
}

.proj-bg {
    background-image: radial-gradient(circle at 50% 50%, #065f46 0%, transparent 60%);
}

.seek-bg {
    background-image: radial-gradient(circle at 10% 20%, #064e3b 0%, transparent 50%);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.open,
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0C4A3A;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    max-height: 90vh;
    border-radius: 12px;
    border: 1px solid #64ffda;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    color: #EAFDF8;
    padding: 0;
}

.modal-overlay.open .modal-content,
.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(12, 74, 58, 0.9);
    border: none;
    color: #64ffda;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    z-index: 20;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 3rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
    padding-bottom: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.modal-body p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #b0c4de;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.modal-body strong {
    color: #64ffda;
    font-weight: 600;
}

/* Global Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    /* Horizontal scrollbar height */
}

::-webkit-scrollbar-track {
    background: #05161A;
}

::-webkit-scrollbar-thumb {
    background: #145E46;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64ffda;
    /* Highlight on hover for better UX */
}

/* Specific override for Modal Body to ensure it follows */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #05161A;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #145E46;
    border-radius: 4px;
}

/* Carousel */
.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slides img.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 100;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel:hover .carousel-btn {
    opacity: 1;
}

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

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

.carousel-btn:hover {
    background: rgba(100, 255, 218, 0.4);
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #64ffda;
    box-shadow: 0 0 5px rgba(100, 255, 218, 0.5);
}

/* Seek Content Styling */
.seek-content {
    max-width: 1200px;
    /* Increased 25% from 900px */
    margin-top: 2rem;
}

.seek-content p,
.seek-content li {
    font-size: clamp(1.2rem, 2.5vh, 2.5rem);
    /* Adjusted for desktop responsiveness */
    line-height: 1.5;
    color: #b0c4de;
    margin-bottom: 2vh;
    text-align: justify;
}

.seek-content strong {
    color: #64ffda;
    font-weight: 700;
}

/* Responsive & Mobile Ready */
@media (max-width: 900px) {
    body {
        overflow-y: auto;
        /* Allow vertical scroll on mobile */
        overflow-x: hidden !important;
        /* Force no horizontal scroll */
        height: auto;
        width: 100%;
    }

    .accordion-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .accordion-item {
        flex: 0 0 60px;
        width: 100%;
        height: auto;
        min-height: 60px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        overflow: visible !important;
        /* Allow fixed popup to escape */
    }

    .accordion-item.active {
        flex: 0 0 auto;
        height: auto;
    }

    .accordion-header {
        width: 100%;
        height: 60px;
        padding-left: 2rem;
        justify-content: flex-start;
        position: relative;
        background: rgba(0, 0, 0, 0.3);
    }

    .accordion-header h2 {
        writing-mode: horizontal-tb;
        transform: none;
        letter-spacing: 2px;
        font-size: 1rem;
    }

    .accordion-content {
        margin-left: 0;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        transition: opacity 0.3s ease !important;
        /* Remove transform transition */
        height: auto;
        overflow: visible;
        display: none;
        padding-bottom: 2rem;
    }

    .accordion-item.active .accordion-content {
        display: block;
    }

    .content-wrapper {
        padding: 2rem 1.5rem;
    }

    .top-section {
        flex-direction: column-reverse;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .hero-text,
    .description {
        max-width: 100%;
    }

    .hero-text h4 {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .photo-block {
        width: 70%;
        max-width: 320px;
        height: auto;
        min-height: 0 !important;
        /* Override global 250px min-height */
        /* aspect-ratio removed to fit content strictly */
        margin: 0 auto;
        flex: 0 0 auto;
        overflow: hidden;
        display: block;
        line-height: 0;
    }

    .photo-block img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Reset About Wrapper for Mobile Scroll */
    .about-wrapper {
        height: auto;
        display: block;
        overflow: visible;
        padding: 2rem 1.5rem !important;
    }

    .bottom-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    /* Stack buttons on mobile */
    .buttons-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .buttons-container a,
    .buttons-container button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .contact-block {
        text-align: right;
    }

    .hobbies-block {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .hobby-item span {
        white-space: nowrap !important;
        /* Prevent line breaks */
    }

    /* Modal Text Refinement for Mobile */
    .modal-body {
        padding: 1.5rem 1rem !important;
        /* Reduced side padding */
    }

    .modal-body p {
        text-align: justify !important;
        /* Justified Text */
    }

    /* Project Cards Mobile Overrides */
    .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        height: auto;
        padding-bottom: 2rem;
    }

    .projects-grid:hover .project-card:not(:hover) {
        opacity: 1;
        /* Disable the dimming effect on mobile */
        filter: none;
    }

    /* NEUTRALIZE HOVER ON MOBILE */
    .project-card:not(.mobile-expanded):hover {
        position: relative !important;
        width: 100% !important;
        /* ... existing ... */
    }

    /* Compact collapsed card */
    .project-card:not(.mobile-expanded) {
        padding: 1.5rem 1.25rem !important;
        /* Move content down slightly */
        min-height: 150px !important;
        height: auto !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        /* Start from top */
        gap: 0.5rem;
        /* Space between title and text */
    }

    .project-card:not(.mobile-expanded) .card-text p {
        /* Show a bit more text */
        -webkit-line-clamp: 3 !important;
        /* Increased from 2 */
        margin-bottom: 0;
    }



    .project-card:not(.mobile-expanded):hover .card-text {
        -webkit-line-clamp: 3 !important;
        overflow: hidden !important;
        display: -webkit-box !important;
    }

    .project-card:not(.mobile-expanded):hover .card-tags,
    .project-card:not(.mobile-expanded):hover .card-image-col {
        display: none !important;
    }

    .project-card:not(.mobile-expanded):hover .card-footer {
        display: flex !important;
    }

    .project-card:not(.mobile-expanded):hover h3 {
        font-size: 1.15rem !important;
    }

    .project-card:not(.mobile-expanded):hover .card-content {
        order: unset !important;
        padding-right: 0 !important;
        max-height: none !important;
    }

    .project-card {
        min-height: 250px;
        /* Enforce min-height to fit content + footer */
        height: auto;
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Stack from top, don't spread unnecessarily */
        padding-bottom: 3.5rem;
        /* Large bottom padding for absolute footer */
        position: relative;
        /* Context for absolute footer */
        overflow: hidden;
    }

    /* Force "Ler mais" to appear in collapsed state */
    .project-card .card-footer {
        position: absolute;
        /* Pin to bottom */
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex !important;
        /* Always show footer in mobile list view */
        margin-top: 0;
        padding: 1rem;
        background: linear-gradient(to top, #0d2d24 80%, transparent);
        /* Fade effect */
    }



    .card-text {
        -webkit-line-clamp: 3;
        /* Limit text lines in preview */
        display: -webkit-box;
        overflow: hidden;
        margin-bottom: 0.5rem;
    }

    .card-tags {
        display: none;
        /* Hide tags in preview to save space */
    }

    .card-image-col {
        display: none;
        /* Hide image in preview */
    }

    .project-card.mobile-expanded::after {
        display: none;
    }

    /* Revert seek content font for mobile */
    .seek-content p,
    .seek-content li {
        font-size: clamp(0.9rem, 2vh, 1.8rem) !important;
        margin-bottom: 1.5rem !important;
    }

    .curriculum-embed-container {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        /* Proportional height */
        margin-top: 1rem;
        overflow-y: hidden;
        /* Let iframe scroll */
    }

    .curriculum-iframe {
        width: 100% !important;
        height: 100% !important;
        display: block;
    }

    .section-title .download-btn {
        display: none;
    }

    .mobile-btn-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-top: 1.5rem;
        padding-bottom: 2rem;
        /* Add some padding at bottom */
    }

    .mobile-download {
        display: inline-block;
        width: 100%;
        max-width: 300px;
        /* Optional cap */
    }

    .project-card.mobile-expanded .card-text {
        text-align: justify;
    }
}

/* --- Responsive Grid for Highlights (Narrow Desktop/Tablet) --- */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* switch to 2 cols */
        overflow-y: auto;
        /* Allow scroll if needed */
        height: auto;
        max-height: 70vh;
    }
}

@media (max-width: 700px) {
    .projects-grid {
        grid-template-columns: 1fr !important;
        /* switch to 1 col */
    }
}

/* Removed rogue duplicate block */

.project-card.mobile-expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: auto;
    max-height: 85vh;
    /* Ensure it fits in viewport */
    max-width: 500px;
    background: #0d2d24;
    z-index: 99999;
    /* Super high z-index */
    margin: 0 !important;
    padding: 1.5rem;
    display: flex;
    flex-direction: column !important;
    /* Force column stack */
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.85);
    border: 2px solid #64ffda;
    justify-content: flex-start;
}

/* Unbox content to allow reordering mixed with image */
.project-card.mobile-expanded .card-content {
    display: contents;
}

/* 1. Title */
.project-card.mobile-expanded h3 {
    order: 1;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    padding-bottom: 0.5rem;
    width: 100%;
}

/* 2. Text */
.project-card.mobile-expanded .card-text {
    order: 2;
    text-align: justify;
    margin-bottom: 1.5rem;
}

/* 3. Image */
.project-card.mobile-expanded .card-image-col {
    display: block !important;
    order: 3 !important;
    width: 100%;
    max-width: 300px;
    height: 0 !important;
    /* Height is set by padding */
    padding-top: 100%;
    /* Force 1:1 Aspect Ratio (Circle/Square) */
    /* aspect-ratio: 1 / 1; Removed in favor of padding trick */
    margin: 0 auto 1.5rem auto;
    flex-shrink: 0;
    position: relative;
    z-index: 5002;
    visibility: visible !important;
    background: transparent;
    overflow: hidden;
    /* Crop content */
}

/* 4. Tags */
.project-card.mobile-expanded .card-tags {
    order: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* Left Alignment */
    gap: 0.5rem;
}

/* Fix Carousel Visibility */
.project-card.mobile-expanded .carousel,
.project-card.mobile-expanded .carousel-slides {
    visibility: visible !important;
    opacity: 1;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0;
    left: 0;
    border-radius: 8px;
    /* Match parent radius */
}

/* Only the ACTIVE image should be displayed (JS handles display:block/none) */
.project-card.mobile-expanded .card-image-col img {
    visibility: visible !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px;
    position: absolute;
    /* Force it to overlay correctly */
    top: 0;
    left: 0;
}

.project-card.mobile-expanded .carousel-btn,
.project-card.mobile-expanded .carousel-indicators {
    display: flex !important;
    visibility: visible !important;
    z-index: 5010;
}

/* Close Button Indicator - Sticky & Overlay */
.project-card.mobile-expanded::before {
    content: '\00D7';
    position: sticky;
    /* Sticks to top of scroll container */
    top: 10px;
    align-self: flex-end;
    /* Align to right */

    /* Overlay Styles */
    margin-bottom: -50px;
    /* Pull content up so it doesn't push */
    opacity: 0.7;

    font-size: 2.5rem;
    color: #64ffda;
    cursor: pointer;
    line-height: 0.6;
    z-index: 5005;
    /* Highest */
    background: rgba(13, 45, 36, 0.9);
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    margin-right: 10px;
    /* Spacing from edge */
    width: 40px;
    height: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.project-card.mobile-expanded::after {
    display: none;
}


/* --- Responsive Grid for Highlights (Narrow Desktop/Tablet) --- */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* switch to 2 cols */
        overflow-y: auto;
        /* Allow scroll if needed */
        height: auto;
        max-height: 70vh;
    }
}

@media (max-width: 700px) {
    .projects-grid {
        grid-template-columns: 1fr !important;
        /* switch to 1 col */
    }
}

/* --- "Square" / Portrait Desktop/Tablet Fix --- */
/* Trigger mobile layout on wider screens that are vertically constrained OR squarish */
@media (max-width: 1200px) and (min-height: 800px),
(max-aspect-ratio: 1/1) {
    .about-wrapper {
        overflow-y: auto !important;
        /* Enable scroll */
        display: block !important;
        padding-top: 1.5rem !important;
    }

    .top-section {
        flex-direction: column-reverse !important;
        gap: 1.5rem;
        align-items: center !important;
        margin-bottom: 2rem;
    }

    .hero-text {
        text-align: center;
        gap: 1rem;
    }

    .hero-text h1,
    .hero-text h4,
    .description {
        text-align: center;
    }

    .photo-block {
        width: 60%;
        max-width: 320px;
        height: auto;
        min-height: 0 !important;
        /* Override global 250px min-height */
        /* Remove fixed ratio to fit content */
        aspect-ratio: auto !important;
        max-height: none;
        margin-top: 1rem;
        display: block;
        /* Ensure it wraps content */
        line-height: 0;
    }

    .photo-block img {
        width: 100%;
        height: auto !important;
        object-fit: contain !important;
    }

    .bottom-section {
        flex-direction: row !important;
        /* Keep row even in this mode */
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .hobbies-block {
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .contact-block {
        text-align: right !important;
    }

    .hobby-item {
        justify-content: flex-start !important;
    }
}

/* Flex Reordering for Mobile Expanded */
.project-card.mobile-expanded {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Reduced global gap */
}

.project-card.mobile-expanded .card-content {
    display: contents;
    /* Allow children to be reordered by parent flex */
}

.project-card.mobile-expanded h3 {
    order: 1;
    font-size: 1.3rem;
    /* Slightly smaller for compact view */
    margin-bottom: 0.2rem;
    margin-top: 0;
    line-height: 1.2;
}

.project-card.mobile-expanded .card-text {
    order: 2;
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
    margin-bottom: 0.5rem;
    /* Reduced margin */
    font-size: 1.15rem;
    /* Increased readability */
    color: #e6f1f3;
    /* Brighter text color */
}

.project-card.mobile-expanded .card-image-col {
    order: 3;
    /* Image after text */
    display: block;
    width: 100%;
    max-width: 100%;
    /* Use full width available */
    height: auto;
    aspect-ratio: auto;
    /* Let image dictate ratio, or keep squarish if needed */
    max-height: 40vh;
    /* Limit height to see more tags */
    margin: 0.5rem 0;
    /* Vertical spacing */
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-card.mobile-expanded .card-tags {
    order: 4;
    /* Tags LAST */
    display: flex;
    opacity: 1;
    margin-top: 0.5rem;
    /* Space after image */
    margin-bottom: 0;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 0.3rem;
    /* Tighter tags */
}

.project-card.mobile-expanded .card-tags span {
    font-size: 0.75rem;
    /* Reduced tag size */
    padding: 0.3rem 0.6rem;
}

.project-card.mobile-expanded .card-footer {
    display: none !important;
}

.project-card.mobile-expanded .card-image-col img {
    object-fit: contain;
    /* Ensure full image visibility */
    width: 100%;
    height: 100%;
    background: none;
    /* Remove dark backdrop */
}

.download-btn {
    position: static;
    display: block;
    margin: 1rem auto;
    width: fit-content;
    float: none;
    transform: none;
}

#tab-curriculum .section-title {
    text-align: center;
}
}

/* --- Large Screens / Desktop Scaling (min-width: 1600px) --- */
@media (min-width: 1600px) {

    /* Scale Typography Base */
    html {
        font-size: 18px;
        /* Increases all rem values by 12.5% */
    }

    /* Accordion Navigation - Keep Thin */
    .accordion-item {
        flex: 0 0 60px;
        /* Force default size */
    }

    .accordion-header {
        width: 60px;
        min-width: 60px;
    }

    .accordion-content {
        margin-left: 60px;
    }

    /* Scale Content Spacing */
    .content-wrapper {
        padding: 4rem 7rem;
        max-width: 2000px;
        /* Prevent excessive stretching on ultra-wide */
        margin: 0 auto;
    }

    /* About Section */
    .hero-text h1 {
        font-size: 5rem;
        /* Larger hero title */
    }



    /* Projects Grid */
    .projects-grid {
        gap: 2.5rem;
    }

    /* Timeline Scaling */
    .timeline {
        margin-top: 4rem;
        padding-left: 3rem;
    }

    .timeline-item::before {
        left: -3.6rem;
        width: 20px;
        height: 20px;
    }

    .cert-item::before {
        left: -3.45rem;
    }

    .cert-item::before {
        left: -3.45rem;
    }
}

/* Ensure global justification override */
.description,
.seek-content p {
    text-align: justify !important;
}

.seek-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

/* Utility classes for PDF Viewer */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}


.seek-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #c4ccd6;
}