/* Tablet CSS - Optimized for screens 769px to 1023px */

/* 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: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.6));
    border-radius: 10px;
    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(8px);
    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;
}

/* Hide navbar when projects panel is active */
.panel-curtain.active ~ .right-sidebar {
    display: none !important;
}

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

.welcome-text {
    color: white;
    font-size: 13rem;
    font-weight: 700;
    animation: fadeInUp 2s ease-out;
    line-height: 1.1;
    max-width: 90%;
    margin-left: 10vw;
}

.subtitle {
    animation: fadeInUp 2s ease-out 0.3s both;
    opacity: 0;
    font-size: 2.5rem;
    margin-left: 10vw;
}

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

/* Right Sidebar - Vertical Navbar for Tablets (Desktop Style) */
.right-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 5.5vw;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 1vw;
}

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

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

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.2vh;
    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 for Tablets */
.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 90%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

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

/* Different panel widths for tablets */
.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;
}

.panel-content {
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #333;
}

.panel-header {
    margin-bottom: 2rem;
}

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

/* Panel Menu Styles for Tablets */
.panel-menu {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 2rem;
}

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

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

.panel-nav-link {
    color: #333;
    text-decoration: none;
    font-family: 'Agdasima', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.panel-nav-link:hover {
    color: #666;
}

/* Contact Panel Styles for Tablets */
.contact-panel .panel-content {
    padding: 3rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.contact-image {
    max-width: 70vw;
    height: auto;
    display: block;
    margin: 10vh auto;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
    cursor: pointer;
}

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

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

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

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

/* Contact Panel Close Button */
.contact-panel .panel-close-btn {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    width: 35px;
    height: 35px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-panel .panel-close-btn::before,
.contact-panel .panel-close-btn::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

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

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

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

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

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

/* Breathing Technology Gallery Styles for Tablets */
.breathing-container {
    max-width: 100%;
    width: 100%;
    text-align: left;
    height: 100%;
    overflow-y: hidden;
    padding: 2rem 1.5rem;

}

.breathing-header {
    margin-bottom: 2.5rem;
}

.breathing-title {
    font-family: 'Oswald', 'KapraNeueMediumCondensed', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin: 0 0 1.2rem 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.95rem;
    line-height: 1.6;
    max-width: 550px;
    margin: 0;
    color: #555;
    text-align: left;
}

.breathing-gallery {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 1rem;
    flex-direction: column;
}

.gallery-item {
    flex: 1;
    max-width: 220px;
    min-width: 85vw;
    text-align: left;
}

.gallery-item .image-container {
    overflow: hidden;
    margin-bottom: 0.8rem;
    border-radius: 6px;
}

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

/* Reduced zoom effect on tablets for better UX */
.gallery-item:hover img {
    transform: scale(1.05);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
}

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

.gallery-item .caption {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    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: 320px;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4caf50;
    font-size: 0.85rem;
    border-radius: 0;
    margin-bottom: 0.8rem;
}

/* Read More and See More Card Styles for Tablets */
.read-more-container,
.see-more-container,
.mobile-close-container {
    width: 100%;
    height: 7vh;
    border: 2px 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;
}

.see-more-container{
    margin-top: 2vw;
    margin-bottom: 3vw !important;
}

.mobile-close-container {
    margin-top: -3vh;
}

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

.read-more-content,
.see-more-content,
.mobile-close-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
}

.read-more-content h3,
.see-more-content h3,
.mobile-close-content h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arrow-icon,
.close-icon {
    font-size: 1.8rem;
    color: #333;
    transition: transform 0.3s ease;
}

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

.mobile-close-container:hover .close-icon {
    transform: rotate(90deg);
}

/* Ripple Animation Styles for Tablets */
.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,
.mobile-close-content {
    position: relative;
    z-index: 2;
}

/* Nature Impact Section Styles - Tablet */
.nature-impact {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: auto repeat(11, 1fr);
    grid-template-rows: repeat(12, minmax(50px, 8vh));
    gap: clamp(14px, 2.5vw, 30px);
    align-items: start;
    padding-left: clamp(1.5rem, 4vw, 3rem);
    padding-right: 10vw;
    min-height: 100vh;
    background: var(--bg, #ffffff);
    color: var(--text, #0a0a0a);
    position: relative;
    z-index: 1;
    padding-top: 5vh;
    height: 100vh;
}

.nature-impact-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: 2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0;
    padding-top: 1rem;
    justify-self: start;
    align-self: start;
    position: sticky;
    top: 2rem;
    z-index: 10;
}

.nature-impact .headline {
    grid-column: 2 / span 8;
    grid-row: 1 / span 6;
    font-family: "KapraNeueMediumCondensed", "Antonio", sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    line-height: 1.2;
    font-size: clamp(26px, 3.6vw, 48px);
    color: var(--text, #0a0a0a);
}

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

.nature-impact .img-tall {
    grid-column: 10 / -1;
    grid-row: 4 / span 6;
    height: 100%;
    width: 35vw;
}

.nature-impact .img-wide {
    grid-column: 2 / span 6;
    grid-row: 8 / span 4;
    height: 18vh;
    width: 36vw;
    margin-top: 12vh;
}

.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 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
    cursor: pointer;
}

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

/* Skills Section Styles - Tablet */
.skills-section {
    width: 100%;
    margin: 0;
    background-color: #d6c432;
    color: #000000;
    padding: 4rem clamp(1.5rem, 4vw, 3rem);
    min-height: 100vh;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    height: 110vh;
}

.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: 2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0;
    padding-top: 1rem;
    justify-self: start;
    align-self: start;
    position: sticky;
    top: 2rem;
    z-index: 10;
}

.skills-container {
    grid-column: 2;
    max-width: 80vw;
    width: 100%;
    text-align: left;
    margin-bottom: 5vh;
    margin-left: -3vw;
}

.skills-main-heading {
    font-family: 'KapraNeueMediumCondensed', sans-serif;
    font-size: clamp(1.8rem, 7.5vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    max-width: 800px;
    margin: 0 0 2.5rem 0;
    text-align: left;
    color: #000000;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.8rem;
    max-width: 100%;
}

.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.6rem 0.4rem;
    gap: 0.4rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    min-height: 70px;
}

.skill-card:hover {
    transform: translateY(-2px);
    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: 20px;
    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.6rem;
    font-weight: 500;
    margin: 0;
    color: #000000;
    line-height: 1.1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
}

/* Professional Experience Section Styles - Tablet */
.professional-experience-section {
    background-color: #F1EEE4;
    font-family: 'Lato', sans-serif;
    color: #111;
    width: 100%;
    margin: 0;
    padding: 4rem clamp(1.5rem, 4vw, 3rem);
    min-height: 100vh;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.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: 2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0;
    padding-top: 1rem;
    justify-self: start;
    align-self: start;
    position: sticky;
    top: 2rem;
    z-index: 10;
}

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

/* Main headline styling */
.professional-experience-section .main-heading {
    font-family: 'KapraNeueMediumCondensed', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    /* Responsive font size */
    font-weight: normal;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    max-width: 900px;
    margin-bottom: 2rem;
    margin-left: -10vw;
    
}

/* Grid container for the content columns */
.professional-experience-section .content-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column on mobile */
    gap: 2.5rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Two-column layout for tablets and desktops */
@media (min-width: 768px) {
    .professional-experience-section .content-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        margin-left: -3vw;
        /* Align columns to the top */
    }
}

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

/* 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: 1.2rem;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
    cursor: pointer;
}

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

.professional-experience-section .info-card h2 {
    font-family: 'KapraNeueMediumCondensed', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin: 0 0 0.6rem 0;
    letter-spacing: 0.5px;
    font-weight: normal;
}

.professional-experience-section .info-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 45ch;
    /* Improves readability */
}

