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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

/* Header and Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 0.75rem;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

.lang-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.lang-btn:active {
    transform: scale(0.95);
}

.lang-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem;
    display: block;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:active {
    opacity: 0.7;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    flex: 0 1 350px;
    min-width: 300px;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: var(--secondary-color);
}

.contact-icon {
    font-size: 1.6rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 48px;
    touch-action: manipulation;
}

.submit-button:hover {
    background-color: var(--primary-color);
}

.submit-button:active {
    background-color: var(--primary-color);
    transform: scale(0.98);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-logo img {
    height: 160px;
    width: auto;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
}

.footer-contact p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer-link {
    display: flex;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 300;
    color: var(--white);
    text-align: start;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.6;
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }
}

/* Gallery Page Styles */
.gallery-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.gallery-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.gallery-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.gallery-section {
    padding: 4rem 0;
}

.gallery-info {
    margin-top: 3rem;
    text-align: center;
}

.gallery-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.gallery-info p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.carousel {
    display: flex;
    transition: transform 1s ease-in-out;
    touch-action: pan-y pinch-zoom;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    user-select: none;
    -webkit-user-drag: none;
}

/* Before/After slide layout */
.before-after-container {
    display: flex;
    gap: 3px;
}

.before-after-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.before-after-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    pointer-events: none;
}

.before-after-label.after {
    left: auto;
    right: 12px;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.placeholder-image {
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.placeholder-text {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 2rem;
}

.carousel-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    font-size: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    touch-action: manipulation;
}

.carousel-control:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control:active {
    background-color: var(--primary-color);
    transform: translateY(-50%) scale(1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-control span {
    display: block;
    line-height: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px;
    min-width: 24px;
    min-height: 24px;
    touch-action: manipulation;
}

.indicator-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator-dot:active {
    transform: scale(1);
}

.indicator-dot.active {
    background-color: var(--white);
    transform: scale(1.3);
}

/* Active nav link */
.nav-links a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Logo link styling */
.logo a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo img {
    height: 120px;
    width: auto;
    margin-right: 2rem;
}

/* Photo Grid Styles */
.photo-grid-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.photo-grid-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.photo-thumbnail {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

/* Photo grid placeholder styling */
.photo-grid .placeholder-image.photo-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
}

.photo-grid .placeholder-image.photo-thumbnail:has(img) {
    height: auto;
}

.photo-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-grid .placeholder-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.photo-item:hover .photo-thumbnail {
    transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Lightbox placeholder styling */
.lightbox-content .placeholder-image.lightbox-img {
    width: 80vw;
    height: 80vh;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content .placeholder-text {
    font-size: 3rem;
    font-weight: 600;
    color: var(--white);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
    line-height: 1;
    font-weight: 300;
    touch-action: manipulation;
}

.lightbox-close:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.lightbox-close:active {
    transform: scale(1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
    touch-action: manipulation;
}

.lightbox-nav:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    background-color: var(--primary-color);
    transform: translateY(-50%) scale(1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    z-index: 2001;
}

/* Tablet Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero h1,
    .gallery-hero h1 {
        font-size: 2.5rem;
    }

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

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Mobile Responsive Design */
@media (max-width: 960px) {
    .container {
        padding: 0 20px;
    }

    .nav-wrapper {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero,
    .gallery-hero {
        padding: 3rem 0;
    }

    .hero h1,
    .gallery-hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero p,
    .gallery-hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .services,
    .about,
    .contact,
    .gallery-section {
        padding: 3rem 0;
    }

    .services h2,
    .about h2,
    .contact h2,
    .gallery-info h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

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

    .service-card {
        padding: 1.5rem;
    }

    .carousel-container {
        border-radius: 8px;
    }

    .carousel-slide img,
    .placeholder-image {
        max-height: 350px;
        border-radius: 8px;
    }

    .placeholder-text {
        font-size: 1.1rem;
        padding: 1.5rem;
    }

    .carousel-control {
        width: 44px;
        height: 44px;
        font-size: 2rem;
    }

    .carousel-control.prev {
        left: 8px;
    }

    .carousel-control.next {
        right: 8px;
    }

    .carousel-caption {
        padding: 1rem;
    }

    .carousel-caption h3 {
        font-size: 1.1rem;
    }

    .carousel-caption p {
        font-size: 0.875rem;
    }

    .carousel-indicators {
        bottom: 10px;
        gap: 8px;
    }

    .gallery-info {
        margin-top: 2rem;
    }

    .gallery-info p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        width: 100%;
        max-width: 300px;
    }

    .contact-form {
        padding: 0;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .photo-grid-section {
        padding: 3rem 0;
    }

    .photo-grid-section h2 {
        font-size: 1.75rem;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-counter {
        bottom: 15px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .lightbox-content .placeholder-image.lightbox-img {
        width: 90vw;
        height: 70vh;
    }

    .lightbox-content .placeholder-text {
        font-size: 2rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1,
    .gallery-hero h1 {
        font-size: 1.5rem;
    }

    .hero p,
    .gallery-hero p {
        font-size: 0.9rem;
    }

    .services h2,
    .about h2,
    .contact h2,
    .gallery-info h2 {
        font-size: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .carousel-slide img,
    .placeholder-image {
        max-height: 280px;
    }

    .placeholder-text {
        font-size: 1rem;
        padding: 1rem;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.75rem;
    }

    .carousel-control.prev {
        left: 5px;
    }

    .carousel-control.next {
        right: 5px;
    }

    .carousel-caption h3 {
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }

    .language-switcher {
        gap: 0.375rem;
    }

    .lang-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.8rem;
        min-width: 40px;
        min-height: 40px;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .photo-grid-section h2 {
        font-size: 1.5rem;
    }

    .lightbox-close {
        top: 5px;
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-counter {
        bottom: 10px;
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }

    .lightbox-content .placeholder-image.lightbox-img {
        width: 95vw;
        height: 60vh;
    }

    .lightbox-content .placeholder-text {
        font-size: 1.5rem;
    }
}

/* Mobile Menu (when active) */
.nav-wrapper.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow);
    align-items: flex-start;
    gap: 1rem;
}

.nav-wrapper.active .nav-links {
    flex-direction: column;
    gap: 1rem;
}

.nav-wrapper.active .language-switcher {
    padding-top: 1rem;
    border-top: 1px solid #eee;
    width: 100%;
}
