/**
 * Dahanat - Main Stylesheet
 * Construction & Contracting Services Website
 * Modern, Professional Arabic RTL Design
 */

/* ===================================
   CSS Variables & Root
=================================== */
:root {
    --primary-color: #009688;
    --primary-dark: #00796b;
    --primary-light: #4db6ac;
    --secondary-color: #ffffff;
    --accent-color: #ff5722;
    --accent-light: #ff8a65;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #e64a19 100%);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --font-arabic: 'Tajawal', 'Segoe UI', sans-serif;
    --font-english: 'Poppins', sans-serif;
}

/* ===================================
   Reset & Base Styles
=================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ===================================
   Mobile Optimizations
=================================== */
/* Touch targets minimum 48x48px for mobile */
@media (max-width: 768px) {
    button,
    a,
    input[type="submit"],
    input[type="button"],
    .btn,
    .nav-link,
    .social-links a,
    .footer-social a {
        min-height: 48px;
        min-width: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
    }

    /* Hide Hero Swiper navigation buttons on mobile for better UX and CLS */
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        display: none;
    }

    /* Font sizes minimum 16px for mobile */
    body {
        font-size: 16px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }

    /* Spacing for interactive elements */
    .btn,
    .nav-link,
    .cta-buttons .btn {
        margin: 8px 4px;
    }

    /* Form inputs touch targets */
    input,
    select,
    textarea {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Social media buttons */
    .social-links a,
    .footer-social a {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    /* Navigation links */
    .navbar-nav .nav-link {
        padding: 12px 16px;
    }

    /* Card buttons */
    .card .btn {
        padding: 12px 20px;
    }

    /* Back to top button */
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }

    /* WhatsApp float button */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 80px;
        right: 20px;
    }
}

body {
    font-family: var(--font-arabic);
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

/* ===================================
   Typography
=================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   Preloader
=================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner::before,
.spinner::after {
    display: none !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   WhatsApp Float Button
=================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all var(--transition-normal);
    animation: pulse 2s infinite;
}

/* ===================================
   Dropdown Menu Fix for Mobile
=================================== */
.navbar-collapse .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--bg-light);
    padding: 0;
    margin-top: 0;
}

.navbar-collapse .dropdown-menu::before {
    display: none !important;
}

.navbar-collapse .dropdown-item {
    padding: 12px 20px 12px 50px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.navbar-collapse .dropdown-item:hover,
.navbar-collapse .dropdown-item:focus {
    background: var(--primary-color);
    color: white;
}

.navbar-collapse .dropdown-item.active {
    background: var(--primary-color);
    color: white;
}

.navbar-collapse .dropdown-divider {
    margin: 0;
    border-color: var(--border-color);
}

/* ===================================
   Lightbox Image Fixes - Replace missing images with CSS
=================================== */
.lb-close {
    background: none !important;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lb-close::before {
    content: "×";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #fff;
    line-height: 1;
    font-weight: 300;
}

.lb-close:hover::before {
    color: #ccc;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===================================
   Top Bar
=================================== */
.top-bar {
    background: var(--primary-dark);
    color: var(--secondary-color);
    padding: 8px 0;
    font-size: 0.875rem;
}

.top-bar-info span {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
}

.top-bar-info i {
    margin-left: 8px;
    color: var(--accent-color);
}

.top-bar-social a {
    display: inline-flex;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.top-bar-social a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* ===================================
   Main Navigation
=================================== */
#mainNav {
    background: var(--secondary-color);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    z-index: 1050;
}

#mainNav.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    max-width: 150px;
    width: auto;
    transition: height var(--transition-normal);
}

#mainNav.scrolled .logo-img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 15px !important;
    position: relative;
    transition: color var(--transition-fast);
}

.navbar-nav .nav-link i {
    margin-left: 6px;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 15px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 30px);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    min-width: 220px;
    margin-top: 10px;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-right: 25px;
}

/* CTA Button in Nav */
.nav-cta .btn-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.nav-cta .btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Mobile Navigation */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===================================
   Hero / Slider Section
