/* 
    All code & work of this website is property of;
    Author: Mazin Omron
    Website: mazinomron.com
    Copyright © 2025 Mazin Omron All rights reserved.
*/

@import url('https://fonts.googleapis.com/css2?family=Maven+Pro:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Maven Pro', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 80px;
    background-color: #e8e8e8;
    height: 100vh;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}


/* 
// --=--=--=--=--=--=--=--=--=--=--=--=--=--=--
    NAVIGATION BAR / HEADER
    Allows navbar to look pretty and provides some function.
// --=--=--=--=--=--=--=--=--=--=--=--=--=--=--
*/

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgb(255, 255, 255, 0.7);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 22px;
    font-weight: lighter;
    font-style: italic;
    color: #333;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #666;
    text-transform: lowercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 5px 0;
    display: inline-block;
}

nav a:hover {
    color: #333;
}


/* 
// --=--=--=--=--=--=--=--=--=--=--=--=--=--=--
    ABOUT SECTION
    This section has all the css for about related section. 
    This includes photos & images.
// --=--=--=--=--=--=--=--=--=--=--=--=--=--=--
*/

.about-section {
    font-family: 'Urbanist', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-images {
    display: flex;
    flex: 1;
    gap: 15px;
}

.about-image {
    display: flex;
    flex-direction: column;
    position: relative;
}

.about-image:first-child {
    width: 48%;
}

.about-image:last-child {
    width: 52%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-caption {
    font-family: 'Urbanist', sans-serif;
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.highlight-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.highlight-text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.highlight-badge {
    text-transform: uppercase;
    background-color: #576d5a;
    color: white;
    padding: 2px 8px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px;
}

.about-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.about-badge {
    color: #6b6b6b;
    margin-top: -15px;
    margin-bottom: 20px;
    display: block;
    font-size: 15px;
    line-height: 1.5;
}

.about-description {
    color: #999;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.3;
}


/* 
// --=--=--=--=--=--=--=--=--=--=--=--=--=--=--
    PROJECTS / GALLERY SECTION
    This section has all the css for project related work. 
    The Sub sections are seperate in static files.
// --=--=--=--=--=--=--=--=--=--=--=--=--=--=--
*/

.recent-work {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
    align-items: center;
}

.recent-work h2 {
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: #333;
}


/* Gallery Horizontal Scrolling CSS */

.gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 15px;
    width: 85%;
    height: 390px;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Enable smooth touch scrolling */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    /* Set cursor for drag indication */
    cursor: grab;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.gallery-item:nth-child(2) {
    min-width: 500px;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.caption {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.caption .number {
    font-weight: 200;
    font-size: 14px;
    color: #999;
    letter-spacing: 2px;
    font-style: italic;
}

.caption .title-year {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    letter-spacing: 5px;
}

.caption .title {
    text-transform: lowercase;
    letter-spacing: 5px;
    font-weight: 400;
}

.caption .year {
    color: #999;
    font-size: 12px;
    margin-top: 3px;
}

.progress {
    position: static;
}

.progress-bar {
    width: 190px;
    height: 3px;
    background-color: #ddd;
    border-radius: 3px;
    position: relative;
}

.progress-indicator {
    width: 40px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    position: absolute;
    left: 0;
}


/* 
// --=--=--=--=--=--=--=--=--=--=--=--=--=--=--
    FEATURED WORK SECTION - MIXED GRID LAYOUT
    Based on your actual portfolio layout
// --=--=--=--=--=--=--=--=--=--=--=--=--=--=--
*/


/* Portfolio wrapper - base structure */

.portfolio-wrapper {
    width: 80%;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
}

.portfolio-title {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.portfolio-title h1 {
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 2px;
    color: #333;
}


/* Sidebar styling */

.sidebar {
    position: sticky;
    top: 40px;
    align-self: start;
}

.sidebar h2 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.vertical-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vertical-nav a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    transition: color 0.3s ease;
    padding: 3px 0;
    margin-left: 15px;
    cursor: pointer;
    display: inline-block;
    width: fit-content;
    letter-spacing: 3px;
}

.vertical-nav a.active {
    background-color: #7e998a;
    color: white;
    padding-bottom: 3px;
    padding-top: 3px;
    padding-right: 5px;
    padding-left: 20px;
}

.vertical-nav a:hover:not(.active) {
    color: #7e998a;
}


/* 
// --=--=--=--=--=--=--=--=--=--=--=--=--=--=--
    PORTFOLIO GRID FIX - CONSISTENT SIZING
    Prevents oversized images like the otter example
// --=--=--=--=--=--=--=--=--=--=--=--=--=--=--
*/

.load-more-wrapper {
    display: block;
    width: 100%;
    text-align: center;
    margin: 40px 0;
    margin-left: 606px;
}

.load-more-btn {
    padding: 12px 40px;
    background-color: #7e998a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    display: inline-block;
    /* This is important */
}

.load-more-btn:hover {
    background-color: #576d5a;
    transform: translateY(-2px);
}

.load-more-btn:active {
    transform: translateY(0);
}


/* Mobile responsiveness */

@media (max-width: 991px) {
    .load-more-btn {
        padding: 10px 30px;
        font-size: 14px;
        min-width: 150px;
    }
}

@media (max-width: 767px) {
    .load-more-wrapper {
        margin: 30px 0;
    }
    .load-more-btn {
        padding: 8px 24px;
        font-size: 13px;
        min-width: 120px;
    }
}

.portfolio_item.hidden {
    display: none !important;
}


/* Portfolio container with fixed grid */

.portfolio_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 420px;
    /* Fixed height rows */
    gap: 20px;
}


/* Default portfolio items are confined to their grid cell */

.portfolio_item {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    /* Explicitly enforce grid boundaries */
    width: 100%;
    height: 100%;
    grid-column: span 1;
    /* Default is one column */
    grid-row: span 1;
    /* Default is one row */
}


/* Add classes to override defaults when needed */

.portfolio_item.wide {
    grid-column: span 2;
    /* Two columns wide */
}

.portfolio_item.tall {
    grid-row: span 2;
    /* Two rows tall */
}

.portfolio_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.portfolio_item {
    position: relative;
    overflow: hidden;
    contain: layout;
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}


/* Keep your existing hover effects */

.portfolio_item_hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.567);
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease;
    z-index: 10;
    /* Add higher z-index to appear above loading overlay */
}

.portfolio_item:hover .portfolio_item_hover {
    opacity: 1;
    transform: translateX(0);
    will-change: opacity, transform;
}


/* Keep your existing fadeIn animation */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}


/* Add loading overlay */

.portfolio_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.portfolio_item.loaded::before {
    opacity: 0;
    pointer-events: none;
}

.portfolio_item.loaded .dot-loader {
    display: none;
}

.item_info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
}

