* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'HelveticaNeue', sans-serif;
    /* Disable text selection for all elements - added !important to force override */
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    cursor: default;
}

body, html {
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    height: 100%;
    overflow: hidden;
    background-color: black;

}

.page-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.music-panel-container {
    position: absolute;
    width: 400px;
    top: 75px;
    bottom: 75px;
    right: 10%;
    display: flex;
    justify-content: center;
    z-index: 10;
    flex-direction: column;
}

.music-panel {
    width: 100%;
    flex: 0.9;
    background: rgba(0, 0, 0, 0.8);
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add smooth transitions */
    -webkit-overflow-scrolling: touch;
}

.music-panel:hover {
    transform: scale(1.01); /* Subtle scale effect on hover */
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.4); /* Enhanced shadow on hover */
}

.hero-section {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-width: none;
    max-height: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Add bottom gradient overlay */
.bottom-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Adjust height as needed */
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    z-index: 2; /* Higher than video-overlay but lower than hero content */
}

.hero-content {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    max-width: 450px;
    z-index: 5;
    cursor: pointer; /* Add cursor pointer to indicate clickable element */
    transition: transform 0.3s ease; /* Add smooth transition for hover effect */
}

.hero-content:hover {
    transform: translateY(-50%) scale(1.02); /* Slightly scale up on hover */
}

.hero-content h1 {
    font-weight: bold;
    font-size: clamp(2.2rem, 2.3rem, 2.4rem);
}

.hero-content p {
    font-size: clamp(1.4rem, 1.45rem, 1.5rem);
    display: flex;
    align-items: center;
}

.hero-content p img {
    width: clamp(22px, 23px, 24px);
    height: auto;
    margin-right: 12px;
    filter: invert(1);
}

.social-links {
    position: absolute;
    top: 28px;
    right: 28px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease; /* Add smooth transition for hover effect */
}

.social-links a:hover {
    transform: scale(1.15); /* Scale up social icons on hover */
}

.social-links a img {
    width: clamp(32px, 33px, 34px); /* Increase size */
    height: clamp(32px, 33px, 34px); /* Increase size */
    filter: invert(1); /* Make social icons white */
}

.music-services {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    overflow: scroll;
    margin: 0 auto; /* Center the music services */
}

.album-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.music-content {
    padding: 25px 20px;
}

.music-content h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.byline {
    color: #ccc;
    font-size: 18px;
    margin-bottom: 25px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: #222;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.service-item:hover {
    background-color: #333;
    text-decoration: none;
}

.service-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-branding img {
    width: 22px;
    height: 22px;
}

