/* Modern Design Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fbf8f8bc;
}

/* Top Navigation Bar */
.top-nav {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-left {
    flex: 0 0 auto;
}

.nav-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    max-width: 100%;
    display: block;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 400px;
}

.link-container {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 6px 12px;
    gap: 6px;
    min-width: 250px;
    transition: all 0.3s ease;
}

.link-container:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.link-icon {
    font-size: 14px;
    opacity: 0.7;
}

.copyable-link {
    flex: 1;
    font-size: 12px;
    color: #000;
    user-select: all;
    cursor: text;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.copy-button:hover {
    background: rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.copy-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.nav-right {
    flex: 0 0 auto;
    display: flex;
    gap: 12px;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #000;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-button:hover {
    background: #555;
    transform: translateY(-1px);
}

.nav-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.share-button:hover {
    background: #007bff;
}

.print-button:hover {
    background: #6c757d;
}

/* Location info styling */
.location-info {
    margin-top: 0.5rem;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Picture Element Responsive Styles */
picture {
    display: block;
    width: 100%;
    height: 100%;
}

picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* Lazy Loading Enhancement */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([loading]) {
    opacity: 1;
}

/* WebP Support Enhancement */
.webp picture source[type="image/webp"] {
    display: block;
}

.no-webp picture source[type="image/webp"] {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: unset;
    margin-bottom: 0.5rem;
    padding: 1rem 0.5rem 1.2rem 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(images/backrground.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-background {
    
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* Contact Strip */
.contact-strip {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.contact-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.contact-value {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    max-width: 600px;
    width: 100%;
    padding-top: 0.5rem;
}

.profile-image-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.profile-image-hero {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: contain;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    filter: none;
    transition: all 0.3s ease;
    background-color: #fff;
    padding: 5px;
}

.profile-image-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.profile-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 12px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    opacity: 0;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Profile Info */
.profile-info {
    text-align: left;
    max-width: 550px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 12px;
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #000000;
    line-height: 1.2;
}

.name-first {
    display: inline;
    font-weight: 400;
    opacity: 0.9;
    margin-right: 0.5rem;
}

.name-last {
    display: inline;
    font-weight: 700;
    background: linear-gradient(45deg, #4f4c4c, #000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.profile-title {
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.title-decoration {
    height: 2px;
    flex-grow: 1;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), transparent);
}

/* Action Panel */
.action-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    background: #eceaeabc;
    backdrop-filter: blur(10px);
    border: 1px solid #000000;
    border-radius: 50px;
    color: #000;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 220px;
    justify-content: center;
}

.action-button:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.button-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-button.cv {
    background: #eceaeabc;
    color: #000000;
    border: 1px solid #000000;
    display: none;
}

.social-button.whatsapp {
    background: #eceaeabc;
    color: #000000;
    border: 1px solid #000000;
}

.social-button.email {
    background: #eceaeabc;
    color: #000000;
    border: 1px solid #000000;
}

.social-button.info {
    background: #eceaeabc;
    color: #000000;
    border: 1px solid #000000;
}

.social-button.maps {
    background: #eceaeabc;
    color: #000000;
    border: 1px solid #000000;
}

.social-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-icon {
    width: 20px;
    height: 20px;
}

/* Desktop-specific overrides to maintain original layout */
@media (min-width: 769px) {
    .profile-top {
        display: contents;
    }
    
    .profile-section {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
        max-width: 900px;
        justify-content: space-between;
    }
    
    .title-container {
        align-items: flex-start;
    }
    
    .action-panel {
        align-items: flex-start;
        width: auto;
        justify-content: flex-start;
        margin-left: auto;
    }
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background: white;
    position: relative;
    z-index: 5;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

/* Bio Section */
.bio-section {
    margin-bottom: 2rem;
    text-align: center;
}

.bio-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bio-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.bio-decoration {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #666, #000);
    border-radius: 1px;
}

.bio-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #000;
    margin: 0 auto;
}

/* Portfolio Section */
.portfolio {
    margin-top: 1.5rem;
}

.category-section {
    margin-bottom: 2rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
    flex-direction: row-reverse;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000;
}

.category-count {
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Image Grid */
.image-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.image-grid::-webkit-scrollbar {
    display: none;
}

/* Desktop Scroll Arrows */
.category-section {
    position: relative;
}

.scroll-arrow {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: #000;
}

.scroll-arrow:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow.left {
    left: -20px;
}

.scroll-arrow.right {
    right: -20px;
}

.scroll-arrow svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

/* Hide arrows on mobile and tablet */
@media (max-width: 900px) {
    .profile-section {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        padding-top: 1.5rem;
    }

    .profile-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
        margin-bottom: 0.2rem;
        width: 100%;
        justify-content: center;
        max-width: 450px;
        margin: 0 auto;
    }

    .profile-info {
        text-align: center;
        width: 100%;
    }

    .profile-name {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }

    .profile-image-wrapper {
        width: 140px;
        height: 140px;
    }

    .social-button.cv {
        display: flex !important;
        background: #eceaeabc;
        color: #000;
        border: 1px solid #000000;
        width: 35px;
        height: 35px;
        padding: 0;
    }

    .title-container {
        align-items: center;
    }

    .action-panel {
        align-items: center;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        gap: 0.8rem;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .action-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .social-button {
        width: 35px;
        height: 35px;
        
    }

    .image-container {
        flex: 0 0 130px;
        height: 130px;
    }

    .main-container {
        margin-top: -20px;
        background: white;
        z-index: 10;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .image-grid {
        gap: 0.8rem;
        padding: 0.5rem;
    }

    .action-button.cv-button {
        display: none;
    }

    .social-button {
        border: 1px solid #000000;
    }

    /* Show Add to Cart container and button clearly on mobile */
    .image-container .add-to-cart-container {
        display: block;
        position: static;
        opacity: 1 !important;
        background: none;
        padding: 0.5rem 0 0;
    }

    .image-container .add-to-cart-btn {
        position: static;
        width: 100%;
        height: auto;
        border-radius: 8px;
        padding: 0.6rem 1rem;
        background: #000;
        color: #fff;
        gap: 0.5rem;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .image-container .add-to-cart-btn span {
        display: inline;
        font-size: 0.9rem;
    }

    /* Make checkout button sticky at bottom of cart modal */
    .cart-modal .modal-footer {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem 1.5rem;
        background: #fff;
        border-top: 1px solid #e9ecef;
    }
}

.image-container {
    flex: 0 0 140px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Multi-image indicator */
.multi-image-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(5px);
}

.multi-image-indicator svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 0.8rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.case-container:hover .case-overlay {
    transform: translateY(0);
}

.case-info h4 {
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    opacity: 0.9;
}

.count-icon {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: transparent;
    width: auto;
    height: auto;
    max-width: 70vw;
    max-height: 85vh;
    border: none;
    box-shadow: none;
}

.modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    color: #fff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: none;
    gap: 1rem;
    width: 100%;
    min-height: 80px;
    box-sizing: border-box;
}

.modal-title-nav {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1;
    max-width: calc(100% - 60px);
}

.modal-title-nav h3 {
    flex: 1;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    text-align: left;
    line-height: 1.4;
    word-wrap: break-word;
    flex: 1;
    min-width: 0;
}

.modal-close {
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.modal-close svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.modal-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    padding: 40px 0 0 0;
    height: 100vh;
    gap: 0px;
}

.modal-body > picture {
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 100%;
}
    
.modal-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.4);
    border: none;
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.05);
}

.modal-nav svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.modal-prev { left: 20px; }
.modal-next { right: 20px; }

.modal-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 10;
}

#caseModal .modal-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.modal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
}

.modal-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.modal-footer-nav {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.modal-case-btn-footer {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-case-btn-footer:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.modal-case-btn-footer svg {
    width: 12px;
    height: 12px;
}

/* Contact Modal */
.contact-modal {
    max-width: 450px;
    background: linear-gradient(135deg, #fefefe 0%, #f8f5f0 100%);
    border: 2px solid #e8e0d5;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    max-height: 85vh;
}

.contact-modal .modal-header {
    position: relative;
    background: linear-gradient(135deg, #f8f5f0 0%, #e8e0d5 100%);
    color: #000;
    border-bottom: 2px solid #e8e0d5;
    padding: 1.5rem 1.5rem;
    border-radius: 12px 12px 0 0;
}

.contact-modal .modal-header h3 {
    color: #000 !important;
    font-weight: 600;
    text-shadow: none !important;
}

.contact-modal-body {
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    background: #fefefe;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #e8e0d5;
    transition: all 0.3s ease;
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-detail:hover {
    background: linear-gradient(135deg, #fefefe 0%, #f8f5f0 100%);
    border-radius: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    transform: translateY(-2px);
}

.contact-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8e0d5 0%, #f8f5f0 100%);
    color: #000;
    flex-shrink: 0;
    border: 2px solid #e8e0d5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-detail:hover .contact-icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact-detail-icon {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.contact-detail-info h4 {
    margin-bottom: 0.2rem;
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-detail-info p {
    color: #333;
    font-size: 1rem;
    word-break: normal;
    overflow-wrap: normal;
    white-space: normal;
}

/* Footer */
.footer {
    background: radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(248, 245, 240, 0.3) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    color: white;
    text-align: center;
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        background: linear-gradient(135deg, #fefefe 0%, #f8f5f0 100%);
        padding-top: 0;
    }

    .top-nav {
        position: relative;
        height: 55px;
    }

    .nav-container {
        padding: 0 0.5rem;
        gap: 0.25rem;
        justify-content: space-between;
    }

    .nav-center {
        display: none;
    }

    .nav-logo {
        height: 45px;
        max-width: 90%;
        margin: 0 auto;
    }

    .nav-button {
        padding: 4px 8px;
        font-size: 10px;
    }

    .nav-button span {
        display: none;
    }

    .print-button {
        display: none;
    }
    
    .hero-section {
        min-height: 40vh;
        margin-bottom: 0;
        padding: 2rem 1rem;
        padding-bottom: 3rem;
        border-top: 1px solid rgba(0, 0, 0, 0.3);
    }
    
    .contact-strip {
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }
    
    .profile-section {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        padding-top: 1.5rem;
    }

    .profile-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
        margin-bottom: 0.2rem;
        width: 100%;
        justify-content: center;
        max-width: 450px;
        margin: 0 auto;
    }

    .profile-info {
        text-align: center;
        width: 100%;
    }

    .profile-name {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }

    .profile-image-wrapper {
        width: 140px;
        height: 140px;
    }

    .social-button.cv {
        display: flex !important;
        background: #eceaeabc;
        color: #000;
        border: 1px solid #000000;
        width: 35px;
        height: 35px;
        padding: 0;
    }

    .title-container {
        align-items: center;
    }

    .action-panel {
        align-items: center;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        gap: 0.8rem;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .action-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .social-button {
        width: 35px;
        height: 35px;
        
    }

    .image-container {
        flex: 0 0 130px;
        height: 130px;
    }

    .main-container {
        margin-top: -20px;
        background: white;
        z-index: 10;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .image-grid {
        gap: 0.8rem;
        padding: 0.5rem;
    }

    .modal-content {
        max-width: 90vw;
        max-height: 80vh;
        margin: 10px;
    }

    .modal-body {
        display: grid;
        grid-template-rows: 1fr auto;
        padding: 70px 10px 20px 10px;
        gap: 10px;
        height: 100%;
        width: 100%;
        box-sizing: border-box;
        justify-items: center;
    }
    
    .modal-body > picture {
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        max-height: 100%;
        max-width: 100%;
    }
    
    .modal-image {
        max-width: 90vw;
        max-height: 100%;
        object-fit: contain;
        box-shadow: none;
        border-radius: 8px;
    }

    #caseModal .modal-dots {
        grid-row: 2;
        position: static;
        transform: none;
        margin: 0;
        flex-shrink: 0;
    }

    .modal-nav {
        width: 26px;
        height: 26px;
    }

    .modal-nav svg {
        width: 12px;
        height: 12px;
    }

    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }

    .modal-footer {
        bottom: 15px;
    }

    .modal-case-btn-footer {
        display: none;
    }

    .modal-footer {
        display: none;
    }

    /* Re-show the cart modal footer so Checkout button is visible */
    #cartModal .modal-footer {
        display: flex !important;
    }

    /* Prevent cart-modal from clipping its footer on mobile screens */
    .cart-modal {
        overflow: visible !important;
    }

    .nav-button.cart-button {
        display: flex; /* Ensure cart button is visible on mobile */
    }

    .nav-button span {
        display: none; /* Hide text labels on mobile */
    }

    #cart-count-nav {
        display: flex; /* Ensure cart count is visible */
    }

    .print-button {
        display: none;
    }

    /* Add mobile-specific cart modal styles */
    .cart-modal .modal-footer {
        padding: 1rem;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #f8f9fa;
        border-top: 1px solid #e9ecef;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .checkout-btn {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    #cart-items {
        padding-bottom: 80px; /* Add space for fixed footer */
    }
}

/* Mobile Vertical Modal - Instagram Style */
.mobile-vertical-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

.mobile-vertical-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2001;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-modal-header h3 {
    color: #000;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.mobile-modal-close {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.mobile-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.mobile-modal-close svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.mobile-modal-content {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 80px 0 30px 0;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    width: 100%;
}

.mobile-modal-content::-webkit-scrollbar {
    display: none;
}

.mobile-case-item {
    width: calc(100% - 30px);
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    margin: 15px;
    padding: 25px 20px;
    box-sizing: border-box;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.mobile-case-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.mobile-case-title {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    text-shadow: none;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    font-weight: bold;
    text-transform: uppercase;
}

.mobile-image-container {
    position: relative;
    width: 100%;
    background-color: #f0f1f3;
    border-radius: 8px;
    overflow: hidden;
}

.mobile-add-to-cart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-add-to-cart-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.mobile-add-to-cart-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-image-container picture {
    display: block;
    width: 100%;
}

.mobile-image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.mobile-image-container img:hover {
    transform: scale(1.02);
}

/* Multi-image container */
.mobile-multi-image-container {
    position: relative;
}

/* Horizontal scroll for multi-image cases */
.mobile-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
}

.mobile-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.4);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.mobile-scroll-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.mobile-scroll-arrow.left {
    left: 10px;
}

.mobile-scroll-arrow.right {
    right: 10px;
}

.mobile-scroll-arrow svg {
    width: 24px;
    height: 24px;
}

.mobile-horizontal-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar for a cleaner look */
}

/* Only show mobile vertical modal on mobile devices */
@media (min-width: 769px) {
    .mobile-vertical-modal {
        display: none !important;
    }
}

/* New Add to Cart Button Styling */
.add-to-cart-container {
    padding: 0.5rem;
    background-color: #f8f9fa;
    text-align: center;
}

.add-to-cart-btn {
    background: #000;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.add-to-cart-btn svg {
    width: 16px;
    height: 16px;
}

.add-to-cart-btn:hover {
    background-color: #333;
}

/* On desktop, hide the button by default and show a smaller icon on hover */
@media (min-width: 901px) {
    .image-container .add-to-cart-container {
        display: block; /* Ensure container is part of layout */
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: transparent;
        padding: 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .image-container:hover .add-to-cart-container {
        opacity: 1;
    }

    .image-container .add-to-cart-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        padding: 0;
        background: rgba(0,0,0,0.7);
    }
    
    .image-container .add-to-cart-btn:hover {
        background: rgba(0,0,0,0.9);
    }

    .image-container .add-to-cart-btn span {
        display: none; /* Hide text on desktop */
    }
}

/* Cart Button in Nav */
.nav-button.cart-button {
    position: relative;
    gap: 4px;
}

#cart-count-nav {
    background: red;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
}

/* New Cart Modal Styling */
.cart-modal {
    background: #fff;
    border-radius: 12px;
    overflow: visible;
    max-width: 500px;
    width: 90%;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.cart-modal .modal-header h3 {
    font-size: 1.25rem;
}

.cart-modal .modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    height: auto;
}

#cart-items {
    padding: 1.5rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-details h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-quantity button {
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    width: 28px;
    height: 28px;
    cursor: pointer;
    border-radius: 50%;
    font-weight: 500;
}

.cart-item-quantity span {
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.cart-modal .modal-footer {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkout-btn {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.cart-empty-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

@media (max-width: 480px) {
    .cart-modal {
        height: 90vh;
        margin: 20px 0;
    }

    .cart-modal .modal-footer {
        position: fixed;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 100%;
        max-width: 500px;
        border-radius: 0 0 12px 12px;
    }

    .checkout-btn {
        border-radius: 50px;
        width: calc(100% - 2rem);
    }

    #cart-items {
        padding-bottom: 100px;
    }
}