:root {
    --bg-light: #faf9f7;
    --bg-cream: #f5f3f0;
    --bg-white: #ffffff;
  
    --text-dark: #2c2418;
    --text-medium: #5a5248;
    --text-muted: rgba(90, 82, 72, 0.7);
  
    --accent: #c99c73;
    --accent-light: rgba(201, 156, 115, 0.12);
  
    --border: rgba(44, 36, 24, 0.1);
    --shadow: rgba(44, 36, 24, 0.08);
    --shadow-hover: rgba(44, 36, 24, 0.16);
  
    --container: 1400px;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    overflow-x: clip;
  }
  
  body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", system-ui, sans-serif;
    
    color: var(--text-dark);
  }

img, video, iframe, object, embed {
    max-width: 100%;
    height: auto;
}

.container, .page-container, .portfolio-main-content, .portfolio-detail-main, .portfolio-detail-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body.portfolio-page,
body.portfolio-detail-page,
body.about-page,

body.book-appointment-page {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 120px clamp(32px, 6vw, 76px) 56px;
    overflow: hidden;
}

.background-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -2;
    background: var(--bg-cream);
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.background-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(250, 249, 247, 0.15) 0%, rgba(245, 243, 240, 0.25) 60%, rgba(250, 249, 247, 0.15) 100%);
    z-index: -1;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.05);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    filter: saturate(100%) contrast(100%);
    width: 100%;
    height: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}


.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(250, 249, 247, 0.35) 0%, rgba(245, 243, 240, 0.45) 60%, rgba(250, 249, 247, 0.35) 100%);
    z-index: 1;
    pointer-events: none;
}


/* Reduce margin for eyebrow and cta buttons */




.navbar {
    position: fixed;
    top: 24px;
    inset-inline: 16px;
    margin-inline: auto;
    max-width: var(--container);
  
    display: flex;
    align-items: center;
    gap: 24px;
  
    padding: 14px 24px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
  
    border: 1px solid var(--border);
    box-shadow: 0 6px 24px var(--shadow);
    z-index: 1000;
  }
  
  .navbar.scrolled {
    top: 12px;
  }
  

body.portfolio-page .navbar,
body.portfolio-detail-page .navbar,
body.about-page .navbar,
body.book-appointment-page .navbar {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 64px);
    max-width: 1400px;
}

/* Ensure navbar stays centered on all screen sizes */
.navbar {
    margin-left: auto;
    margin-right: auto;
}

.brand {
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    letter-spacing: 0.5em;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.navbar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
}

.nav-links a {
    position: relative;
    padding-bottom: 6px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
    width: 100%;
}

.cta {
    border-radius: 999px;
    padding: 10px 22px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
}

.cta.ghost {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dark);
}

.cta.ghost:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

.hero-content {
    max-width: 720px;
    margin-top: auto;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
}

.hero-content h1 {
    font-size: clamp(3.2rem, 8vw, 6.2rem);
    line-height: 1.05;
    margin: 24px 0;
    text-transform: uppercase;
}

.hero-content h1 .script {
    margin-left: 30px; /* Shift slightly forward from the left, optimized value */
    display: inline-block;
}

