/* CSS with animations */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: #f9f9f9;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    transition: all 0.3s ease;
}

nav a {
    color: #333;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #f39c12;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #f39c12;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('Images/Hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    margin-top: 60px;
}

.hero h2 {
    font-size: 24px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.7s forwards;
}

.hero p {
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.9s forwards;
}

.btn {
    display: inline-block;
    background: #f39c12;
    color: white;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 1.1s forwards;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

section {
    padding: 80px 20px;
    min-height: auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: #f39c12;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: #777;
    max-width: 700px;
    margin: 0 auto;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-card {
    flex: 1 1 300px;
    max-width: 350px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-img {
    height: 200px;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-img img {
    transform: scale(1.1);
}

.feature-content {
    padding: 25px;
}

.feature-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
}

.feature-content p {
    color: #666;
    margin-bottom: 20px;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 5px;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.3s;
    margin: 0;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-content a:hover {
    background-color: #f39c12;
    color: white;
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropbtn {
    cursor: pointer;
    margin: 0 15px;
    position: relative;
}

.dropbtn i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s;
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

/* About Us Section Styles */
.about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-img {
    flex: 1 1 400px;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-content {
    flex: 1 1 400px;
    max-width: 600px;
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.about-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    flex: 1 1 150px;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-item h4 {
    font-size: 36px;
    color: #f39c12;
    margin: 0 0 5px;
}

.stat-item p {
    color: #777;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

/* Projects Section Styles */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile centering adjustments for Projects */
@media (max-width: 480px) {
    .projects-container {
        grid-template-columns: 1fr; /* Single column */
        padding: 0 15px; /* Add side breathing room */
    }
    .project-card {
        margin: 0 auto; /* Center card block */
        width: 100%;
        max-width: 360px; /* Slight constraint for visual balance */
    }
    .project-info {
        text-align: center; /* Center text inside cards */
    }
    .project-meta {
        justify-content: center; /* Center meta pills */
        gap: 16px;
    }
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.project-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
}

.project-info p {
    color: #666;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 14px;
}

/* Project Preview Overlay Styles */
.project-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-preview-overlay.active {
    display: flex;
    opacity: 1;
}

.preview-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.preview-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    max-height: 80vh;
    overflow-y: auto;
}

.preview-image {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    animation: fadeInScale 0.4s ease forwards;
}

.preview-image:nth-child(1) { animation-delay: 0.1s; }
.preview-image:nth-child(2) { animation-delay: 0.2s; }
.preview-image:nth-child(3) { animation-delay: 0.3s; }
.preview-image:nth-child(4) { animation-delay: 0.4s; }

.preview-image:hover {
    transform: scale(1.05);
}

.preview-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Close button for preview */
.preview-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: #f39c12;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.preview-close:hover {
    background: #e67e22;
    transform: scale(1.1);
}

/* Responsive adjustments for preview */
@media (max-width: 768px) {
    .preview-images {
        grid-template-columns: 1fr;
        gap: 15px;
        max-height: 70vh;
    }
    
    .preview-image img {
        height: 200px;
    }
    
    .preview-close {
        top: -40px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Services Section Styles */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 50px;
    color: #f39c12;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

/* Blog Section Styles */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.blog-img {
    height: 250px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.blog-meta span {
    margin-right: 15px;
}

.blog-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
}

.blog-content p {
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    color: #f39c12;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #e67e22;
}

/* Testimonials specific styles */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card p:last-child {
    font-style: italic;
    color: #f39c12;
    margin-top: 15px;
}

.testimonial-card::before {
    content: '"';
    font-size: 80px;
    color: rgba(243, 156, 18, 0.1);
    position: absolute;
    top: 10px;
    left: 10px;
    line-height: 1;
}

/* Partners section styles */
.partner-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.feature-card:hover .partner-logo img {
    filter: grayscale(0%);
}

/* Partners Slideshow Styles */
.partners-slideshow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.slideshow-container {
    position: relative;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.partner-slide {
    display: none;
    text-align: center;
    padding: 40px 0;
    background: #f9f9f9;
}

.partner-slide img {
    max-width: 600px;
    max-height: 550px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-slide img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Navigation arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #f39c12;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    user-select: none;
    background: rgba(255,255,255,0.7);
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(243, 156, 18, 0.9);
    color: white;
}

/* Dots/bullets */
.dots-container {
    text-align: center;
    padding: 20px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.active, .dot:hover {
    background-color: #f39c12;
}

/* Fade animation */
.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Contact Toggle Button */
.contact-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #f39c12;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.contact-toggle:hover {
    background-color: #e67e22;
    transform: scale(1.1);
}

.contact-toggle i {
    font-size: 24px;
}

/* Contact Form Styles */
.contact-form-container {
    position: fixed;
    bottom: -500px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 998;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.contact-form-container.active {
    bottom: 100px;
}

.contact-form-header {
    background-color: #f39c12;
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
}

.contact-form-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-contact-form {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 18px;
}

.contact-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: Arial, sans-serif;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #e67e22;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .about-container, .features-container, .projects-container, 
    .services-container, .blog-container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        padding: 0 20px;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .about-img, .about-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 15px 0;
    }
    
    nav a {
        margin: 0 10px;
        font-size: 12px;
    }
    
    .language-selector {
    margin-left: 20px;
    position: relative;
}

.language-selector select {
    padding: 8px 18px;
    border-radius: 5px;
    border: 1.5px solid #f39c12;
    background: #fff;
    color: #f39c12;
    font-size: 1em;
    font-weight: bold;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.07);
}

.language-selector select:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.15);
}
    
    .hero {
        margin-top: 80px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero h2 {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .feature-card, .project-card, .blog-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .contact-form-container {
        width: 90%;
        right: 5%;
    }
}

/* Move this OUTSIDE the above block */
@media (max-width: 900px) {
    /* CLEANUP NOTE:
       Removed legacy `.mobile-nav` implementation that set the primary nav to display:none,
       which prevented the hamburger/slide-in menu from showing any links on mobile.
       The active mobile sidebar styles are defined later in this file (second @media block)
       where `.header-center-wrapper nav` becomes the sliding panel. */
    .sidebar-overlay { /* overlay base for mobile menu */
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        /* Dimming removed – set transparent. Adjust alpha if you want slight dim, e.g. rgba(0,0,0,0.15) */
        background: rgba(0,0,0,0);
        z-index: 1199;
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .sidebar-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
}

/* Center header content and use a neutral style */
.header-center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
    background: #fff;
    flex-wrap: wrap;
}

.header-center-wrapper nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-direction: row !important; /* Force horizontal layout */
    flex-wrap: wrap;
}

/* Responsive: Stack nav and language selector vertically on mobile */
@media (max-width: 768px) {
    .header-center-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 0;
    }
    .header-center-wrapper nav {
        flex-direction: row !important; /* Keep nav horizontal on mobile */
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
    }
    .header-center-wrapper .language-selector {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-bottom: 8px;
    }
}
.header-center-wrapper nav,
.header-center-wrapper .language-selector {
    margin: 0;
}

.header-center-wrapper nav a,
.header-center-wrapper .dropbtn {
    color: #222 !important;
    background: none !important;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.header-center-wrapper nav a:hover,
.header-center-wrapper .dropbtn:hover {
    background: #e0e0e0 !important;
    color: #111 !important;
}

.header-center-wrapper .dropdown-content {
    background: #fff !important;
    border: 1px solid #ccc;
}

.header-center-wrapper .dropdown-content a {
    color: #222 !important;
}

/* Make menu content bold */
.header-center-wrapper nav a,
.header-center-wrapper .dropbtn,
.header-center-wrapper .dropdown-content a {
    font-weight: bold !important;
}

.language-selector select {
    padding: 8px 18px;
    border-radius: 5px;
    border: 1.5px solid #f39c12;
    background: #fff;
    color: #f39c12;
    font-size: 1em;
    font-weight: bold;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.07);
}

.language-selector select:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.15);
}

/* Service Page Specific Styles */
.service-hero {
    height: 60vh;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.service-content {
    padding: 80px 20px;
    background: #fff;
}

.service-features {
    margin-top: 30px;
}

.service-features h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.service-features ul {
    list-style-type: none;
    padding: 0;
}

.service-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.service-features li:before {
    content: "•";
    color: #f39c12;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-process {
    background: #f9f9f9;
    padding: 80px 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Ensure nav items and dropdown are aligned */
.header-center-wrapper nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-center-wrapper .dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.header-center-wrapper .dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Position directly below the dropbtn */
    left: 0;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 100;
    flex-direction: column;
    margin-top: 4px; /* Small gap below the button */
}

.header-center-wrapper .dropdown:hover .dropdown-content,
.header-center-wrapper .dropdown.active .dropdown-content {
    display: block;
}

.header-center-wrapper .dropdown-content a {
    color: #222 !important;
    padding: 10px 16px;
    display: block;
    text-align: left;
    text-decoration: none;
    background: none;
    font-weight: bold;
}

.header-center-wrapper .dropdown-content a:hover {
    background: #f0f0f0;
}

/* Hamburger button styles */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #f39c12;
    cursor: pointer;
    margin-right: 10px;
    z-index: 1201;
}

/* Sidebar nav styles */
@media (max-width: 900px) {
    .hamburger {
        display: block;
    }
    .header-center-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .header-center-wrapper nav {
        position: fixed;
        top: 0;
        left: 0; /* anchor to left; hidden via transform */
        width: 260px;
        max-width: 80%;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 16px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px 20px 20px;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
        z-index: 1200;
        will-change: transform;
    }
    .header-center-wrapper nav.active {
        transform: translateX(0);
    }
    .header-center-wrapper nav > a,
    .header-center-wrapper .dropbtn {
        width: 100%;
        text-align: left;
        padding: 14px 0;
        border-bottom: 1px solid #eee;
        border-radius: 0;
    }
    .header-center-wrapper .dropdown {
        width: 100%;
    }
    .header-center-wrapper .dropdown-content {
        position: static;
        box-shadow: none;
        min-width: 0;
        border-radius: 0;
        background: #fff;
        display: none;
    }
    .header-center-wrapper .dropdown.active .dropdown-content,
    .header-center-wrapper .dropdown:hover .dropdown-content {
        display: block;
    }
    .header-center-wrapper .dropdown-content a {
        padding-left: 32px;
        border-bottom: 1px solid #f5f5f5;
    }
    .header-center-wrapper .language-selector {
        width: auto;
        margin: 0 0 0 auto;
    }
    body.menu-open {
        overflow: hidden;
    }
    /* overlay styles centralized earlier; removed duplicate display toggling */
}

/* Gallery Section Styles */
#gallery {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #f39c12;
    color: #f39c12;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 12px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #f39c12;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
}

.gallery-overlay p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.gallery-item.hidden {
    display: none;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #f39c12;
}

#lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-info {
    text-align: center;
    color: white;
    margin-top: 20px;
}

.lightbox-info h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #f39c12;
}