=================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
}

.hero-slide {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

/* LCP Image: Visible hero background for first slide */
.hero-lcp-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--secondary-color);
    max-width: 700px;
}

.hero-content .subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Swiper Customization */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
    width: 30px;
    border-radius: 6px;
}

.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    transition: all var(--transition-normal);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.25rem;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
}

/* ===================================
   Buttons
=================================== */
.btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--gradient-accent);
    border: none;
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ===================================
   Section Styles
=================================== */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--bg-light);
}

.section-primary {
    background: var(--gradient-primary);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   About / Introduction Section
=================================== */
.about-section .about-image {
    position: relative;
    padding: 20px;
}

.about-section .about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-section .about-image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    transform: translate(20px, 20px);
    z-index: -1;
}

.about-section .experience-badge {
    position: absolute;
    bottom: 40px;
    left: 0;
    background: var(--gradient-accent);
    color: white;
    padding: 25px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about-section .experience-badge .number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.about-section .experience-badge span {
    font-size: 1rem;
    font-weight: 500;
}

.about-section .about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-section .about-content .highlight {
    color: var(--primary-color);
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.about-features li i {
    width: 35px;
    height: 35px;
    background: rgba(0, 150, 136, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    font-size: 0.875rem;
}

/* ===================================
   Services Section
=================================== */
.service-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon-box {
    width: 80px;
    height: 80px;
    background: rgba(0, 150, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.service-card:hover .icon-box {
    background: var(--gradient-primary);
    color: white;
    transform: rotateY(180deg);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-card .service-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
}

.service-card .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card .read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.service-card .read-more i {
    margin-right: 8px;
    transition: transform var(--transition-fast);
}

.service-card:hover .read-more i {
    transform: translateX(-5px);
}

/* ===================================
   Portfolio / Projects Section
=================================== */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.portfolio-filter .filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--border-color);
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.portfolio-filter .filter-btn:hover,
.portfolio-filter .filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
}

.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: white;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.portfolio-overlay span {
    color: var(--accent-color);
    font-size: 0.875rem;
    transform: translateY(20px);
    transition: transform var(--transition-normal) 0.1s;
}

.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay span {
    transform: translateY(0);
}

.portfolio-overlay .view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: transform var(--transition-normal);
}

.portfolio-item:hover .view-btn {
    transform: translate(-50%, -50%) scale(1);
}

/* Mobile: Show overlay always since there's no hover */
@media (max-width: 768px) {
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    }

    .portfolio-overlay h4,
    .portfolio-overlay span {
        transform: translateY(0);
    }

    .portfolio-overlay .view-btn {
        transform: translate(-50%, -50%) scale(1);
    }

    .portfolio-item:hover img {
        transform: scale(1);
    }
}

/* ===================================
   Statistics / Counter Section
=================================== */
.stats-section {
    background: var(--gradient-primary);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 40px 40px;
}

.stat-item {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.stat-item .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-item .counter {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.stat-item .label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 10px;
}

/* ===================================
   Testimonials Section
=================================== */
.testimonials-section {
    background: var(--bg-light);
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 35px;
    margin: 15px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    color: rgba(0, 150, 136, 0.1);
}

.testimonial-card .rating {
    margin-bottom: 15px;
}

.testimonial-card .rating i {
    color: #ffc107;
    font-size: 1rem;
}

.testimonial-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 15px;
    border: 3px solid var(--primary-color);
}

.testimonial-author .author-info h5 {
    margin-bottom: 3px;
    font-size: 1.1rem;
}

.testimonial-author .author-info span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===================================
   Blog Section
=================================== */
.blog-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.blog-card .card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .card-image img {
    transform: scale(1.1);
}

.blog-card .card-image .category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card .card-body {
    padding: 25px;
}

.blog-card .card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-card .card-meta i {
    color: var(--primary-color);
    margin-left: 5px;
}

.blog-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.blog-card h4 a {
    color: var(--text-color);
    transition: color var(--transition-fast);
}

.blog-card h4 a:hover {
    color: var(--primary-color);
}

.blog-card .excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.blog-card .read-more i {
    margin-right: 8px;
    transition: transform var(--transition-fast);
}

.blog-card:hover .read-more i {
    transform: translateX(-5px);
}

/* Blog Page Specific */
.blog-sidebar .widget {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.blog-sidebar .widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-gray);
    position: relative;
}