.item_info span {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    font-size: 18px;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
    opacity: 0;
}

.item_info em {
    display: inline-block;
    font-style: normal;
    font-weight: 700;
    background-color: #7e998a;
    padding: 5px;
    color: white;
    margin-top: 5px;
    transform: translateY(20px);
    transition: all 0.5s ease 0.5s;
    opacity: 0;
}

.portfolio_item:hover .item_info span,
.portfolio_item:hover .item_info em {
    opacity: 1;
    transform: translateY(0);
}


/* Media query for mobile view */

@media (max-width: 767px) {
    .portfolio_container {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }
    .portfolio_item,
    .portfolio_item.wide {
        grid-column: span 1;
        /* All items are full width */
    }
}

.item_info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
}

.item_info span {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    font-size: 18px;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
    opacity: 0;
}

.item_info em {
    display: inline-block;
    font-style: normal;
    font-weight: 700;
    background-color: #7e998a;
    padding: 5px;
    color: white;
    margin-top: 5px;
    transform: translateY(20px);
    transition: all 0.5s ease 0.5s;
    opacity: 0;
}

.portfolio_item:hover .item_info span,
.portfolio_item:hover .item_info em {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive adjustments */

@media (max-width: 1200px) {
    .portfolio_item,
    .portfolio_item.medium {
        grid-column: span 4;
        /* Adjust for smaller screens */
    }
    .portfolio_item.wide {
        grid-column: span 6;
    }
    .portfolio_item.x-wide {
        grid-column: span 12;
    }
}

@media (max-width: 991px) {
    .portfolio-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sidebar {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    .vertical-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .vertical-nav a {
        margin: 0;
    }
    .portfolio_item,
    .portfolio_item.medium {
        grid-column: span 6;
        /* Adjust for smaller screens */
    }
    .portfolio_item.wide,
    .portfolio_item.x-wide {
        grid-column: span 12;
    }
}

@media (max-width: 767px) {
    .portfolio-wrapper {
        width: 95%;
    }
    .portfolio_item,
    .portfolio_item.medium,
    .portfolio_item.wide {
        grid-column: span 12;
        /* Full width on mobile */
        aspect-ratio: 4 / 3;
        /* Consistent ratio */
    }
    .portfolio_item.tall {
        aspect-ratio: 3 / 4;
    }
}


/* 
// --=--=--=--=--=--=--=--=--=--=--=--=--=--=--
    POPUP SECTION
    Provides popups for projects.
// --=--=--=--=--=--=--=--=--=--=--=--=--=--=--
*/

.popup-button {
    display: inline-block;
    transition: all 0.3s ease;
}

.popup-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px);
    z-index: 1000;
    transition: opacity 0.3s ease;
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
    /* Add scroll to overlay */
}

