/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Remove tap highlight for all interactive elements */
a,
button,
input,
textarea,
select,
.service-tile,
.hamburger,
.nav-link,
.btn,
.social-link,
.contact-link,
.gallery-item,
.service-modal-close {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for content areas */
p,
h1,
h2,
h3,
h4,
h5,
h6,
span:not(.hamburger-icon span) {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(31, 25, 20, 0.582);
    backdrop-filter: blur(10px);
}

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

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

/* Logo image / inline SVG sizing */
.nav-logo img,
.nav-logo svg {
    display: block;
    width: 200px;
    height: auto;
    max-height: 96px;
    transition: opacity 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Hide mobile-only items on desktop */
.mobile-only {
    display: none;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #f0f0f0;
}

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

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

.nav-cta {
    display: flex;
    align-items: center;
}

.btn-nav-cta {
    background-color: #ffffff;
    color: #1f1914;
    border: 2px solid #ffffff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    background-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
}

.navbar.scrolled .btn-nav-cta {
    background-color: #ffffff;
    color: #1f1914;
    border-color: #ffffff;
}

.navbar.scrolled .btn-nav-cta:hover {
    background-color: transparent;
    color: #ffffff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 10px;
    margin: -10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger:focus {
    outline: none;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    margin: 4px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    pointer-events: none;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Responsive: collapse nav on small screens */
@media (max-width: 900px) {
    .nav-menu {
        display: none; /* hide menu (assumed to be toggled with JS)
        */
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-logo img,
    .nav-logo svg {
        width: 180px;
        max-height: 110px;
    }
}

@media (max-width: 480px) {
    .nav-logo img,
    .nav-logo svg {
        width: 160px;
        max-height: 90px;
    }

    .nav-container {
        height: 72px; /* a bit taller to fit the larger logo */
    }
}

/* Hamburger active state (X animation) */
.hamburger.active {
    background: rgba(255, 255, 255, 0.15);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-30px);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #1f1914;
    color: #ffffff;
    border-color: #1f1914;
    border-radius: 30px;
}

.btn-primary:hover {
    background-color: #2a2018;
    border-color: #2a2018;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #1f1914;
    border-color: #1f1914;
    border-radius: 30px;
}

.btn-secondary:hover {
    background-color: #1f1914;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #1f1914;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 120%;
    z-index: 2;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #ffffff;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 450px;
}

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

.btn-hero {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 15px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: #ffffff;
    color: #1f1914;
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f1914;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    min-height: 60vh;
    position: relative;
}

.about-image {
    position: relative;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
}

.about-content {
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.about-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.about-label::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 1px;
    background-color: #666;
}

.about-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1f1914;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 3;
    margin-left: -8rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}

.about-content .btn {
    margin-top: 1rem;
}

/* Services Section */
.services {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #1f1914;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.services-header {
    text-align: left;
    margin-bottom: 4rem;
    margin-left: 5rem;
}

.services-label {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
}

.services-label::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 1px;
    background-color: #888;
}

.services-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1f1914;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.services-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-tile {
    background-color: #1f1914;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    scroll-margin-top: 100px;
}

.service-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.service-tile-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.service-tile-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent 0%, rgba(31, 25, 20, 0.6) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.service-tile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(31, 25, 20, 0.3) 100%);
    z-index: 0;
    pointer-events: none;
}

.service-tile:hover .service-tile-image::before {
    background: linear-gradient(to bottom, transparent 0%, rgba(31, 25, 20, 0.75) 100%);
}

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

.service-tile:hover .service-tile-image img {
    transform: scale(1.08);
}

.service-tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 130px;
    padding: 1.5rem 1.8rem;
    background: rgba(31, 25, 20, 0.09);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.service-tile:hover .service-tile-content {
    background: rgba(31, 25, 20, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.service-tile-content h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(31, 25, 20, 0.6), 0 1px 3px rgba(31, 25, 20, 0.8);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.service-tile:hover .service-tile-content h3 {
    transform: translateY(-2px);
    text-shadow: 0 3px 15px rgba(31, 25, 20, 0.7), 0 2px 5px rgba(31, 25, 20, 0.9);
}

.service-tile-content p {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.98);
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 2px 6px rgba(31, 25, 20, 0.6), 0 1px 2px rgba(31, 25, 20, 0.8);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Responsive adjustments for services grid */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-tile-image {
        height: 340px;
    }

    .service-tile-content {
        height: 120px;
        padding: 1.2rem 1.5rem;
    }

    .service-tile-content h3 {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        margin-bottom: 0.4rem;
    }

    .service-tile-content p {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        line-height: 1.4;
    }
}

/* Service Modal */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-modal.show {
    opacity: 1;
}

.service-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 25, 20, 0.92);
    backdrop-filter: blur(8px);
}

