/* Mobile CSS - Optimized for screens up to 768px */

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

::-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;
}

.nature-impact .img-wide{
    margin-bottom: 2rem;
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 110vh;
    text-align: left;
    padding: 1rem;
    margin: 0;
}

.welcome-text {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    animation: fadeInUp 2s ease-out;
    line-height: 1.15;
    max-width: 95%;
}

.subtitle {
    animation: fadeInUp 2s ease-out 0.3s both;
}

/* Smaller mobile screens */
@media (max-width: 480px) {
    .welcome-text {
        font-size: 6rem;
        line-height: 1.2;
    }
    
    .content {
        padding: 0.5rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .welcome-text {
        font-size: 1.5rem;
    }
}

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

/* Right Sidebar - Show as horizontal navbar on Mobile */
.right-sidebar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95vw;
    height: auto;
    z-index: 100;
    display: flex
;
    flex-direction: row;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: #181516;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-nav {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 2px 0px 2px 0px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5rem;
    margin-left:14vw;
}

.nav-item {
    transform: none;
    white-space: nowrap;
}

.nav-link {
    color: #c4b2aa;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    display: block;
    padding: 0.5rem 0;
    position: relative;
    overflow: hidden;
}

/* Expanding border bottom hover effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #666;
    transition: width 0.4s ease !important;
}

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

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

/* Mobile Slide Panels */
.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%);
}

.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;
}

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

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

.contact-image {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.6s ease 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: 2rem;
    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 for Mobile */
.contact-panel .panel-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 30px;
    height: 30px;
    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: 20px;
    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);
}

/* Mobile specific adjustments */
@media (max-width: 480px) {
    .contact-links {
        gap: 0.6rem;
    }
    
    .contact-link {
        font-size: 1.6rem;
    }
    
    .contact-header {
        top: 25vh;
        scale: 1.5;
        left: 62vw;
    }
    
    .contact-subtitle {
        font-size: 0.6rem;
    }
}

@media (max-width: 360px) {
    .contact-link {
        font-size: 1.4rem;
    }
    
    .contact-links {
        gap: 0.5rem;
    }
}

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

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

.breathing-title {
    font-family: 'Oswald', 'KapraNeueMediumCondensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin: 0 0 1rem 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.9rem;
    line-height: 1.5;
    max-width: 100%;
    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;
}

/* Apply column layout for mobile screens */
@media (max-width: 768px) {
    .breathing-gallery {
        flex-direction: column;
    }
}

.gallery-item {
    width: 100%;
    max-width: 400px;
    min-width: 300px;
    text-align: left;
}

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

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

/* Reduced zoom effect on mobile for better UX */
.gallery-item:hover img {
    transform: scale(1.03);
    transition: transform 0.6s ease 0.1s;
}

/* Smooth transition back when not hovering */
.gallery-item img:not(:hover) {
    transition: transform 0.6s 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: 250px;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4caf50;
    font-size: 0.8rem;
    border-radius: 0;
    margin-bottom: 0.8rem;
}

/* Smaller mobile screens adjustments */
@media (max-width: 480px) {
    .breathing-container {
        padding: 1rem 0.8rem;
    }
    
    .breathing-title {
        font-size: 2.2rem;
        letter-spacing: .15rem;
    }
    
    .breathing-description {
        font-size: 0.85rem;
    }
    
    .gallery-item {
        max-width: 320px;
        min-width: 84vw;
    }
    
    .gallery-item img {
        height: 22vh;
    }
    
    .image-loading {
        height: 220px;
        font-size: 0.75rem;
    }
    
    .gallery-item .caption {
        font-size: 0.95rem;
    }
}

/* Very small screens adjustments */
@media (max-width: 360px) {
    .breathing-container {
        padding: 0.8rem 0.6rem;
    }
    
    .breathing-title {
        font-size: 2rem;
        letter-spacing: .1rem;
    }
    
    .breathing-description {
        font-size: 0.8rem;
    }
    
    .gallery-item {
        max-width: 100%;
        min-width: 220px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .image-loading {
        height: 200px;
        font-size: 0.7rem;
    }
    
    .gallery-item .caption {
        font-size: 0.9rem;
    }
}

/* Read More and See More Card Styles for Mobile */
.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;
}
.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: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arrow-icon,
.close-icon {
    font-size: 1.6rem;
    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 Mobile */
.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;
}

/* Smaller mobile screens adjustments for cards */
@media (max-width: 480px) {
    .read-more-container,
    .see-more-container {
        height: 7vh;
    }
    
    .read-more-content h3,
    .see-more-content h3 {
        font-size: 0.95rem;
    }
    
    .arrow-icon {
        font-size: 1.5rem;
    }
}