.blog-sidebar .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.blog-sidebar .search-form {
    position: relative;
}

.blog-sidebar .search-form input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.95rem;
}

.blog-sidebar .search-form button {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
}

.blog-sidebar .categories-list {
    list-style: none;
    padding: 0;
}

.blog-sidebar .categories-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-gray);
}

.blog-sidebar .categories-list li:last-child {
    border-bottom: none;
}

.blog-sidebar .categories-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
    font-weight: 500;
}

.blog-sidebar .categories-list a:hover {
    color: var(--primary-color);
}

.blog-sidebar .categories-list .count {
    background: var(--bg-light);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
}

.blog-sidebar .recent-post {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--bg-gray);
}

.blog-sidebar .recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-sidebar .recent-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.blog-sidebar .recent-post h6 {
    margin-bottom: 5px;
    line-height: 1.4;
}

.blog-sidebar .recent-post h6 a {
    color: var(--text-color);
}

.blog-sidebar .recent-post h6 a:hover {
    color: var(--primary-color);
}

.blog-sidebar .recent-post .date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===================================
   Call to Action Section
=================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--accent-color) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 30px 30px;
    animation: moveBg 20s linear infinite;
}

@keyframes moveBg {
    from { transform: translate(0, 0); }
    to { transform: translate(30px, 30px); }
}

.cta-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===================================
   Contact Section
=================================== */
.contact-section {
    padding: 80px 0;
}

.contact-info-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: all var(--transition-normal);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-card .icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 150, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.contact-info-card:hover .icon {
    background: var(--primary-color);
    color: white;
}

.contact-info-card h5 {
    margin-bottom: 10px;
}

.contact-info-card p {
    margin-bottom: 0;
}

.contact-info-card a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.contact-info-card a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ===================================
   Page Header / Breadcrumb