.service-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    margin: 7.5vh auto;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 3D modal gets larger height */
.service-modal.modal-3d .service-modal-content {
    max-height: 90vh;
    height: 90vh;
    margin: 5vh auto;
    max-width: 1200px;
}

.service-modal.show .service-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.service-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: #1f1914;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-modal-close:hover {
    background-color: #1f1914;
    color: #ffffff;
    transform: rotate(90deg);
}

.service-modal-inner {
    display: grid;
    grid-template-columns: 45% 55%;
    max-height: 85vh;
    overflow: hidden;
}

.service-modal-image {
    position: relative;
    background-color: #f8f8f8;
    overflow: hidden;
}

.service-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-modal-body {
    padding: 3rem;
    padding-bottom: 4rem;
    overflow-y: auto;
    max-height: 85vh;
}

.service-modal-body h2 {
    font-size: 2.2rem;
    color: #1f1914;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.service-modal-body #serviceModalDescription {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.service-modal-body #serviceModalDescription p {
    margin-bottom: 1rem;
}

.service-modal-features {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.service-modal-features h3 {
    font-size: 1.3rem;
    color: #1f1914;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-modal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-modal-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    color: #555;
    font-size: 1rem;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.service-modal-features li:last-child {
    border-bottom: none;
}

.service-modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1f1914;
    font-weight: bold;
    font-size: 1.2rem;
}

.service-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
}

.service-modal-actions .btn {
    flex: 1;
}

/* Morph effect for 3D service modal */
.service-modal-morph {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.morph-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.morph-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 2s ease-in-out;
}

.morph-img-1 {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}

.morph-img-2 {
    opacity: 0;
    z-index: 1;
    transform: scale(1.05);
}

/* Morphing state - smooth fade */
.morph-wrapper.morphing .morph-img-1 {
    opacity: 0;
    transform: scale(1.05);
}

.morph-wrapper.morphing .morph-img-2 {
    opacity: 1;
    transform: scale(1);
    transform: scale(1);
}

/* 3D Service modal - vertical layout */
.service-modal.modal-3d .service-modal-inner {
    grid-template-columns: 1fr;
    grid-template-rows: 600px 1fr;
    height: 100%;
}

.service-modal.modal-3d .service-modal-image {
    display: none;
}

.service-modal.modal-3d .service-modal-morph {
    display: block !important;
    grid-row: 1;
    height: 600px;
    min-height: 600px;
}