.popup-overlay:target {
    visibility: visible;
    opacity: 1;
}


/* Close when clicking on overlay background */

.popup-overlay {
    cursor: default;
}

.popup-overlay:target {
    cursor: pointer;
}


/* This makes sure the popup itself doesn't trigger the click event */

.popup {
    margin: 70px auto;
    padding: 30px;
    background: #e8e8e8;
    border-radius: 4px;
    max-width: 1200px;
    width: 80%;
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    cursor: default;
    /* Reset cursor to default when over the popup */
    max-height: calc(100vh - 140px);
    /* Set max height based on viewport */
    overflow-y: auto;
    /* Enable scrolling within popup if needed */
}

.popup h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Urbanist', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    position: sticky;
    /* Keep header visible when scrolling */
    top: 0;
    background: #e8e8e8;
    padding-top: 10px;
    z-index: 2;
}

.popup .close {
    position: fixed;
    /* Change to fixed to keep visible when scrolling */
    top: 80px;
    right: calc(10% + 20px);
    /* Position relative to the popup width */
    transition: all 0.2s;
    font-size: 24px;
    font-weight: normal;
    text-decoration: none;
    color: #666;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: #e8e8e8;
    z-index: 3;
}

.popup .close:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
}

.popup .content {
    color: #666;
    line-height: 1.5;
    font-size: 15px;
    position: relative;
    z-index: 1;
}


/* Responsive adjustments */

@media screen and (max-width: 767px) {
    .popup {
        width: 90%;
        padding: 20px;
        margin: 50px auto;
        max-height: calc(200vh - 100px);
    }
    .popup h2 {
        font-size: 20px;
    }
    .popup .close {
        right: calc(5% + 20px);
        top: 70px;
    }
}


/* 
// --=--=--=--=--=--=--=--=--=--=--=--=--=--=--
    FOOTER
    Provides the seamless animation of the copyright.
// --=--=--=--=--=--=--=--=--=--=--=--=--=--=--
*/

#footer {
    -moz-transition: -moz-transform 0.325s ease-in-out, -moz-filter 0.325s ease-in-out, opacity 0.325s ease-in-out;
    -webkit-transition: -webkit-transform 0.325s ease-in-out, -webkit-filter 0.325s ease-in-out, opacity 0.325s ease-in-out;
    -ms-transition: -ms-transform 0.325s ease-in-out, -ms-filter 0.325s ease-in-out, opacity 0.325s ease-in-out;
    transition: transform 0.325s ease-in-out, filter 0.325s ease-in-out, opacity 0.325s ease-in-out;
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
    text-align: center;
}

#footer .copyright {
    letter-spacing: 0.2rem;
    font-size: 1.2rem;
    opacity: 0.75;
    margin-bottom: 0;
    text-transform: uppercase;
}

#footer .version {
    letter-spacing: 0.2rem;
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 0;
    text-transform: lowercase;
}

body.is-article-visible #footer {
    -moz-transform: scale(0.95);
    -webkit-transform: scale(0.95);
    -ms-transform: scale(0.95);
    transform: scale(0.95);
    -moz-filter: blur(0.1rem);
    -webkit-filter: blur(0.1rem);
    -ms-filter: blur(0.1rem);
    filter: blur(0.1rem);
    opacity: 0;
}