=================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 40px 40px;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a {
    color: white;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--accent-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   Footer Styles
=================================== */
.footer {
    background: #1a1a1a;
    color: #ccc;
}

.footer-newsletter {
    background: var(--primary-dark);
    padding: 40px 0;
}

.footer-newsletter h4 {
    color: white;
    margin-bottom: 5px;
}

.footer-newsletter h4 i {
    margin-left: 10px;
    color: var(--accent-color);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.newsletter-form .input-group {
    max-width: 500px;
}

.newsletter-form .form-control {
    padding: 15px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
}

.footer-main {
    padding: 60px 0;
}

.footer-logo {
    max-width: 150px;
}

.footer-about {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-contact .contact-item i {
    color: var(--primary-color);
    margin-left: 10px;
    margin-top: 5px;
}

.footer-contact .contact-item a {
    color: #ccc;
}

.footer-contact .contact-item a:hover {
    color: var(--primary-color);
}

.footer-widget .widget-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all var(--transition-fast);
}

.footer-links a::before {
    content: '\f104';
    font-family: 'Font Awesome 7 Free';
    font-weight: 900;
    margin-left: 8px;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.working-hours p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.working-hours i {
    color: var(--primary-color);
    margin-left: 10px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    background: #111;
    padding: 20px 0;
}

.copyright {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-legal {
    font-size: 0.9rem;
}

.footer-legal a {
    color: #ccc;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-legal span {
    margin: 0 10px;
    opacity: 0.5;
}

/* ===================================
   Back to Top Button
=================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-5px);
}

/* ===================================
   Alert / Flash Messages
=================================== */
.alert {
    border: none;
    border-radius: var(--border-radius-md);
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-right: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-right: 4px solid #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-right: 4px solid #ffc107;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border-right: 4px solid #17a2b8;
}

/* ===================================
   Pagination
=================================== */
.pagination {
    justify-content: center;
    margin-top: 40px;
}

.pagination .page-link {
    border: none;
    padding: 12px 18px;
    margin: 0 3px;
    border-radius: var(--border-radius-md);
    color: var(--text-color);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    background: var(--bg-light);
    color: var(--text-muted);
}

/* ===================================
   FAQ Accordion
=================================== */
.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-button {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.05rem;
    background: white;
    color: var(--text-color);
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
}

.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23009688'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-body {
    padding: 20px 25px;
    line-height: 1.8;
}

/* ===================================
   Responsive Design
=================================== */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .hero-slider {
        height: 600px;
        min-height: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-lg);
        margin-top: 15px;
    }
    
    .nav-cta {
        margin-top: 15px;
    }
    
    .nav-cta .btn-cta {
        width: 100%;
        justify-content: center;
    }
    
    .about-section .about-image::before {
        display: none;
    }
    
    .about-section .experience-badge {
        position: relative;
        bottom: auto;
        left: auto;
        display: inline-block;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .stat-item .counter {
        font-size: 2.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .footer-newsletter .row {
        text-align: center;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-widget .widget-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links a::before {
        display: none;
    }
}

@media (max-width: 575px) {
    .top-bar-info span {
        display: block;
        margin-bottom: 5px;
        margin-left: 0;
    }
    
    .portfolio-filter .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .testimonial-card {
        margin: 10px 5px;
        padding: 25px;
    }
    
    .blog-card .card-body {
        padding: 20px;
    }
}

/* ===================================
   Utility Classes
=================================== */
.text-primary { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary-gradient { background: var(--gradient-primary) !important; }
.bg-accent-gradient { background: var(--gradient-accent) !important; }

.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Animation Classes */
[data-aos] {
    transition-duration: 800ms;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===================================
   Professional Service Gallery
=================================== */
.service-gallery {
    margin-top: 3rem;
}

.service-gallery h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.service-gallery p.text-muted {
    font-size: 1rem;
    color: var(--text-light);
}

/* ===================================
   Admin Gallery Preview
=================================== */
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-preview-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    background: var(--bg-gray);
    transition: var(--transition-fast);
}

.gallery-preview-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-preview-actions {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-preview-item:hover .gallery-preview-actions {
    opacity: 1;
}

.gallery-preview-actions .delete-checkbox {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.gallery-preview-actions .delete-checkbox input[type="checkbox"] {
    display: none;
}

.gallery-preview-actions .delete-checkbox i {
    font-size: 1.5rem;
    color: white;
    transition: var(--transition-fast);
}

.gallery-preview-actions .delete-checkbox input[type="checkbox"]:checked + i {
    color: #dc3545;
}

.gallery-preview-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.gallery-preview-item.new-image {
    border-color: var(--primary-color);
    border-style: dashed;
}

/* ===================================
   Lazy-Loaded Video Section
=================================== */
.service-video,
.project-video,
.post-video {
    margin-top: 3rem;
}

.service-video h3,
.project-video h3,
.post-video h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.service-video p.text-muted,
.project-video p.text-muted,
.post-video p.text-muted {
    font-size: 1rem;
    color: var(--text-light);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--bg-gray);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: var(--transition-normal);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-placeholder:hover .video-play-button {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===================================
   Grid Gallery Styles
=================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--bg-gray);
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 24px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 2;
    color: white;
    font-size: 24px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Masonry-style grid for varied image sizes */
.gallery-grid.masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
}

@media (min-width: 768px) {
    .gallery-grid.masonry {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 250px;
    }
}

@media (min-width: 992px) {
    .gallery-grid.masonry {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 300px;
    }
}

.gallery-grid.masonry .gallery-item:nth-child(3n+1) {
    grid-row: span 2;
}

.gallery-grid.masonry .gallery-item:nth-child(5n+2) {
    grid-column: span 2;
}

/* Print Styles */
@media print {
    .top-bar,
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .footer-newsletter {
        display: none !important;
    }

    .hero-slider {
        height: auto;
        min-height: auto;
    }
}