.service-name {
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.service-action-btn {
    display: block;
    width: 24px;
    height: 24px;
}

/* New: enable color transition on the SVG icon */
.service-action-btn svg path {
    transition: fill 0.3s ease;
}

.service-action-btn:hover svg path {
    fill: #ffffff;
}

.loading {
    color: white;
    text-align: center;
    font-size: 18px;
    padding: 20px;
}

footer {
    display: none;
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: float 2s infinite;
    z-index: 5;
    filter: invert(1);
    opacity: 0.2;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Add smooth transition for hover */
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.scroll-arrow:hover {
    transform: translateX(-50%) scale(1.2); /* Scale up arrow on hover */
    opacity: 0.4; /* Increase opacity slightly on hover */
    animation-play-state: paused; /* Pause the floating animation on hover */
}

/* Add class for hiding arrow */
.arrow-hidden {
    opacity: 0 !important; /* The !important ensures this overrides the hover state */
}

@keyframes float {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Footer Styles */
#site-footer {
    background-color: black;
    color: white;
    padding: 30px 20px;
    position: relative;
    z-index: 10;
    width: 100%;
    display: none;
}

.scroll-arrow {
    display: none;
}

@media (max-width: 960px) {
    body, html {
        overflow-y: auto;
        height: auto;
        overflow-x: hidden;
    }
    
    .page-container {
        overflow-y: visible;
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .music-panel-container {
        position: relative;
        width: 100%;
        height: auto;
        right: auto;
        display: block;
        top: auto;
        bottom: auto;
    }
    
    .music-panel {
        position: relative;
        width: 100%;
        max-height: none;
        margin: 0;
        padding: 30px;
        z-index: 10;
        height: auto;
        border-radius: 0;
        box-shadow: none;
        background: black;
        display: flex;
        align-items: center;
        transition: none; /* Remove transition effects on mobile */
    }
    
    .music-panel:hover {
        transform: none; /* Disable scale effect on mobile */
        box-shadow: none; /* Remove shadow effect on mobile */
    }
    
    .hero-section {
        width: 100%;
        height: 100vh;
        position: relative;
        z-index: 1;
    }
    
    .hero-content {
        position: absolute;
        left: 10%;
        top: 50%;
        transform: translateY(-50%);
        color: white;
        max-width: 450px;
        z-index: 20;
        text-align: left;
        width: 80%;
    }
    
    .hero-content h1 {
        font-size: clamp(2.2rem, 2.3rem, 2.4rem);
        margin-bottom: 0;
    }
    
    .hero-content p {
        justify-content: flex-start;
        margin-top: 0;
    }
    
    .scroll-arrow {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        cursor: pointer;
        animation: float 2s infinite;
        z-index: 5;
        filter: invert(1);
        opacity: 0.2;
        display: block;
    }
    
    .music-services {
        width: 100%;
        max-width: 450px; /* Limit width on mobile */
        border-radius: 10px;
        box-shadow: none;
        background-color: #111;
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto; /* Ensure centering on mobile */
    }

    footer, #site-footer {
        display: block;
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-top {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.back-to-top {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.77);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 7px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.3s ease; /* Only keep transform transition */
    display: inline-block; /* Ensures transform works properly */
}

.back-to-top:hover {
    transform: scale(1.05); /* Scale up button on hover, slightly smaller than social icons */
    /* Removed background-color change */
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    font-size: 14px;
    color: #888;
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 960px) {
        .scroll-arrow {
            bottom: 80px;
        }
    }
}

/* Add fade-in animation for mobile view */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Menu Button Styles */
.menu-button {
    position: absolute; /* Changed from absolute to fixed for consistent positioning */
    top: 28px;
    left: 28px;
    width: 40px;
    height: 41px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 8px;
    cursor: pointer;
    z-index: 1000; /* Increased z-index to be above the menu overlay */
    border-radius: 5px;
    transition: all 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
    opacity: 1; /* Ensure it's visible by default */
}

.menu-line {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Transform menu button into X when menu is active */
.menu-button.active .line-top {
    transform: translateY(9px) rotate(45deg);
}

.menu-button.active .line-middle {
    opacity: 0;
}

.menu-button.active .line-bottom {
    transform: translateY(-9px) rotate(-45deg);
}

.menu-button:hover {
    transform: scale(1.1);
}

/* Add transition properties to elements that will fade/scale */
.hero-content, .social-links, .scroll-arrow, .music-panel-container {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Style for faded elements when menu is open */
.fade-out {
    opacity: 0 !important;
    transform: scale(0.95);
    pointer-events: none; /* Prevent interaction with faded elements */
}

/* Menu button fade out specific (preserves its position) */
.menu-button.fade-out {
    opacity: 0 !important;
    transform: scale(0.95);
}

/* Scroll arrow fade out specific */
.scroll-arrow.fade-out {
    opacity: 0 !important;
    transform: translateX(-50%) scale(0.95);
}

/* Hero content fade out specific (preserves vertical positioning) */
.hero-content.fade-out {
    opacity: 0 !important;
    transform: translateY(-50%) scale(0.95);
}

/* Music panel container fade out specific */
.music-panel-container.fade-out {
    opacity: 0 !important;
    transform: scale(0.95);
}

/* Menu Overlay Styles */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Match this opacity value with project modal */
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    -webkit-overflow-scrolling: none; /* Prevent iOS momentum scrolling */
    touch-action: none; /* Prevent touch actions on overlay */
    overscroll-behavior: contain; /* Prevent scroll chaining */
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-close {
    position: fixed; /* Changed from absolute to fixed to maintain position during scrolling */
    top: 28px;
    left: 28px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
    line-height: 40px;
    width: 40px;
    height: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure it's always on top */
}

.menu-close:hover {
    transform: scale(1.2);
    color: rgba(255, 255, 255, 0.8);
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1200px;
    height: 100%;  /* Fill the full height */
    padding: 20px 0; /* Add padding to ensure content doesn't touch edges */
}

.menu-category {
    text-align: center;
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px; /* Add space between menu items and social icons */
    flex: 1; /* Allow it to grow and take available space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center menu items vertically */
}

.menu-category h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* Remove the underline styling rule since we don't have h2 headings anymore */
.menu-category h2:after {
    display: none;
}

.menu-category ul {
    list-style: none;
}

.menu-category li {
    margin: 20px 0; /* Adjust spacing for consistent layout */
}

.menu-category a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: clamp(18px, 4vw, 24px); /* Responsive font size */
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    padding: 5px 15px; /* Added padding for better clickability */
}

.menu-category a:hover {
    color: white;
    transform: scale(1.08); /* Changed from translateX to scale to match social links */
}

/* Active menu item highlighting */
.menu-category a.active {
    color: white;
    position: relative;
    font-weight: 500;
    transform: none; /* Remove transform effect when active */
}

.menu-category a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: white;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

/* Menu social links positioned at the bottom of menu-content */
.menu-social-links {
    position: relative;
    margin-top: auto; /* Push to bottom when there's space */
    margin-bottom: 30px; /* Ensure it doesn't touch the bottom edge */
    display: flex;
    justify-content: center;
    gap: clamp(20px, 4vw, 30px); /* Responsive gap */
    z-index: 1000;
    width: 100%;
}

.menu-social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.menu-social-links a:hover {
    transform: scale(1.1);
}

.menu-social-links a img {
    width: clamp(24px, 5vw, 32px); /* Responsive icon size */
    height: clamp(24px, 5vw, 32px);
    filter: invert(1);
}

/* Responsive adjustments for menu */
@media (max-width: 960px) {
    .menu-content {
        flex-direction: column;
        align-items: center;
        padding: 60px 0 20px; /* Add more top padding on mobile to avoid overlap with menu button */
    }
    
    .menu-category {
        margin: 10px 0;
        width: 100%;
        margin: 0 0 30px; /* Adjust margins for mobile */
    }
    
    .menu-category li {
        margin: 15px 0; /* Tighter spacing on mobile */
    }
    
    /* Remove the menu-close position override for mobile to keep it consistent */
    /* .menu-close {
        top: 20px;
        left: 20px;
    } */
    
    .menu-social-links {
        margin-top: 30px; /* Adjust margin for mobile */
        gap: 20px;
    }
    
    .menu-social-links a img {
        width: 28px;
        height: 28px;
    }
}

@media (max-height: 600px) {
    /* Adjustments for very short screens (landscape mobile) */
    .menu-content {
        padding: 50px 0 10px;
    }
    
    .menu-category li {
        margin: 10px 0; /* Even tighter spacing on short screens */
    }
    
    .menu-social-links {
        margin-top: 20px;
        margin-bottom: 15px;
    }
}

/* Apply to specific elements that might still allow selection */
p, h1, h2, h3, h4, h5, h6, span, a, li, div {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Only allow text cursor on clickable elements */
a, button, .menu-button, .project-card, .service-action-btn {
    cursor: pointer;
}

/* Add landscape mode handling for project modal */
@media (max-width: 900px) and (orientation: landscape) {
    .project-modal-content {
        max-height: 85vh;
        overflow-y: auto;
        padding: 15px !important;
    }
    
    .project-modal-body {
        flex-direction: row !important; /* Keep horizontal layout in landscape */
        overflow: visible !important;
        max-height: none !important;
        margin-top: 10px !important;
    }
    
    .project-modal-image-container {
        width: 20% !important; /* Smaller image in landscape */
        padding-bottom: 20% !important;
        margin: 0 20px 0 5px !important;
    }
    
    .project-modal-details {
        overflow: visible !important;
        max-height: none !important;
        padding: 0 10px 10px 10px !important; /* Added left padding */
        width: 75% !important; /* Ensure details take proper width */
        display: flex !important;
        flex-direction: column !important;
    }
    
    .project-modal-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
    }
    
    .project-modal-description {
        font-size: 14px !important;
        padding: 0 5px !important; /* Padding on both sides */
        width: 100% !important; /* Full width of the container */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        text-align: left !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    
    .project-modal-video-container {
        margin: 15px 10px !important; /* Fixed margin */
    }
    
    .project-modal-video-container {
        margin: 20px 0 0 0 !important; /* Updated margin for landscape */
        width: 100% !important;
    }
}

/* Project modal adjustments for phones in portrait mode */
@media (max-width: 480px) {
    .project-modal-content {
        padding: 15px !important;
    }
    
    .project-modal-body {
        margin-top: 15px !important;
    }
    
    .project-modal-image-container {
        margin: 10px !important ;
    }
    
    .project-modal-details {
        padding: 0 10px 10px 10px !important; /* Added left padding */
    }
    
    .project-modal-description {
        font-size: 14px !important;
        width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        margin: 0 !important;
        overflow: visible !important;
        line-height: 1.4 !important; /* Slightly tighter line height on small screens */
    }
    
    .project-modal-video-container {
        margin: 15px 10px !important; /* Equal margins */
    }
    
    .project-modal-video-container {
        margin: 20px 0 0 0 !important; /* Updated margin for mobile */
        width: 100% !important;
    }
}

.project-modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    hyphens: auto;
    text-align: left;
    box-sizing: border-box;
}

/* Project Modal - Simplified Styles */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden; /* Ensure the modal container doesn't scroll */
    padding: 30px;
}

/* When body has this class, prevent scrolling - added for JS fallback */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Project Modal - Simplified Styles */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden; /* Changed from overflow-y: auto to prevent container scrolling */
    padding: 30px;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.3s ease;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
}

.project-modal-close:hover {
    transform: scale(1.1);
}

.project-modal-body {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 30px;
    margin: 5vh auto;
    overflow-y: auto !important; /* Keep this to ensure body content scrolls */
    overflow-x: hidden !important; /* Prevent horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
    animation: modalFadeIn 0.3s ease;
}

.project-modal-image-container {
    flex: 0 0 auto;
    width: 25%;
    aspect-ratio: 1/1;
    position: relative;
}

.project-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.project-modal-details {
    flex: 1;
    padding: 0 10px 0 0;
    overflow: visible; /* Let content flow naturally */
}

.project-modal-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.project-modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    width: 100%;
    max-width: 100%;
}

.project-modal-video-container {
    width: 100%;
    margin: 20px 0 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.project-modal-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.project-modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.blurred {
    filter: blur(8px);
    transition: filter 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Tablet and mobile adjustments */
@media (max-width: 900px) {
    .project-modal {
        overflow: hidden; /* Ensure no scrolling on container */
    }
    
    .project-modal_body {
        flex-direction: column;
        padding: 20px;
        max-height: 85vh;
        overflow-y: auto !important; /* Ensure body content scrolls */
    }
    
    .project-modal-content {
        padding: 15px !important;
    }
    
    .project-modal-body {
        margin-top: 15px !important;
    }
    
    .project-modal-image-container {
        margin: 10px !important ;
    }
    
    .project-modal-details {
        padding: 0 10px 10px 10px !important; /* Added left padding */
    }
    
    .project-modal-description {
        font-size: 14px !important;
        width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        margin: 0 !important;
        overflow: visible !important;
        line-height: 1.4 !important; /* Slightly tighter line height on small screens */
    }
    
    .project-modal-video-container {
        margin: 15px 10px !important; /* Equal margins */
    }
    
    .project-modal-video-container {
        margin: 20px 0 0 0 !important; /* Updated margin for mobile */
        width: 100% !important;
    }
}

/* Special case for landscape mode on mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .project-modal {
        align-items: flex-start; /* Align to top for better space usage */
    }
    
    .project-modal-body {
        flex-direction: row;
        padding: 15px;
        max-height: 80vh;
    }
    
    .project-modal-content {
        max-height: 85vh;
        overflow-y: auto;
        padding: 15px !important;
    }
    
    .project-modal_body {
        flex-direction: row !important; /* Keep horizontal layout in landscape */
        overflow: visible !important;
        max-height: none !important;
        margin-top: 10px !important;
    }
    
    .project-modal-image-container {
        width: 20% !important; /* Smaller image in landscape */
        padding-bottom: 20% !important;
        margin: 0 20px 0 5px !important;
    }
    
    .project-modal-details {
        overflow: visible !important;
        max-height: none !important;
        padding: 0 10px 10px 10px !important; /* Added left padding */
        width: 75% !important; /* Ensure details take proper width */
        display: flex !important;
        flex-direction: column !important;
    }
    
    .project-modal-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
    }
    
    .project-modal-description {
        font-size: 14px !important;
        padding: 0 5px !important; /* Padding on both sides */
        width: 100% !important; /* Full width of the container */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        text-align: left !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    
    .project-modal-video-container {
        margin: 15px 10px !important; /* Fixed margin */
    }
    
    .project-modal-video-container {
        margin: 20px 0 0 0 !important; /* Updated margin for landscape */
        width: 100% !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .project-modal-content {
        padding: 15px;
        overflow: visible !important;
    }
    
    .project-modal-body {
        max-height: calc(85vh - 30px);
        overflow-y: auto !important;
    }
    
    .project-modal-image-container {
        width: 40%;
    }
    
    .project-modal-description {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Simplified Modal Styles */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    overflow: hidden;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 2001;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-container {
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
   
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    padding: 20px;
    gap: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-image {
    flex: 0 0 30%;
    position: relative;
    align-self: flex-start;
}

.modal-image img {
    width: 100%;
    border-radius: 5px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.modal-content {
    flex: 1;
    color: white;
    overflow-wrap: break-word;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

.modal-video {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    padding-bottom: 20px;
    
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.blurred {
    filter: blur(8px);
    transition: filter 0.3s ease;
}

/* Tablet adjustments */
@media (max-width: 900px) {
    .modal-container {
        flex-direction: column;
        max-height: 75vh;
    }
    
    .modal-image {
        flex: 0 0 auto;
        width: 40%;
        margin: 0 auto 15px;
    }
}

/* Landscape mode on mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .project-modal {
        align-items: flex-start;
        padding: 10px;
    }
    
    .modal-container {
        flex-direction: row;
        max-height: 80vh;
        padding: 15px;
    }
    
    .modal-image {
        width: 25%;
        margin: 0;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .modal-container {
        padding: 15px;
    }
    
    .modal-image {
        width: 50%;
    }
    
    .modal-description {
        font-size: 14px;
        line-height: 1.4;
    }
}

