* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --accent-primary: #0066cc;
    --accent-secondary: #5856d6;
    --accent-green: #34c759;
    --accent-gold: #ff9500;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --border-color: #d2d2d7;
    --shadow: rgba(0, 0, 0, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 1.5s ease-in-out infinite;
}



.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
    z-index: 0;
}

.hero>* {
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 30px;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s ease 0.2s backwards;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: fadeInDown 0.8s ease 0.4s backwards;
}

/* ===== Search Section ===== */
.search-section {
    padding: 2rem 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.8s ease;
    box-shadow: 0 2px 10px var(--shadow);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-box { position: relative; }

.search-input {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 4rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.search-input::placeholder { color: #999; }

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(0,102,204,0.15);
}

.search-results-count {
    text-align: center;
    margin-top: 1rem;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-results-count.visible { opacity: 1; }

/* ===== Services Container ===== */
.services-container {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ===== Category Card ===== */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: stretch; /* fill width to remove white gaps */
    cursor: pointer;
}

.category-card.hidden { display: none; }

.category-card:hover {
    box-shadow: 0 12px 45px rgba(0,102,204,0.2);
    transform: translateY(-3px);
}

/* ===== Images ===== */
.category-icon {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* remove inline gaps */
    transition: transform 0.3s ease;
}

.category-icon img:hover { transform: scale(1.05); }

/* ===== Category Info ===== */
.category-info {
    padding: 1rem 1rem 1.5rem;
    width: 100%;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.category-count {
    color: var(--accent-primary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ===== Services List ===== */
.services-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.services-list.expanded {
    max-height: 1200px; /* safely fit one-column items */
}

.services-list-inner {
    padding: 0 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr; /* one per row */
    gap: 0.75rem;
}

/* ===== Service Item ===== */
.service-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-item:hover {
    background: rgba(0,102,204,0.05);
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.service-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-bullet {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.service-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.service-arrow {
    font-size: 0.95rem;
    color: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-item:hover .service-arrow {
    opacity: 1;
    transform: translateX(3px);
}
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.no-results.visible {
    display: block;
}

.no-results-icon {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-secondary);
}
/* ===== Toggle Icon Styling ===== */
.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    z-index: 2;
}

.toggle-icon i {
    color: var(--accent-primary);
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Rotate the chevron when expanded */
.toggle-icon i.rotate {
    transform: rotate(180deg);
}

/* Hover and focus effects */
.toggle-icon:hover {
    background: rgba(0, 102, 204, 0.15);
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.2);
}

.toggle-icon:hover i {
    color: var(--accent-primary-dark, #004a99);
}

/* Slight press feedback */
.toggle-icon:active {
    transform: translateY(-50%) scale(0.95);
}

#servicesGrid {
    gap: 20px;
    align-items: start; /* <-- this is the key */
}

.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.service-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 102, 204, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.modal-title-section {
    flex: 1;
}

.modal-category {
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

.close-modal {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.close-modal:hover {
    background: rgba(0, 102, 204, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-body h3 {
    color: var(--accent-primary);
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.modal-body ul {
    margin: 1rem 0 1.5rem 0;
    list-style: none;
}

.modal-body li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    border-left: 2px solid rgba(0, 102, 204, 0.2);
    margin-bottom: 0.5rem;
}

.modal-body li::before {
    content: '✓';
    position: absolute;
    left: 0.5rem;
    color: var(--accent-primary);
    font-weight: bold;
}

.modal-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-box {
    background: rgba(0, 102, 204, 0.05);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.feature-box h4 {
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-box p {
    color: var(--text-secondary);
    margin: 0;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 102, 204, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-cta-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.modal-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.modal-contact {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.modal-contact a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-list-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }

    .services-list-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ===== Navigation Base ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.98);
}

/* ===== Container ===== */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Logo ===== */
.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

/* ===== Navigation Menu ===== */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-3);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    left: 0;
}

.nav-links a:hover {
    transform: translateX(8px);
    color: #ffffff;
}

/* ===== Menu Toggle (Hamburger) ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    width: 30px;
    height: 25px;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        overflow-y: auto;
        z-index: 999;
        box-shadow: -5px 0 20px var(--shadow);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 1.2rem;
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        font-size: 1.3rem;
        padding: 1rem;
    }
}

/* Social Share Buttons */
.social-share {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 999;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.share-btn:hover {
    transform: translateX(-5px) scale(1.1);
    box-shadow: 0 5px 20px var(--shadow);
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: white;
}

.share-btn.linkedin:hover {
    background: #0077B5;
    border-color: #0077B5;
    color: white;
}

.share-btn.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: white;
}

.share-btn.copy:hover {
    background: var(--gradient-3);
    color: white;
}

@media screen and (max-width: 768px) {
    .social-share {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}


.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-brand .logo {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}