/* Enhanced CSS Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #d4af37;
    --secondary-color: #8b7355;
    --accent-color: #f4e4c1;
    --dark-color: #2c2c2c;
    --light-color: #ffffff;
    --text-color: #333333;
    --bg-color: #f9f9f9;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Enhanced responsive font sizes with better scaling */
    --fs-hero-title: clamp(1.8rem, 6vw, 3.5rem);
    --fs-hero-subtitle: clamp(1rem, 3vw, 1.4rem);
    --fs-section-title: clamp(1.5rem, 4vw, 2.5rem);
    --fs-body: clamp(0.9rem, 2.2vw, 1.1rem);
    --fs-small: clamp(0.8rem, 2vw, 1rem);
    --fs-tiny: clamp(0.7rem, 1.8vw, 0.9rem);
    
    /* Line heights for better readability */
    --lh-tight: 1.1;
    --lh-normal: 1.4;
    --lh-relaxed: 1.6;
    --lh-loose: 1.8;
    
    /* Spacing system */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
}

/* Enhanced Typography with Responsive Scaling */
body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: var(--lh-relaxed);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    font-size: var(--fs-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1;
}

[dir="ltr"] body {
    font-family: 'Space Mono', 'Courier New', monospace;
}

/* Enhanced Typography hierarchy fixes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: var(--lh-tight);
    margin-bottom: var(--space-md);
    color: var(--dark-color);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: var(--fs-hero-title);
    font-weight: 700;
    line-height: var(--lh-tight);
    margin-bottom: var(--space-lg);
    text-align: center;
}

h2 {
    font-size: var(--fs-section-title);
    font-weight: 600;
    line-height: var(--lh-tight);
    margin-bottom: var(--space-xl);
    text-align: center;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    line-height: var(--lh-normal);
    margin-bottom: var(--space-md);
}

h4 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    line-height: var(--lh-normal);
    margin-bottom: var(--space-sm);
}

p {
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-md);
    color: var(--text-color);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: justify;
}

/* First paragraph styling */
p:first-of-type {
    font-size: var(--fs-body);
    line-height: var(--lh-loose);
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

/* First sentence styling */
p:first-of-type::first-line {
    font-weight: 600;
    color: var(--dark-color);
}

/* Lead paragraph styling */
.lead, .hero-subtitle, .about-text p:first-of-type {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: var(--lh-loose);
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: var(--space-lg);
}

/* Text selection styling */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* Performance optimized canvas */
#canvas3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(249, 249, 249, 0) 0%, var(--bg-color) 100%);
    will-change: transform;
}

/* Enhanced Language Switcher - More Responsive */
.language-switcher {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    min-width: 50px;
    white-space: nowrap;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.lang-btn:hover:not(.active) {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* Enhanced Navigation - More Responsive */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 0.75rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: var(--fs-small);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

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

/* Enhanced Hero Section - Fully Responsive */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: transparent;
    padding: 2rem 1rem;
}

.hero-content {
    max-width: 900px;
    padding: 0 1rem;
    z-index: 2;
}

.hero-title {
    font-size: var(--fs-hero-title);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
    line-height: var(--lh-tight);
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.hero-subtitle {
    font-size: var(--fs-hero-subtitle);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: var(--lh-normal);
    text-align: center;
    font-weight: 500;
    color: var(--text-color);
}

.hero-location {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    margin-bottom: var(--space-xl);
    color: var(--secondary-color);
    animation: fadeInUp 1s ease-out 0.4s both;
    text-align: center;
    font-weight: 500;
}

.hero-services {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: var(--space-xl);
    color: var(--text-color);
    animation: fadeInUp 1s ease-out 0.5s both;
    text-align: center;
    font-weight: 500;
    opacity: 0.8;
}

.cta-button {
    text-decoration: none;
    display: inline-block;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: 50px;
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 1s ease-out 0.6s both;
    box-shadow: var(--shadow);
    min-width: 150px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--secondary-color);
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: var(--primary-color);
    animation: scrollLine 2s ease-in-out infinite;
}

/* Enhanced Floating CTA with Multiple Options */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: float 3s ease-in-out infinite;
}