.professional-experience-section .right-column {
    margin-top: 55rem;
    margin-left: -14vw;
}

.professional-experience-section .middle-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 75vw;
    height: 550px;
    margin-top: 12rem;
    gap: 1.2rem;
    margin-left: -13vw;
}

.professional-experience-section .middle-column .text-content {
    margin-right: 13rem;
}

/* Projects Section Styles - Tablet */
.projects-section {
    padding: 2rem 0.5rem;
    background-color: #ffffff;
    color: #111111;
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 8rem;
    padding: 0 1rem;
    margin-left: 4rem;
}

.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: 2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0;
    padding-top: 1rem;
    justify-self: start;
    align-self: start;
    position: sticky;
    top: 2rem;
    z-index: 10;
    margin-left: 1.5rem;
}

.project {
    overflow: hidden;
}

.project img {
    height: auto;
    display: block;
    object-position: top;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
    cursor: pointer;
}

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

.project-info {
    margin-top: 0.8rem;
}

.project-subtitle {
    font-size: 0.85rem;
    color: #555;
    margin: 0 0 0.4rem 0;
}

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

.project-location {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}

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

.project-1-img {
    width: 100%;
    max-width: 35rem;
}

.project-2 {
    grid-column: 3;
    align-self: center;
    margin-top: 33rem;
    width: 58vw;
    margin-left: -35vw;
}