.description {
    font-size: 1rem;
    max-width: 480px;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cta.primary {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 12px 32px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta.primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.cta.secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    padding: 12px 32px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta.secondary:hover {
    background: var(--text-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.cta-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.slider-dots {
    display: flex;
    gap: 12px;
    align-self: flex-end;
    margin-top: 48px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.dot:hover {
    border-color: var(--accent);
}

.dot.active {
    background: var(--text-dark);
    border-color: var(--text-dark);
    transform: scale(1.2);
}

@media (max-width: 900px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        position: relative;
    }
    
    body {
        overflow-y: auto;
    }

    
    .hero {
        
        padding: 68px 24px 40px; /* ~16px (navbar top) + 52px (navbar height + gap) */
        min-height: 100vh;
        gap: 32px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    
    body:not(.portfolio-page):not(.about-page):not(.contact-page):not(.book-appointment-page) .hero {
        padding-top: 92px; /* 16px (navbar top) + 56px (navbar height) + ~20px gap */
    }

    .background-slider {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .slide {
        max-width: 100vw;
        overflow: hidden;
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 24px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 12px 16px;
        top: 16px !important;
        position: fixed !important;
        z-index: 1000;
    }

    body.portfolio-page .navbar,
    body.about-page .navbar,
    body.contact-page .navbar,
    body.book-appointment-page .navbar {
        position: fixed !important;
        top: 16px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 32px) !important;
        max-width: 100% !important;
        z-index: 1000;
    }

    .nav-divider {
        display: none;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .brand {
        letter-spacing: 0.3em;
    }

    .portfolio-modal-body {
        padding: 40px 24px;
    }

    .portfolio-modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
}
/* Portfolio Page Styles */
.portfolio-page {
    background: var(--bg-light);
    padding-top: 40px;
    min-height: 100vh;
}



/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 80px 0 60px;
    padding: 40px 0;
}

.load-more-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    background: var(--bg-white);
    border: 2px solid var(--accent);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(201, 156, 115, 0.2);
    position: relative;
    overflow: hidden;
}

.load-more-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.load-more-button:hover {
    color: var(--bg-white);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 156, 115, 0.3);
}

.load-more-button:hover::before {
    transform: scaleX(1);
}

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

.load-more-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.load-more-button:hover svg {
    transform: translateX(4px);
}

/* ============================================
   PORTFOLIO MODAL STYLES
   ============================================ */

.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-modal.active {
    display: block;
    opacity: 1;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(44, 36, 24, 0.92);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.modal-content-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    z-index: 3001;
}

.modal-content {
    position: relative;
    max-width: 1400px;
    width: 100%;
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    max-height: 95vh;
    overflow-y: auto;
    margin: auto;
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
}

.modal-close-btn:hover {
    background: var(--text-dark);
    color: var(--bg-white);
    transform: rotate(90deg);
    border-color: var(--text-dark);
}

.modal-close-btn svg {
    width: 24px;
    height: 24px;
}

.modal-header {
    padding: 60px 60px 40px;
    border-bottom: 1px solid var(--border);
}

.modal-header-content {
    max-width: 800px;
}

.modal-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 0 0 20px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.2;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-meta span {
    position: relative;
    padding-left: 20px;
}

.modal-meta span:not(:first-child)::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.modal-body {
    padding: 60px;
}

.modal-description {
    margin-bottom: 60px;
}

.modal-description p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-medium);
    max-width: 800px;
}

.modal-before-after {
    margin-bottom: 60px;
}

.modal-before-after h3,
.modal-gallery h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    margin: 0 0 32px;
    color: var(--text-dark);
}

/* Before/After Slider */
.before-after-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 16px;
    cursor: grab;
    user-select: none;
    background: var(--bg-cream);
    box-shadow: 0 8px 32px var(--shadow);
}