body.is-preload #footer {
    opacity: 0;
}
/* iPhone-optimized Calendly widget */
@media screen and (max-width: 899px) {
    #contact {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px 15px;
        justify-content: center;
    }
    
    .contact-info {
        width: 100%;
        max-width: 350px;
        padding-top: 0;
        margin-left: 0;
        order: 1;
        align-items: center;
    }
    
    .card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .calendly-inline-widget {
        width: 85% !important;
        max-width: 380px !important;
        height: 650px !important;
        margin: 0 auto !important;
        order: 2;
        border-radius: 10px;
    }
}

@media screen and (max-width: 767px) {
    .contact-info {
        max-width: 320px;
    }
    
    .card {
        max-width: 300px;
    }
    
    .calendly-inline-widget {
        width: 90% !important;
        max-width: 350px !important;
        height: 600px !important;
    }
}

@media screen and (max-width: 479px) {
    #contact {
        padding: 15px 10px;
        gap: 25px;
    }
    
    .contact-info {
        max-width: 300px;
    }
    
    .card {
        max-width: 280px;
    }
    
    .calendly-inline-widget {
        width: 95% !important;
        max-width: 320px !important;
        height: 580px !important;
        border-radius: 8px;
    }
}

@media (min-width: 1024px) {
    .calendly-inline-widget {
      min-width: 1020px !important;
    }
  }
  
  
  
  
  
  
  
/* Styled Mobile Close Button */
.mobile-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-close:hover {
    background: #576d5a;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.mobile-close:active {
    transform: scale(0.95);
}

.mobile-close i {
    transition: transform 0.2s ease;
}

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

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-close {
        display: flex;
    }
}
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}
@media (min-width: 768px) {
}
@media (max-width: 768px) {
    .recent-work {
        display: none;
    }
}
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 1002;
}

.hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger active state (X) */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 100px;
    display: none;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.mobile-nav-link {
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    padding: 15px 30px;
    border-radius: 8px;
    display: block;
}

.mobile-nav-link:hover {
    background: #576d5a;
    color: white;
    transform: translateY(-2px);
}

