/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --secondary-color: #4285f4;
    --text-dark: #202124;
    --text-light: #5f6368;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dadce0;
    --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-md: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
    --shadow-lg: 0 2px 4px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-weight: 400;
}

/* Ensure consistent body text styling */
p {
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.8;
}

/* Service detail card lists - ensure full opacity and dark color */
.service-detail-card ul,
div[class*="service-detail"] ul {
    color: #202124 !important;
    opacity: 1 !important;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.service-detail-card ul li,
div[class*="service-detail"] ul li {
    margin-bottom: 0.5rem;
    color: #202124 !important;
    opacity: 1 !important;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* Override paragraph color in footer */
.footer p,
.footer-bottom p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--primary-dark);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar[data-scrolled="true"] {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar[data-scrolled="false"] {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu > li > a:hover {
    color: var(--primary-color);
}

.nav-menu > li > a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0 0;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Keyboard navigation support - show menu on focus or hover */
.dropdown:focus-within .dropdown-menu,
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:focus-within .dropdown-arrow,
.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Make dropdown trigger focusable with visible focus indicator */
.dropdown > a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 2rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
    background-image: url('Images/hero-background.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (min-width: 1200px) {
    .hero {
        background-position: center 40%;
        background-size: cover;
    }
}

@media (min-width: 1600px) {
    .hero {
        background-position: center 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 0;
}

.hero-background-image {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    margin: 0;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
    margin: 0;
    padding: 0;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin: 0 0 2rem 0;
    opacity: 1;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Section Styles */
section {
    padding: 4rem 0;
    position: relative;
}


section:not(:first-child) {
    border-top: 1px solid var(--border-color);
    margin-top: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
    text-align: center;
}

/* Ensure consistent styling for all section titles */
.section-header .section-title,
.page-hero .section-title,
.privacy-content .section-title,
.terms-content .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 0;
}

/* Move section-title down slightly on service page heroes */
.page-hero .section-title {
    margin-top: 2rem !important;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 2rem auto 0;
}

/* About Section */
.about {
    background: var(--bg-light);
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-intro {
    margin-bottom: 0.5rem;
}

.about-tagline {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 0 2rem 0;
    line-height: 1.4;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.about-text p {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.8;
    font-size: 1.125rem;
    font-weight: 400;
}

/* LinkedIn Card Styling */
.linkedin-card-container {
    margin-top: 2rem;
    text-align: center;
}

.linkedin-card {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #0077b5;
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.linkedin-card:hover {
    background: #f3f8ff;
    border-color: #005885;
    box-shadow: 0 4px 8px rgba(0, 119, 181, 0.2);
    transform: translateY(-2px);
}

.linkedin-card-image {
    flex-shrink: 0;
}

.linkedin-profile-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0077b5;
    display: block;
}

.linkedin-card:hover .linkedin-profile-img {
    border-color: #005885;
}

.linkedin-card-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.linkedin-card-icon {
    color: #0077b5;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.linkedin-card:hover .linkedin-card-icon {
    color: #005885;
}

.linkedin-card-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
}

.linkedin-card-text strong {
    font-weight: 600;
    color: #0077b5;
}

.linkedin-card:hover .linkedin-card-text strong {
    color: #005885;
}

.about-highlight {
    background: var(--bg-light);
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    margin-top: 1rem;
}

.about-highlight p {
    color: var(--text-dark);
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
}

.about-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.about-image:empty {
    display: none;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .about-tagline {
        font-size: 1.25rem;
        padding-left: 1rem;
    }
    
    .about {
        padding: 4rem 0;
    }
    
    .hero {
        align-items: flex-start;
        padding-top: 6rem;
        padding-bottom: 2rem;
        min-height: auto;
        max-height: none;
    }
    
    .hero-content {
        padding-top: 2rem;
    }
    
    /* Service cards - more compact on mobile */
    .service-card {
        padding: 2rem 1.5rem;
        border-radius: 1rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 1rem;
    }
    
    .service-card-general .service-icon::before,
    .service-card-data .service-icon::before,
    .service-card-technology .service-icon::before,
    .service-card-marketing .service-icon::before {
        font-size: 2.25rem;
        line-height: 70px;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .services-grid {
        gap: 1.5rem;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: 4px solid var(--primary-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 0;
    pointer-events: none;
}

.service-card-general::after {
    background: rgba(255, 255, 255, 0.6);
}

/* Service-specific top border colors */
.service-card-general {
    border-top-color: #1a73e8; /* Blue */
}

.service-card-data {
    border-top-color: #7c3aed; /* Purple/Indigo */
}

.service-card-technology {
    border-top-color: #0891b2; /* Teal/Cyan */
}

.service-card-marketing {
    border-top-color: #ea580c; /* Orange */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.service-card-general::before {
    opacity: 0.4;
}

.service-card-general::before {
    background-image: url('Images/hero-background.jpg');
}

.service-card-data::before {
    background-image: url('Images/data-analytics.jpg');
}

.service-card-technology::before {
    background-image: url('Images/technology-robot.jpg');
}

.service-card-marketing::before {
    background-image: url('Images/marketing-target.jpg');
}

.service-card:hover::before {
    opacity: 0.25;
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(248, 249, 250, 0.8) 100%);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Service-specific icon backgrounds */
.service-card-general .service-icon {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.service-card-data .service-icon {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.service-card-technology .service-icon {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
}

.service-card-marketing .service-icon {
    background: linear-gradient(135deg, #fff1e6 0%, #ffe4cc 100%);
}

/* Fallback icons using CSS when images are missing */
.service-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 3rem;
    line-height: 100px;
    text-align: center;
}

.service-card-general .service-icon::before {
    content: '📋';
    font-size: 3rem;
}

.service-card-data .service-icon::before {
    content: '📊';
    font-size: 3rem;
}

.service-card-technology .service-icon::before {
    content: '💻';
    font-size: 3rem;
}

.service-card-marketing .service-icon::before {
    content: '📢';
    font-size: 3rem;
}

/* Image will naturally cover fallback when it loads */
.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Fallback shows when image fails to load (image is hidden by onerror handler) */

.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.15), 0 4px 8px -2px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Service-specific hover border colors */
.service-card-general:hover {
    border-top-color: #1557b0;
    box-shadow: 0 12px 24px -4px rgba(26, 115, 232, 0.2), 0 4px 8px -2px rgba(0, 0, 0, 0.1);
}

.service-card-data:hover {
    border-top-color: #6d28d9;
    box-shadow: 0 12px 24px -4px rgba(124, 58, 237, 0.2), 0 4px 8px -2px rgba(0, 0, 0, 0.1);
}

.service-card-technology:hover {
    border-top-color: #0e7490;
    box-shadow: 0 12px 24px -4px rgba(8, 145, 178, 0.2), 0 4px 8px -2px rgba(0, 0, 0, 0.1);
}

.service-card-marketing:hover {
    border-top-color: #c2410c;
    box-shadow: 0 12px 24px -4px rgba(234, 88, 12, 0.2), 0 4px 8px -2px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    opacity: 0.3;
}

.service-card-general:hover::before {
    opacity: 0.25;
}

/* Icon hover animation */
.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.service-card p {
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    opacity: 1;
    font-weight: 400;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.info-item p {
    color: var(--text-dark);
    line-height: 1.8;
    font-weight: 400;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.hubspot-form-container {
    width: 100%;
}

.hubspot-form-container iframe {
    width: 100% !important;
}

/* HubSpot form styling */
.hs-form fieldset {
    max-width: 100% !important;
}

.hs-form .hs-form-field {
    margin-bottom: 1.5rem;
}

.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.hs-form input[type="text"]:focus,
.hs-form input[type="email"]:focus,
.hs-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.hs-form textarea {
    resize: vertical;
    min-height: 120px;
}

.hs-submit {
    margin-top: 1rem;
}

.hs-button {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hs-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-section img {
    background: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    max-width: 250px;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 0.5rem 0 0 1rem;
        padding: 0;
        background: var(--bg-light);
        border-radius: 0.25rem;
    }

    .dropdown-menu a {
        padding: 0.5rem 1rem;
    }

    .dropdown-menu a:hover {
        padding-left: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Badge Styles */
.service-badge {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.service-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.service-badge:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Service Detail Card Styles */
.service-detail-card {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.service-detail-card:hover::before {
    opacity: 0.25;
}

.service-detail-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
    pointer-events: none;
}

.service-detail-general::before {
    background-image: url('Images/hero-background.jpg');
}

.service-detail-data::before {
    background-image: url('Images/data-analytics.jpg');
}

.service-detail-technology::before {
    background-image: url('Images/technology-robot.jpg');
}

.service-detail-marketing::before {
    background-image: url('Images/marketing-target.jpg');
}

.service-detail-card h2,
.service-detail-card p,
.service-detail-card img,
.service-detail-card ul,
.service-detail-card ul li {
    position: relative;
    z-index: 2;
}

.service-detail-card p {
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 400;
}

.service-detail-card h2 {
    font-size: 1.5rem !important;
}

/* Match contact section title on service pages */
.contact h2 {
    font-size: 1.5rem !important;
}

/* Increase Contact Us section title on homepage */
.contact .section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
}

@media (max-width: 768px) {
    .service-detail-card {
        padding: 2rem;
    }
    
    .service-badge {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 0.5rem;
        font-weight: 500;
    }
    
    /* Reduce gap in service badges grid on mobile */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }
    
    .service-badge {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Even tighter grid on very small screens */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        gap: 0.4rem !important;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
    }
}
