/*
Theme Name: SyncTech 2026
Template: blocksy
Author: SyncTech
Version: 1.0.1770065173
*/

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== COLOR PALETTE ===== */
:root {
    --ai-primary: #00f0ff;
    --ai-secondary: #7b61ff;
    --ai-bg-body: #f5f7fa;
    --ai-bg-header: rgba(12, 12, 18, 0.92);
    --ai-bg-footer: rgba(8, 8, 12, 0.96);
    --ai-bg-hero: linear-gradient(135deg, #0a0a0f 0%, #151525 100%);
    --ai-text-primary: #1a202c;
    --ai-text-light: #ffffff;
    --ai-text-muted: #718096;
    --gradient-ai: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    --gradient-border: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 240, 255, 0.6) 25%, 
        rgba(123, 97, 255, 0.8) 50%, 
        rgba(0, 240, 255, 0.6) 75%, 
        transparent 100%);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 80px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--ai-text-primary);
    background: var(--ai-bg-body);
    min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2.5rem;
    color: var(--ai-text-primary);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-ai);
}

p {
    font-size: 1.125rem;
    color: var(--ai-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ===== HEADER ===== */
.ai-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--ai-bg-header);
    backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-border) 1;
    height: 80px;
    padding: 0 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ai-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.ai-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.ai-logo-image {
    height: 42px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.ai-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.ai-logo-primary {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.ai-logo-secondary {
    font-size: 0.8rem;
    color: #a0aec0;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Desktop Navigation */
.ai-nav {
    display: block;
}

.ai-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

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

.ai-nav-menu a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.ai-nav-menu a:hover {
    color: #ffffff;
}

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

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

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

/* Dropdown submenu */
.ai-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--ai-bg-card);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.2);
    z-index: 1000;
}

.ai-nav-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.ai-nav-menu .sub-menu li {
    list-style: none;
}

.ai-nav-menu .sub-menu a {
    padding: 10px 20px;
    white-space: nowrap;
    color: #cbd5e1;
    font-size: 0.9rem;
    background: transparent;
}

.ai-nav-menu .sub-menu a:hover {
    color: var(--ai-primary);
    background: rgba(0, 240, 255, 0.1);
}

.ai-nav-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: -10px;
}

/* Ensure all submenus are hidden initially and shown on hover */
.ai-nav-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.ai-nav-menu .sub-menu .sub-menu {
    left: calc(100% + 5px);
}

/* Header CTA */
.ai-nav-contact {
    background: var(--gradient-ai);
    color: #0a0a0f;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.ai-nav-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.4);
}

/* Mobile Toggle */
.ai-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--ai-primary);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.ai-hamburger,
.ai-hamburger::before,
.ai-hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--ai-primary);
    transition: all 0.3s ease;
}

.ai-hamburger::before { top: -6px; }
.ai-hamburger::after { bottom: -6px; }

/* Mobile Overlay */
.ai-mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

.ai-mobile-nav {
    padding: 2rem;
}

.ai-mobile-menu {
    list-style: none;
}

.ai-mobile-menu li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.25rem;
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

/* ===== HERO SECTION ===== */
.ai-hero {
    position: relative;
    min-height: 90vh;
    padding: 6rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ai-bg-hero);
}

.ai-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="none" stroke="%2300f0ff" stroke-width="0.1" opacity="0.1"/></svg>');
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

.ai-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.ai-hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.ai-hero-subtitle {
    font-size: 1.5rem;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.6;
}

.ai-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--ai-primary);
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.ai-cta-button:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--ai-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

/* ===== FOOTER ===== */
.ai-footer {
    background: var(--ai-bg-footer);
    backdrop-filter: blur(20px);
    border-top: 2px solid transparent;
    border-image: var(--gradient-border) 1;
    padding: 4rem 0 2rem;
}

.ai-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.ai-footer-brand {
    max-width: 400px;
}

.ai-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.ai-footer-description {
    color: #a0aec0;
    margin-bottom: 2rem;
}

.ai-social-links {
    display: flex;
    gap: 1rem;
}

.ai-social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ai-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ai-social-link:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
}

.ai-footer-links h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.ai-footer-links ul {
    list-style: none;
}