/* Desktop nav visibility */
.desktop-nav {
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
    .none {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    /* Prevent body scroll when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* Logo adjustments for mobile */
@media (max-width: 768px) {
    .logo {
        display: block !important; /* Override your existing hide */
        font-size: 20px;
    }
    
    header {
        padding: 15px 20px;
    }
}



/* Simple popup scroll prevention */
body.popup-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Ensure popup content can still scroll */
.popup-overlay {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.popup {
    overflow-y: auto !important;
    max-height: calc(100vh - 100px) !important;
}

/* Mobile specific fixes */
@media (max-width: 767px) {
    .popup-overlay {
        position: fixed !important;
        overscroll-behavior: contain !important;
    }
    
    .popup {
        max-height: calc(100vh - 80px) !important;
    }
}


@media (max-width: 768px) {
    /* Allow normal touch scrolling on portfolio container */
    .portfolio_container {
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: auto !important;
    }
    
    /* Ensure portfolio items don't interfere with scrolling */
    .portfolio_item {
        touch-action: pan-y !important;
        pointer-events: auto !important;
    }
    
    /* Allow normal scrolling on images themselves */
    .portfolio_item img {
        touch-action: pan-y !important;
        pointer-events: none !important; /* Prevent image from intercepting touch events */
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-touch-callout: none !important;
    }
    
    /* Disable hover effects on mobile to prevent interference */
    .portfolio_item:hover .portfolio_item_hover {
        opacity: 0 !important;
        transform: translateX(-100%) !important;
    }
    
    /* Ensure the portfolio wrapper allows normal scrolling */
    .portfolio-wrapper {
        touch-action: pan-y !important;
        overflow: visible !important;
    }
    
    /* Make sure the main featured section allows normal scrolling */
    #featured {
        touch-action: pan-y !important;
        overflow: visible !important;
    }
}

/* Additional mobile-specific fixes */
@media (max-width: 480px) {
    /* Further ensure smooth scrolling on very small screens */
    .portfolio_container {
        scroll-behavior: auto !important; /* Use native scroll behavior */
    }
    
    /* Reduce any potential interference from transforms */
    .portfolio_item {
        transform: none !important;
        will-change: auto !important;
    }
}


/* Enhanced mobile scrolling fixes - add to your style.css */

/* Root level mobile scroll fixes */
@media (max-width: 768px) {
    /* Ensure body allows proper scrolling */
    body {
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: auto !important;
    }
    
    /* Main content areas */
    html {
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Featured section container */
    #featured {
        touch-action: pan-y !important;
        overflow: visible !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Portfolio wrapper */
    .portfolio-wrapper {
        touch-action: pan-y !important;
        overflow: visible !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Portfolio container - most important */
    .portfolio_container {
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: auto !important;
        scroll-behavior: auto !important;
        /* Remove any transforms that might interfere */
        transform: none !important;
        will-change: auto !important;
        /* Ensure proper stacking context */
        position: relative !important;
        z-index: auto !important;
    }
    
    /* Portfolio items - ensure they don't block scrolling */
    .portfolio_item {
        touch-action: pan-y !important;
        pointer-events: auto !important;
        /* Remove transforms that might interfere with touch */
        transform: none !important;
        will-change: auto !important;
        /* Ensure proper positioning */
        position: relative !important;
        /* Remove any webkit transform optimizations that might interfere */
        -webkit-transform: none !important;
        -webkit-backface-visibility: visible !important;
    }
    
    /* Portfolio item images - make completely non-interactive */
    .portfolio_item img {
        touch-action: none !important;
        pointer-events: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-touch-callout: none !important;
        -webkit-user-drag: none !important;
        -khtml-user-drag: none !important;
        -moz-user-drag: none !important;
        -o-user-drag: none !important;
        user-drag: none !important;
        /* Remove any transforms */
        transform: none !important;
        -webkit-transform: none !important;
    }
    
    /* Completely disable hover effects on mobile */
    .portfolio_item:hover .portfolio_item_hover,
    .portfolio_item:active .portfolio_item_hover,
    .portfolio_item:focus .portfolio_item_hover {
        opacity: 0 !important;
        transform: translateX(-100%) !important;
        pointer-events: none !important;
    }
    
    /* Load more button - ensure it doesn't interfere */
    .load-more-btn {
        touch-action: manipulation !important;
        -webkit-touch-callout: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }
    
    /* Sidebar navigation */
    .sidebar {
        touch-action: pan-y !important;
    }
    
    .vertical-nav a {
        touch-action: manipulation !important;
    }
    
    /* Fade-in animation items */
    .portfolio_item.fade-in {
        touch-action: pan-y !important;
        pointer-events: auto !important;
    }
    
    /* Hidden items */
    .portfolio_item.hidden {
        pointer-events: none !important;
        touch-action: none !important;
    }
    
    /* Override any conflicting styles */
    .portfolio_item[style*="transform"] {
        transform: none !important;
    }
    
    .portfolio_item img[style*="transform"] {
        transform: none !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .portfolio_container {
        /* Ensure minimal interference on small screens */
        contain: none !important;
        content-visibility: auto !important;
    }
    
    .portfolio_item {
        /* Simplify rendering on small screens */
        contain: none !important;
        content-visibility: auto !important;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .portfolio_container,
    .portfolio_item,
    #featured {
        touch-action: pan-y !important;
    }
}

/* 
    Additional CSS for optimized image loading
    Add this to your style.css file
*/

/* Loading states for images */
.portfolio_item img {
    transition: opacity 0.3s ease;
}

.portfolio_item img.loading {
    opacity: 0.7;
    background-color: #f5f5f5;
}

.portfolio_item img.loaded {
    opacity: 1;
}

.portfolio_item img.error {
    opacity: 0.5;
    background-color: #ffebee;
}

/* Skeleton loading effect */
.portfolio_item:not(.image-loaded) img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Fade in animation for newly loaded items */
.portfolio_item.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Loading spinner overlay for images */
.portfolio_item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #7e998a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.portfolio_item.image-loaded::before {
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved mobile optimizations */
@media (max-width: 768px) {
    .portfolio_item img {
        will-change: auto;
        transform: none;
    }
    
    /* Reduce skeleton animation on mobile for better performance */
    .portfolio_item:not(.image-loaded) img {
        animation-duration: 2s;
    }
}