/* ==================== */
/* CSS Reset & Variables */
/* ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #d4d4d4;
    --accent-color: #a0a0a0;
    --text-dark: #ffffff;
    --text-light: #a0a0a0;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-light: #141414;
    --bg-white: #1a1a1a;
    --border-color: #2a2a2a;
    --overlay-dark: rgba(0, 0, 0, 0.85);
    --overlay-light: rgba(0, 0, 0, 0.6);
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
    --bg-lighter: #1f1f1f;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 16px;
}

/* Fluid typography for better mobile experience */
@media (max-width: 1200px) {
    html { font-size: 15px; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
}

@media (max-width: 480px) {
    html { font-size: 13px; }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-darker);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Prevent layout shift */
    aspect-ratio: attr(width) / attr(height);
}

/* Improve image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Smooth image loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

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

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

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

::selection {
    background: var(--primary-color);
    color: var(--bg-darker);
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ==================== */
/* Typography */
/* ==================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* ==================== */
/* Navigation */
/* ==================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
    will-change: transform;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem clamp(1rem, 4vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.75rem;
    color: var(--secondary-color);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    padding: 0.5rem;
    /* Larger touch target for mobile */
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

/* ==================== */
/* Hero Section */
/* ==================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    max-height: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #0a0a0a;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4.5rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    /* Better touch targets on mobile */
    min-height: 44px;
    will-change: transform;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-darker);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-darker);
    transform: translateY(-3px);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==================== */
/* About Section */
/* ==================== */

.about-section {
    padding: clamp(3rem, 10vw, 6rem) 0;
    background: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.about-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: 20px;
    left: 20px;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.about-image-wrapper:hover::after {
    border-color: var(--primary-color);
}

/* ==================== */
/* Gallery Section */
/* ==================== */

.gallery-section {
    padding: clamp(3rem, 10vw, 6rem) 0;
    background: var(--bg-dark);
}

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

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--bg-light);
    color: var(--text-light);
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    /* Better touch targets */
    min-height: 44px;
    will-change: transform;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-darker);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.filter-btn:active {
    transform: translateY(0);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    display: block;
    opacity: 0;
}

/* Show image with fade-in when loaded */
.gallery-item img.loaded {
    opacity: 1;
}

/* Fallback: show images after a delay even without .loaded class */
.gallery-item img[loading="lazy"] {
    animation: fadeInFallback 0.3s ease 0.5s forwards;
}

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

/* Loading skeleton animation - only show when image not loaded */
.gallery-item:not(.image-loaded)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        var(--bg-light) 25%,
        var(--bg-lighter) 50%,
        var(--bg-light) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
    opacity: 1;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

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

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.gallery-info {
    text-align: center;
    color: var(--bg-white);
    padding: 1rem;
}

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

.gallery-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.gallery-expand {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
    /* Better touch target */
    min-width: 44px;
    min-height: 44px;
}

@media (hover: hover) {
    .gallery-expand:hover {
        background: var(--secondary-color);
        color: var(--bg-darker);
        transform: rotate(90deg);
    }
}

/* ==================== */
/* Testimonials Section */
/* ==================== */

.testimonials-section {
    padding: clamp(3rem, 10vw, 6rem) 0;
    background: var(--bg-darker);
    overflow: hidden;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.testimonials-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonials-slider {
    overflow: hidden;
    position: relative;
    padding: 3rem 0;
    margin: 0 -2rem;
}

.testimonials-slider::before,
.testimonials-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.testimonials-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-darker), transparent);
}

.testimonials-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-darker), transparent);
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    will-change: transform;
}

.testimonial-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    min-width: min(350px, 90vw);
    max-width: 400px;
    flex-shrink: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

@media (hover: hover) {
    .testimonial-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-color);
    }
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bg-darker);
    flex-shrink: 0;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ==================== */
/* Contact Section */
/* ==================== */

.contact-section {
    padding: clamp(3rem, 10vw, 6rem) 0;
    background: var(--bg-dark);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    width: 100%;
}