.service-modal.modal-3d .service-modal-body {
    grid-row: 2;
    overflow-y: auto;
    padding: 2rem 3rem;
    padding-bottom: 3rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .service-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .service-modal.modal-3d .service-modal-content {
        height: 100vh;
        max-height: 100vh;
        margin: 0;
    }

    .service-modal-inner {
        grid-template-columns: 1fr;
        max-height: 100vh;
        height: 100vh;
    }

    .service-modal-image {
        height: 40vh;
        max-height: 40vh;
    }

    .service-modal.modal-3d .service-modal-inner {
        grid-template-rows: 50vh 1fr;
        height: 100vh;
    }

    .service-modal.modal-3d .service-modal-morph {
        height: 50vh;
        min-height: 50vh;
    }

    .service-modal.modal-3d .service-modal-body {
        height: 50vh;
        max-height: 50vh;
        overflow-y: auto;
        padding: 1.5rem;
        padding-bottom: 3rem;
        -webkit-overflow-scrolling: touch;
    }

    .service-modal-body {
        padding: 2rem 1.5rem;
        padding-bottom: 5rem;
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .service-modal-body h2 {
        font-size: 1.8rem;
    }

    .service-modal.modal-3d .service-modal-body h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .service-modal-features {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .service-modal-actions {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .service-modal.modal-3d .service-modal-inner {
        grid-template-rows: 45vh 1fr;
    }

    .service-modal.modal-3d .service-modal-morph {
        height: 45vh;
        min-height: 45vh;
    }

    .service-modal.modal-3d .service-modal-body {
        height: 55vh;
        max-height: 55vh;
        padding: 1.2rem;
    }

    .service-modal.modal-3d .service-modal-body h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .service-modal-features {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }

    .service-modal-features h3 {
        font-size: 1.1rem;
    }

    .service-modal-features li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
        padding-left: 1.8rem;
    }
}

.services-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    justify-content: center;
}

.services .btn-primary {
    background-color: #1f1914;
    color: #ffffff;
    border-color: #1f1914;
}

.services .btn-primary:hover {
    background-color: #2a2018;
    color: #ffffff;
    border-color: #2a2018;
}

.services .btn-secondary {
    background-color: transparent;
    color: #1f1914;
    border-color: #1f1914;
}

.services .btn-secondary:hover {
    background-color: #1f1914;
    color: #ffffff;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background-color: #ffffff;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.gallery-content {
    padding-right: 2rem;
}

.gallery-header {
    margin-bottom: 3rem;
}

.gallery-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
}

.gallery-label::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 1px;
    background-color: #666;
}

.gallery-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1f1914;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gallery-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

.gallery-images {
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 540px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    height: 100%;
}

.gallery-item.large {
    grid-row: span 2;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 20px;
}

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

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

.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item.large:hover .gallery-caption {
    opacity: 1;
}

/* Image counter badge */
.gallery-modal-counter {
    position: fixed;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10002;
    letter-spacing: 0.5px;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-modal.show {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 1;
}

.gallery-modal-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.4s ease;
    padding: 40px 20px;
}

.gallery-modal.show .gallery-modal-content {
    transform: scale(1);
    opacity: 1;
}

.gallery-modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10002;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.gallery-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 16px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10002;
    font-weight: 300;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) translateX(0);
}

.gallery-nav.prev:hover {
    transform: translateY(-50%) translateX(-5px);
}

.gallery-nav.next:hover {
    transform: translateY(-50%) translateX(5px);
}

.gallery-nav.prev {
    left: 30px;
}

.gallery-nav.next {
    right: 30px;
}