.before-after-container:active {
    cursor: grabbing;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image {
    clip-path: inset(0 50% 0 0);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--bg-white);
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.slider-handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--bg-white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.slider-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--text-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-handle-circle svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

.slider-labels {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 11;
    pointer-events: none;
}

.slider-label-before,
.slider-label-after {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 2px 8px var(--shadow);
}

/* Image Gallery */
.modal-gallery {
    margin-top: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: var(--bg-cream);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Image Lightbox */
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close {
    top: 24px;
    right: 24px;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
    width: 24px;
    height: 24px;
}

.lightbox-image-container {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Mobile responsive adjustments for portfolio modal */
@media (max-width: 480px) {
    .modal-header,
    .modal-body {
        padding: 32px 20px;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .before-after-container {
        aspect-ratio: 3/4;
    }
    
    .slider-handle-circle {
        width: 48px;
        height: 48px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

.portfolio-modal.active {
    display: flex;
}

.portfolio-modal-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
}

.portfolio-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
}

.portfolio-modal-close:hover {
    background: var(--text-dark);
    color: var(--bg-white);
    transform: rotate(90deg);
}

.portfolio-modal-close svg {
    width: 20px;
    height: 20px;
}

.portfolio-modal-body {
    padding: 60px;
}

.portfolio-modal-header {
    margin-bottom: 40px;
}

.portfolio-modal-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 16px;
    color: var(--text-dark);
    text-transform: capitalize;
}

.portfolio-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.portfolio-modal-designer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.portfolio-modal-designer-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.portfolio-modal-designer-name {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.portfolio-modal-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 40px;
}



.portfolio-form {
    background: var(--bg-white);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 60px;
    box-shadow: 0 4px 24px var(--shadow);
}

.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-cream);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(201, 156, 115, 0.15);
    transform: translateY(-1px);
}

.form-group small {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.portfolio-list {
    background: var(--bg-white);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 24px var(--shadow);
}

.portfolio-list h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.existing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-cream);
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.existing-item:hover {
    background: var(--bg-white);
    box-shadow: 0 4px 12px var(--shadow);
}

.existing-item-info h3 {
    font-size: 1.2rem;
    margin: 0 0 8px;
    text-transform: capitalize;
    color: var(--text-dark);
}

.existing-item-info p {
    margin: 4px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.existing-item-actions {
    display: flex;
    gap: 12px;
}

.btn-delete {
    padding: 8px 16px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px;
    color: #dc3545;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.5);
    color: #c82333;
}

@media (max-width: 900px) {
    .portfolio-form,
    .portfolio-list {
        padding: 32px 24px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .existing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .existing-item-actions {
        width: 100%;
    }

    .btn-delete {
        flex: 1;
    }
}

/* Portfolio Detail Page */
.portfolio-detail-page {
    background: var(--bg-light);
    padding: 140px clamp(32px, 6vw, 76px) 0;
    min-height: 100vh;
}

.portfolio-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 12px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.back-button:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    transform: translateX(-4px);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

.portfolio-detail-header {
    margin-bottom: 40px;
}

.portfolio-detail-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0 0 20px;
    color: var(--text-dark);
    text-transform: capitalize;
}

.portfolio-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.portfolio-detail-designer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.designer-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.designer-name {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.portfolio-detail-description {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-medium);
    margin-bottom: 60px;
    max-width: 800px;
}

.portfolio-before-after {
    margin-bottom: 60px;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    margin-bottom: 32px;
    color: var(--text-dark);
    text-transform: capitalize;
}

/* Gallery Styles */
.portfolio-gallery {
    margin-top: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-cream);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* About & Contact Pages */
.about-page,
.book-appointment-page {
    background: var(--bg-light);
    padding-top: 140px; /* keep content below fixed navbar */
    min-height: 100vh;
}

.book-appointment-page {
    padding-top: 160px;
    padding-bottom: 0;
}

.appointment-container {
    max-width: 1200px;
    margin: 0 auto 80px auto; /* space at bottom for footer gap */
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.appointment-form-wrapper {
    background: var(--bg-white);
    backdrop-filter: blur(16px);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.appointment-form-wrapper > h2 {
    align-self: flex-start;
}

.appointment-form-wrapper > p {
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 6px;
    margin-top: 0;
}

.appointment-form-wrapper > a.cta,
.appointment-form-wrapper > .cta {
    align-self: center; /* center the button horizontally */
    margin-top: 0;
    background-color: #25D366 !important; /* WhatsApp green */
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.18);
    transition: background 0.3s, box-shadow 0.3s;
    font-weight: 600;
}
.appointment-form-wrapper > a.cta:hover,
.appointment-form-wrapper > .cta:hover {
    background-color: #128C7E !important; /* WhatsApp darker green on hover */
    box-shadow: 0 8px 24px rgba(18, 140, 126, 0.25);
    color: #fff !important;
}

.appointment-form-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
    opacity: 0.6;
}

.appointment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.appointment-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.info-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--shadow-hover);
    border-color: var(--accent);
}

.info-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent);
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.info-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.info-card p {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 0.95rem;
}

.page-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 80px;
}

.page-header .eyebrow {
    margin-bottom: 16px;
}

.page-header h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin: 24px 0 16px;
    text-transform: uppercase;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-medium);
    margin-bottom: 20px;
}



.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.contact-info-item {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow-hover);
    border-color: var(--accent);
}

.contact-info-item h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 12px;
}



/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-screen .logo-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    position: relative;
}

.loading-screen .logo-svg {
    width: 100%;
    height: 100%;
}

.loading-screen .loading-text {
    font-size: 0.9rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 24px;
    opacity: 0.7;
}