/* Very small screens adjustments for cards */
@media (max-width: 360px) {
    .read-more-container,
    .see-more-container {
        height: 200px;
    }
    
    .read-more-content h3,
    .see-more-content h3 {
        font-size: 0.9rem;
    }
    
    .arrow-icon {
        font-size: 1.4rem;
    }
}

/* Nature Impact Section Styles - Mobile */
.nature-impact {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: clamp(16px, 3vw, 40px);
    align-items: start;
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
    min-height: auto;
    background: var(--bg, #ffffff);
    color: var(--text, #0a0a0a);
    position: relative;
    z-index: 1;
}

.nature-impact-title {
    grid-column: 1 / -1;
    grid-row: 1;
    writing-mode: horizontal-tb;
    transform: none;
    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 0 1.5rem 0;
    padding-top: 0;
    justify-self: start;
    align-self: start;
    position: static;
    text-align: center;
}

.nature-impact .headline {
    grid-column: 1 / -1;
    grid-row: 2;
    font-family: "KapraNeueMediumCondensed", "Antonio", sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    line-height: 1.02;
    letter-spacing: 0.02em;
    font-size: clamp(28px, 9vw, 52px);
    color: var(--text, #0a0a0a);
}

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

.nature-impact .img-tall,
.nature-impact .img-wide {
    grid-column: 1 / -1;
    grid-row: auto;
    height: auto;
}

.nature-impact .img-tall {
    aspect-ratio: 4 / 5;
}

.nature-impact .img-wide {
    aspect-ratio: 16 / 9;
}

.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.6s ease 0.1s;
    cursor: pointer;
}

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

/* Skills Section Styles - Mobile */
.skills-section {
    width: 100%;
    margin: 0;
    background-color: #d6c432;
    color: #000000;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.skills-title {
    writing-mode: horizontal-tb;
    transform: none;
    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 0 2rem 0;
    padding-top: 0;
    justify-self: start;
    align-self: start;
    position: static;
    text-align: center;
    width: 100%;
}

.skills-container {
    max-width: 400px;
    width: 100%;
    text-align: left;
}

.skills-main-heading {
    font-family: 'KapraNeueMediumCondensed', sans-serif;
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0 0 2rem 0;
    text-align: left;
    color: #000000;
}

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

/* Adjust grid for very small screens */
@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }
}

@media (max-width: 360px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
    }
}

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

.skill-card:hover {
    transform: translateY(-1px);
    background-color: rgba(0, 0, 0, 0.08);
}

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

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

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

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

.skill-name {
    font-family: 'Raleway', sans-serif;
    font-size: 0.5rem;
    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 - Mobile */
.professional-experience-section {
    background-color: #F1EEE4;
    font-family: 'Lato', sans-serif;
    color: #111;
    width: 100%;
    margin: 0;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.experience-title {
    writing-mode: horizontal-tb;
    transform: none;
    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 0 2rem 0;
    padding-top: 0;
    justify-self: start;
    align-self: start;
    position: static;
    text-align: center;
    width: 100%;
}

.experience-content {
    width: 100%;
    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(1.8rem, 7vw, 2.5rem);
    /* Responsive font size */
    font-weight: normal;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    max-width: 100%;
    margin: 0 auto 3rem auto;
}

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

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

/* Individual card styling for each topic */
.professional-experience-section .info-card {
    overflow: hidden;
    margin-left: -8vw;
    max-width: 94vw;
}

.professional-experience-section .info-card img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    transition: transform 0.6s ease 0.1s;
    cursor: pointer;
}

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

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

.professional-experience-section .info-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 100%;
}

.professional-experience-section .right-column {
    margin-top: 0;
    margin-bottom: 2vh;
}

.professional-experience-section .middle-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin-top: 0;
    gap: 1rem;
    margin-left: 0;
}

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

/* Mobile specific adjustments */
@media (max-width: 480px) {
    .skills-title,
    .experience-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .nature-impact-title{
        font-size: 1.8rem;
        margin-bottom: 1rem;
        margin-top: 2rem;
    }
    
    .professional-experience-section {
        padding: 1.5rem 0.8rem;
    }
    
    .professional-experience-section .main-heading {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
        margin: 0 auto 2.5rem auto;
    }
    
    .professional-experience-section .content-grid {
        gap: 1.5rem;
        max-width: 320px;
    }
    
    .professional-experience-section .info-card h2 {
        font-size: 1.1rem;
    }
    
    .professional-experience-section .info-card p {
        font-size: 0.85rem;
    }
}