#galleryModalImage {
    max-width: 95vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.gallery-modal-info {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 20px 40px;
    border-radius: 16px;
    max-width: 700px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.gallery-modal-info:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.gallery-modal-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.gallery-modal-info p {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.5;
    margin: 0;
    font-weight: 300;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.contact-content {
    max-width: 900px;
    margin: 4rem auto 0;
}

.contact-info-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1f1914 0%, #2a2018 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(31, 25, 20, 0.15);
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(31, 25, 20, 0.25);
}

.contact-details {
    flex: 1;
}

.contact-details h4 {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-value {
    font-size: 1.1rem;
    color: #1f1914;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a.contact-value:hover {
    color: #555;
}

.contact-value:not(a) {
    display: block;
}

.contact-social {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e8e8e8;
    margin-top: 1rem;
}

.contact-social h4 {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1f1914 0%, #2a2018 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: linear-gradient(135deg, #2a2018 0%, #3a3028 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Form Group Styles */
.contact-form {
    background-color: #f8f8f8;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1f1914;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    border-radius: 20px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1f1914;
}

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

/* Footer */
.footer {
    background-color: #1f1914;
    color: #ffffff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    color: #e0e0e0;
    line-height: 1.6;
}

.footer-company-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-company-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-company-info small {
    color: #ccc;
    font-size: 0.85rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-section i {
    margin-right: 0.5rem;
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(31, 25, 20, 0.98) 0%, rgba(41, 33, 27, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 0;
        z-index: 999;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow-y: auto;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
        padding: 0;
        width: 100%;
        opacity: 0;
        transform: translateX(-30px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger animation for menu items */
    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-menu.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 1.5rem 2rem;
        font-size: 1.3rem;
        font-weight: 500;
        color: #ffffff;
        text-decoration: none;
        position: relative;
        transition: all 0.3s ease;
        letter-spacing: 1px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #ffffff 0%, transparent 100%);
        transition: width 0.3s ease;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.1);
        padding-left: 3rem;
    }

    .nav-menu .nav-link:hover::before {
        width: 40px;
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    /* Show mobile-only items in mobile menu */
    .mobile-only {
        display: block !important;
    }

    /* Mobile CTA button */
    .nav-item-cta {
        margin-top: 2rem;
        padding: 0 2rem;
    }

    .nav-link-cta {
        background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
        color: #1f1914 !important;
        border-radius: 30px;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        font-size: 1rem !important;
        padding: 1.2rem 2.5rem !important;
        border: 2px solid #ffffff;
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
        border-bottom: none !important;
    }

    .nav-link-cta:hover {
        background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
        padding-left: 2.5rem !important;
    }

    .nav-link-cta::before {
        display: none !important;
    }

    /* Mobile menu overlay effect */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
        pointer-events: none;
    }

    .hero-background {
        width: 100%;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        opacity: 0.3;
    }

    .hero-content {
        text-align: center;
        padding: 0 30px;
    }

    .hero-title {
        font-size: 2.5rem;
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
    }

    .about-content {
        padding: 0;
        text-align: left !important;
    }

    .about-label::before {
        display: none;
    }

    .about-title {
        font-size: 2.2rem;
        margin-left: 0;
    }

    .about-image img {
        height: 300px;
        border-radius: 20px;
    }

    .contact-info-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem 0;
    }

    .contact-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .contact-details h4 {
        font-size: 0.8rem;
    }

    .contact-value {
        font-size: 1rem;
    }

    .contact-social {
        margin-top: 0.5rem;
        padding-top: 1.5rem;
    }

    .services-header {
        text-align: center;
        margin-left: 0 !important;
    }

    .services-label::before {
        display: none;
    }

    .services-title {
        font-size: 2.2rem;
    }

    .services-description {
        text-align: left !important;
    }

    .services-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gallery-content {
        padding-right: 0;
        text-align: center;
    }

    .gallery-description {
        text-align: left !important;
    }

    .gallery-label::before {
        display: none;
    }

    .gallery-title {
        font-size: 2.2rem;
    }

    .gallery-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .gallery-item {
        height: 250px;
    }

    .gallery-item.large {
        grid-row: span 1;
        height: 250px;
    }

    .gallery-nav {
        padding: 16px 14px;
        font-size: 18px;
        border-radius: 10px;
    }

    .gallery-nav.prev {
        left: 15px;
    }

    .gallery-nav.next {
        right: 15px;
    }

    .gallery-modal-content {
        padding: 20px 10px;
    }

    .gallery-modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    #galleryModalImage {
        max-width: 90vw;
        max-height: 75vh;
    }

    .gallery-modal-info {
        bottom: 20px;
        padding: 16px 24px;
        max-width: calc(100% - 40px);
        border-radius: 12px;
    }

    .gallery-modal-info h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .gallery-modal-info p {
        font-size: 0.8rem;
    }

    .gallery-modal-counter {
        top: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        text-align: left !important;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Scroll margin for sections to account for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Loading animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cookie consent panel */
.cookie-consent {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 24px;
    background: rgba(31, 25, 20, 0.96);
    color: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 11000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.4s ease forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    touch-action: auto;
}

@keyframes slideUpFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent-inner {
    max-width: 1100px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1 1 auto;
}

.cookie-consent-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.cookie-consent-text p {
    margin: 0;
    color: #e6e6e6;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.cookie-consent-actions .btn {
    padding: 10px 24px;
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-consent-actions .btn-primary {
    background-color: #ffffff;
    color: #1f1914;
    border-color: #ffffff;
}

.cookie-consent-actions .btn-primary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    transform: translateY(-2px);
}

.cookie-consent-actions .btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.cookie-consent-actions .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .cookie-consent {
        left: 15px;
        right: 15px;
        bottom: 15px;
        padding: 18px 20px;
    }

    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        gap: 16px;
    }

    .cookie-consent-actions {
        justify-content: flex-end;
        margin-top: 4px;
    }

    .cookie-consent-text strong {
        font-size: 1rem;
    }

    .cookie-consent-text p {
        font-size: 0.9rem;
    }
}