.company-name {
    font-size: 3rem;
    font-family: "Playfair Display", serif;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
/* Performance optimizations (keep images smooth when scaled) */
img {
    image-rendering: auto;
    -ms-interpolation-mode: bicubic; /* better downscaling on older browsers */
}

/* Ensure all showcased images stay sharp and properly cropped */
.transforming-visual img,
.service-image-wrapper img,
.glimpse-item img,
.portfolio-item-image-new img,
.portfolio-detail-hero img,
.portfolio-gallery-grid img,
.gallery-item img {
    object-fit: cover;
    image-rendering: auto;
}

.portfolio-item-image,
.gallery-item img,
.before-image,
.after-image {
    will-change: transform;
}

/* Quote Section */
.quote-section {
    padding: 120px clamp(32px, 6vw, 76px);
    background: var(--bg-white);
}

.quote-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.quote-icon {
    display: none;
}

.quote-text-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.quote-text {
    font-family: "Inter", sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    font-weight: 400;
    text-align: left;
    font-style: normal;
}

.quote-author-section {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
}

.quote-logo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.quote-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quote-author-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quote-author-name {
    font-family: "Inter", sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
    text-align: left;
}

.quote-author-title {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
    text-align: left;
}

.quote-signature {
    width: 150px;
    height: 50px;
    margin-top: 8px;
}

.quote-signature svg {
    width: 100%;
    height: 100%;
}

.quote-author {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Transforming Spaces Section */

.transforming-section {
    padding: clamp(70px, 8vw, 110px) clamp(16px, 5vw, 64px);
    background: var(--bg-light);
}

.transforming-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.transforming-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 540px;
    min-width: 0;
}

.circular-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: min(420px, 70vw, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    background: var(--bg-cream);
    box-shadow: 0 20px 60px var(--shadow-hover);
}

.circular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.transforming-content {
    padding: clamp(0px, 2vw, 32px) 0;
}

.transforming-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.18;
    margin: 0 0 20px;
    color: var(--text-dark);
}

@media (max-width: 1200px) {
    .transforming-container {
        max-width: 98vw;
        gap: clamp(20px, 5vw, 48px);
    }
    .circular-image {
        width: min(350px, 78vw, 100%);
    }
    .transforming-visual {
        max-height: 420px;
    }
}
@media (max-width: 900px) {
    .transforming-section {
        padding: clamp(56px, 7vw, 80px) clamp(10px, 3vw, 24px);
    }
    .transforming-container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 98vw;
    }
    .transforming-visual {
        max-height: 340px;
        margin-bottom: 20px;
    }
    .circular-image {
        width: min(270px, 90vw, 100%);
    }
    .shape-1 {
        width: 70px;
    }
    .shape-3 {
        width: 110px;
    }
    .transforming-content {
        padding: 0;
        text-align: center;
    }
    .transforming-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
}

@media (max-width: 600px) {
    .transforming-section {
        padding: 38px 0 48px 0;
    }
    .transforming-visual {
        max-height: 210px;
    }
    .circular-image {
        width: min(150px, 92vw, 100%);
    }
    .transforming-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
    .transforming-content {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .transforming-section {
        padding: 24px 0 36px 0;
    }
    .transforming-visual {
        max-height: 140px;
    }
    .circular-image {
        width: 80vw;
        min-width: 120px;
        max-width: 98vw;
    }
    .shape-1,
    .shape-2,
    .shape-3 {
        display: none !important; /* remove clutter on small screens */
    }
}

.dashed-line {
    width: 80px;
    height: 1px;
    border-top: 2px dashed var(--accent);
    margin: 20px auto 28px;
    display: block;
}

.transforming-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 28px;
}

/* Services Section */
.services-section {
    padding: 120px clamp(32px, 6vw, 76px);
    background: var(--bg-white);
    position: relative;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin: 0 0 24px;
    color: var(--text-dark);
}

.services-header {
    text-align: center;
    margin-bottom: 80px;
}

.services-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    max-width: 700px;
    margin: 32px auto 0;
}

/* Enhanced Services Grid */
.services-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 48px;
    margin: 60px 0;
}

.service-card-enhanced {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card-enhanced:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px var(--shadow-hover);
    border-color: var(--accent);
}

