:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Header */
.public-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    max-height: 50px;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary);
}

.nav-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    color: white !important;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-whatsapp-btn:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.4);
}

.nav-whatsapp-btn .wa-icon {
    font-size: 16px;
}

.dropdown {
    position: relative;
}

.dropdown > a {
    padding-bottom: 15px !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 200px;
    display: none;
    padding: 10px 0;
    margin-top: 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.login-btn {
    padding: 10px 25px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.login-btn:hover {
    background: var(--primary-dark);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section - Modern Redesign */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    padding: 40px 40px 60px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-text {
    text-align: left;
    padding-right: 30px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 24px;
    color: #1a202c;
    line-height: 1.2;
    font-weight: 800;
    animation: fadeInUp 0.8s;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 17px;
    margin-bottom: 32px;
    color: #4a5568;
    line-height: 1.8;
    animation: fadeInUp 1s;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    animation: fadeInUp 1.2s;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(18, 140, 126, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(18, 140, 126, 0.5);
    background: linear-gradient(135deg, #0d7a6f 0%, #064a44 100%);
}

/* Hero Services Grid */
.hero-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.hero-service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: fadeInUp 0.6s;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

.hero-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.hero-service-card:hover::before {
    transform: scaleX(1);
}

.hero-service-card:nth-child(1)::before {
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
}

.hero-service-card:nth-child(2)::before {
    background: linear-gradient(90deg, #3182ce 0%, #2563eb 100%);
}

.hero-service-card:nth-child(3)::before {
    background: linear-gradient(90deg, #25d366 0%, #1fba57 100%);
}

.hero-service-card:nth-child(4)::before {
    background: linear-gradient(90deg, #9333ea 0%, #7c3aed 100%);
}

.hero-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.hero-service-card:nth-child(1):hover {
    border-color: rgba(255, 193, 7, 0.5);
}

.hero-service-card:nth-child(2):hover {
    border-color: rgba(49, 130, 206, 0.5);
}

.hero-service-card:nth-child(3):hover {
    border-color: rgba(37, 211, 102, 0.5);
}

.hero-service-card:nth-child(4):hover {
    border-color: rgba(147, 51, 234, 0.5);
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.service-icon-wrap {
    position: relative;
    flex-shrink: 0;
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.hero-service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-icon.electrical {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.service-icon.cctv {
    background: linear-gradient(135deg, #3182ce 0%, #2563eb 100%);
}

.service-icon.aircon {
    background: linear-gradient(135deg, #25d366 0%, #1fba57 100%);
}

.service-icon.smart {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
}

.service-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.service-badge.trending {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.service-badge.new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.service-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0;
    transition: color 0.3s;
    flex: 1;
}

.hero-service-card:nth-child(1):hover .service-card-title {
    color: #ffc107;
}

.hero-service-card:nth-child(2):hover .service-card-title {
    color: #3182ce;
}

.hero-service-card:nth-child(3):hover .service-card-title {
    color: #25d366;
}

.hero-service-card:nth-child(4):hover .service-card-title {
    color: #9333ea;
}

.hero-service-card:hover .service-card-title {
    color: #ffc107;
}

.service-card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    font-size: 13px;
    color: #475569;
    line-height: 1.8;
    padding-left: 4px;
}

.service-features li::before {
    content: none;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sections */
.section {
    padding: 80px 40px;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #000;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

/* Yellow card (Electrical) */
.category-card.card-yellow:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

.category-card.card-yellow::before {
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
}

/* Blue card (CCTV) */
.category-card.card-blue:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.category-card.card-blue::before {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

/* Teal card (Aircon) */
.category-card.card-teal:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.2);
    border-color: #14b8a6;
}

.category-card.card-teal::before {
    background: linear-gradient(90deg, #14b8a6 0%, #0d9488 100%);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-book-now {
    display: inline-block;
    padding: 10px 30px;
    background: #ffc107;
    color: #000;
    border: 2px solid #ffc107;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-book-now:hover {
    background: #ffb300;
    border-color: #ffb300;
    color: #000;
    transform: translateY(-2px);
}

/* Yellow button */
.btn-book-now.btn-yellow {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-book-now.btn-yellow:hover {
    background: #ffb300;
    border-color: #ffb300;
}

/* Blue button */
.btn-book-now.btn-blue {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.btn-book-now.btn-blue:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Teal button */
.btn-book-now.btn-teal {
    background: #14b8a6;
    border-color: #14b8a6;
    color: #fff;
}

.btn-book-now.btn-teal:hover {
    background: #0d9488;
    border-color: #0d9488;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 10px 0;
}

/* Services Carousel */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.services-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 5px;
    flex: 1;
}

.services-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
}

.carousel-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    font-size: 20px;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.carousel-nav:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.carousel-nav:active {
    transform: scale(0.95);
}

.carousel-prev {
    /* Already positioned by flex */
}

.carousel-next {
    /* Already positioned by flex */
}

.service-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
}

.service-card:hover::before {
    opacity: 0;
}

.service-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.6s ease;
    position: relative;
}

.service-card:hover .service-image {
    transform: scale(1.08);
}

.service-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 160px;
    z-index: 1;
}

.service-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.service-card:hover .service-image-wrapper::after {
    opacity: 1;
}

.service-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.service-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.service-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0;
    color: #1a202c;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.service-card:hover h3 {
    color: #667eea;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 0;
}

.category-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #4c51bf;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
}

.service-price {
    margin: 4px 0;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.price-regular {
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.price-offer {
    color: #000000;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.service-buttons {
    display: flex;
    gap: 8px;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.btn-details {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    white-space: nowrap;
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-details:active {
    transform: translateY(0);
}

.btn-whatsapp {
    flex: 1;
    background: linear-gradient(135deg, #25d366 0%, #1fb855 100%);
    color: white;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    white-space: nowrap;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.btn-whatsapp:active {
    transform: translateY(0);
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffc107;
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    text-shadow: none;
    z-index: 2;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 3px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.whatsapp-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #25d366;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.whatsapp-btn:hover {
    background: #1fba57;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    padding: 16px 40px;
    background: transparent;
    color: #000;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: none;
}

.btn-view-all:hover {
    transform: translateY(-2px);
    background: transparent;
    color: #000;
    box-shadow: none;
    text-decoration: none;
    opacity: 0.7;
}

/* Loading animation for service cards */
.service-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }

/* Ensure buttons are always clickable */
.service-card * {
    pointer-events: auto;
}

.service-card::before,
.service-card::after {
    pointer-events: none !important;
}

/* Modal Styles - Two Column Layout */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease-out;
    overflow: hidden;
    position: relative;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: white;
    color: #333;
    transform: scale(1.1);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.modal-image-section {
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

#modalImageContainer {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    margin-bottom: 15px;
}

.modal-image {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-image:hover {
    transform: scale(1.02);
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    justify-content: center;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
    overflow-x: auto;
}

.gallery-thumb {
    width: 65px;
    height: 65px;
    min-width: 65px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gallery-thumb:hover {
    opacity: 1;
    border-color: #3182ce;
    transform: scale(1.08);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #3182ce;
    box-shadow: 0 3px 10px rgba(49, 130, 206, 0.5);
}

.no-image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #64748b;
}

.modal-content-section {
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    line-height: 1.3;
}

.service-category {
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
    padding: 4px 12px;
    background: #edf2f7;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
}

.price-section {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 10px;
    border-left: 4px solid #3182ce;
}

.price-label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-display .price-regular {
    color: #a0aec0;
    text-decoration: line-through;
    font-size: 18px;
}

.price-display .price-offer {
    color: #3182ce;
    font-weight: 700;
    font-size: 28px;
}

.description-section {
    flex: 1;
    margin-bottom: 25px;
}

.description-label {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.service-description {
    color: #4a5568;
    line-height: 1.6;
    font-size: 15px;
    white-space: pre-wrap;
    background: #f7fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.modal-footer {
    padding: 20px 30px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-whatsapp-btn {
    background: #25d366;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
    flex: 1;
    max-width: 200px;
    justify-content: center;
}

.modal-whatsapp-btn:hover {
    background: #22c55e;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.modal-close-btn {
    background: #e2e8f0;
    color: #4a5568;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    max-width: 120px;
    transition: all 0.3s;
}

.modal-close-btn:hover {
    background: #cbd5e1;
    color: #2d3748;
}

/* Image Popup Modal - Full Screen for Service Cards */
.image-popup-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.image-popup-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-popup-img {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: imageZoomIn 0.3s ease-out;
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.image-popup-close:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Image Popup Navigation Arrows */
.image-popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.image-popup-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-popup-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-popup-nav:disabled:hover {
    transform: translateY(-50%);
    box-shadow: none;
}

.image-popup-prev {
    left: 25px;
}

.image-popup-next {
    right: 25px;
}

.image-popup-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.image-popup-thumbnails {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    max-width: 90vw;
    overflow-x: auto;
}

.image-popup-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.image-popup-thumb:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.5);
}

.image-popup-thumb.active {
    opacity: 1;
    border-color: #3182ce;
    box-shadow: 0 0 10px rgba(49, 130, 206, 0.5);
}

/* What We Offer Section */
.what-we-offer-section {
    padding: 80px 40px;
    background: #ffffff;
    position: relative;
}

.what-we-offer-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.what-we-offer-section .section-title {
    font-size: 48px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.what-we-offer-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    border-radius: 2px;
}

.what-we-offer-section .section-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.offer-card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

/* Electrical card - Yellow */
.offer-card.card-electrical:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}
.offer-card.card-electrical::before {
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
}
.offer-card.card-electrical:hover .icon-wrapper {
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

/* Maintenance card - Blue */
.offer-card.card-maintenance:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}
.offer-card.card-maintenance::before {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}
.offer-card.card-maintenance:hover .icon-wrapper {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Safety card - Purple */
.offer-card.card-safety:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}
.offer-card.card-safety::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}
.offer-card.card-safety:hover .icon-wrapper {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Security card - Amber */
.offer-card.card-security:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}
.offer-card.card-security::before {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}
.offer-card.card-security:hover .icon-wrapper {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Switchboard card - Green */
.offer-card.card-switchboard:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}
.offer-card.card-switchboard::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}
.offer-card.card-switchboard:hover .icon-wrapper {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Panel card - Red/Pink */
.offer-card.card-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}
.offer-card.card-panel::before {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}
.offer-card.card-panel:hover .icon-wrapper {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.offer-card:hover::before {
    transform: scaleX(1);
}

.offer-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.4s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.offer-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

.icon-wrapper.electrical {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa0 100%);
}

.icon-wrapper.maintenance {
    background: linear-gradient(135deg, #cfe2ff 0%, #9ec5fe 100%);
}

.icon-wrapper.safety {
    background: linear-gradient(135deg, #e7d4ff 0%, #d5b8ff 100%);
}

.icon-wrapper.security {
    background: linear-gradient(135deg, #fff3b8 0%, #ffe680 100%);
}

.icon-wrapper.switchboard {
    background: linear-gradient(135deg, #d1e7dd 0%, #a3cfbb 100%);
}

.icon-wrapper.panel {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
}

.offer-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    line-height: 1.3;
}

.offer-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Articles & Blog Section */
.articles-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 20px;
}

.articles-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.articles-section .section-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.articles-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.articles-section .section-subtitle {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 20px auto 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.article-date {
    font-size: 13px;
    color: #64748b;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6366f1;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-read-more:hover {
    color: #4f46e5;
    gap: 12px;
}

.article-read-more span {
    transition: transform 0.3s ease;
}

.article-read-more:hover span {
    transform: translateX(4px);
}

.articles-view-all {
    text-align: center;
    margin-top: 50px;
}

.btn-view-all-articles {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-view-all-articles:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-view-all-articles .arrow {
    transition: transform 0.3s ease;
}

.btn-view-all-articles:hover .arrow {
    transform: translateX(5px);
}

/* Google Maps & Reviews Section */
.google-section {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    padding: 60px 20px;
}

.google-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.google-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.google-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s;
}

.google-card.map-card::before {
    background: linear-gradient(90deg, #4285f4, #34a853);
}

.google-card.review-card::before {
    background: linear-gradient(90deg, #fbbc05, #ea4335);
}

.google-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.google-card:hover::before {
    height: 6px;
}

.google-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    transition: all 0.4s;
}

.map-card .google-icon {
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
}

.review-card .google-icon {
    background: linear-gradient(135deg, #fef7e0 0%, #feefc3 100%);
}

.google-card:hover .google-icon {
    transform: scale(1.1) rotate(-5deg);
}

.google-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.google-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.google-btn .btn-icon {
    font-size: 18px;
}

.google-btn .btn-arrow {
    transition: transform 0.3s;
}

.google-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.google-btn.map-btn {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
}

.google-btn.map-btn:hover {
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.5);
    transform: translateY(-2px);
}

.google-btn.review-btn {
    background: linear-gradient(135deg, #fbbc05 0%, #f9a825 100%);
    color: #1a202c;
    box-shadow: 0 4px 15px rgba(251, 188, 5, 0.4);
}

.google-btn.review-btn:hover {
    box-shadow: 0 8px 25px rgba(251, 188, 5, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .google-section {
        padding: 40px 15px;
    }
    
    .google-card {
        padding: 30px 20px;
    }
    
    .google-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    
    .google-card h3 {
        font-size: 1.2rem;
    }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 40px 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

.footer-section h3 {
    margin-bottom: 20px;
}

.footer-section p, .footer-section a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #fbbf24;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* Tablet view - 2 cards per row */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 900px;
    }
    
    .hero-text {
        text-align: center;
        padding-right: 0;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Carousel Responsive - Tablet */
    .carousel-container {
        gap: 10px;
    }
    
    .carousel-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* Articles Responsive - Tablet */
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .articles-section .section-title {
        font-size: 36px;
    }
}

/* Mobile view - 1 card per row */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 30px 20px 40px;
    }
    
    .hero::before,
    .hero::after {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 10px;
    }
    
    .hero-text {
        text-align: center;
        padding-right: 0;
    }
    
    .hero h1 {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .hero p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .btn-hero {
        justify-content: center;
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Service Cards Mobile */
    .hero-services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .hero-service-card {
        padding: 20px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .service-badge {
        font-size: 10px;
        padding: 3px 10px;
    }
    
    .service-card-title {
        font-size: 16px;
    }
    
    .service-card-desc {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .service-features li {
        font-size: 12px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .footer {
        padding: 50px 20px 20px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-bottom {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
        padding: 0 15px;
        margin-bottom: 35px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Carousel Responsive - Mobile */
    .carousel-container {
        gap: 8px;
    }
    
    .carousel-card {
        min-width: 260px;
        max-width: 260px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .service-card {
        border-radius: 12px;
    }
    
    .service-image,
    .service-image-wrapper {
        height: 180px;
    }
    
    .service-content {
        padding: 20px;
        gap: 10px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .price-offer {
        font-size: 1.3rem;
    }
    
    .service-buttons {
        flex-direction: row;
        gap: 8px;
    }
    
    .btn-details,
    .btn-whatsapp {
        padding: 9px 10px;
        font-size: 11px;
        gap: 3px;
    }
    
    .btn-view-all {
        padding: 14px 32px;
        font-size: 15px;
    }
    
    .featured-badge {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 10px;
    }
    
    /* What We Offer Section Mobile */
    .what-we-offer-section {
        padding: 60px 20px;
    }
    
    .what-we-offer-section .section-header {
        margin-bottom: 40px;
    }
    
    .what-we-offer-section .section-title {
        font-size: 32px;
    }
    
    .what-we-offer-section .section-subtitle {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .offer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .offer-card {
        padding: 28px 20px;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .offer-title {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .offer-description {
        font-size: 13px;
    }
    
    /* Articles Section Mobile */
    .articles-section {
        padding: 60px 20px;
    }
    
    .articles-section .section-title {
        font-size: 28px;
    }
    
    .articles-section .section-subtitle {
        font-size: 14px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .article-card-image {
        height: 180px;
    }
    
    .article-card-content {
        padding: 20px;
    }
    
    .article-card-title {
        font-size: 18px;
    }

    /* Modal Responsive */
    .modal.show {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
        border-radius: 10px;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .modal-image-section {
        padding: 15px;
    }
    
    .modal-image {
        max-height: 200px;
        width: 100%;
        object-fit: contain;
    }
    
    .no-image-placeholder {
        height: 180px;
        font-size: 36px;
    }
    
    .modal-content-section {
        padding: 15px 20px 20px 20px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .price-display .price-offer {
        font-size: 24px;
    }
    
    .gallery-thumbnails {
        gap: 8px;
        padding: 10px 0;
    }
    
    .gallery-thumb {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }
    
    /* Image Popup Navigation Mobile */
    .image-popup-nav {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .image-popup-prev {
        left: 15px;
    }
    
    .image-popup-next {
        right: 15px;
    }
    
    .image-popup-thumbnails {
        bottom: 60px;
        gap: 8px;
        padding: 8px;
    }
    
    .image-popup-thumb {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .image-popup-counter {
        bottom: 20px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .description-label {
        font-size: 15px;
    }
    
    .service-description {
        font-size: 14px;
        padding: 12px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .modal-whatsapp-btn,
    .modal-close-btn {
        max-width: none;
        flex: none;
    }
    
    .image-popup-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* =============================================
   ENHANCED MOBILE RESPONSIVE STYLES
   ============================================= */

/* Extra Small Devices (phones, less than 480px) */
@media (max-width: 480px) {
    /* Header for very small screens */
    .header-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    /* Hero section adjustments */
    .hero {
        padding: 20px 15px 30px;
    }
    
    .hero h1 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 13px;
    }
    
    .btn-hero {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Service cards for very small screens */
    .hero-service-card {
        padding: 16px;
    }
    
    .service-card-header {
        flex-wrap: wrap;
    }
    
    .service-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .service-badge {
        font-size: 9px;
        padding: 2px 8px;
    }
    
    .service-card-title {
        font-size: 14px;
    }
    
    .service-card-desc {
        font-size: 11px;
    }
    
    /* Section titles */
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    /* Category cards */
    .category-card {
        padding: 25px 20px;
    }
    
    .category-icon {
        font-size: 36px;
    }
    
    .category-card h3 {
        font-size: 18px;
    }
    
    .category-card p {
        font-size: 13px;
    }
    
    /* Service cards */
    .service-card h3 {
        font-size: 14px;
    }
    
    .service-content {
        padding: 12px;
    }
    
    .service-image,
    .service-image-wrapper {
        height: 150px;
    }
    
    .price-offer {
        font-size: 1.1rem;
    }
    
    .btn-details,
    .btn-whatsapp {
        padding: 8px 8px;
        font-size: 10px;
    }
    
    /* Articles section */
    .article-card-image {
        height: 160px;
    }
    
    .article-card-content {
        padding: 15px;
    }
    
    .article-card-title {
        font-size: 16px;
    }
    
    .article-card-excerpt {
        font-size: 13px;
    }
    
    /* Footer adjustments */
    .footer {
        padding: 40px 15px 15px;
    }
    
    .footer-content {
        padding: 0 10px;
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 16px;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 14px;
    }
    
    .footer-bottom {
        font-size: 12px;
    }
    
    /* Modal adjustments */
    .modal.show {
        padding: 5px;
    }
    
    .modal-content {
        max-height: 98vh;
        border-radius: 8px;
    }
    
    .modal-close {
        width: 30px;
        height: 30px;
        font-size: 14px;
        right: 10px;
        top: 10px;
    }
    
    .modal-image {
        max-height: 180px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    /* What We Offer section */
    .offer-card {
        padding: 24px 16px;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .offer-title {
        font-size: 15px;
    }
    
    .offer-description {
        font-size: 12px;
    }
    
    /* Carousel adjustments */
    .carousel-container {
        gap: 5px;
    }
    
    .carousel-card {
        min-width: 240px;
        max-width: 240px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    /* Google section */
    .google-section {
        padding: 30px 10px;
    }
    
    .google-card {
        padding: 25px 15px;
    }
    
    .google-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .google-card h3 {
        font-size: 1.1rem;
    }
    
    .google-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Portrait tablets and large phones */
@media (min-width: 481px) and (max-width: 768px) {
    /* 2-column layout for service cards on larger phones */
    .hero-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .hero-service-card {
        padding: 18px;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .hero-text {
        text-align: left;
    }
    
    .hero h1 {
        font-size: 26px;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .hero-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-body {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav.show {
    display: flex;
    flex-direction: column;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 5px;
}

.mobile-nav-links a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 10px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-whatsapp {
    margin-top: auto;
    padding-top: 20px;
}

.mobile-nav-whatsapp .nav-whatsapp-btn {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 16px;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets for touch devices */
    .btn-details,
    .btn-whatsapp {
        min-height: 44px;
        padding: 12px 14px;
    }
    
    .btn-hero {
        min-height: 48px;
    }
    
    .carousel-nav {
        min-width: 50px;
        min-height: 50px;
    }
    
    .service-card {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Remove hover effects that don't work well on touch */
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .btn-details:hover,
    .btn-whatsapp:hover {
        transform: none;
    }
    
    .btn-details:active,
    .btn-whatsapp:active {
        transform: scale(0.95);
    }
}

/* Safe area support for notched devices */
@supports (padding: max(0px)) {
    .header-container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    .mobile-nav {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Improved text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Print styles */
@media print {
    .header-container,
    .mobile-menu-toggle,
    .footer,
    .modal,
    .carousel-nav {
        display: none !important;
    }
    
    .hero {
        padding: 20px;
    }
    
    .service-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