.ai-footer-links li {
    margin-bottom: 0.75rem;
}

.ai-footer-links a {
    color: #a0aec0;
    text-decoration: none;
}

.ai-footer-links a:hover {
    color: var(--ai-primary);
}

/* Footer Bottom (Two-line copyright) */
.ai-footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
}

.ai-footer-bottom p {
    margin: 0;
    padding: 5px 0;
}

.ai-footer-bottom a {
    color: #a0aec0;
    text-decoration: none;
    padding: 0 5px;
}

.ai-footer-bottom a:hover {
    color: var(--ai-primary);
    text-decoration: underline;
}

/* ===== SERVICES GRID ===== */
.ai-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.ai-service-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,240,255,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ai-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-ai);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.ai-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,240,255,0.2);
    border-color: rgba(0,240,255,0.3);
}

.ai-service-card:hover::before {
    transform: scaleX(1);
}

.ai-service-card h3 {
    color: #0f172a;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.ai-service-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ai-service-link {
    display: inline-flex;
    align-items: center;
    color: var(--ai-primary);
    font-weight: 500;
    text-decoration: none;
    gap: 5px;
    transition: gap 0.3s ease;
}

.ai-service-link:hover {
    color: var(--ai-secondary);
    gap: 8px;
}

/* ===== ABOUT PAGE ===== */
.about-passion-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.ai-team-card {
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,240,255,0.15);
    border-color: rgba(0,240,255,0.3);
}

.ai-team-card .team-image-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid transparent;
    background: linear-gradient(135deg, #00f0ff, #7b61ff);
    padding: 3px;
}

.ai-team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ===== CONTACT FORM ===== */
.ai-contact-form-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ai-contact-form-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a202c;
}

.ai-contact-form-wrapper input[type="text"],
.ai-contact-form-wrapper input[type="email"],
.ai-contact-form-wrapper input[type="tel"],
.ai-contact-form-wrapper input[type="number"],
.ai-contact-form-wrapper select,
.ai-contact-form-wrapper textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.ai-contact-form-wrapper input:focus,
.ai-contact-form-wrapper select:focus,
.ai-contact-form-wrapper textarea:focus {
    outline: none;
    border-color: #00f0ff;
    box-shadow: 0 0 0 3px rgba(0,240,255,0.1);
}

.ai-contact-form-wrapper .conditional-field {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #00f0ff;
}

.ai-contact-form-wrapper input[type="submit"] {
    background: linear-gradient(135deg, #00f0ff, #7b61ff);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.ai-contact-form-wrapper input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,240,255,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .ai-hero-title { font-size: 3.5rem; }
    .ai-services-grid { grid-template-columns: repeat(3, 1fr); }
    .ai-footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    .ai-header { height: 70px; padding: 0 1rem; }
    .ai-nav-menu, .ai-nav-contact { display: none; }
    .ai-mobile-toggle { display: flex; }
    .ai-hero { min-height: 80vh; padding: 4rem 0; }
    .ai-hero-title { font-size: 2.75rem; }
    .ai-hero-subtitle { font-size: 1.25rem; }
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .ai-services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .ai-footer-container { grid-template-columns: 1fr; gap: 2rem; }

    /* About page mobile */
    .about-passion-section { display: block; }
    .about-passion-section > div { width: 100%; padding: 0 15px; }
    .ai-about-image, .ai-about-image-placeholder { display: none; }

    .ai-team-card {
        max-width: 350px;
        margin: 0 auto;
    }
    .ai-team-card .team-image-wrapper {
        width: 120px !important;
        height: 120px !important;
    }
}

@media (max-width: 480px) {
    .ai-hero-title { font-size: 2.25rem; }
    .ai-cta-button { padding: 1rem 2rem; font-size: 1rem; }
    .ai-services-grid { grid-template-columns: 1fr; }
    .ai-service-card { padding: 25px 20px; }
    .ai-footer-container { padding: 0 1rem; }
}

/* ===== CONTRAST & VISIBILITY FIXES ===== */
.ai-footer address,
.ai-footer address p,
.ai-footer address strong,
.ai-footer .ai-footer-bottom p,
.ai-footer .ai-footer-bottom a {
    color: #cbd5e1 !important;
}

.ai-footer-bottom a:hover {
    color: #00f0ff !important;
}

/* ===== DROPDOWN MENU – SOLID BACKGROUND ===== */
.ai-nav-menu .sub-menu {
    background: #11111f !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.ai-nav-menu .sub-menu a {
    color: #e2e8f0 !important;
}

.ai-nav-menu .sub-menu a:hover {
    background: rgba(0, 240, 255, 0.2) !important;
    color: #ffffff !important;
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .ai-about-section > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 15px !important;
    }

    .ai-team-card {
        width: 100% !important;
        max-width: 350px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .ai-team-card .team-image-wrapper,
    .ai-team-card div[style*="width: 150px"] {
        width: 120px !important;
        height: 120px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .ai-about-image,
    .ai-about-image-placeholder {
        display: none !important;
    }

    .about-passion-section {
        display: block !important;
    }
    .about-passion-section > div {
        width: 100% !important;
        padding: 0 15px !important;
    }
}

/* ===== MOBILE MENU ACTIVATION ===== */
.ai-header.active .ai-mobile-nav-overlay {
    display: block !important;
}

.ai-mobile-nav-overlay {
    z-index: 9999 !important;
}

.ai-header.active .ai-hamburger {
    background: transparent !important;
}
.ai-header.active .ai-hamburger::before {
    transform: rotate(45deg) translate(5px, 5px) !important;
}
.ai-header.active .ai-hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px) !important;
}

