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

body {
    font-family: 'Iceland', serif;
    background-color: #f5f5f0;
    color: #1a1a1a;
    overflow-x: hidden;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
}

:root {
    --site-bg: #f5f5f0;
    --text: #1a1a1a;
    --muted: #746d63;
    --surface: rgba(255,255,255,0.92);
    --search-grad-start: rgba(255,255,255,0.88);
    --search-grad-end: rgba(242,238,232,0.6);
    --search-btn-bg: rgba(34,30,26,0.95);
    --chip-bg: rgba(255,255,255,0.78);
    --chip-text: #2d2a26;
    --chip-active-bg: #2d2d2d;
    --chip-active-text: #fff;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 25px;
    background-color: #2d2d2d;
    position: relative;
}

.nav {
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .crown {
    font-size: 20px;
}

.logo h1 {
    font-family: 'Iceland', serif;
    font-size: 20px;
    font-weight: 400;
    color: #eeeeee;
    letter-spacing: 1px;
}

.ai-badge {
    font-size: 10px;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 3px;
    color: #ccc;
    margin-left: 10px;
}

.center-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: #fff;
}

.center-logo i {
    transform: scaleX(-1);
}

.nav {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 1;
}

.social-icon svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.social-icon-img {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

/* Main Navigation */
.main-nav {
    background: transparent;
    padding: 20px 0;
    text-align: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.main-nav ul li a {
    font-family: 'Iceland', serif;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    font-style: normal;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #666;
}

/* Desktop: larger nav buttons for easier click targets */
@media (min-width: 1025px) {
    .main-nav ul {
        gap: 14px;
    }
    .main-nav ul li a {
        font-size: 20px;
        padding: 10px 18px;
        border-radius: 22px;
        display: inline-block;
    }

    /* Slightly taller header on larger screens for better spacing */
    .header {
        padding: 16px 25px;
    }
    .logo h1 {
        font-size: 22px;
    }
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Gallery Section */
    .sort-toggle,
    .sort-toggle .sort-label {
        white-space: nowrap;
    }

    /* allow dropdowns to overflow container on small screens */
    .gallery-filter,
    .filter-controls {
        overflow: visible;
    }

    .sort-dropdown {
        position: relative;
        display: inline-block;
    }

    /* open the menu to the right of the toggle on mobile to avoid pushing content */
    .sort-menu {
        position: absolute;
        left: 100%; /* anchor immediately to the right of the toggle */
        right: auto;
        top: 50%;
        transform: translate(8px, -50%);
        min-width: 140px;
        z-index: 9999;
        box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    }

    .sort-menu .sort-btn {
        white-space: nowrap;
    }


.gallery-item:hover {
    transform: translateY(-2px) scale(1.005);
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.25),
        0 0 0 1px rgba(0,0,0,0.1);
}

/* Removed overlay effects for cleaner look */
.gallery-item::after {
    display: none;
}

.gallery-item.tall {
    flex: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.95);
    transition: filter 0.35s ease-out,
                transform 0.35s ease-out;
    will-change: transform, filter;
}

.gallery-item:hover img {
    filter: grayscale(0%) contrast(1.1) brightness(1.05) saturate(1.1);
    transform: scale(1.005);
}

.grunge-overlay {
    position: relative;
}

.grunge-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4"/><feColorMatrix type="saturate" values="0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.1"/></svg>');
    pointer-events: none;
    mix-blend-mode: multiply;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .grunge-texture {
    opacity: 0.3;
}

.grunge-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, transparent 60%, rgba(0,0,0,0.3)),
        radial-gradient(ellipse at bottom right, transparent 60%, rgba(0,0,0,0.2));
    pointer-events: none;
}

/* Image Overlay - removed for cleaner look */
.img-overlay {
    display: none;
}

.view-icon {
    display: none;
}

/* Ink splatter effects - removed */
.gallery-item::before {
    display: none;
}

.gallery-item::after {
    display: none;
}

.service-label {
    font-family: 'Iceland', serif;
    font-size: 16px;
    font-style: italic;
    color: #333;
    padding: 10px 0;
}

/* Center Hero */
.gallery-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-image {
    position: relative;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.28);
}

.hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    max-height: 720px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.95);
    transition: filter 0.35s ease-out,
                transform 0.35s ease-out;
}

.hero-image:hover img {
    filter: grayscale(0%) contrast(1.05) brightness(1.03) saturate(1.05);
    transform: scale(1.01);
}

/* Camera icon hidden for cleaner look */
.camera-icon {
    display: none;
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 20px;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.4s ease,
                box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(145deg, #333 0%, #222 100%);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.1);
}

.card-image {
    width: 100%;
    height: 130px;
    overflow: hidden;
    margin-bottom: 15px;
    border: none;
    border-radius: 6px;
    position: relative;
    transition: transform 0.4s ease;
}

.service-card:hover .card-image {
    transform: scale(1.005);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.9);
    transition: filter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .card-image img {
    filter: grayscale(0%) brightness(1.05) saturate(1.1);
    transform: scale(1.03);
}

.service-card h3 {
    font-family: 'Iceland', serif;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #fff;
}

.service-card p {
    font-size: 12px;
    line-height: 1.7;
    color: #999;
    margin-bottom: 15px;
}

.card-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    border: 1px solid #444;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-color: #666;
    transform: translateX(5px);
}