/* Very small screens adjustments */
@media (max-width: 360px) {
    .nature-impact-title,
    .skills-title,
    .experience-title {
        font-size: 1.6rem;
    }
    
    .professional-experience-section {
        padding: 1rem 0.6rem;
    }
    
    .professional-experience-section .main-heading {
        font-size: clamp(1.4rem, 9vw, 2rem);
        margin: 0 auto 2rem auto;
    }
    
    .professional-experience-section .content-grid {
        gap: 1.2rem;
        max-width: 100%;
    }
    
    .professional-experience-section .info-card h2 {
        font-size: 1rem;
    }
    
    .professional-experience-section .info-card p {
        font-size: 0.8rem;
    }
}

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

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 3rem;
    padding: 0;
}

.projects-title {
    grid-row: 1;
    grid-column: 1;
    writing-mode: horizontal-tb;
    transform: none;
    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 0 1.5rem 0;
    padding-top: 0;
    justify-self: start;
    align-self: start;
    position: static;
    text-align: center;
}

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

.project img {
    height: auto;
    display: block;
    width: 100%;
    object-position: top;
    transition: transform 0.6s ease 0.1s;
    cursor: pointer;
}

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

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

.project-subtitle {
    font-size: 0.85rem;
    color: #555;
    margin: 0 0 0.5rem 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.5rem 0;
    line-height: 1.3;
    letter-spacing: 0.05rem;
}

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

.project-1 {
    grid-row: 2;
    grid-column: 1;
    align-self: start;
}

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

.project-2 {
    grid-row: 3;
    grid-column: 1;
    align-self: start;
    margin-top: 0;
    width: 100%;
    margin-left: 0;
}

.project-2-img {
    max-height: none;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-3 {
    grid-row: 4;
    grid-column: 1;
    max-width: 100%;
    justify-self: start;
    margin-left: 0;
}

.project-3-img {
    width: 100%;
}

/* Smaller mobile screens adjustments */
@media (max-width: 480px) {
    .projects-section {
        padding: 1.5rem 0.8rem;
    }
    
    .projects-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .project-headline {
        font-size: 1rem;
    }
    
    .project-subtitle,
    .project-location {
        font-size: 0.8rem;
    }
    
    .project-2-img {
        height: 220px;
    }
}

/* Very small screens adjustments */
@media (max-width: 360px) {
    .projects-section {
        padding: 1rem 0.6rem;
    }
    
    .projects-title {
        font-size: 1.6rem;
    }
    
    .project-headline {
        font-size: 0.95rem;
    }
    
    .project-subtitle,
    .project-location {
        font-size: 0.75rem;
    }
    
    .project-2-img {
        height: 200px;
    }
}


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

.see-more-projects-btn {
    background: transparent;
    border: 2px solid #333333;
    color: #333333;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
    touch-action: manipulation;
}

.see-more-projects-btn:active {
    background: #333333;
    color: #ffffff;
    transform: scale(0.98);
}

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

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

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

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

.btn-ripple {
    display: none;
}

/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
    .see-more-projects-container {
        margin-top: 2rem;
        padding: 0 0.5rem;
    }
    
    .see-more-projects-btn {
        font-size: 0.8rem;
        padding: 10px 20px;
        gap: 5px;
        letter-spacing: 0.5px;
    }
    
    .btn-icon {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 360px) {
    .see-more-projects-btn {
        font-size: 0.75rem;
        padding: 8px 16px;
        min-height: 44px;
    }
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .see-more-projects-btn:hover {
        background: transparent;
        color: #333333;
        transform: translateY(0);
    }
    
    .see-more-projects-btn:hover .btn-icon {
        transform: translateX(0);
    }
    
    .see-more-projects-btn:hover .btn-text {
        transform: translateX(0);
    }
}


/* ========================================
   CHATBOT STYLES - MOBILE
   ======================================== */

/* Floating Chatbot Button - Mobile */
.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:active {
    transform: scale(0.9);
}

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

/* Chatbot Panel - Mobile */
.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 - Mobile */
.chatbot-close-btn {
    position: absolute;
    top: 3vh;
    right: 5vw;
    width: 10vw;
    height: 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: 8vw;
    height: 0.4vh;
    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:active::before {
    transform: rotate(135deg);
}

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

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

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

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

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

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

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

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

.chatbot-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    padding: 2vh 4vw;
    border-radius: 2.5vh;
    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: 3vw;
}

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

.chatbot-input-container {
    display: flex;
    gap: 3vw;
    padding-top: 2.5vh;
    border-bottom: 0.4vh solid rgba(0, 0, 0, 0.2);
    width: 100%;
    position: relative;
    margin-bottom: 5vh;
}

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

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

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

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

.chatbot-send-btn {
    width: 14vw;
    height: 14vw;
    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:active {
    transform: scale(0.9);
}

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

/* 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: 1.5vw;
    padding: 0.5vh 0;
}

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

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

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

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

.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 2vw;
    border-left: 0.5vw 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%;
    font-size: 0.9em;
}

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

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