[dir="rtl"] .floating-cta {
    right: auto;
    left: 20px;
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 1rem);
    backdrop-filter: blur(10px);
    min-width: 120px;
    justify-content: center;
}

.floating-cta-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.floating-cta-btn.call {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.floating-cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.floating-cta-btn.call:hover {
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.6);
}

.cta-icon {
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

.cta-text {
    font-family: inherit;
    white-space: nowrap;
}

/* Enhanced Sections - Better Responsive Design */
section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    position: relative;
    background-color: var(--bg-color);
}

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

.section-title {
    font-size: var(--fs-section-title);
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--dark-color);
    position: relative;
    line-height: var(--lh-tight);
    font-weight: 700;
    padding: 0 var(--space-md);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(40px, 8vw, 60px);
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Enhanced Services Grid - Better Responsive */
.services {
    background: transparent;
    z-index: 5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.service-card {
    background: white;
    padding: var(--space-xl);
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: clamp(2.5rem, 5vw, 3rem);
    margin-bottom: var(--space-lg);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: var(--space-md);
    color: var(--dark-color);
    line-height: var(--lh-normal);
    font-weight: 600;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    max-width: 100%;
}

.service-card p {
    color: var(--secondary-color);
    line-height: var(--lh-relaxed);
    font-size: var(--fs-small);
    margin-bottom: 0;
}

/* Enhanced About Section - Better Mobile Layout */
.about {
    background: var(--light-color);
    z-index: 5;
}

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

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

.about-text p {
    margin-bottom: var(--space-lg);
    font-size: var(--fs-body);
    line-height: var(--lh-loose);
    text-align: justify;
    color: var(--text-color);
    font-weight: 400;
}

.expertise-badges {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-2xl);
}

.badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: 25px;
    font-size: var(--fs-tiny);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    transition: transform 0.2s ease;
}

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

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Enhanced Gallery - Better Mobile Grid */
.gallery {
    background: transparent;
    z-index: 5;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.gallery-item {
    height: clamp(250px, 40vw, 300px);
    background: var(--accent-color);
    border-radius: 15px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

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

/* Enhanced Contact Section - Better Mobile Form */
.contact {
    background: var(--dark-color);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
}

.contact-item {
    margin-bottom: 1.5rem;
    font-size: var(--fs-body);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    font-size: var(--fs-small);
}

.contact-item a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.contact-item strong {
    color: var(--primary-color);
    margin-left: 1rem;
}

[dir="rtl"] .contact-item strong {
    margin-right: 1rem;
    margin-left: 0;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    font-size: var(--fs-small);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    padding: var(--space-md);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-body);
}

.contact-form button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: var(--space-md);
    border-radius: 10px;
    font-size: var(--fs-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-transform: none;
    letter-spacing: 0.5px;
}

.contact-form button:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Enhanced Footer - Better Mobile Layout */
.footer {
    background: #1a1a1a;
    color: white;
    padding: clamp(2rem, 5vw, 3rem) 0 1rem;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
    text-align: center;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: var(--fs-small);
}

.footer-section a:hover {
    color: var(--primary-color);
}

/* Enhanced Footer Social Links */
.social-links-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: var(--fs-small);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link-footer:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.contact-info-footer {
    margin-top: 1rem;
}

.contact-info-footer a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--fs-small);
}

/* Services List in Footer */
.services-list {
    text-align: right;
}

[dir="rtl"] .services-list {
    text-align: right;
}

[dir="ltr"] .services-list {
    text-align: left;
}

/* SEO Keywords Section */
.seo-keywords {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
}