.contact-info h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-light);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    /* Better touch targets */
    min-width: 44px;
    min-height: 44px;
    will-change: transform;
}

@media (hover: hover) {
    .social-link:hover {
        background: var(--primary-color);
        color: var(--bg-darker);
        transform: translateY(-5px) rotate(5deg);
        box-shadow: var(--shadow-md);
        border-color: var(--primary-color);
    }
}

/* Contact Form */

.footer {
    background: var(--bg-darker);
    color: var(--text-light);
    padding: 3rem 0 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.footer-text {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-light);
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* ==================== */
/* Lightbox */
/* ==================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

/* Smooth image switching animation */
.lightbox-content img.switching {
    opacity: 0;
    transform: scale(0.95);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    /* Better touch targets */
    min-width: 44px;
    min-height: 44px;
    will-change: transform;
}

@media (hover: hover) {
    .lightbox-close:hover,
    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: var(--primary-color);
        color: var(--bg-darker);
        transform: scale(1.1);
    }
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ==================== */
/* Animations */
/* ==================== */

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-in-out 0.2s backwards;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-in-out 0.4s backwards;
}

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

/* ==================== */
/* Responsive Design */
/* ==================== */

/* Tablet and below */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
        overflow-y: auto;
    }

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

    .nav-link {
        font-size: 1.125rem;
        padding: 1rem;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .about-text h2,
    .contact-info h2 {
        text-align: center;
    }

    .about-image-wrapper::after {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .stat {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-description {
        font-size: 1rem;
    }

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

    .testimonials-slider::before,
    .testimonials-slider::after {
        width: 50px;
    }
}

/* Mobile portrait */
@media (max-width: 600px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 350px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .about-stats {
        gap: 1rem;
    }

    .stat {
        padding: 1rem;
    }

    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .social-links {
        justify-content: center;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }
}

/* Small mobile devices */
@media (max-width: 400px) {
    .gallery-grid {
        gap: 1rem;
    }

    .gallery-expand {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 1rem;
        right: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .contact-item {
        gap: 1rem;
    }

    .contact-item i {
        font-size: 1.25rem;
    }
}

/* Improve performance on lower-end devices */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Optimize for touch devices */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .gallery-item:hover img {
        transform: none;
    }
    
    /* Make overlay visible on touch */
    .gallery-overlay {
        opacity: 0;
    }
    
    .gallery-item:active .gallery-overlay {
        opacity: 1;
    }
    
    /* Increase touch targets */
    .nav-link {
        padding: 1rem;
    }
    
    .filter-btn {
        min-width: 80px;
    }
}

/* ==================== */
/* Touch Device Optimizations */
/* ==================== */

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Add custom tap feedback */
button:active,
a:active,
.nav-link:active,
.filter-btn:active,
.btn:active {
    opacity: 0.7;
}

/* Prevent text selection on interactive elements */
button,
.nav-toggle,
.filter-btn,
.gallery-expand,
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    -webkit-user-select: none;
    user-select: none;
}

/* Smooth scrolling on iOS */
body {
    -webkit-overflow-scrolling: touch;
}

/* Prevent zoom on input focus on iOS */
input,
select,
textarea {
    font-size: 16px;
}

/* ==================== */
/* Print Styles */
/* ==================== */

@media print {
    .nav,
    .hero-buttons,
    .gallery-filters,
    .gallery-overlay,
    .footer,
    .lightbox {
        display: none !important;
    }
}

/* ==================== */
/* Image Protection - Prevent Copying */
/* ==================== */

/* Prevent image dragging and selection */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Re-enable pointer events for interactive containers */
.gallery-item,
.about-image-wrapper,
.lightbox-content {
    pointer-events: auto;
}

/* Prevent right-click context menu on images */
img::selection {
    background: transparent;
}

img::-moz-selection {
    background: transparent;
}

/* Invisible watermark layer for additional protection */
.gallery-item::before,
.about-image-wrapper::before,
.lightbox-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: auto;
}

/* Ensure gallery overlay is above the protection layer */
.gallery-overlay {
    z-index: 2;
}

.gallery-expand {
    z-index: 3;
}
