* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #3b82f6;
    --secondary-blue: #60a5fa;
    --light-blue: #dbeafe;
    --dark-blue: #1e40af;
    --navy: #1e293b;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --gray: #64748b;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: var(--navy);
    background: var(--white);
}

/* Header Styles - Same as reference */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0;
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.logo img {
    height: 80px;
    width: auto;
    transition: all 0.3s;
}

@media (max-width: 968px) {
    .logo img {
        height: 60px;
    }
}

@media (max-width: 640px) {
    .logo img {
        height: 55px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 45px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 15px;
    padding: 8px 0;
    display: block;
    position: relative;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon-btn {
    background: var(--light-blue);
    border: none;
    color: var(--primary-blue);
    font-size: 18px;
    cursor: pointer;
    padding: 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    width: 45px;
    height: 45px;
}

.search-icon-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

.btn-contact {
    background: var(--gradient);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-contact i {
    font-size: 16px;
}

.contact-text {
    display: inline;
}

@media (max-width: 640px) {
    .btn-contact {
        padding: 12px;
        width: 45px;
        height: 45px;
        justify-content: center;
        gap: 0;
    }

    .contact-text {
        display: none;
    }

    .btn-contact i {
        font-size: 18px;
        margin: 0;
    }
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: transparent;
    border: none;
}

.hamburger-menu span {
    width: 28px;
    height: 3px;
    background: var(--navy);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 100px 30px 50px;
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-content {
    max-width: 500px;
    margin: 0 auto;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-list li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-overlay.active .mobile-menu-list li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-menu-list li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-menu-list li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-menu-list li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu-overlay.active .mobile-menu-list li:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-menu-list a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-menu-list a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-menu-list a:hover::before {
    transform: scaleY(1);
}

.mobile-menu-list a:hover {
    background: rgba(59, 130, 246, 0.15);
    padding-left: 30px;
}

.mobile-menu-contact {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease 0.6s;
}

.mobile-menu-overlay.active .mobile-menu-contact {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-contact .btn-contact {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
    font-size: 18px;
}

.mobile-menu-contact .contact-text {
    display: inline !important;
}

@media (max-width: 968px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        display: none !important;
    }

    .nav-actions .btn-contact {
        display: none;
    }

    .nav-actions {
        gap: 15px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header Section */
.page-header {
    background: var(--gradient);
    padding: 120px 0 80px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: transparent;
    border-radius: 15px;
    padding: 0;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    perspective: 1000px;
}

/* Card inner container for flip effect */
.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    transition: transform 0.7s ease-in-out;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

/* Front and back face styling */
.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 60px 35px 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.service-card-front {
    background: transparent;
}

.service-card-back {
    background: var(--white);
    transform: rotateY(180deg);
    border: 3px solid var(--primary-blue);
    overflow-y: hidden;
    padding: 50px 35px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

/* Individual Card Colors - Applied directly to front */
.service-card:nth-child(1) .service-card-front {
    background: linear-gradient(135deg, #e9d5ff 0%, #f3e8ff 100%);
}

.service-card:nth-child(2) .service-card-front {
    background: linear-gradient(135deg, #a7f3d0 0%, #d1fae5 100%);
}

.service-card:nth-child(3) .service-card-front {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
}

.service-card:nth-child(4) .service-card-front {
    background: linear-gradient(135deg, #fecaca 0%, #fee2e2 100%);
}

.service-card:nth-child(5) .service-card-front {
    background: linear-gradient(135deg, #bfdbfe 0%, #dbeafe 100%);
}

.service-card:nth-child(6) .service-card-front {
    background: linear-gradient(135deg, #fde68a 0%, #fef3c7 100%);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    justify-content: center;
    margin: 0 auto 25px auto;
    font-size: 36px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
}

/* Individual Icon Colors */
.service-card:nth-child(1) .service-icon i {
    color: #9333ea;
}

.service-card:nth-child(2) .service-icon i {
    color: #059669;
}

.service-card:nth-child(3) .service-icon i {
    color: #d97706;
}

.service-card:nth-child(4) .service-icon i {
    color: #dc2626;
}

.service-card:nth-child(5) .service-icon i {
    color: #2563eb;
}

.service-card:nth-child(6) .service-icon i {
    color: #ca8a04;
}

.service-card h3 {
    color: var(--navy);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: #475569;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Back side content styling */
.service-card-back h4 {
    color: var(--primary-blue);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.service-card-back .elaborate-description {
    color: var(--navy);
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.service-card-back .back-cta {
    margin-top: auto;
    padding-top: 20px;
}

.service-card-back .service-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    background: var(--light-blue);
    padding: 12px 24px;
    border-radius: 50px;
}

.service-card-back .service-link:hover {
    background: var(--primary-blue);
    color: var(--white);
    gap: 12px;
}

/* Footer */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-about h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.logo-footer {
    display: flex;
    justify-content: left;
    margin-left: -15px;
    padding-bottom: 20px;
    transition: all 0.3s ease;
    width: 100%;
    height: 100px;
    cursor: pointer;
}


/* Responsive Design */
@media (max-width: 968px) {
    .page-header h1 {
        font-size: 38px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-inner {
        min-height: 400px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-header {
        padding: 100px 0 60px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Search Modal Styles */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.search-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.search-modal-content {
    background: var(--white);
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    padding: 40px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-modal-header h2 {
    font-size: 28px;
    color: var(--navy);
}

.close-search-modal {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.close-search-modal:hover {
    color: var(--primary-blue);
}

.modal-search-bar {
    position: relative;
    margin-bottom: 40px;
}

.modal-search-bar input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: 2px solid var(--light-blue);
    border-radius: 50px;
    font-size: 18px;
    transition: border-color 0.3s;
}

.modal-search-bar input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.modal-search-bar button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.category-item {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-item:hover {
    background: var(--light-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.category-item h4 {
    color: var(--navy);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-item p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
}

.category-item.hidden {
    display: none;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--gray);
    display: none;
}

.no-results.show {
    display: block;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}