/* Desktop CSS - Optimized for screens 1024px and above */

/* Import Oswald variable font for title styling */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Lato:wght@400;700&display=swap');

/* KapraNeueMediumCondensed Font */
@font-face {
    font-family: 'KapraNeueMediumCondensed';
    src: url('/fonts/KapraNeueMediumCondensed.3bb312f4.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* KapraNeueRegular Font */
@font-face {
    font-family: 'KapraNeueRegular';
    src: url('/fonts/KapraNeueRegular.70e2cdd4.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

body, html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Agdasima', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 0.42vw;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.52vw;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.6));
    border-radius: 0.52vw;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.8));
}

/* Firefox scrollbar styling */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.1);
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Black Curtain for Panel Background */
.panel-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(0.42vw);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.panel-curtain.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 130vh;
    text-align: left;
    margin-top: -9.26vh;
    margin-left: 6.25vw;
}

.welcome-text {
    color: white;
    font-size: 10.00vw;
    font-weight: 900;
    animation: fadeInUp 2s ease-out;
    line-height: 0.95;
    margin-bottom: 1.85vh;
    margin-top: -20vw;
}

.subtitle {
    animation: fadeInUp 2s ease-out 0.3s both;
    opacity: 0; /* Start invisible to prevent flash before animation */
    font-size: 1.67vw;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2.78vh);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Right Sidebar Styles */
.right-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 5.63vw;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 1.04vw;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 3.70vh;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20.26vh;
    margin-bottom: 4.63vh;
    margin-right: 0.52vw;
}

.nav-item {
    transform: rotate(-90deg);
    white-space: nowrap;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-family: 'Saira', sans-serif;
    font-size: 0.83vw;
    font-weight: 600;
    letter-spacing: 0.26vw;
    text-transform: uppercase;
    transition: color 0.3s ease, text-shadow 0.3s ease !important;
    display: block;
    padding: 0.93vh 0;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.19vh;
    background-color: white;
    transition: width 0.4s ease !important;
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:active,
.nav-link.active {
    color: #f0f0f0;
}

.nav-link:active::after,
.nav-link.active::after {
    width: 100%;
}

/* Slide-out Panel Styles */
.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    /* width is defined per panel below */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(0.52vw);
    z-index: 25;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
    overflow: hidden;
    will-change: transform, background-color;
}

/* Different panel widths */
.contact-panel {
    width: 100% !important;
    height: 100vh !important;
    background: #d6c432 !important;
    backdrop-filter: none !important;
    transform: translateY(-100%) !important;
    right: 0 !important;
    left: 0 !important;
    top: 0 !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 9999 !important;
}
.contact-panel.active {
    transform: translateY(0) !important;
}

.resources-panel,
.products-panel,
.blog-panel,
.projects-panel {
    width: 80%;
}
.resources-panel.active,
.products-panel.active,
.blog-panel.active,
.projects-panel.active {
    transform: translateX(10%);
}

/* Separator line */
.slide-panel.active::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0.05vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.panel-content {
    padding: 5.93vh 2.08vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #333;
}

.panel-header {
    margin-bottom: 2.96vh;
}

.panel-header h2 {
    font-family: 'Agdasima', sans-serif;
    font-size: 2.34vw;
    font-weight: 700;
    line-height: 1.1;
    color: #333;
    text-transform: uppercase;
}