.service-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-cream);
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-enhanced:hover .service-image-wrapper img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(44, 36, 24, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card-enhanced:hover .service-overlay {
    opacity: 1;
}

.service-content-enhanced {
    padding: 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.service-number {
    position: absolute;
    top: 40px;
    right: 40px;
    font-family: "Playfair Display", serif;
    font-size: 4rem;
    font-weight: 600;
    color: var(--accent-light);
    line-height: 1;
    opacity: 0.3;
    transition: all 0.4s ease;
}

.service-card-enhanced:hover .service-number {
    opacity: 0.5;
    transform: scale(1.1);
}

.service-icon-enhanced {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    color: var(--accent);
    transition: transform 0.4s ease;
}

.service-card-enhanced:hover .service-icon-enhanced {
    transform: scale(1.1) rotate(5deg);
}

.service-icon-enhanced svg {
    width: 100%;
    height: 100%;
}

.service-title-enhanced {
    font-family: "Playfair Display", serif;
    font-size: 1.75rem;
    margin: 0 0 16px;
    color: var(--text-dark);
    line-height: 1.3;
}

.service-description-enhanced {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 32px;
    flex: 1;
}

.service-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.service-link-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-link-enhanced svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.service-link-enhanced:hover {
    color: var(--accent);
    gap: 16px;
}

.service-link-enhanced:hover svg {
    transform: translateX(4px);
}

/* Legacy service styles for compatibility */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.service-card {
    background: var(--bg-cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-hover);
    border-color: var(--accent);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--text-dark);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    margin: 0 0 16px;
    color: var(--text-medium);
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 24px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dark);
    text-decoration: none;
    position: relative;
}

.service-link::before {
    content: "■";
    font-size: 0.5rem;
    color: var(--accent);
}

.service-link:hover {
    color: var(--accent);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--text-dark);
    margin-bottom: 12px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* Portfolio Glimpses Section */
.portfolio-glimpses-section {
    padding: 120px clamp(32px, 6vw, 76px);
    background: var(--bg-light);
    text-align: center;
}

.glimpses-container {
    max-width: 1400px;
    margin: 0 auto;
}

.glimpses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 60px 0 40px;
}

.glimpse-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: var(--bg-cream);
}

.glimpse-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.glimpse-item:hover img {
    transform: scale(1.1);
}

.glimpse-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glimpse-item:hover::after {
    opacity: 1;
}

/* Footer */
.main-footer {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 80px clamp(32px, 6vw, 76px) 40px;
    border-top: 1px solid var(--border);
}