.lightbox-info p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.lightbox-btn {
    background: rgba(243, 156, 18, 0.8);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn:hover {
    background: #f39c12;
    transform: scale(1.1);
}

/* Gallery Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
    
    .lightbox-content {
        padding: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-info h3 {
        font-size: 20px;
    }
    
    .lightbox-info p {
        font-size: 14px;
    }
    
    .lightbox-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-filters {
        margin-bottom: 20px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 10px;
        margin: 3px;
    }
}

/* =============================================
   ACCESSIBLE FOCUS / REMOVE MOBILE TAP BLUE BOX
   ============================================= */
/* Remove default tap highlight (mobile browsers) */
.header-center-wrapper nav a,
.header-center-wrapper .dropbtn,
.header-center-wrapper .dropdown-content a,
.hamburger {
    -webkit-tap-highlight-color: transparent;
}

/* Suppress generic focus outline when clicked/tapped (mouse/pointer) */
.hamburger:focus,
.header-center-wrapper nav a:focus,
.header-center-wrapper .dropbtn:focus,
.header-center-wrapper .dropdown-content a:focus {
    outline: none;
}

/* Keep an accessible outline for keyboard navigation only */
.hamburger:focus-visible,
.header-center-wrapper nav a:focus-visible,
.header-center-wrapper .dropbtn:focus-visible,
.header-center-wrapper .dropdown-content a:focus-visible {
    outline: 2px solid #f39c12;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==================================================
   GLOBAL REMOVAL OF BLUE HIGHLIGHT ON ALL BUTTONS
   (User request to suppress across entire website)
   ================================================== */
/* Remove tap highlight & default focus outline on all clickable elements */
a, button, .btn, .lightbox-btn, .preview-close, .contact-toggle, .submit-btn,
.service-card a.btn, .project-card a, .gallery-item, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Remove inner focus padding in Firefox */
button::-moz-focus-inner, .submit-btn::-moz-focus-inner {
    border: 0;
}

/* Neutralize :focus and :active outlines (desktop + mobile) */
a:focus, a:active,
button:focus, button:active,
.btn:focus, .btn:active,
.lightbox-btn:focus, .lightbox-btn:active,
.submit-btn:focus, .submit-btn:active,
input:focus, input:active,
textarea:focus, textarea:active,
select:focus, select:active {
    outline: none !important;
    box-shadow: none !important;
}

/* OPTIONAL (Accessibility): If later you want a subtle custom keyboard focus, uncomment below
*:focus-visible {
    outline: 2px solid #f39c12;
    outline-offset: 2px;
    border-radius: 4px;
}
*/