/* ===== MOBILE MENU BACKGROUND – SOLID ===== */
.ai-mobile-nav-overlay,
body .ai-mobile-nav-overlay,
html body .ai-mobile-nav-overlay {
    background: #0a0a0f !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

.ai-mobile-menu li a {
    color: #e2e8f0 !important;
    font-size: 1.25rem;
    font-weight: 500;
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    transition: color 0.3s ease;
}

.ai-mobile-menu li a:hover {
    color: #00f0ff !important;
}

.ai-mobile-cta {
    background: linear-gradient(135deg, #00f0ff, #7b61ff) !important;
    color: #0a0a0f !important;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    display: block;
    margin-top: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ai-mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.4);
}

/* Force menu text to bright white */
html body .ai-mobile-nav .ai-mobile-menu li a,
body .ai-mobile-nav .ai-mobile-menu li a,
.ai-mobile-nav .ai-mobile-menu li a {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

/* Ensure no parent blur/opacity */
.ai-header,
.ai-header * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* ===== MOBILE ACCORDION STYLES ===== */
@media (max-width: 768px) {
    .ai-mobile-menu .sub-menu {
        display: none;
        padding-left: 20px;
        background: rgba(0,0,0,0.2);
        margin: 5px 0;
    }

    .ai-mobile-menu .sub-menu .sub-menu {
        padding-left: 20px;
    }

    .ai-mobile-menu .menu-item-has-children > a::after {
        content: ' ▼';
        font-size: 0.8em;
        margin-left: 5px;
        color: var(--ai-primary);
    }

    .ai-mobile-menu .menu-item-has-children.open > a::after {
        content: ' ▲';
    }
}

/* ===== DESKTOP MULTI-LEVEL DROPDOWN FIX ===== */
.ai-nav-menu .sub-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.ai-nav-menu .sub-menu li {
    position: relative;
}

.ai-nav-menu .sub-menu .menu-item-has-children > .sub-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: 0;
    background: var(--ai-bg-card);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.2);
    z-index: 1001;
}

.ai-nav-menu .sub-menu .menu-item-has-children:hover > .sub-menu {
    display: block !important;
}

.ai-nav-menu,
.ai-nav-menu * {
    overflow: visible !important;
}

/* ===== DROPDOWN INDICATOR – ONLY FOR SUBMENU ITEMS WITH CHILDREN ===== */
@media (min-width: 769px) {
    .ai-nav-menu .sub-menu .menu-item-has-children > a {
        position: relative;
        padding-right: 30px !important;
    }
    .ai-nav-menu .sub-menu .menu-item-has-children > a::after {
        content: '►';
        font-size: 0.7em;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: currentColor;
        opacity: 0.8;
        transition: transform 0.2s ease;
    }
    .ai-nav-menu .sub-menu .menu-item-has-children:hover > a::after {
        transform: translateY(-50%) rotate(90deg);
    }
}