.seo-keywords h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.keywords-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.keywords-grid span {
    background: rgba(212, 175, 55, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.keywords-grid span:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Instagram Links Section */
.instagram-links {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
}

.instagram-links h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.instagram-link {
    background: linear-gradient(135deg, #E4405F, #C13584);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: var(--fs-small);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(196, 53, 132, 0.2);
}

.instagram-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(196, 53, 132, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-small);
}

.footer-meta {
    margin-top: 0.5rem;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    opacity: 0.8;
}

/* Performance Optimizations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

body.loaded {
    opacity: 1;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Language switcher improvements */
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 4px;
        flex-wrap: wrap;
        max-width: calc(100vw - 20px);
        gap: 2px;
    }
    
    .lang-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
        min-width: 40px;
        border-radius: 15px;
    }
    
    /* Navigation improvements */
    .nav-container {
        padding: 0 1rem;
        position: relative;
        min-height: 60px;
    }
    
    .logo {
        font-size: 1rem;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1.5rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        padding-top: 80px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 1rem 1.5rem;
        border-radius: 25px;
        transition: all 0.3s ease;
        display: block;
        text-align: center;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .nav-menu a:hover {
        background: var(--primary-color);
        color: white;
        transform: scale(1.02);
    }
    
    /* Mobile menu overlay */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-menu.active::before {
        opacity: 1;
    }
    
    .hero {
        padding: 1rem;
        min-height: 90vh;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .floating-cta {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    [dir="rtl"] .floating-cta {
        right: auto;
        left: 15px;
    }
    
    .floating-cta-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - phones typography fixes */
    .hero-content {
        padding: 0 var(--space-sm);
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
        line-height: var(--lh-tight);
        margin-bottom: var(--space-sm);
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        line-height: var(--lh-normal);
        margin-bottom: var(--space-md);
    }
    
    .hero-location {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
        margin-bottom: var(--space-md);
    }
    
    .hero-services {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
        margin-bottom: var(--space-md);
    }
    
    .cta-button {
        font-size: var(--fs-small);
        padding: var(--space-sm) var(--space-md);
    }
    
    /* Section titles on very small screens */
    .section-title {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        line-height: var(--lh-tight);
        margin-bottom: var(--space-lg);
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        padding: 0 var(--space-xs);
    }
    
    /* Hero title on very small screens */
    .hero-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
        line-height: var(--lh-tight);
        margin-bottom: var(--space-sm);
        word-break: break-word;
        hyphens: auto;
        text-align: center;
        max-width: 100%;
        padding: 0 var(--space-xs);
    }
    
    /* Hero subtitle on very small screens */
    .hero-subtitle {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        line-height: var(--lh-normal);
        margin-bottom: var(--space-md);
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        padding: 0 var(--space-xs);
    }
    
    /* Service cards on very small screens */
    .service-card h3 {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        line-height: var(--lh-normal);
    }
    
    .service-card p {
        font-size: var(--fs-tiny);
        line-height: var(--lh-relaxed);
    }
    
    /* About text on very small screens */
    .about-text p {
        font-size: var(--fs-small);
        line-height: var(--lh-loose);
        text-align: center;
    }
    
    /* Contact form on very small screens */
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: var(--fs-small);
        padding: var(--space-xs) var(--space-sm);
    }
    
    .contact-form button {
        font-size: var(--fs-small);
        padding: var(--space-xs) var(--space-sm);
    }
    
    /* Footer on very small screens */
    .footer-section h3 {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    
    .footer-section p,
    .footer-section a {
        font-size: var(--fs-tiny);
    }
    
    .keywords-grid span {
        font-size: clamp(0.6rem, 1.5vw, 0.8rem);
        padding: var(--space-xs) var(--space-xs);
    }
    
    .instagram-link {
        font-size: var(--fs-tiny);
        padding: var(--space-xs) var(--space-sm);
    }
    
    .service-card {
        padding: 1.2rem 0.8rem;
        margin: 0 auto;
    }
    
    .service-card h3 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .floating-cta {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    [dir="rtl"] .floating-cta {
        right: auto;
        left: 15px;
    }
    
    .floating-cta-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        gap: 6px;
        min-width: 100px;
    }
    
    .cta-text {
        display: none;
    }
    
    .language-switcher {
        scale: 0.9;
        top: 8px;
        right: 8px;
        padding: 3px;
    }
    
    .lang-btn {
        padding: 5px 6px;
        font-size: 0.65rem;
        min-width: 35px;
    }
    
    .nav-container {
        padding: 0 0.8rem;
    }
    
    .logo {
        font-size: 0.9rem;
        max-width: 150px;
    }
    
    .mobile-menu-toggle {
        right: 0.8rem;
        width: 25px;
        height: 25px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .nav-menu {
        width: 90%;
        max-width: 280px;
        padding-top: 70px;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
        max-width: 180px;
    }
    
    .contact-form {
        padding: 1.2rem 0.8rem;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    .contact-form button {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
    
    .seo-keywords {
        padding: 0.8rem;
        margin: 1rem 0;
    }
    
    .keywords-grid {
        gap: 0.3rem;
    }
    
    .keywords-grid span {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    .instagram-link {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .about-text {
        text-align: right;
        order: 1;
    }
    
    .about-image {
        order: 2;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .social-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-cta {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #b8860b;
        --text-color: #000000;
        --bg-color: #ffffff;
    }
}

/* Focus improvements for accessibility */
.lang-btn:focus,
.cta-button:focus,
.floating-cta-btn:focus,
.social-link:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.contact-form button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .language-switcher,
    .floating-cta,
    #canvas3d {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scrollLine {
    0% { height: 0; }
    50% { height: 30px; }
    100% { height: 0; }
}

/* Enhanced scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced loading performance */
body.loaded {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 4px;
        flex-wrap: wrap;
        max-width: calc(100vw - 20px);
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        min-width: 45px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 1rem;
        min-height: 90vh;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .floating-cta {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    [dir="rtl"] .floating-cta {
        right: auto;
        left: 15px;
    }
    
    .floating-cta-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
}

/* Enhanced RTL/LTR support */
[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
}

[dir="rtl"] .social-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu a::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .contact-item strong {
    margin-right: 1rem;
    margin-left: 0;
}

/* RTL Mobile fixes */
@media (max-width: 768px) {
    [dir="rtl"] .language-switcher {
        right: auto;
        left: 10px;
    }
    
    [dir="rtl"] .floating-cta {
        right: auto;
        left: 20px;
    }
    
    [dir="rtl"] .nav-menu {
        right: -100%;
        left: auto;
    }
    
    [dir="rtl"] .nav-menu.active {
        right: -100%;
        left: 0;
    }
    
    [dir="rtl"] .mobile-menu-toggle {
        right: auto;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    [dir="rtl"] .language-switcher {
        right: auto;
        left: 8px;
    }
    
    [dir="rtl"] .floating-cta {
        right: auto;
        left: 15px;
    }
    
    [dir="rtl"] .mobile-menu-toggle {
        right: auto;
        left: 0.8rem;
    }
}

/* Cross-browser compatibility fixes */
@supports not (backdrop-filter: blur(20px)) {
    .navbar {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .language-switcher {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Typography cross-browser fixes */
@supports not (font-feature-settings: 'kern' 1) {
    body {
        font-feature-settings: normal;
    }
}

/* Safari font rendering fixes */
@supports (-webkit-appearance: none) {
    .hero-title {
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Firefox font rendering fixes */
@-moz-document url-prefix() {
    .hero-title {
        background: var(--primary-color);
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        background-clip: unset;
        color: var(--primary-color);
    }
}

/* Internet Explorer fallbacks */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .hero-title {
        background: none;
        color: var(--primary-color);
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        background-clip: unset;
    }
    
    .floating-cta {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Additional typography improvements */
.hero-title,
.hero-subtitle,
.hero-location,
.hero-services {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix text overflow issues */
.hero-title,
.section-title,
.service-card h3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Improve text contrast */
.hero-subtitle,
.hero-location,
.hero-services {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Better focus states for accessibility */
.cta-button:focus,
.floating-cta-btn:focus,
.contact-form button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Improve button text rendering */
.cta-button,
.floating-cta-btn,
.contact-form button {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant-numeric: tabular-nums;
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
    .scroll-indicator {
        animation: none;
    }
}

/* Internet Explorer fallbacks */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .hero-title {
        background: none;
        color: var(--primary-color);
    }
    
    .floating-cta {
        animation: none;
    }
}

/* Enhanced responsive breakpoints */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        max-width: 800px;
    }
}

/* Critical Mobile Typography Fixes */
@media (max-width: 768px) {
    /* Fix hero section typography on mobile */
    .hero {
        padding: var(--space-xl) var(--space-md);
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
        line-height: var(--lh-tight);
        margin-bottom: var(--space-md);
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        line-height: var(--lh-normal);
        margin-bottom: var(--space-lg);
        font-weight: 500;
    }
    
    .hero-location {
        font-size: clamp(0.8rem, 3vw, 1rem);
        margin-bottom: var(--space-lg);
        font-weight: 500;
    }
    
    .hero-services {
        font-size: clamp(0.8rem, 3vw, 1rem);
        margin-bottom: var(--space-lg);
        font-weight: 500;
    }
    
    .cta-button {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--fs-body);
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        font-weight: 600;
    }
    
    /* Fix section titles on mobile */
    .section-title {
        font-size: clamp(1.3rem, 5vw, 2rem);
        line-height: var(--lh-tight);
        margin-bottom: var(--space-xl);
        padding: 0 var(--space-sm);
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Fix hero title on mobile */
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
        line-height: var(--lh-tight);
        margin-bottom: var(--space-md);
        word-break: break-word;
        hyphens: auto;
        text-align: center;
        max-width: 100%;
        padding: 0 var(--space-sm);
    }
    
    /* Fix hero subtitle on mobile */
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        line-height: var(--lh-normal);
        margin-bottom: var(--space-lg);
        font-weight: 500;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        padding: 0 var(--space-sm);
    }
    
    /* Fix service cards typography */
    .service-card h3 {
        font-size: clamp(1rem, 3vw, 1.2rem);
        line-height: var(--lh-normal);
        margin-bottom: var(--space-sm);
    }
    
    .service-card p {
        font-size: var(--fs-small);
        line-height: var(--lh-relaxed);
    }
    
    /* Fix about section typography */
    .about-text p {
        font-size: var(--fs-body);
        line-height: var(--lh-loose);
        text-align: center;
    }
    
    .badge {
        font-size: var(--fs-tiny);
        padding: var(--space-xs) var(--space-sm);
    }
    
    /* Fix contact form typography */
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: var(--fs-body);
        padding: var(--space-sm);
    }
    
    .contact-form button {
        font-size: var(--fs-body);
        padding: var(--space-sm);
    }
    
    /* Fix footer typography */
    .footer-section h3 {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: var(--space-sm);
    }
    
    .footer-section p,
    .footer-section a {
        font-size: var(--fs-small);
        line-height: var(--lh-normal);
    }
    
    .keywords-grid span {
        font-size: var(--fs-tiny);
        padding: var(--space-xs) var(--space-sm);
    }
    
    .instagram-link {
        font-size: var(--fs-small);
        padding: var(--space-sm);
    }
    
    /* Fix service cards */
    .service-card {
        padding: 1.5rem 1rem;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Fix gallery on mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0 1rem;
    }
    
    .gallery-item {
        height: 180px;
        border-radius: 8px;
    }
    
    /* Fix contact form */
    .contact-form {
        padding: 1.5rem 1rem;
        margin: 0;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 1rem;
        padding: 0.8rem;
        width: 100%;
    }
    
    .contact-form button {
        font-size: 1rem;
        padding: 0.8rem;
        width: 100%;
    }
    
    /* Fix floating CTA */
    .floating-cta {
        bottom: 20px;
        right: 20px;
        gap: 10px;
        flex-direction: column;
    }
    
    [dir="rtl"] .floating-cta {
        right: auto;
        left: 20px;
    }
    
    .floating-cta-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-width: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    /* Fix footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .seo-keywords {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .keywords-grid {
        gap: 0.4rem;
        justify-content: center;
    }
    
    .keywords-grid span {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .instagram-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .instagram-link {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instagram-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .keywords-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon img,
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --light-color: #2c2c2c;
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .language-switcher {
        background: rgba(26, 26, 26, 0.95);
    }
}

/* Print optimizations */
@media print {
    .language-switcher,
    .floating-cta,
    .mobile-menu-toggle,
    #canvas3d {
        display: none !important;
    }
    
    .navbar {
        position: static;
        background: white;
    }
    
    .nav-menu {
        display: flex;
        position: static;
        background: none;
        box-shadow: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-title {
        font-size: 18pt;
        color: black;
        background: none;
    }
    
    .section-title {
        font-size: 16pt;
        color: black;
    }
}