/* Middle Gallery */
.middle-gallery {
    margin: 30px 0;
}

.gallery-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
}

.gallery-item.small {
    height: 200px;
}

.gallery-item.large {
    height: 350px;
}

.gallery-item.small img,
.gallery-item.large img {
    height: 100%;
}

/* Extra Gallery - Masonry Style */
.extra-gallery {
    margin: 40px 0;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-masonry .gallery-item {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.gallery-masonry .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
}

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

/* Bottom Gallery */
.bottom-gallery {
    margin: 30px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Blog grid spacing: move blog cards slightly down for better visual spacing */
.blog-section .blog-grid {
    margin-top: 24px;
}

/* Blog card: subtle hover (match gallery behavior) */
.blog-grid .blog-card {
    transition: transform 0.35s ease-out, box-shadow 0.35s ease-out;
    will-change: transform;
}
.blog-grid .blog-card:hover {
    transform: translateY(-2px);
}
.blog-card-image img {
    transition: transform 0.35s ease-out, filter 0.35s ease-out;
    will-change: transform, filter;
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.005);
    filter: grayscale(0%) contrast(1.05) brightness(1.03) saturate(1.05);
}

.gallery-grid .gallery-item {
    height: 250px;
}

.gallery-grid .gallery-item.featured {
    position: relative;
}

.featured-text {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    padding: 10px 15px;
    color: #fff;
}

.featured-text h3 {
    font-family: 'Iceland', serif;
    font-size: 14px;
    font-weight: 400;
}

/* Footer */
.footer {
    background: #1a1a1a;
    padding: 30px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-thumbnail {
    width: 80px;
    height: 60px;
    overflow: hidden;
    border: 2px solid #444;
    border-radius: 2px;
    transition: border-color 0.3s ease;
}

.footer-thumbnail:hover {
    border-color: #666;
}

.footer-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.footer-thumbnail:hover img {
    filter: grayscale(60%);
    transform: scale(1.02);
}

.footer-info h4 {
    font-family: 'Iceland', serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 6px;
}

.footer-info p {
    font-size: 17px;
    color: #cfcfcf;
    max-width: 520px;
    line-height: 1.6;
}

.footer-tag {
    font-size: 13px;
    color: #9e9e9e;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.18s ease;
}
.footer-tag:hover {
    color: #fff;
}
.footer-tag i {
    font-size: 14px;
    color: inherit;
    line-height: 1;
}
.footer-tag span {
    display: inline-block;
}

.book-btn {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    padding: 10px 30px;
    font-family: 'Iceland', serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.book-btn:hover {
    background: #fff;
    color: #1a1a1a;
}

.footer-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-gallery-item {
    width: 110px;
    height: 75px;
    overflow: hidden;
    border: 3px solid #333;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.footer-gallery-item:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: #555;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.footer-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.9);
    transition: filter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-gallery-item:hover img {
    filter: grayscale(0%) brightness(1.05) saturate(1.2);
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-nav a {
    color: #666;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-gallery {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-right {
        display: none;
    }
    
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-left {
        display: none;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .gallery-row {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-left {
        flex-direction: column;
    }
    
    .footer-gallery {
        flex-wrap: wrap;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
}

/* Scratchy texture overlay for entire page */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><filter id="scratches"><feTurbulence type="fractalNoise" baseFrequency="0.04" numOctaves="5"/><feColorMatrix type="saturate" values="0"/></filter></defs><rect width="100%" height="100%" filter="url(%23scratches)" opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: 9999;
}

/* Enhanced Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply smooth fade-in animations on load */
.gallery-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15),
                0 0 0 1px rgba(0,0,0,0.05);
    background: transparent;
    border-radius: 0px;
    transition: transform 0.35s ease-out,
                box-shadow 0.35s ease-out,
                border-color 0.35s ease;
    will-change: transform, box-shadow;
    cursor: pointer;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }

.hero-image {
    animation: scaleIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
    opacity: 0;
}

.service-card {
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.4s; }
.service-card:nth-child(2) { animation-delay: 0.5s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }

/* Smooth grunge texture transition */
.grunge-texture {
    transition: opacity 0.4s ease;
}

.gallery-item:hover .grunge-texture,
.hero-image:hover .grunge-texture {
    opacity: 0.7;
}

/* Smooth image loading effect */
.gallery-item img,
.hero-image img,
.card-image img,
.footer-gallery-item img,
.footer-thumbnail img {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 50%, #e0e0e0 100%);
    background-size: 200% 200%;
}

/* Enhanced featured text animation */
.featured-text {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.4s ease,
                padding 0.4s ease;
}

.gallery-item.featured:hover .featured-text {
    transform: translateY(-5px);
    background: rgba(0,0,0,0.85);
    padding: 12px 18px;
}

/* Smooth link transitions */
.card-link {
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.card-link:hover {
    transform: translateX(5px);
}

/* Navigation link smooth effects */
.footer-nav a {
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover {
    transform: scale(1.2);
}

/* Book button enhanced animation */
.book-btn {
    position: relative;
    overflow: hidden;
}

.book-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.book-btn:hover::before {
    left: 100%;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Image reveal on scroll - preparation */
.gallery-item,
.service-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Middle and bottom gallery smooth animations */
.middle-gallery .gallery-item,
.bottom-gallery .gallery-item,
.extra-gallery .gallery-item {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.5s;
}

.middle-gallery .gallery-item:nth-child(2) { animation-delay: 0.6s; }
.middle-gallery .gallery-item:nth-child(3) { animation-delay: 0.7s; }

.extra-gallery .gallery-item:nth-child(1) { animation-delay: 0.5s; }
.extra-gallery .gallery-item:nth-child(2) { animation-delay: 0.6s; }
.extra-gallery .gallery-item:nth-child(3) { animation-delay: 0.7s; }
.extra-gallery .gallery-item:nth-child(4) { animation-delay: 0.8s; }
.extra-gallery .gallery-item:nth-child(5) { animation-delay: 0.9s; }
.extra-gallery .gallery-item:nth-child(6) { animation-delay: 1.0s; }

.bottom-gallery .gallery-item:nth-child(1) { animation-delay: 0.6s; }
.bottom-gallery .gallery-item:nth-child(2) { animation-delay: 0.7s; }
.bottom-gallery .gallery-item:nth-child(3) { animation-delay: 0.8s; }
.bottom-gallery .gallery-item:nth-child(4) { animation-delay: 0.9s; }
.bottom-gallery .gallery-item:nth-child(5) { animation-delay: 1.0s; }
.bottom-gallery .gallery-item:nth-child(6) { animation-delay: 1.1s; }
.bottom-gallery .gallery-item:nth-child(7) { animation-delay: 1.2s; }
.bottom-gallery .gallery-item:nth-child(8) { animation-delay: 1.3s; }

/* Footer gallery smooth animations */
.footer-gallery-item {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.footer-gallery-item:nth-child(1) { animation-delay: 0.8s; }
.footer-gallery-item:nth-child(2) { animation-delay: 0.9s; }
.footer-gallery-item:nth-child(3) { animation-delay: 1.0s; }
.footer-gallery-item:nth-child(4) { animation-delay: 1.1s; }
.footer-gallery-item:nth-child(5) { animation-delay: 1.2s; }
.footer-gallery-item:nth-child(6) { animation-delay: 1.3s; }
.footer-gallery-item:nth-child(7) { animation-delay: 1.4s; }

/* Responsive adjustments for extra gallery */
@media (max-width: 1024px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
    }
    
    .gallery-masonry .gallery-item:nth-child(2) {
        grid-row: span 1;
    }
}

/* ==========================================
   ABOUT PAGE STYLES
   ========================================== */

.about-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-hero {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: start;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-intro h2 {
    font-family: 'Iceland', serif;
    font-size: 42px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-intro .tagline {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
    font-style: italic;
}

.about-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.about-card-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #ccc;
}

.about-card h3 {
    font-family: 'Iceland', serif;
    font-size: 22px;
    margin-bottom: 15px;
}

.about-card p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}

.about-journey {
    margin-bottom: 60px;
}

.about-journey h3,
.about-equipment h3 {
    font-family: 'Iceland', serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #2d2d2d;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #2d2d2d;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.timeline-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-right: 30px;
    max-width: 350px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 30px;
}

.timeline-content h4 {
    font-family: 'Iceland', serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.timeline-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.equipment-item:hover {
    transform: translateX(5px);
}

.equipment-item i {
    font-size: 24px;
    color: #2d2d2d;
}

.equipment-item span {
    font-size: 14px;
    color: #444;
}

/* ==========================================
   GALLERY PAGE STYLES
   ========================================== */

.gallery-page-section {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

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

.gallery-page-header h2 {
    font-family: 'Iceland', serif;
    font-size: 42px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.gallery-page-header p {
    font-size: 16px;
    color: #666;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid #2d2d2d;
    padding: 10px 25px;
    font-family: 'Iceland', serif;
    font-size: 14px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2d2d2d;
    color: #fff;
}

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Slight spacing above the gallery grid to separate it from the header/filter */
.gallery-page-section .gallery-page-grid {
    margin-top: 26px;
}

/* No results message for filters/search */
.no-results {
    display: none;
    text-align: center;
    color: var(--muted);
    font-size: 16px;
    padding: 18px 12px;
    background: transparent;
    margin-top: 12px;
}
@media (max-width: 480px) {
    .no-results { font-size: 15px; padding: 14px 10px; }
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.pagination .page-btn {
    background: var(--chip-bg);
    color: var(--chip-text);
    border: 1px solid rgba(0,0,0,0.04);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Iceland', serif;
    font-size: 14px;
}
.pagination .page-btn.active {
    background: var(--chip-active-bg);
    color: var(--chip-active-text);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.pagination .page-btn[disabled] { opacity: 0.5; cursor: default; }

/* Search box for gallery/blog filter areas */
.filter-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}
.filter-search input[type="search"] {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    min-width: 200px;
}
.filter-search button {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #555;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

/* Make the search icon inside the button white for contrast */
.filter-search button i,
.filter-search button svg,
#gallerySearchBtn i,
#blogSearchBtn i {
    color: #ffffff;
    fill: #ffffff;
}

@media (max-width: 768px) {
    .filter-search input[type="search"] { min-width: 120px; }
}

/* Layout helpers for search above filter controls */
.filter-top-row {
    width: 100%;
    margin-bottom: 10px;
}
.filter-search.full-row {
    display: flex;
    width: 100%;
    gap: 8px;
    align-items: center;
}
.filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Professional centered layout for filter row (search left, controls centered) */
.gallery-filter, .blog-section .gallery-filter {
    max-width: 1100px;
    margin: 8px auto 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
}
/* ensure internal rows are full-width but centered */
.gallery-filter .filter-top-row,
.blog-section .filter-top-row,
.gallery-filter .filter-controls,
.blog-section .filter-controls {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tidy search input/button */
.filter-search.full-row { max-width: 920px; width: 100%; justify-content: center; }
.filter-search.full-row {
    background: linear-gradient(90deg, var(--search-grad-start), var(--search-grad-end));
    padding: 10px 12px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(8,8,8,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.03);
}
.filter-search.full-row input[type="search"] {
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-size: 16px;
    color: var(--text);
    width: calc(100% - 56px);
}
.filter-search.full-row button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--search-btn-bg);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Tag chip styling for filter buttons */
.filter-controls { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin-top:12px; }
.filter-controls .filter-btn,
.filter-controls .category-btn {
    background: var(--chip-bg);
    color: var(--chip-text);
    border: 1px solid rgba(0,0,0,0.04);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 180ms ease, background 180ms ease, color 180ms ease;
}
.filter-controls .filter-btn:hover,
.filter-controls .category-btn:hover { transform: translateY(-3px); background: rgba(255,255,255,0.9); }
.filter-controls .filter-btn.active { background: var(--chip-active-bg); color: var(--chip-active-text); box-shadow: 0 8px 22px rgba(0,0,0,0.12); }

/* Ensure filter controls and sort/category toggles use the theme font and colors */
.filter-controls .filter-btn,
.filter-controls .category-btn,
.sort-toggle,
.sort-toggle .sort-label,
.sort-menu .sort-btn,
.cat-toggle,
.cat-toggle .cat-label,
.cat-menu .filter-btn,
.filter-search.full-row input[type="search"],
.filter-search.full-row button {
    font-family: 'Iceland', serif;
    color: var(--chip-text);
}

/* Specific coloring for toggles (Latest/Oldest/All) */
.sort-toggle, .cat-toggle {
    background: var(--chip-bg);
    border-radius: 999px;
    padding: 8px 12px;
    border: 1px solid rgba(0,0,0,0.04);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sort-toggle .sort-label, .cat-toggle .cat-label {
    font-size: 14px;
    line-height: 1;
    color: var(--chip-text);
}
.sort-menu .sort-btn {
    font-family: 'Iceland', serif;
    color: var(--text);
}
.cat-menu .filter-btn { font-family: 'Iceland', serif; color: var(--text); }

/* Force key filter labels to white for better contrast */
.sort-toggle .sort-label,
.sort-menu .sort-btn,
.cat-toggle .cat-label {
    color: #ffffff !important;
}

/* 'All' button: dark text when unselected, white when active */
.filter-controls .filter-btn[data-filter="all"] {
    color: #111111 !important;
    background: var(--chip-bg);
    border-color: rgba(0,0,0,0.04);
}
.filter-controls .filter-btn[data-filter="all"].active {
    color: var(--chip-active-text) !important;
    background: var(--chip-active-bg);
    border-color: rgba(0,0,0,0.08);
}


@media (max-width: 900px) {
    .gallery-filter, .blog-section .gallery-filter {
        gap: 12px;
        padding: 0 14px;
    }
    .gallery-filter .filter-top-row,
    .gallery-filter .filter-controls,
    .blog-section .filter-top-row,
    .blog-section .filter-controls { justify-content: stretch; }
    .filter-search.full-row { justify-content: space-between; max-width: 100%; }
    .filter-search.full-row input[type="search"] { width: calc(100% - 64px); padding: 14px 16px; font-size: 16px; }
    .filter-search.full-row button { margin-left: 12px; width: 48px; height: 48px; }
    .filter-controls { gap: 8px; }
}

@media (max-width: 480px) {
    .gallery-filter { padding: 0 12px; }
    .filter-search.full-row { padding: 8px; }
    .filter-search.full-row input[type="search"] { width: calc(100% - 56px); padding: 12px 14px; font-size: 15px; }
    .filter-search.full-row button { width: 44px; height: 44px; }
    .filter-controls { gap: 8px; justify-content: center; }
    .filter-controls .filter-btn, .filter-controls .category-btn { padding: 10px 12px; font-size: 13px; }
}

.gallery-page-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.gallery-page-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.gallery-page-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.gallery-page-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-page-item:hover .gallery-page-overlay {
    transform: translateY(0);
}

.gallery-page-overlay h4 {
    font-family: 'Iceland', serif;
    font-size: 18px;
    color: #fff;
    margin-bottom: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gallery-page-overlay .gallery-desc {
    font-size: 12px;
    color: #ddd;
    margin-bottom: 8px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

.gallery-page-overlay .gallery-cat {
    font-size: 11px;
    color: #d4a574;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-page-overlay p {
    font-size: 13px;
    color: #ccc;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */

.contact-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-family: 'Iceland', serif;
    font-size: 42px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 16px;
    color: #666;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.contact-info {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 40px;
    border-radius: 15px;
    color: #fff;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: 'Iceland', serif;
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 14px;
    color: #aaa;
}

.contact-social {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-social h4 {
    font-family: 'Iceland', serif;
    font-size: 18px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #fff;
    color: #1a1a1a;
    transform: translateY(-5px);
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Center single-column contact form and style follow button + icons */
.contact-wrapper.single {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.contact-wrapper.single .contact-form-wrapper {
    width: 720px;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
}

.contact-social {
    margin-top: 24px;
    text-align: center;
}

.contact-social h4 {
    display: inline-block;
    background: #2d2d2d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 12px;
    font-size: 16px;
}

.social-links {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 12px;
}

.social-links a {
    width: 56px;
    height: 56px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #fff;
    color: #222;
    transform: translateY(-6px) scale(1.03);
}

.contact-form h3 {
    font-family: 'Iceland', serif;
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: 'Iceland', serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d2d2d;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #2d2d2d;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-family: 'Iceland', serif;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-map {
    margin-top: 40px;
}

.contact-map h3 {
    font-family: 'Iceland', serif;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Active Nav Link */
.main-nav ul li a.active {
    color: #1a1a1a;
    font-weight: 600;
    position: relative;
}

.main-nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
}

/* Responsive for New Pages */
@media (max-width: 1024px) {
    .about-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-details {
        grid-template-columns: 1fr;
    }
    
    .gallery-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-intro h2 {
        font-size: 32px;
    }
    
    .gallery-page-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-right: 0;
        padding-left: 60px;
        justify-content: flex-start;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 60px;
    }
    
    .timeline-year {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        margin-right: 0;
        margin-left: 0;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
}

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

/* ==========================================
   BLOG PAGE STYLES
   ========================================== */

.blog-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h2 {
    font-family: 'Iceland', serif;
    font-size: 42px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.blog-header p {
    font-size: 16px;
    color: #666;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #2d2d2d;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-family: 'Iceland', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    font-size: 12px;
}

.blog-card-content h3 {
    font-family: 'Iceland', serif;
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-content h3 {
    color: #444;
}

.blog-card-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Iceland', serif;
    font-size: 14px;
    color: #2d2d2d;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease, color 0.3s ease;
}

.read-more:hover {
    gap: 12px;
    color: #000;
}

.read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Responsive Blog */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-header h2 {
        font-size: 32px;
    }
}

/* ==========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ========================================== */

/* Large Tablets & Small Desktops */
@media (max-width: 1200px) {
    .main-content {
        padding: 0 15px;
    }
    
    .hero-gallery {
        gap: 15px;
    }
    
    .service-cards {
        gap: 15px;
    }
    
    .gallery-masonry {
        gap: 15px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .hero-gallery {
        grid-template-columns: 1fr 1.5fr;
    }
    
    .gallery-right {
        display: none;
    }
    
    .hero-image img {
        height: auto;
        max-height: 350px;
    }
    
    .service-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-card {
        padding: 15px;
    }
    
    .card-image {
        height: 100px;
    }
    
    .gallery-masonry {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-masonry .gallery-item:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .gallery-grid .gallery-item {
        height: 200px;
    }
    
    .footer-gallery-item {
        width: 90px;
        height: 60px;
    }
}

/* Small Tablets & Large Phones */
@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 10px 15px;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 14px;
        text-align: left;
        white-space: nowrap;
    }
    
    .nav {
        margin-left: auto;
        gap: 12px;
        flex-shrink: 0;
    }
    
    .social-icon {
        font-size: 16px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .social-icon:hover {
        background: rgba(255,255,255,0.2);
        transform: scale(1.1);
    }
    
    /* Navigation */
    .main-nav {
        padding: 15px 10px;
        position: sticky;
        top: 0;
        background: #f5f5f0;
        z-index: 100;
    }
    
    .main-nav ul {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav ul li a {
        font-size: 14px;
        padding: 8px 12px;
        display: block;
        background: rgba(45, 45, 45, 0.05);
        border-radius: 20px;
        transition: all 0.3s ease;
    }
    
    .main-nav ul li a:hover,
    .main-nav ul li a.active {
        background: #2d2d2d;
        color: #fff;
    }
    
    .main-nav ul li a.active::after {
        display: none;
    }
    
    /* Hero Gallery - Mobile Optimized */
    .hero-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-left {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .gallery-left {
        margin-bottom: 14px; /* space between thumbnails and hero */
    }

    .gallery-left .gallery-item.tall {
        flex: none;
        height: 160px;
    }
    
    .gallery-left .gallery-item {
        height: 140px;
    }
    
    /* Ensure all images are grayscale by default on mobile */
    .gallery-left .gallery-item img,
    .gallery-center .hero-image img,
    .gallery-masonry .gallery-item img,
    .gallery-grid .gallery-item img,
    .gallery-row .gallery-item img {
        filter: grayscale(100%) contrast(1.1) brightness(0.95);
    }
    
    .gallery-center {
        gap: 15px;
    }
    
    .hero-image {
        border-radius: 10px;
    }
    
    .hero-image img {
        height: auto;
        max-height: 360px;
    }
    
    /* Service Cards - Mobile */
    .service-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding: 20px;
        border-radius: 16px;
        background: linear-gradient(160deg, #2a2a2a 0%, #1a1a1a 50%, #252525 100%);
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
        border: 1px solid rgba(255,255,255,0.08);
        position: relative;
        overflow: hidden;
    }
    
    .service-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #666, #999, #666);
        opacity: 0.5;
    }
    
    .card-image {
        height: 140px;
        margin-bottom: 15px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    
    .card-image img {
        transition: transform 0.5s ease, filter 0.5s ease;
    }
    
    .service-card h3 {
        font-size: 20px;
        margin-bottom: 10px;
        color: #fff;
        font-weight: 600;
        letter-spacing: 1px;
    }
    
    .service-card p {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 15px;
        color: #aaa;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .card-link {
        font-size: 13px;
        padding: 10px 25px;
        margin-top: 5px;
        background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 25px;
        color: #fff;
        transition: all 0.3s ease;
        display: inline-block;
    }
    
    .card-link:hover {
        background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    
    /* Middle Gallery */
    .middle-gallery {
        margin: 20px 0;
    }
    
    .gallery-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .gallery-item.small {
        height: 150px;
    }
    
    .gallery-item.large {
        height: 200px;
        grid-column: span 2;
    }
    
    /* Extra Gallery */
    .extra-gallery {
        margin: 25px 0;
    }
    
    .gallery-masonry {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .gallery-masonry .gallery-item {
        height: 180px;
    }
    
    .gallery-masonry .gallery-item:nth-child(1) {
        grid-column: span 2;
        height: 220px;
    }
    
    /* Bottom Gallery */
    .bottom-gallery {
        margin: 20px 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .gallery-grid .gallery-item {
        height: 150px;
        border-radius: 8px;
    }
    
    /* Footer */
    .footer {
        padding: 20px 15px;
        margin-top: 25px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-bottom: 15px;
    }
    
    .footer-left {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-thumbnail {
        width: 100px;
        height: 70px;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-info h4 {
        font-size: 16px;
    }
    
    .footer-info p {
        font-size: 12px;
        max-width: 100%;
    }
    
    .book-btn {
        width: 100%;
        max-width: 250px;
        padding: 12px 30px;
    }
    
    .footer-gallery {
        gap: 8px;
        padding: 0 10px;
    }
    
    .footer-gallery-item {
        width: calc(25% - 8px);
        height: 50px;
        border-width: 2px;
    }
    
    .footer-nav {
        gap: 25px;
    }
    
    .footer-nav a {
        font-size: 20px;
        padding: 10px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    /* Header */
    .header {
        padding: 8px 12px;
    }
    
    .logo h1 {
        font-size: 12px;
        letter-spacing: 0.3px;
    }
    
    .nav {
        gap: 8px;
        margin-left: auto;
    }
    
    .social-icon {
        font-size: 14px;
        width: 28px;
        height: 28px;
    }
    
    /* Navigation */
    .main-nav {
        padding: 12px 8px;
    }
    
    .main-nav ul {
        gap: 4px;
    }
    
    .main-nav ul li a {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* Main Content */
    .main-content {
        padding: 0 10px;
    }
    
    /* Hero Gallery */
    .hero-gallery {
        gap: 10px;
    }
    
    .gallery-left {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .gallery-left .gallery-item,
    .gallery-left .gallery-item.tall {
        height: 120px;
        border-radius: 8px;
    }
    
    .hero-image img {
        height: auto;
        max-height: 300px;
    }
    
    /* Service Cards */
    .service-cards {
        gap: 12px;
    }
    
    .service-card {
        flex-direction: column;
        padding: 18px;
        border-radius: 14px;
    }
    
    .card-image {
        height: 120px;
        border-radius: 10px;
        margin-bottom: 12px;
    }
    
    .service-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .service-card p {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 12px;
    }
    
    .card-link {
        font-size: 12px;
        padding: 8px 20px;
    }
    
    /* Middle Gallery */
    .gallery-row {
        gap: 8px;
    }
    
    .gallery-item.small {
        height: 120px;
    }
    
    .gallery-item.large {
        height: 160px;
    }
    
    /* Extra Gallery */
    .gallery-masonry {
        gap: 8px;
    }
    
    .gallery-masonry .gallery-item {
        height: 140px;
        border-radius: 8px;
    }
    
    .gallery-masonry .gallery-item:nth-child(1) {
        height: 180px;
    }
    
    /* Bottom Gallery */
    .gallery-grid {
        gap: 8px;
    }
    
    .gallery-grid .gallery-item {
        height: 120px;
        border-radius: 6px;
    }
    
    /* Footer */
    .footer {
        padding: 15px 12px;
    }
    
    .footer-info h4 {
        font-size: 14px;
    }
    
    .footer-info p {
        font-size: 11px;
    }
    
    .footer-gallery {
        gap: 6px;
    }
    
    .footer-gallery-item {
        width: calc(25% - 6px);
        height: 45px;
    }
    
    .footer-nav {
        gap: 20px;
        padding: 15px 0;
    }
    
    .footer-nav a {
        font-size: 18px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .footer-nav a:hover {
        background: rgba(255,255,255,0.15);
        transform: scale(1.1);
    }
    
    /* About Page Mobile */
    .about-section {
        padding: 25px 15px;
    }
    
    .about-hero {
        gap: 25px;
    }
    
    .about-image {
        max-width: 100%;
    }
    
    .about-intro h2 {
        font-size: 28px;
    }
    
    .about-intro .tagline {
        font-size: 14px;
    }
    
    .about-intro p {
        font-size: 14px;
    }
    
    .about-card {
        padding: 20px;
    }
    
    .about-card-icon {
        font-size: 30px;
    }
    
    .about-card h3 {
        font-size: 18px;
    }
    
    .about-card p {
        font-size: 12px;
    }
    
    .about-journey h3,
    .about-equipment h3 {
        font-size: 24px;
    }
    
    .timeline-content {
        padding: 15px 20px;
    }
    
    .timeline-content h4 {
        font-size: 16px;
    }
    
    .timeline-content p {
        font-size: 12px;
    }
    
    .equipment-item {
        padding: 15px;
    }
    
    .equipment-item i {
        font-size: 20px;
    }
    
    .equipment-item span {
        font-size: 12px;
    }
    
    /* Gallery Page Mobile */
    .gallery-page-section {
        padding: 25px 15px;
    }
    
    .gallery-page-header h2 {
        font-size: 28px;
    }
    
    .gallery-page-header p {
        font-size: 14px;
    }
    
    .gallery-filter {
        gap: 8px;
        margin-bottom: 25px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 12px;
        border-width: 1px;
    }
    
    .gallery-page-grid {
        gap: 12px;
    }
    
    .gallery-page-item {
        border-radius: 8px;
    }
    
    .gallery-page-item img {
        height: 220px;
    }
    
    .gallery-page-overlay {
        padding: 20px 15px 15px;
    }
    
    .gallery-page-overlay h4 {
        font-size: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .gallery-page-overlay .gallery-desc {
        font-size: 11px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .gallery-page-overlay p {
        font-size: 11px;
    }
    
    /* Contact Page Mobile */
    .contact-section {
        padding: 25px 15px;
    }
    
    .contact-header h2 {
        font-size: 28px;
    }
    
    .contact-header p {
        font-size: 14px;
    }
    
    .contact-info {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .contact-details h4 {
        font-size: 14px;
    }
    
    .contact-details p {
        font-size: 12px;
    }
    
    .contact-social h4 {
        font-size: 16px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .contact-form-wrapper {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .contact-form h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
        font-size: 15px;
    }
    
    .contact-map h3 {
        font-size: 22px;
    }
    
    .map-container {
        border-radius: 12px;
    }
    
    /* Blog Page Mobile */
    .blog-section {
        padding: 25px 15px;
    }
    
    .blog-header {
        margin-bottom: 30px;
    }
    
    .blog-header h2 {
        font-size: 28px;
    }
    
    .blog-header p {
        font-size: 14px;
    }
    
    .blog-grid {
        gap: 20px;
    }
    
    .blog-card {
        border-radius: 10px;
    }
    
    .blog-card-image {
        height: 180px;
    }
    
    .blog-category {
        padding: 5px 12px;
        font-size: 10px;
    }
    
    .blog-card-content {
        padding: 18px;
    }
    
    .blog-meta {
        gap: 15px;
        font-size: 11px;
    }
    
    .blog-card-content h3 {
        font-size: 18px;
    }
    
    .blog-card-content p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .read-more {
        font-size: 13px;
    }
}

/* Extra Small Phones */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 12px;
    }
    
    .main-nav ul li a {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .gallery-left .gallery-item,
    .gallery-left .gallery-item.tall {
        height: 110px;
    }
    
    .hero-image img {
        height: auto;
        max-height: 180px;
    }
    
    .service-card {
        grid-template-columns: 70px 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .card-image {
        height: 60px;
    }
    
    .service-card h3 {
        font-size: 13px;
    }
    
    .service-card p {
        font-size: 9px;
    }
    
    .gallery-item.small {
        height: 100px;
    }
    
    .gallery-item.large {
        height: 140px;
    }
    
    .gallery-masonry .gallery-item {
        height: 120px;
    }
    
    .gallery-masonry .gallery-item:nth-child(1) {
        height: 150px;
    }
    
    .gallery-grid .gallery-item {
        height: 100px;
    }
    
    .footer-gallery-item {
        width: calc(25% - 4px);
        height: 38px;
    }
    
    .footer-nav a {
        font-size: 16px;
        width: 36px;
        height: 36px;
    }
}

/* Restore hero grid proportions and constrain images to recommended sizes on desktop */
@media (min-width: 1025px) {
    /* Restore classic 3-column hero grid with compact side images and large center */
    .hero-gallery {
        display: grid;
        grid-template-columns: 280px 1fr 280px;
        gap: 24px;
        align-items: start;
        margin-bottom: 36px;
    }

    .gallery-left,
    .gallery-right {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    /* Left/Right small items (recommended 400x300) */
    .gallery-left .gallery-item,
    .gallery-right .gallery-item {
        height: 300px;
        min-height: 220px;
        overflow: hidden;
        border-radius: 6px;
    }

    /* Tall slots in side columns (recommended 400x600) */
    .gallery-left .gallery-item.tall,
    .gallery-right .gallery-item.tall {
        height: 600px;
        min-height: 420px;
    }

    /* Center hero large (recommended 600x500) */
    .gallery-center {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .gallery-center .hero-image {
        width: 100%;
        max-width: 760px;
        border-radius: 6px;
        overflow: hidden;
    }

    .gallery-center .hero-image img {
        width: 100%;
        height: auto;
        max-height: 500px;
        object-fit: cover;
        display: block;
    }

    /* Keep service cards narrow under the hero */
    .service-cards {
        width: 100%;
        max-width: 760px;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-gallery {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .gallery-left {
        display: flex;
        flex-direction: column;
    }
    
    .gallery-left .gallery-item,
    .gallery-left .gallery-item.tall {
        height: 120px;
    }
    
    .hero-image img {
        height: auto;
        max-height: 200px;
    }
    
    .service-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-card {
        display: block;
        text-align: center;
    }
    
    .card-image {
        height: 60px;
        margin-bottom: 8px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item img {
        filter: grayscale(50%);
    }
    
    .gallery-item:active {
        transform: scale(0.98);
    }
    
    .gallery-item:active img {
        filter: grayscale(0%);
    }

    /* When a touch starts we add .touch-active to simulate hover/color */
    .gallery-item.touch-active img {
        filter: grayscale(0%) !important;
        transform: scale(1.005);
        transition: transform 0.35s ease, filter 0.35s ease;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .footer-nav a:hover {
        transform: none;
    }
    
    .footer-nav a:active {
        transform: scale(0.9);
        background: rgba(255,255,255,0.2);
    }
    
    /* Make tap targets larger on touch devices */
    .main-nav ul li a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .filter-btn {
        min-height: 44px;
    }
    
    .footer-nav a {
        min-width: 44px;
        min-height: 44px;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-item img,
    .hero-image img,
    .card-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Safe Area for Notched Phones */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    .main-content {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }
}

/* Gallery Sort / Filter Controls */
.gallery-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 8px 0;
}

.gallery-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sort-btn {
    background: transparent;
    color: #333;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.sort-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.sort-btn.active {
    background: linear-gradient(90deg, #222 0%, #444 100%);
    color: #fff;
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* Make sort buttons subtly smaller on small screens */
@media (max-width: 600px) {
    .sort-btn {
        padding: 7px 10px;
        font-size: 12px;
    }
}

/* Dropdown specific styles */
.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-toggle {
    background: linear-gradient(90deg, #1f1f1f 0%, #2b2b2b 100%);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.sort-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: linear-gradient(180deg, #232323 0%, #1b1b1b 100%);
    color: #fff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: none;
    min-width: 160px;
    z-index: 2000;
}

.sort-menu.open { display: block; }

.sort-menu .sort-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: none;
    color: #fff;
}

.sort-menu .sort-btn:hover { background: rgba(255,255,255,0.04); }

.sort-menu .sort-btn.active { background: rgba(255,255,255,0.06); }

/* Category dropdown styles (reuse visual language from sort dropdown) */
.cat-dropdown {
    position: relative;
    display: inline-block;
}

.cat-toggle {
    background: linear-gradient(90deg, #1f1f1f 0%, #2b2b2b 100%);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.cat-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: linear-gradient(180deg, #232323 0%, #1b1b1b 100%);
    color: #fff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: none;
    min-width: 160px;
    z-index: 2000;
}

.cat-menu.open { display: block; }

.cat-menu .filter-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: none;
    color: #fff;
}

.cat-menu .filter-btn:hover { background: rgba(255,255,255,0.04); }

/* Print Styles */
@media print {
    .header,
    .main-nav,
    .footer-nav,
    .book-btn {
        display: none;
    }
    
    .gallery-item img {
        filter: none;
    }
    
    body {
        background: white;
    }
    
    body::before {
        display: none;
    }
}