/* ===== CONTACT FORM DROPDOWN TEXT CUTOFF FIX ===== */
.ai-contact-form-wrapper select {
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    background-position: right 16px center !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%234a5568" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px !important;
}

/* ===== REDUCED HERO HEIGHT FOR ALL PAGES ===== */
.ai-hero {
    min-height: 35vh !important;
    padding: 3rem 0 !important;
}

.ai-hero-title {
    font-size: 3rem !important;
}

.ai-hero-subtitle {
    font-size: 1.25rem !important;
}

@media (max-width: 768px) {
    .ai-hero {
        min-height: 40vh !important;
        padding: 2rem 0 !important;
    }
    .ai-hero-title {
        font-size: 2rem !important;
    }
    .ai-hero-subtitle {
        font-size: 1.1rem !important;
    }
}

/* ===== TEAM PROFILE PAGE ===== */
.team-hero .ai-hero-content {
    text-align: left;
}

.team-hero .ai-hero-title {
    font-size: 3.5rem;
}

@media (max-width: 768px) {
    .team-hero > div > div {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .team-hero .ai-hero-title {
        font-size: 2.5rem;
    }
    .team-hero div[style*="display: flex"] {
        justify-content: center;
    }
    .ai-team-profile .grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
}

/* ===== TEAM CARD LINKS ===== */
.ai-team-link {
    display: inline-flex;
    align-items: center;
    color: var(--ai-primary);
    font-weight: 500;
    text-decoration: none;
    gap: 5px;
    margin-top: 15px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.ai-team-link:hover {
    color: var(--ai-secondary);
    gap: 8px;
}

/* ===== EXPERTISE GRID ===== */
.expertise-grid {
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== CONTACT CTA STACK FIX ===== */
.page-template-team .contact-cta {
    text-align: center !important;
}
.page-template-team .contact-cta h2 {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}
.page-template-team .contact-cta a {
    display: inline-block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

/* ===== CASE STUDIES REEL ===== */
.case-studies-reel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 20px !important;
    padding: 10px 0 20px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
}
.case-study-card {
    flex: 0 0 350px !important; /* adjust width as needed */
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    border: 1px solid #e2e8f0 !important;
    scroll-snap-align: start !important;
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,240,255,0.1);
    border-color: rgba(0,240,255,0.3);
}

.case-study-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.case-study-card h3 {
    color: #0f172a;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.case-study-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    color: var(--ai-primary);
    font-weight: 500;
    text-decoration: none;
    gap: 5px;
    transition: gap 0.3s ease;
}

.case-study-link:hover {
    color: var(--ai-secondary);
    gap: 8px;
}

/* Hide scrollbar for cleaner look (optional) */
.case-studies-reel::-webkit-scrollbar {
    height: 6px;
}
.case-studies-reel::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
.case-studies-reel::-webkit-scrollbar-thumb {
    background: var(--ai-primary);
    border-radius: 10px;
}

/* ===== CASE STUDY PAGE ===== */
.case-study-content h2 {
    margin-top: 40px;
}
.case-study-content table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.case-study-content th {
    background: #0f172a;
    color: white;
    padding: 15px;
    text-align: left;
}
.case-study-content td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}
.case-study-content tr:last-child td {
    border-bottom: none;
}
@media (max-width: 768px) {
    .case-study-content .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
}

/* ===== CASE STUDY CTA STACK ===== */
.case-study-cta h2 {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}
.case-study-cta a {
    display: inline-block !important;
}

/* ===== CASE STUDIES REEL ===== */
.case-study-card {
    flex: 0 0 350px;
}

@media (max-width: 768px) {
    .case-studies-reel {
        flex-wrap: wrap !important;
        overflow-x: hidden !important;
        justify-content: center !important;
    }
    .case-study-card {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }
}

/* ===== PROCESS GRID – STACK ON MOBILE ===== */
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== ABOUT PAGE MOBILE ===== */
@media (max-width: 768px) {
    .ai-about-section div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    .ai-about-section div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }