/* Minimal CSS - Only for what Bootstrap cannot handle */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #212529;
}

/* LinkedIn Button Custom Interactions */
.linkedin-button {
    position: relative;
    transition: all 0.3s ease;
    box-shadow: none;
    filter: drop-shadow(0 0 0 transparent);
    overflow: visible;
}

.linkedin-button:hover {
    filter: drop-shadow(0 2px 3px rgba(255, 192, 203, 0.4)) !important;
    transform: translateY(-2px);
}

.linkedin-button:active {
    filter: drop-shadow(0 1px 2px rgba(255, 192, 203, 0.5)) !important;
    transform: translateY(0);
}

.linkedin-button img {
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.linkedin-button .linkedin-default {
    position: relative;
    opacity: 1;
}

.linkedin-button .linkedin-hover {
    position: absolute;
    opacity: 0;
}

.linkedin-button .linkedin-click {
    position: absolute;
    opacity: 0;
}

.linkedin-button:hover .linkedin-default {
    opacity: 0;
}

.linkedin-button:hover .linkedin-hover {
    opacity: 1;
}

.linkedin-button:active .linkedin-default,
.linkedin-button:active .linkedin-hover {
    opacity: 0;
}

.linkedin-button:active .linkedin-click {
    opacity: 1;
}

/* Behance Button Custom Interactions */
.behance-button {
    position: relative;
    transition: all 0.3s ease;
    box-shadow: none;
    filter: drop-shadow(0 0 0 transparent);
    overflow: visible;
}

.behance-button:hover {
    filter: drop-shadow(0 2px 3px rgba(255, 192, 203, 0.4)) !important;
    transform: translateY(-2px);
}

.behance-button:active {
    filter: drop-shadow(0 1px 2px rgba(255, 192, 203, 0.5)) !important;
    transform: translateY(0);
}

.behance-button img {
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.behance-button .behance-default {
    position: relative;
    opacity: 1;
}

.behance-button .behance-hover {
    position: absolute;
    opacity: 0;
}

.behance-button .behance-click {
    position: absolute;
    opacity: 0;
}

.behance-button:hover .behance-default {
    opacity: 0;
}

.behance-button:hover .behance-hover {
    opacity: 1;
}

.behance-button:active .behance-default,
.behance-button:active .behance-hover {
    opacity: 0;
}

.behance-button:active .behance-click {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

.navbar {
    display: none;
}

/* Hover effects and transitions */
.transition-hover {
    transition: all 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6 !important;
}

.nav-link-custom {
    position: relative;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
}

.nav-link-custom:hover {
    color: #000 !important;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #212529;
    transition: width 0.3s ease;
}

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

/* Project card hover effects */
.project-card-hover:hover {
    background-color: #f8f9fa;
    transform: translateX(8px);
}

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

/* Smooth transitions for images */
img {
    transition: transform 0.3s ease;
}

/* Learn more button hover effect */
#modalLearnMore:hover {
    background-color: #212529 !important;
    border-color: #212529 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#modalLearnMore span {
    transition: transform 0.3s ease;
}

#modalLearnMore:hover span {
    transform: translateX(3px);
}

/* Before/After Slider */
.before-after-container {
    user-select: none;
}

.before-after-container img {
    pointer-events: none;
}

.before-after-container > img:first-child {
    object-fit: cover;
    object-position: center;
}

.before-after-overlay img {
    object-fit: contain;
    object-position: center;
    padding: 2%;
}

.before-after-slider {
    cursor: col-resize;
    transition: left 0.1s ease;
}

.before-after-slider:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.before-after-slider div {
    cursor: grab;
}

.before-after-slider div:active {
    cursor: grabbing;
}

/* Flip Card Effect */
.flip-card-container {
    cursor: pointer;
}

.flip-card {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.flip-card-container:hover .flip-card,
.flip-card-container.flipped .flip-card {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Flip Card Effect for Modal */
.flip-card-container-modal {
    cursor: pointer;
}

.flip-card-modal {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.flip-card-container-modal:hover .flip-card-modal,
.flip-card-container-modal.flipped .flip-card-modal {
    transform: rotateY(180deg);
}

.flip-card-front-modal,
.flip-card-back-modal {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-back-modal {
    transform: rotateY(180deg);
}

/* Color matching for business card images */
.flip-card-back img {
    filter: hue-rotate(-5deg) saturate(1.05) brightness(1.08);
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Section Content Padding - Responsive */
.section-content {
    padding: 1.5rem;
}

@media (min-width: 576px) {
    .section-content {
        padding: 2rem;
    }
}

@media (min-width: 768px) {
    .section-content {
        padding: 3rem;
    }
}

@media (min-width: 992px) {
    .section-content {
        padding: 5rem;
        padding-left: calc(5rem + 5rem);
        padding-right: calc(5rem + 5rem);
    }
    
    /* Special handling for projects section on desktop */
    #projects.section-content {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
}

/* Mobile - Projects section should not have min-height */
@media (max-width: 991px) {
    #projects.section-content {
        min-height: auto !important;
        display: block !important;
    }
}

/* Mobile Sidebar - Hidden by default, slides in when toggled */
@media (max-width: 991px) {
    .sidebar-mobile {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000 !important;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar-mobile.show {
        transform: translateX(0);
    }
    
    .mobile-menu-content {
        padding-top: 4rem !important;
    }
    
    .mobile-menu-content .mobile-nav-link {
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-menu-content .mobile-nav-link:last-child {
        border-bottom: none;
    }
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-overlay.show {
    display: block;
}

@media (min-width: 992px) {
    .mobile-overlay {
        display: none !important;
    }
}

/* Mobile Menu Button */
#mobileMenuBtn {
    display: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#mobileMenuBtn:active {
    transform: scale(0.95);
}

@media (max-width: 991px) {
    #mobileMenuBtn {
        display: flex !important;
        position: fixed !important;
        top: 0.5rem !important;
        left: 0.5rem !important;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 6px !important;
        background: white !important;
        border: 1px solid #dee2e6 !important;
        z-index: 1001 !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    #mobileMenuBtn svg {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (min-width: 992px) {
    #mobileMenuBtn {
        display: none !important;
    }
}

/* Main Content Column - Full width on mobile */
@media (max-width: 991px) {
    .main-content-col {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

/* Project Cards - Stack on mobile */
@media (max-width: 767px) {
    .project-card-hover {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .project-thumbnail {
        width: 100% !important;
        max-width: 200px !important;
        height: auto !important;
    }
}

/* Social Media Images - Responsive */
@media (max-width: 991px) {
    .social-media-img {
        width: 150px !important;
        height: 150px !important;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .social-media-img {
        width: 180px !important;
        height: 180px !important;
    }
}

/* Animation Videos - Responsive */
@media (max-width: 991px) {
    .animation-video {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 300px !important;
    }
}

/* Modal Responsive */
@media (max-width: 991px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content-col {
        padding-top: 1rem !important;
        padding-right: 0 !important;
    }
    
    #modalProjectPrototype {
        height: 500px !important;
    }
    
    .modal-prototype-container {
        height: 100% !important;
        overflow: hidden !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .modal-prototype-iframe {
        transform: none !important;
        translate: 0 0 !important;
        width: 100% !important;
        height: 100% !important;
        pointer-events: auto !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        position: relative !important;
    }
}

/* Ensure modal header stays above prototype */
.modal-header {
    position: relative !important;
    z-index: 10 !important;
    background-color: white !important;
}

.modal-content {
    position: relative !important;
    overflow: visible !important;
}

#modalProjectPrototype {
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
}

#modalProjectPrototype > div {
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
}

@media (min-width: 992px) {
    #modalProjectPrototype > div {
        overflow: hidden !important;
    }
}

#modalPrototypeIframe {
    position: relative !important;
    z-index: 1 !important;
}

/* Reduce spacing on mobile */
@media (max-width: 991px) {
    .pt-5 {
        padding-top: 1.5rem !important;
    }
    
    .pb-5 {
        padding-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-5 {
        margin-top: 1.5rem !important;
    }
    
    .gap-3 {
        gap: 1rem !important;
    }
    
    .gap-4 {
        gap: 1rem !important;
    }
    
    .p-3 {
        padding: 0.75rem !important;
    }
}

/* Mobile Bio Header */
@media (max-width: 991px) {
    .mobile-bio-header {
        padding: 1rem !important;
        padding-top: 4rem !important;
    }
}

/* Desktop - Keep original layout */
@media (min-width: 992px) {
    .sidebar-mobile {
        position: fixed !important;
    }
    
    .main-content-col {
        margin-left: 25% !important;
    }
}

/* ============================================
   PROJECT PAGES RESPONSIVE DESIGN
   ============================================ */

/* Project Page Sidebar - Responsive */
@media (max-width: 991px) {
    /* Hide fixed sidebar on mobile */
    .col-3.position-fixed {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 1000 !important;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
        display: block !important;
    }
    
    .col-3.position-fixed.show {
        transform: translateX(0) !important;
    }
    
    /* Add bottom padding/margin to bio div in mobile navigation on project pages */
    .col-3.position-fixed > div > .d-flex.flex-column.align-items-center:first-child {
        margin-bottom: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Add bottom padding to nav in mobile navigation on project pages */
    .col-3.position-fixed > div > nav {
        padding-bottom: 3rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Full width main content on mobile */
    .col-9.offset-3 {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    /* Responsive padding for project page content */
    .col-9.offset-3 > div {
        padding: 1.5rem !important;
        padding-top: 4rem !important;
    }
    
    /* Project page footer responsive */
    footer.border-top {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Project page content padding - responsive */
@media (min-width: 576px) {
    .col-9.offset-3 > div {
        padding: 2rem !important;
    }
}

@media (min-width: 768px) {
    .col-9.offset-3 > div {
        padding: 3rem !important;
    }
}

@media (min-width: 992px) {
    .col-9.offset-3 > div {
        padding: 5rem !important;
        padding-left: calc(5rem + 5rem) !important;
        padding-right: 3rem !important;
    }
    
    footer.border-top {
        padding-left: calc(5rem + 5rem) !important;
        padding-right: calc(5rem + 5rem) !important;
    }
}

/* Project page images - responsive */
@media (max-width: 991px) {
    .col-9.offset-3 img,
    .col-9.offset-3 video {
        max-width: 100% !important;
    }
    
    /* Before/After slider responsive */
    .before-after-container {
        max-width: 100% !important;
    }
    
    /* Process timeline horizontal scroll on mobile */
    .d-flex.flex-nowrap:not(.process-carousel-content) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }
    
    /* Ensure process carousel doesn't overflow parent container */
    .col-9.offset-3 .process-carousel-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Persona tabs responsive */
    .d-flex.gap-2 button {
        font-size: 0.875rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Chat bubbles responsive */
    .d-flex.justify-content-start > div,
    .d-flex.justify-content-end > div {
        max-width: 85% !important;
    }
}

/* Process Carousel Styles */
.process-carousel {
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.process-carousel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.process-carousel-content {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.process-carousel-btn {
    opacity: 0.7;
}

.process-carousel-btn:hover {
    opacity: 1;
    background-color: #f8f9fa !important;
    border-color: #212529 !important;
    transform: translateY(-50%) scale(1.1);
}

.process-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Hide carousel buttons on mobile */
@media (max-width: 991px) {
    .process-carousel-btn {
        display: none !important;
        visibility: hidden !important;
    }
    
    .process-carousel-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }
    
    .process-carousel-container[style*="max-width"] {
        max-width: 100% !important;
    }
    
    .process-carousel-container[style*="width"] {
        width: 100% !important;
    }
    
    .process-carousel {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        scroll-padding: 0 1rem;
        position: relative !important;
    }
    
    .process-carousel[style*="max-width"] {
        max-width: 100% !important;
    }
    
    .process-carousel[style*="width"] {
        width: 100% !important;
    }
    
    .process-carousel-content {
        padding: 0 1rem !important;
        margin-bottom: 1.5rem !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.75rem !important;
        width: max-content !important;
        min-width: max-content !important;
        align-items: center !important;
    }
    
    .process-carousel-content[style*="padding"] {
        padding: 0 1rem !important;
    }
    
    .process-carousel-content[style*="margin-bottom"] {
        margin-bottom: 1.5rem !important;
    }
    
    /* Ensure items don't shrink on mobile and add snap points */
    .process-carousel-content > div {
        flex-shrink: 0 !important;
        min-width: 80px !important;
        max-width: 80px !important;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
    
    .process-carousel-content > div[style*="min-width"] {
        min-width: 80px !important;
    }
    
    .process-carousel-content > div h6 {
        font-size: 0.7rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        line-height: 1.2 !important;
    }
    
    .process-carousel-content > div h6[style*="font-size"] {
        font-size: 0.7rem !important;
    }
    
    .process-carousel-content > svg {
        flex-shrink: 0 !important;
        min-width: 16px !important;
        max-width: 16px !important;
        width: 16px !important;
        height: 16px !important;
        scroll-snap-align: center;
    }
    
    .process-carousel-content > svg[style*="flex-shrink"] {
        flex-shrink: 0 !important;
    }
    
    /* Hide scrollbar on mobile but keep functionality */
    .process-carousel::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Luma Share prototype section responsive */
.luma-prototype-frame {
    display: flex;
    align-items: center;
    justify-content: center;
}

.luma-prototype-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 991px) {
    .luma-prototype-container {
        flex-direction: column !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        min-height: auto !important;
    }
    
    .luma-prototype-frame {
        width: 100% !important;
        max-width: 100% !important;
        height: 600px !important;
        margin: 0 auto;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overflow: visible !important;
    }
    
    .luma-prototype-frame iframe {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        pointer-events: auto !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .luma-prototype-container > div:last-child {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-top: 1.5rem !important;
    }
    
    .luma-prototype-container > div:last-child p {
        color: #212529 !important;
    }
}

/* Perspective Business Cards Mockup - Full width with crop */
.perspective-business-cards-container {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    overflow: hidden !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

.perspective-business-cards-img {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

@media (min-width: 768px) {
    .perspective-business-cards-img {
        height: 300px !important;
    }
}

@media (min-width: 992px) {
    .perspective-business-cards-container {
        left: 0 !important;
        margin-left: calc(-5rem - 5rem) !important;
        margin-right: -3rem !important;
        width: calc(100% + 5rem + 5rem + 3rem) !important;
    }
    
    .perspective-business-cards-img {
        height: 300px !important;
    }
}