@media (max-width: 600px) {
    .main-footer {
        width: 100vw;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-tagline {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 32px;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-medium);
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-white);
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-copyright a {
    color: var(--accent);
    text-decoration: underline;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    font-size: 0.9rem;
    color: var(--text-medium);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-company-name {
    width: 100%;
    padding: 60px 0 0;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-company-name span {
    font-family: "Playfair Display", serif;
    font-size: clamp(3rem, 12vw, 12vw);
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-dark);
    display: block;
    line-height: 1;
    opacity: 0.95;
    word-break: keep-all;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .footer-company-name span {
        font-size: clamp(2.5rem, 18vw, 18vw);
        letter-spacing: 0.1em;
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-detail-description {
        font-size: 1rem;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .transforming-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .transforming-visual {
        height: 400px;
    }

    .circular-image {
        width: 300px;
        height: 300px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-content-enhanced {
        padding: 32px;
    }

    .service-number {
        top: 32px;
        right: 32px;
        font-size: 3rem;
    }

    .service-image-wrapper {
        height: 240px;
    }

    .services-header {
        margin-bottom: 60px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .appointment-container {
        grid-template-columns: 1fr;
    }

    .appointment-form .form-row {
        grid-template-columns: 1fr;
    }

    .footer-company-name {
        padding: 20px 0 0;
        margin-top: 40px;
    }

    .footer-company-name span {
        font-size: clamp(2rem, 15vw, 15vw);
    }

    .main-footer {
        padding: 60px clamp(24px, 5vw, 48px) 32px;
    }

    .footer-container {
        gap: 32px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .navbar {
        width: calc(100% - 32px);
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .nav-links {
        font-size: 0.75rem;
        gap: 16px;
        flex-wrap: wrap;
    }

    .brand {
        font-size: 0.85rem;
        letter-spacing: 0.3em;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .services-grid-enhanced {
        grid-template-columns: 1fr;
    }

    .service-image-wrapper {
        height: 220px;
    }

    .portfolio-main {
        padding: 120px 24px 60px;
    }
    
    .modal-content-wrapper {
        padding: 20px 10px;
    }
    
    .modal-content {
        max-height: 98vh;
        border-radius: 16px;
    }
    
    .modal-header,
    .modal-body {
        padding: 40px 24px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .before-after-container {
        aspect-ratio: 4/3;
    }
    
    .load-more-button {
        padding: 16px 36px;
        font-size: 0.85rem;
    }
    
    .load-more-btn {
        padding: 14px 32px;
        font-size: 0.85rem;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding-top: 40px;
    }

    .stat-number {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .glimpses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .section-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .portfolio-header h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .page-header h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .quote-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .quote-text {
        text-align: center !important;
    }
    
    .quote-author-section {
        flex-direction: column;
        align-items: center;
    }
    
    .quote-author-name,
    .quote-author-title {
        text-align: center !important;
    }
}

/* ============================================
   FRESH PORTFOLIO PAGE STYLES
   ============================================ */

.portfolio-main-content {
    min-height: 100vh;
    padding: 140px clamp(32px, 6vw, 76px) 80px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.portfolio-page-header {
    text-align: center;
    margin-bottom: 80px;
}

.portfolio-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.portfolio-page-header h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin: 24px 0 16px;
    color: var(--text-dark);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.portfolio-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-count {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 28px;
    text-align: left;
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
    letter-spacing: 0.02em;
    position: relative;
    padding-left: 16px;
    display: block;
}

.portfolio-count::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(201, 156, 115, 0.6) 100%);
    border-radius: 2px;
}

.portfolio-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .portfolio-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

.portfolio-item-new {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 100%;
    max-width: 100%;
}

.portfolio-item-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-hover);
    border-color: var(--accent);
}

.portfolio-item-image-new {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-cream);
}

.portfolio-item-image-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item-new:hover .portfolio-item-image-new img {
    transform: scale(1.1);
}

.portfolio-item-info {
    padding: 32px;
}

.portfolio-item-info h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    margin: 0 0 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.portfolio-item-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.portfolio-item-image-new {
    position: relative;
    overflow: hidden;
}

.portfolio-item-overlay-new {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.portfolio-item-new:hover .portfolio-item-overlay-new {
    opacity: 1;
}

.view-project-btn-new {
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    padding: 12px 32px;
    border: 2px solid white;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.portfolio-item-new:hover .view-project-btn-new {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.portfolio-item-meta-new {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.portfolio-item-meta-new span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-left: 16px;
}

.portfolio-item-meta-new span:not(:first-child)::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    padding: 20px 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 156, 115, 0.3);
}

.pagination-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(201, 156, 115, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: var(--text-muted);
    font-weight: 500;
}

.pagination-prev,
.pagination-next {
    font-weight: 600;
}

@media (max-width: 900px) {
    .portfolio-main-content {
        padding: 140px 24px 60px;
    }
    
    .portfolio-grid-new {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .portfolio-page {
        padding: auto;
    }
    
    .portfolio-count {
        font-size: 1.3rem;
        margin-top: 24px;
        padding-left: 14px;
    }
    
    .pagination-container {
        margin-top: 40px;
        padding: 16px 0;
    }
    
    .pagination {
        gap: 6px;
    }
    
    .pagination-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    * {
        max-width: 100%;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    .portfolio-grid-new {
        gap: 20px;
    }
    
    .portfolio-item-info {
        padding: 20px;
    }
    
    .portfolio-item-info h3 {
        font-size: 1.3rem;
    }
    
    .portfolio-main-content {
        padding: 120px 20px 60px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .portfolio-count {
        font-size: 1.2rem;
        margin-top: 20px;
        padding-left: 12px;
    }
    
    .pagination-container {
        margin-top: 32px;
        padding: 12px 0;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.85rem;
    }
    
    .pagination-ellipsis {
        padding: 0 4px;
    }
    
    /* Ensure navbar is centered on small mobile */
    .navbar {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        padding: 10px 12px;
    }
    
    .hero {
        padding: 120px 20px 40px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .background-slider {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .slide {
        max-width: 100vw !important;
        overflow: hidden !important;
    }
    
    body.portfolio-page .navbar,
    body.about-page .navbar,
    body.contact-page .navbar,
    body.book-appointment-page .navbar {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100vw - 24px) !important;
    }
    
    .page-container {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .nav-links {
        font-size: 0.7rem;
        gap: 12px;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .glimpses-grid {
        grid-template-columns: 1fr;
    }

    .footer-company-name span {
        font-size: clamp(2rem, 12vw, 12vw);
        white-space: normal;
        word-break: break-word;
    }
    
    .contact-form,
    .appointment-form-wrapper {
        padding: 40px 24px;
    }
    
    .info-card {
        padding: 28px;
    }
}



.portfolio-detail-page {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.portfolio-detail-page body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.portfolio-detail-main {
    min-height: 100vh;
    padding: 140px clamp(32px, 6vw, 76px) 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.portfolio-detail-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.back-to-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.back-to-portfolio:hover {
    color: var(--text-dark);
    gap: 12px;
}

.back-to-portfolio span {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-to-portfolio:hover span {
    transform: translateX(-4px);
}

.portfolio-detail-header {
    margin-bottom: 60px;
}

.portfolio-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
}

.portfolio-category-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-cream);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark);
    font-weight: 500;
}

.portfolio-location,
.portfolio-year {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.portfolio-detail-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
    max-width: 900px;
}

.portfolio-detail-hero {
    width: 100%;
    margin-bottom: 80px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 48px var(--shadow);
    position: relative;
    aspect-ratio: 16/10;
    background: var(--bg-cream);
}

.portfolio-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Before/After Slider */
.before-after-section {
    margin-bottom: 100px;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin: 0 0 48px;
    font-weight: 500;
}

.before-after-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 48px var(--shadow);
    position: relative;
}

.before-after-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: col-resize;
    background: var(--bg-cream);
}

.before-after-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.after-image {
    z-index: 1;
}

.before-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.before-image {
    width: 200%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--text-dark);
    z-index: 3;
    cursor: col-resize;
    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.slider-handle:hover {
    width: 6px;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--text-dark);
    transform: translateX(-50%);
}

.slider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: var(--bg-white);
    border: 3px solid var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.before-label,
.after-label {
    position: absolute;
    top: 24px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--text-dark);
    z-index: 4;
}

.before-label {
    left: 24px;
}

.after-label {
    right: 24px;
}

/* Portfolio Detail Info Grid */
.portfolio-detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    margin-bottom: 100px;
    align-items: start;
}

.portfolio-detail-description {
    max-width: 100%;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-medium);
    margin-bottom: 48px;
}

.key-features {
    margin-top: 48px;
}

.key-features h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0 0 24px;
    font-weight: 500;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.features-list li {
    padding-left: 32px;
    position: relative;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.7;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.2rem;
}

/* Sidebar */
.portfolio-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 140px;
}

.designer-info-card,
.project-stats-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px var(--shadow);
}

.designer-info-card h3,
.project-stats-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0 0 24px;
    font-weight: 500;
}

.designer-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.designer-role {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

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

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Portfolio Gallery */
.portfolio-gallery-section {
    margin-bottom: 100px;
}

.portfolio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-cream);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-view-icon {
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10000;
}

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

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-image-container {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-counter {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 24px;
    border-radius: 999px;
    z-index: 10000;
}

/* Responsive Styles for Portfolio Detail */
@media (max-width: 900px) {
    .portfolio-detail-main {
        padding: 140px 24px 60px;
    }
    
    .portfolio-detail-info-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .portfolio-detail-sidebar {
        position: static;
    }
    
    .before-after-wrapper {
        aspect-ratio: 4/3;
    }
    
    .portfolio-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .portfolio-detail-main {
        padding: 120px 20px 40px;
    }
    
    .portfolio-detail-hero {
        aspect-ratio: 4/3;
        border-radius: 12px;
        margin-bottom: 48px;
    }
    
    .before-after-section,
    .portfolio-detail-info-grid,
    .portfolio-gallery-section {
        margin-bottom: 60px;
    }
    
    .before-label,
    .after-label {
        top: 16px;
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    
    .before-label {
        left: 16px;
    }
    
    .after-label {
        right: 16px;
    }
    
    .slider-circle {
        width: 48px;
        height: 48px;
    }
    
    .portfolio-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-lightbox {
        padding: 20px;
    }
    
    .lightbox-image-container {
        max-width: 100%;
    }
}

.footer-contact {
    margin-top: 22px;
    font-size: 1.04rem;
    color: #38506c;
    line-height: 1.75;
    background: none;
    padding: 0;
    border-radius: 0;
    letter-spacing: 0.01em;
}
.footer-contact strong {
    color: #243248;
    font-weight: 600;
    margin-right: 3px;
    display: inline-block;
    min-width: 65px;
    font-size: 1.03em;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}
.footer-contact span {
    display: block;
    margin: 0 0 5px 0;
    color: #466276;
}
.footer-contact a {
    margin-left: 6px;
    color: #1e5380;
    text-decoration: underline;
    transition: color 0.16s;
    font-size: 1em;
    letter-spacing: 0.01em;
}
.footer-contact a:hover {
    color: #13334e;
    text-decoration: underline;
}
@media (max-width: 560px) {
    .footer-contact {
        font-size: 0.98rem;
    }
    .footer-contact strong { min-width: 54px; }
}