/* Contact Panel Close Button */
.panel-close-btn {
    position: absolute;
    top: 4.44vh;
    right: 2.34vw;
    width: 2.08vw;
    height: 3.70vh;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-close-btn::before,
.panel-close-btn::after {
    content: '';
    position: absolute;
    width: 1.56vw;
    height: 0.09vh;
    background-color: #000;
    transition: all 0.3s ease;
}

.panel-close-btn::before {
    transform: rotate(45deg);
}

.panel-close-btn::after {
    transform: rotate(-45deg);
}

.panel-close-btn:hover::before,
.panel-close-btn:hover::after {
    background-color: #333;
}

.panel-close-btn:hover::before {
    transform: rotate(135deg);
}

.panel-close-btn:hover::after {
    transform: rotate(45deg);
}

/* Contact Panel specific content adjustments */
.contact-panel .panel-content {
    padding: 5.93vh 2.08vw;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.contact-header {
    position: absolute;
    top: 8.89vh;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    overflow: hidden;
}

.contact-image {
    max-width: 20.83vw;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
    cursor: pointer;
}

.contact-image:hover {
    /* Removed zoom effect for contact image */
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.46vh;
    align-items: center;
    justify-content: center;
}

.contact-link {
    font-family: 'Raleway', sans-serif;
    font-size: 1.67vw;
    font-weight: 100;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0px;
    transition: all 0.3s ease;
    display: block;
}

.contact-link:hover {
    color: #333;
    transform: scale(1.05);
}

/* Resources Panel Menu Styles */
.panel-menu {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 2.96vh;
}

.panel-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.panel-nav-list li {
    margin-bottom: 0;
}

.panel-nav-link {
    color: #333;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.34vw;
    font-weight: 700;
    letter-spacing: 0.08vw;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
    padding-bottom: 0.15vh;
    overflow: hidden;
}

/* Hover border animation - spans only the text width */
.panel-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.28vh;
    background-color: #000;
    transition: width 0.4s ease;
}

.panel-nav-link:hover::after {
    width: 100%;
}

/* Panel background transition merged into the main .slide-panel declaration above */

/* Products Panel Slider Styles */
.panel-slider {
    flex: 1;
}

.slider-section h3 {
    font-family: 'Agdasima', sans-serif;
    font-size: 2.08vw;
    font-weight: 700;
    margin-bottom: 1.48vh;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.17vw;
}

.slider-section p {
    font-family: 'Agdasima', sans-serif;
    font-size: 0.83vw;
    line-height: 1.6;
    margin-bottom: 2.96vh;
    color: #666;
    max-width: 31.25vw;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.96vh;
    margin-top: 2.96vh;
}

.product-item {
    text-align: center;
}

.product-item img {
    width: 100%;
    height: 29.63vh;
    object-fit: cover;
    border-radius: 0.67vw;
    margin-bottom: 1.48vh;
}

.product-item h4 {
    font-family: 'Agdasima', sans-serif;
    font-size: 0.83vw;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.08vw;
}

/* Change nav links to black when panel is active */
.right-sidebar.panel-active .nav-link {
    color: #333;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.right-sidebar.panel-active .nav-link::after {
    background-color: #333;
    transition: width 0.4s ease;
}

.right-sidebar.panel-active .nav-link:hover {
    color: #666;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Add left border to sidebar when panels are active */
.right-sidebar.panel-active {
    border-left: 0.05vw solid rgba(128, 128, 128, 0.1);
}

/* Breathing Technology Gallery Styles */
.breathing-container {
    max-width: 57.29vw;
    width: 100%;
    text-align: left;
    height: 100%;
    overflow-y: auto;
    padding: 2.96vh 1.04vw;
    margin-left: 4.69vw;
    margin-top: 3.70vh;
}

.breathing-header {
    margin-bottom: 2.22vh;
}

.breathing-title {
    font-family: 'Oswald', 'KapraNeueMediumCondensed', sans-serif;
    font-size: 3.13vw;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin: 0 0 2.22vh 0;
    text-transform: uppercase;
    text-align: left;
    color: #333;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Variable font weight for each letter in BLOGS */
.blog-panel .breathing-title span:nth-child(1) { font-variation-settings: 'wght' 900; font-weight: 900; } /* B - Boldest */
.blog-panel .breathing-title span:nth-child(2) { font-variation-settings: 'wght' 600; font-weight: 600; } /* L */
.blog-panel .breathing-title span:nth-child(3) { font-variation-settings: 'wght' 500; font-weight: 500; } /* O */
.blog-panel .breathing-title span:nth-child(4) { font-variation-settings: 'wght' 300; font-weight: 300; } /* G */
.blog-panel .breathing-title span:nth-child(5) { font-variation-settings: 'wght' 100; font-weight: 100; } /* S - Thinnest */

/* Variable font weight for each letter in PROJECTS */
.projects-panel .breathing-title span:nth-child(1) { font-variation-settings: 'wght' 900; font-weight: 900; } /* P - Boldest */
.projects-panel .breathing-title span:nth-child(2) { font-variation-settings: 'wght' 800; font-weight: 800; } /* R */
.projects-panel .breathing-title span:nth-child(3) { font-variation-settings: 'wght' 700; font-weight: 700; } /* O */
.projects-panel .breathing-title span:nth-child(4) { font-variation-settings: 'wght' 600; font-weight: 600; } /* J */
.projects-panel .breathing-title span:nth-child(5) { font-variation-settings: 'wght' 500; font-weight: 500; } /* E */
.projects-panel .breathing-title span:nth-child(6) { font-variation-settings: 'wght' 400; font-weight: 400; } /* C */
.projects-panel .breathing-title span:nth-child(7) { font-variation-settings: 'wght' 300; font-weight: 300; } /* T */
.projects-panel .breathing-title span:nth-child(8) { font-variation-settings: 'wght' 100; font-weight: 100; } /* S - Thinnest */

.breathing-description {
    font-family: 'Raleway', sans-serif;
    font-size: 0.83vw;
    line-height: 1.6;
    max-width: 33.85vw;
    margin: 0;
    color: #555;
    text-align: left;
}

.breathing-gallery {
    display: flex;
    justify-content: flex-start;
    gap: 2.08vw;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 1.48vh;
}

.gallery-item {
    flex: 1;
    max-width: 50.63vw;
    min-width: 7.81vw;
    text-align: left;
}

.gallery-item .image-container {
    overflow: hidden;
    margin-bottom: 1.48vh;
}

.gallery-item img {
    width: 100%;
    height: 65.63vh;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease 0.1s;
    cursor: pointer;
    transform: scale(1);
    border-radius: 0;
}

/* Responsive project images - position from top in desktop */
.gallery-item .project-responsive-img {
    object-position: top;
}

/* Zoom effect on hover with delay */
.gallery-item:hover img {
    transform: scale(1.08);
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

/* Smooth transition back when not hovering */
.gallery-item img:not(:hover) {
    transition: transform 1s ease 0s;
}

.gallery-item .caption {
    font-family: 'Raleway', sans-serif;
    font-size: 0.91vw;
    font-weight: 600;
    color: #333;
    text-align: left;
    margin: 0;
    line-height: 1.3;
}

/* Loading state for images */
.image-loading {
    font-family: 'Raleway', sans-serif;
    width: 100%;
    height: 29.63vh;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4caf50;
    font-size: 0.75vw;
    border-radius: 0;
    margin-bottom: 1.48vh;
}

/* Read More and See More Card Styles */
.read-more-container,
.see-more-container {
    width: 100%;
    height: 65.63vh;
    border: 0.10vw solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.read-more-container:hover,
.see-more-container:hover {
    border-color: #999;
    background-color: rgba(0, 0, 0, 0.05);
}

.read-more-content,
.see-more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.74vh;
}

.read-more-content h3,
.see-more-content h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.00vw;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08vw;
}

.arrow-icon {
    font-size: 1.67vw;
    color: #333;
    transition: transform 0.3s ease;
}

.read-more-container:hover .arrow-icon,
.see-more-container:hover .arrow-icon {
    transform: translateX(0.42vw);
}

/* Ripple Animation Styles */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(79, 172, 254, 0.4);
    transform: scale(0);
    animation: ripple-expand 1.2s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes ripple-expand {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    50% {
        transform: scale(0.5);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Ensure content stays above ripple */
.read-more-content,
.see-more-content {
    position: relative;
    z-index: 2;
}

/* Nature Impact Section Styles - Desktop */
.nature-impact {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: auto repeat(12, 1fr);
    grid-template-rows: repeat(12, minmax(4.44vh, 10vh));
    gap: 2.08vw;
    align-items: start;
    padding-left: 4.17vw;
    padding-right: 4.17vw;
    min-height: 100vh;
    background: var(--bg, #ffffff);
    color: var(--text, #0a0a0a);
    position: relative;
    z-index: 1;
    padding-bottom: 22.22vh;
}

.nature-impact-title {
    grid-row: 2 / -1;
    grid-column: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'KapraNeueMediumCondensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 2.60vw;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0;
    padding-top: 0.93vh;
    justify-self: start;
    align-self: start;
    position: sticky;
    top: 1.85vh;
    z-index: 10;
    margin-left: -1.04vw;
}

.nature-impact .headline {
    grid-column: 2 / span 7;
    grid-row: 3 / span 6;
    font-family: "KapraNeueMediumCondensed", "Antonio", sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    line-height: 1.2;
    font-size: 2.60vw;
    color: var(--text, #0a0a0a);
    margin-left: 2.08vw;
}

.nature-impact .headline br.lb {
    display: initial;
}

.nature-impact .img-tall {
    grid-column: 9 / -2;
    grid-row: 5 / span 6;
    height: 100%;
    margin-top: 6.22vh;
}

.nature-impact .img-wide {
    grid-column: 2 / span 5;
    grid-row: 10 / span 3;
    height: 100%;
    margin-left: 3.33vw;
}

.nature-impact figure {
    margin: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.nature-impact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
    cursor: pointer;
}

.nature-impact img:hover {
    transform: scale(1.08);
}

/* Skills Section Styles - Desktop */
.skills-section {
    width: 105%;
    margin: 0;
    background-color: #d6c432;
    color: #000000;
    padding-top: 8.89vh;
    min-height: 115vh;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3.33vw;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-left: -1.08vw;
}

.skills-title {
    grid-column: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'KapraNeueMediumCondensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 2.60vw;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0;
    padding-top: 0.93vh;
    justify-self: start;
    align-self: start;
    position: sticky;
    top: 1.85vh;
    z-index: 10;
    margin-left: 4.4vw;
}

.skills-container {
    grid-column: 2;
    max-width: 67.71vw;
    width: 100%;
    text-align: left;
    margin-left: 1.9vw;
    margin-top: 8.5vh;
    padding-bottom: 10vh;
}

.skills-main-heading {
    font-family: 'KapraNeueMediumCondensed', sans-serif;
    font-size: 2.50vw;
    line-height: 1.2;
    letter-spacing: 0.04vw;
    text-transform: uppercase;
    max-width: 46.88vw;
    margin: 0 0 2.78vh 0;
    text-align: left;
    color: #000000;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.26vw;
    max-width: 87vw;
    margin-bottom: 9.26vh;
    width: 76vw;
}

.skill-card {
    background-color: rgba(0, 0, 0, 0.05);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.46vh 0.16vw;
    gap: 0.28vh;
    transition: transform 0.3s ease, background-color 0.3s ease;
    min-height: 2.78vh;
}

.skill-card:hover {
    transform: translateY(-0.19vh);
    background-color: rgba(0, 0, 0, 0.1);
}

.skill-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.skill-logo {
    font-size: 2vw;
    color: #000000;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-logo {
    transform: scale(1.1);
}

.skill-text-container {
    text-align: center;
    flex: 0;
}

.skill-name {
    font-family: 'Raleway', sans-serif;
    font-size: 0.54vw;
    font-weight: 500;
    margin: 0;
    color: #000000;
    line-height: 1.1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
    padding-bottom: 1vh;
}

/* Professional Experience Section Styles - Desktop */
.professional-experience-section {
    background-color: #F1EEE4;
    font-family: 'Lato', sans-serif;
    color: #111;
    width: 100%;
    margin: 0;
    padding: 7.41vh 4.17vw;
    min-height: 100vh;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3.33vw;
    align-items: start;
    position: relative;
    z-index: 1;
    padding-bottom: 22.22vh;
}

.experience-title {
    grid-column: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'KapraNeueMediumCondensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 2.6vw;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0;
    padding-top: 1.48vh;
    justify-self: start;
    align-self: start;
    position: sticky;
    top: 2.96vh;
    z-index: 10;
    margin-left: -0.8vw;
}

.experience-content {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: -30vw;
}

/* Main headline styling */
.professional-experience-section .main-heading {
    font-family: 'KapraNeueMediumCondensed', sans-serif;
    font-size: 2.92vw;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08vw;
    line-height: 1.2;
    max-width: 62.50vw;
    margin-left: 13.02vw;
}

/* Grid container for the content columns */
.professional-experience-section .content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4.44vh 3.33vw;
    max-width: 62.50vw;
    margin: 0 auto;
}

/* Two-column layout - always active for desktop */
.professional-experience-section .content-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

/* Column styling for stacking items */
.professional-experience-section .content-column {
    display: flex;
    flex-direction: column;
    gap: 5.93vh;
}

/* Individual card styling for each topic */
.professional-experience-section .info-card {
    overflow: hidden;
}

.professional-experience-section .info-card img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 4.22vh;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
    cursor: pointer;
}

.professional-experience-section .info-card img:hover {
    transform: scale(1.08);
}

.professional-experience-section .info-card h2 {
    font-family: 'KapraNeueMediumCondensed', sans-serif;
    font-size: 1.25vw;
    text-transform: uppercase;
    margin: 0 0 1.11vh 0;
    letter-spacing: 0.04vw;
    font-weight: normal;
}

.professional-experience-section .info-card p {
    font-size: 0.83vw;
    line-height: 1.6;
}

.professional-experience-section .left-column .info-card p {
    width: 22.14vw;
}

.professional-experience-section .right-column .info-card p {
    width: 26.04vw;
}

.professional-experience-section .right-column {
    margin-top: 70vh;
    margin-left: 12.1vw;
}
.professional-experience-section .left-column {
    margin-left: 5.6vw;
}

.professional-experience-section .middle-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 57.92vw;
    height: 103.70vh;
    margin-top: 10vh;
    gap: 2.22vh;
    margin-left: 23.02vw;
}

.professional-experience-section .middle-column .text-content {
    margin-right: 20.31vw;
}

/* Projects Section Styles - Desktop */
.projects-section {
    background-color: #ffffff;
    color: #111111;
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 1;
    padding-top: 7.41vh;
    padding-bottom: 7.41vh;
}

.projects-grid {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 2.96vh 3.33vw;
    max-width: 83.33vw;
    margin: 0 auto;
    margin-bottom: 14.81vh;
    padding: 0 0.83vw;
    margin-left: 6.7vw;
    margin-top: -7.41vh;
}

.projects-title {
    grid-row: 1 / -1;
    grid-column: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'KapraNeueMediumCondensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 2.6vw;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0;
    padding-top: 1.48vh;
    justify-self: start;
    align-self: start;
    position: sticky;
    top: 2.96vh;
    z-index: 10;
    margin-left: 3.35vw;
}

.project {
    max-width: 100%;
    overflow: hidden;
}

.project img {
    display: block;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
    cursor: pointer;
}

.project img:hover {
    transform: scale(1.08);
}

.project-info {
    margin-top: 1.48vh;
}

.project-subtitle {
    font-size: 0.75vw;
    color: #555;
    margin: 0 0 0.74vh 0;
}

.project-headline {
    font-family: 'KapraNeueMediumCondensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.04vw;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 0.74vh 0;
    line-height: 1.3;
    letter-spacing: 0.04vw;
}

.project-location {
    font-size: 0.75vw;
    color: #555;
    margin: 0;
    max-width: 40vw;
}

.project-1 {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-left: 0.83vw;
}

.project-1-img {
    width: 34.60vw;
    max-width: 33.33vw;
    height: auto;
    margin-bottom: 3vh;
}

.project-2 {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    margin-top: 29.63vh;
    width: 28.93vw;
    margin-left: 7.1vw;
}

.project-2-img {
    width: 28.88vw;
    height: 41.48vh;
    margin-bottom: 3vh;
}

.project-3 {
    grid-column: 2 / span 2;
    grid-row: 4;
    max-width: 80vw;
    justify-self: center;
    margin-left: 18.06vw;
}

.project-3-img {
    width: 57.5vw;
    margin-bottom: 5vh;
}


/* See More Projects Button Styles */
.see-more-projects-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5.93vh;
    margin-bottom: 2.96vh;
    padding: 0 1.67vw;
}

.see-more-projects-btn {
    background: transparent;
    border: 0.10vw solid #333333;
    color: #333333;
    font-family: 'Raleway', sans-serif;
    font-size: 0.83vw;
    font-weight: 600;
    letter-spacing: 0.08vw;
    text-transform: uppercase;
    padding: 2.22vh 2.92vw;
    border-radius: 4.17vw;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.83vw;
    transition: all 0.3s ease;
}

.see-more-projects-btn:hover {
    background: #333333;
    color: #ffffff;
    transform: translateY(-0.19vh);
}

.see-more-projects-btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-text {
    transition: transform 0.3s ease;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.50vw;
    height: 2.67vh;
    transition: transform 0.3s ease;
}

.see-more-projects-btn:hover .btn-icon {
    transform: translateX(0.25vw);
}

.see-more-projects-btn:focus {
    outline: 0.10vw solid #333333;
    outline-offset: 0.10vw;
}

.btn-ripple {
    display: none;
}

/* Hide mobile-only close button on desktop */
.mobile-close-item {
    display: none !important;
}


/* ========================================
   CHATBOT STYLES
   ======================================== */

/* Floating Chatbot Button */
.chatbot-float-btn {
    background: transparent;
    position: absolute;
    z-index: 1000;
    border: none;
    bottom: 0;
    right: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.chatbot-float-btn:hover {
    filter: brightness(0.8);
}


.chatbot-float-icon {
    background: transparent;
    width: 5rem;
    height: auto;
    object-fit: contain;
}

/* Chatbot Panel */
.chatbot-panel {
    width: 100% !important;
    height: 100vh !important;
    background: #b2e0e1 !important;
    backdrop-filter: none !important;
    transform: translateY(100%) !important;
    right: 0 !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 9999 !important;
    border: none !important;
    box-shadow: none !important;
}

.chatbot-panel.active {
    transform: translateY(0) !important;
}

/* Chatbot Close Button */
.chatbot-close-btn {
    position: absolute;
    top: 4.44vh;
    right: 2.34vw;
    width: 2.08vw;
    height: 3.70vh;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-close-btn::before,
.chatbot-close-btn::after {
    content: '';
    position: absolute;
    width: 1.56vw;
    height: 0.09vh;
    background-color: #000;
    transition: all 0.3s ease;
}

.chatbot-close-btn::before {
    transform: rotate(45deg);
}

.chatbot-close-btn::after {
    transform: rotate(-45deg);
}

.chatbot-close-btn:hover::before,
.chatbot-close-btn:hover::after {
    background-color: #333;
}

.chatbot-close-btn:hover::before {
    transform: rotate(135deg);
}

.chatbot-close-btn:hover::after {
    transform: rotate(45deg);
}

/* Chatbot Content */
.chatbot-content {
    padding: 5.93vh 2.08vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #000;
    justify-content: center;
    align-items: center;
    max-width: 80vw;
    margin: 0 auto;
}

.chatbot-header {
    padding-bottom: 2vh;
    border-bottom: 0.1vh solid rgba(0, 0, 0, 0.1);
    margin-bottom: 2vh;
    text-align: center;
}

.chatbot-header h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5vw;
    font-weight: 600;
    color: #000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1vw;
}

.chatbot-messages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 3vh;
    padding-right: 1vw;
    width: 100%;
}

.chatbot-messages-container::-webkit-scrollbar {
    display: none;
}

.chatbot-messages-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.chatbot-welcome {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    text-align: left;
    padding: 6vh 2vw;
    gap: 3vh;
}

.chatbot-welcome-icon {
    width: 12vw;
    height: 12vw;
    object-fit: contain;
    opacity: 0.9;
}

.chatbot-welcome p {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5vw;
    color: #000;
    margin: 0;
    font-weight: 100;
}

.chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.chatbot-message {
    display: flex;
    flex-direction: column;
    max-width: 60%;
    padding: 1.5vh 1.5vw;
    border-radius: 1.5vh;
    font-family: 'Playfair Display', serif;
    font-size: 1.1vw;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2vh);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-message.user {
    align-self: flex-end;
    color: #000;
}

.chatbot-message.bot {
    align-self: flex-start;
    color: #000;
    display: flex;
    align-items: flex-start;
    gap: 0.8vw;
}

.chatbot-message-icon {
    width: 2vw;
    height: 2vw;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.3vh;
}

.chatbot-input-container {
    display: flex;
    gap: 1vw;
    padding-top: 2vh;
    border-bottom: 0.15vh solid rgba(0, 0, 0, 0.2);
    width: 100%;
    position: relative;
}

.chatbot-input-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.15vh;
    background: #000;
    transition: width 0.3s ease;
}

.chatbot-input-container:hover::after {
    width: 100%;
}

.chatbot-input {
    flex: 1;
    padding: 1.5vh 1.5vw;
    border: none;
    border-radius: 3vh;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1vw;
    outline: none;
    transition: border-color 0.3s ease;
    background: transparent;
}

.chatbot-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.chatbot-send-btn {
    width: 3.5vw;
    height: 3.5vw;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0;
}

.chatbot-send-btn:hover {
    transform: scale(1.1);
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

.chatbot-send-btn i {
    font-size: 1.2vw;
}

/* Hide welcome message when there are messages */
.chatbot-messages-container.has-messages .chatbot-welcome {
    display: none;
}

/* Loading indicator */
.chatbot-message.loading {
    opacity: 0.7;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3vw;
    padding: 0.5vh 0;
}

.typing-indicator span {
    width: 0.5vw;
    height: 0.5vw;
    background-color: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-0.8vh);
        opacity: 1;
    }
}

/* Error message styling */
.chatbot-message.error span {
    color: #d32f2f;
}

/* Markdown styling in bot messages */
.chatbot-message.bot span p {
    margin: 0.5vh 0;
    line-height: 1.6;
}

.chatbot-message.bot span p:first-child {
    margin-top: 0;
}

.chatbot-message.bot span p:last-child {
    margin-bottom: 0;
}

.chatbot-message.bot span h1,
.chatbot-message.bot span h2,
.chatbot-message.bot span h3,
.chatbot-message.bot span h4,
.chatbot-message.bot span h5,
.chatbot-message.bot span h6 {
    margin: 1vh 0 0.5vh 0;
    font-weight: 700;
    line-height: 1.3;
}

.chatbot-message.bot span h1 { font-size: 1.4em; }
.chatbot-message.bot span h2 { font-size: 1.3em; }
.chatbot-message.bot span h3 { font-size: 1.2em; }
.chatbot-message.bot span h4 { font-size: 1.1em; }
.chatbot-message.bot span h5 { font-size: 1.05em; }
.chatbot-message.bot span h6 { font-size: 1em; }

.chatbot-message.bot span code {
    background-color: rgba(0, 0, 0, 0.08);
    padding: 0.2vh 0.4vw;
    border-radius: 0.2vw;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.9em;
    color: #c7254e;
}

.chatbot-message.bot span pre {
    background-color: #1e1e1e;
    padding: 1.2vh 1vw;
    border-radius: 0.4vw;
    overflow-x: auto;
    margin: 1vh 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-message.bot span pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.85em;
    line-height: 1.5;
    color: #d4d4d4;
    font-family: 'Courier New', 'Consolas', monospace;
}

.chatbot-message.bot span strong {
    font-weight: 700;
}

.chatbot-message.bot span em {
    font-style: italic;
}

.chatbot-message.bot span a {
    color: #1976d2;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.chatbot-message.bot span a:hover {
    color: #1565c0;
}

.chatbot-message.bot span ul,
.chatbot-message.bot span ol {
    margin: 0.5vh 0;
    padding-left: 2vw;
}

.chatbot-message.bot span li {
    margin: 0.3vh 0;
    line-height: 1.5;
}

.chatbot-message.bot span blockquote {
    margin: 1vh 0;
    padding: 0.5vh 0 0.5vh 1vw;
    border-left: 0.2vw solid #ddd;
    color: #666;
    font-style: italic;
}

.chatbot-message.bot span hr {
    margin: 1vh 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.chatbot-message.bot span table {
    border-collapse: collapse;
    margin: 1vh 0;
    width: 100%;
}

.chatbot-message.bot span table th,
.chatbot-message.bot span table td {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5vh 0.5vw;
    text-align: left;
}

.chatbot-message.bot span table th {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: 700;
}