.project-2-img {
    max-height: 18rem;
    width: 58vw;
}

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

.project-3-img {
    width: 46rem;
}


/* See More Projects Button Styles - Tablet */
.see-more-projects-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding: 0 1.5rem;
}

.see-more-projects-btn {
    background: transparent;
    border: 2px solid #333333;
    color: #333333;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

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

.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: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

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

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

.btn-ripple {
    display: none;
}

/* Touch-friendly adjustments */
@media (hover: none) {
    .see-more-projects-btn:hover {
        background: transparent;
        color: #333333;
        transform: translateY(0);
    }
    
    .see-more-projects-btn:hover .btn-icon {
        transform: translateX(0);
    }
}

/* Show mobile close button on tablet */
.mobile-close-item {
    display: block;
}


/* ========================================
   CHATBOT STYLES - TABLET
   ======================================== */

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

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

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

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

/* Chatbot Panel - Tablet */
.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 - Tablet */
.chatbot-close-btn {
    position: absolute;
    top: 4.44vh;
    right: 2.5vw;
    width: 3vw;
    height: 3.5vh;
    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: 2.5vw;
    height: 0.15vh;
    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 - Tablet */
.chatbot-content {
    padding: 5vh 3vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #000;
    justify-content: center;
    align-items: center;
    max-width: 85vw;
    margin: 0 auto;
}

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

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

.chatbot-messages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 3vh;
    padding-right: 1.5vw;
    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 3vw;
    gap: 3vh;
}

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

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

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

.chatbot-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    padding: 1.8vh 2.5vw;
    border-radius: 2vh;
    font-family: 'Playfair Display', serif;
    font-size: 3vw;
    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: 1.5vw;
}

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

.chatbot-input-container {
    display: flex;
    gap: 1.5vw;
    padding-top: 2vh;
    border-bottom: 0.25vh 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.25vh;
    background: #000;
    transition: width 0.3s ease;
}

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

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

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

.chatbot-send-btn {
    width: 6vw;
    height: 6vw;
    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: 2.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.8vw;
    padding: 0.5vh 0;
}

.typing-indicator span {
    width: 1vw;
    height: 1vw;
    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.5em; }
.chatbot-message.bot span h2 { font-size: 1.4em; }
.chatbot-message.bot span h3 { font-size: 1.3em; }
.chatbot-message.bot span h4 { font-size: 1.2em; }
.chatbot-message.bot span h5 { font-size: 1.1em; }
.chatbot-message.bot span h6 { font-size: 1em; }

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

.chatbot-message.bot span pre {
    background-color: #1e1e1e;
    padding: 1.5vh 1.2vw;
    border-radius: 0.5vw;
    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: 3vw;
}

.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 1.5vw;
    border-left: 0.3vw 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.8vw;
    text-align: left;
}

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