/* ============================================
   Ayodhya IT Solutions - Main Stylesheet
   Modern, Responsive, SEO-Optimized Design
   ============================================ */

/* ============ CSS Variables ============ */
:root {
    /* Professional Agency Color Palette */
    --primary-color: #0A7AFF;
    --primary-dark: #0056CC;
    --primary-light: #3D9AFF;
    --primary-gradient: linear-gradient(135deg, #0A7AFF 0%, #0056CC 100%);
    --primary-gradient-hover: linear-gradient(135deg, #0056CC 0%, #0A7AFF 100%);
    --secondary-color: #0E1E2F;
    --secondary-dark: #0A1625;
    --secondary-light: #1A2A3F;
    --accent-color: #FFB300;
    --accent-dark: #E6A000;
    --accent-light: #FFC633;
    --text-dark: #1A1A1A;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-gray: #F3F4F6;
    --bg-gradient: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 10px 30px -5px rgba(79, 70, 229, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-hindi: 'Noto Sans Devanagari', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Page-specific color schemes */
    --home-accent: #667eea;
    --about-accent: #10B981;
    --services-accent: #F59E0B;
    --portfolio-accent: #EC4899;
    --contact-accent: #06B6D4;
}

/* ============ Reset & Base Styles ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Hindi font support */
html[lang="hi"],
html[lang="hi"] body,
body[lang="hi"] {
    font-family: var(--font-hindi) !important;
}

html[lang="hi"] *,
html[lang="hi"] body *,
body[lang="hi"] * {
    font-family: var(--font-hindi) !important;
}

/* Better line height and spacing for Hindi text */
html[lang="hi"] p,
html[lang="hi"] span,
html[lang="hi"] div,
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] h5,
html[lang="hi"] h6,
html[lang="hi"] a,
html[lang="hi"] li,
html[lang="hi"] button,
html[lang="hi"] label,
html[lang="hi"] .nav-link,
html[lang="hi"] .btn,
html[lang="hi"] .section-title,
html[lang="hi"] .section-description,
html[lang="hi"] .hero-title,
html[lang="hi"] .hero-subtitle {
    font-family: var(--font-hindi) !important;
    letter-spacing: 0.02em;
    line-height: 1.7;
    word-spacing: 0.1em;
}

/* Improved readability for Hindi */
html[lang="hi"] {
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hindi headings - better weight */
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] .section-title,
html[lang="hi"] .hero-title {
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

/* Hindi body text */
html[lang="hi"] p,
html[lang="hi"] .about-text,
html[lang="hi"] .service-description,
html[lang="hi"] .section-description {
    line-height: 1.8 !important;
    letter-spacing: 0.015em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============ Container ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ Typography ============ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

/* ============ Top Bar ============ */
.top-bar {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.625rem 0;
    font-size: 0.875rem;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    font-size: 0.875rem;
}

.top-bar-link:hover {
    color: white;
    transform: translateX(3px);
}

.top-bar-link svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.top-bar-hours {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.top-bar-hours svg {
    color: var(--primary-color);
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.top-social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

/* ============ Navigation ============ */
.navbar {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    height: 100%;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    vertical-align: middle;
}

.logo-text {
    font-size: 1.375rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    display: none;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-gray);
    letter-spacing: 0.5px;
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-cta {
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============ Buttons ============ */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px -5px rgba(255, 179, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    border: 2px solid var(--accent-color);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px -5px rgba(255, 179, 0, 0.6), 0 8px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-dark);
}

.btn-secondary {
    background: var(--primary-color);
    color: #FFFFFF;
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(10, 122, 255, 0.4);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 122, 255, 0.5);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ============ Hero Section ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    padding: 80px 20px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.98) 0%, rgba(67, 56, 202, 0.98) 50%, rgba(99, 102, 241, 0.98) 100%);
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
    line-height: 1.1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: #FFFFFF;
    margin-bottom: 2.5rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E7FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.stat-label {
    font-size: 0.9375rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #FFFFFF;
    font-size: 0.9375rem;
    font-weight: 600;
    opacity: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 3px;
    height: 35px;
    background: #FFFFFF;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5px;
    width: 12px;
    height: 12px;
    border-right: 3px solid #FFFFFF;
    border-bottom: 3px solid #FFFFFF;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============ Sections ============ */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

/* Page-specific section tag colors */
body:not([data-page]) .section-tag,
body[data-page="home"] .section-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body[data-page="about"] .section-tag {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

body[data-page="services"] .section-tag {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

body[data-page="portfolio"] .section-tag {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

body[data-page="contact"] .section-tag {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

body[data-page="pricing"] .section-tag {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.section-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.section-tag:hover::before {
    left: 100%;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-gray);
}

.bg-light {
    background-color: var(--bg-light);
}

/* Page-specific background variations */
body[data-page="about"] .bg-light {
    background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
}

body[data-page="services"] .bg-light {
    background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 100%);
}

body[data-page="portfolio"] .bg-light {
    background: linear-gradient(180deg, #FDF2F8 0%, #FFFFFF 100%);
}

body[data-page="contact"] .bg-light {
    background: linear-gradient(180deg, #ECFEFF 0%, #FFFFFF 100%);
}

body[data-page="pricing"] .bg-light {
    background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 100%);
}

/* ============ Services Grid ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Page-specific service card top border */
body[data-page="services"] .service-card::before {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

body[data-page="portfolio"] .service-card::before {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

body[data-page="contact"] .service-card::before {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
    background: linear-gradient(white, white) padding-box,
                var(--primary-gradient) border-box;
    border: 1px solid transparent;
}

/* Page-specific service card hover borders */
body[data-page="services"] .service-card:hover {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #F59E0B 0%, #D97706 100%) border-box;
    border: 2px solid transparent;
}

body[data-page="portfolio"] .service-card:hover {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #EC4899 0%, #DB2777 100%) border-box;
    border: 2px solid transparent;
}

body[data-page="contact"] .service-card:hover {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #06B6D4 0%, #0891B2 100%) border-box;
    border: 2px solid transparent;
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--primary-gradient);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-colored);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Page-specific service icon colors */
body[data-page="services"] .service-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.3);
}

body[data-page="portfolio"] .service-icon {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    box-shadow: 0 10px 30px -5px rgba(236, 72, 153, 0.3);
}

body[data-page="contact"] .service-icon {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    box-shadow: 0 10px 30px -5px rgba(6, 182, 212, 0.3);
}

.service-icon::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;
}

.service-card:hover .service-icon {
    transform: rotate(5deg) scale(1.1);
}

.service-card:hover .service-icon::before {
    width: 200%;
    height: 200%;
}

.service-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-description {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 1rem;
}

/* ============ About Preview ============ */
.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    margin: 2rem 0;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Page-specific feature check colors */
body[data-page="about"] .feature-check {
    background: #10B981;
}

body[data-page="services"] .feature-check {
    background: #F59E0B;
}

body[data-page="portfolio"] .feature-check {
    background: #EC4899;
}

body[data-page="contact"] .feature-check {
    background: #06B6D4;
}

.about-preview-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.responsive-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    aspect-ratio: 3/2;
    display: block;
}

/* ============ Testimonials ============ */
.testimonials {
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 0% 0%, rgba(102, 126, 234, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(118, 75, 162, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.testimonials-carousel {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    z-index: 1;
    width: 100%;
}

.testimonials-carousel-wrapper {
    position: relative;
    margin-top: 3rem;
    padding: 0 60px;
}

@media (max-width: 768px) {
    .testimonials-carousel-wrapper {
        padding: 0 50px;
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    will-change: transform;
    width: 100%;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FF 100%);
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    position: relative;
    border: 2px solid rgba(79, 70, 229, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 0;
    max-width: none;
    width: calc(33.333% - 1.33rem);
}

.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.testimonial-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.testimonial-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.testimonial-prev {
    left: 0;
}

.testimonial-next {
    right: 0;
}

@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
        width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .testimonial-prev {
        left: 5px;
    }
    
    .testimonial-next {
        right: 5px;
    }
    
    .testimonial-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 50px;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
        width: 100%;
    }
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(79, 70, 229, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(79, 70, 229, 0.15);
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FF 100%);
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover::after {
    opacity: 1;
}

.testimonial-card:nth-child(1) {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FF 100%);
    border-top: 5px solid #667eea;
}

.testimonial-card:nth-child(1)::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.testimonial-card:nth-child(2) {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F5 100%);
    border-top: 5px solid #F59E0B;
}

.testimonial-card:nth-child(2)::before {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.testimonial-card:nth-child(3) {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%);
    border-top: 5px solid #10B981;
}

.testimonial-card:nth-child(3)::before {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.testimonial-card:nth-child(4) {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F8 100%);
    border-top: 5px solid #EC4899;
}

.testimonial-card:nth-child(4)::before {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

.testimonial-quote-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 
        0 4px 12px rgba(79, 70, 229, 0.2),
        0 0 0 4px rgba(255, 255, 255, 1);
    transition: all 0.4s ease;
    z-index: 2;
}

.testimonial-card:hover .testimonial-quote-icon {
    transform: translateX(-50%) scale(1.1) rotate(8deg);
    box-shadow: 
        0 8px 20px rgba(79, 70, 229, 0.25),
        0 0 0 4px rgba(255, 255, 255, 1);
}

.testimonial-card:nth-child(1) .testimonial-quote-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.testimonial-card:nth-child(2) .testimonial-quote-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.testimonial-card:nth-child(3) .testimonial-quote-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.testimonial-card:nth-child(4) .testimonial-quote-icon {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

/* Page-specific testimonial colors */
body[data-page="about"] .testimonial-card::before {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

body[data-page="services"] .testimonial-card::before {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

body[data-page="portfolio"] .testimonial-card::before {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

body[data-page="contact"] .testimonial-card::before {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    letter-spacing: 0.2rem;
    position: relative;
    z-index: 1;
}

.testimonial-rating::before {
    content: '★★★★★';
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    padding: 0;
    font-weight: 400;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    display: block;
    width: 100%;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.testimonial-author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.2), transparent);
    border-radius: 2px;
}

.author-avatar {
    width: 72px;
    height: 72px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 
        0 8px 20px rgba(79, 70, 229, 0.2),
        0 0 0 4px rgba(255, 255, 255, 1),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.author-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

.testimonial-card:hover .author-avatar::before {
    transform: scale(1);
}

.testimonial-card:nth-child(1) .author-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.testimonial-card:nth-child(2) .author-avatar {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.testimonial-card:nth-child(3) .author-avatar {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.testimonial-card:nth-child(4) .author-avatar {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.2);
}

/* Page-specific avatar colors */
body[data-page="about"] .author-avatar {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

body[data-page="services"] .author-avatar {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

body[data-page="portfolio"] .author-avatar {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

body[data-page="contact"] .author-avatar {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

.author-info {
    text-align: center;
    flex: 1;
}

.author-name {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.testimonial-card:hover .author-name {
    color: var(--text-dark);
}

.author-role {
    color: var(--text-gray);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Remove old slider controls - not needed for grid layout */

/* ============ Partners Carousel ============ */
.partners-carousel {
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    gap: 3rem;
    animation: scroll-partners 30s linear infinite;
}

.partner-logo {
    min-width: 200px;
    height: 100px;
    background: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-gray);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.partner-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    transition: left 0.5s ease;
}

.partner-logo:hover::before {
    left: 100%;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.partner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    display: block;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============ Pricing Section ============ */
.pricing {
    background: var(--bg-gradient);
}

/* Page-specific pricing section */
body[data-page="home"] .pricing {
    background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Page-specific pricing card top border */
body[data-page="home"] .pricing-card::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.pricing-popular {
    border: 2px solid #667eea;
    transform: scale(1.05);
    box-shadow: 0 10px 30px -5px rgba(102, 126, 234, 0.3);
}

body[data-page="home"] .pricing-popular {
    border: 2px solid #667eea;
    box-shadow: 0 10px 30px -5px rgba(102, 126, 234, 0.3);
}

.pricing-popular::before {
    transform: scaleX(1);
}

.pricing-popular:hover {
    transform: translateY(-10px) scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: 1.5rem;
    right: -2rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: var(--shadow-md);
}

.pricing-header {
    margin-bottom: 2rem;
    text-align: center;
}

.pricing-plan {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-description {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin: 0;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    vertical-align: baseline;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin: 0 0.25rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.pricing-features li svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--primary-color);
    stroke-width: 3;
}

.pricing-features li span {
    line-height: 1.6;
}

.pricing-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.75rem;
    margin-top: auto;
}

.pricing-popular .pricing-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 30px -5px rgba(102, 126, 234, 0.3);
}

.pricing-popular .pricing-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(102, 126, 234, 0.4);
}

.pricing-note {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 1rem;
    border-left: 4px solid var(--primary-color);
    margin-top: 2rem;
}

/* Page-specific pricing note colors */
body[data-page="about"] .pricing-note {
    background: rgba(16, 185, 129, 0.05);
    border-left-color: #10B981;
}

body[data-page="services"] .pricing-note {
    background: rgba(245, 158, 11, 0.05);
    border-left-color: #F59E0B;
}

body[data-page="portfolio"] .pricing-note {
    background: rgba(236, 72, 153, 0.05);
    border-left-color: #EC4899;
}

body[data-page="contact"] .pricing-note {
    background: rgba(6, 182, 212, 0.05);
    border-left-color: #06B6D4;
}

.pricing-note p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.pricing-note strong {
    color: var(--primary-color);
}

/* Page-specific note strong colors */
body[data-page="about"] .pricing-note strong {
    color: #10B981;
}

body[data-page="services"] .pricing-note strong {
    color: #F59E0B;
}

body[data-page="portfolio"] .pricing-note strong {
    color: #EC4899;
}

body[data-page="contact"] .pricing-note strong {
    color: #06B6D4;
}

/* ============ CTA Section ============ */
.cta-section {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Page-specific CTA colors */
body[data-page="about"] .cta-section {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

body[data-page="services"] .cta-section {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

body[data-page="portfolio"] .cta-section {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

body[data-page="contact"] .cta-section {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

body[data-page="pricing"] .cta-section {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 15s linear infinite;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: var(--bg-light);
}

.cta-section .btn-secondary {
    border-color: white;
    color: white;
}

.cta-section .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* ============ Footer ============ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-logo .logo-text {
    color: white;
    display: none;
}

.footer-logo .logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
    display: none;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: white;
}

/* ============ Scroll Reveal Animations ============ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Ensure content is visible on initial load if already in viewport */
.scroll-reveal:not(.revealed) {
    min-height: 1px; /* Prevent layout shift */
}

/* Make sure mobile menu is visible when active */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        padding-top: 80px;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: var(--transition);
        gap: 1rem;
        z-index: 1002;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .language-switcher {
        z-index: 10003 !important;
    }

    .nav-menu.active {
        transform: translateX(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 1s ease 0.9s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ============ Contact Form ============ */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
}

/* Contact page specific gradient */
body[data-page="contact"] .contact-form::before {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-input select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234F46E5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-input:focus,
.form-textarea:focus,
select.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input.error,
.form-textarea.error,
select.form-input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

/* ============ Map Section ============ */
.map-container {
    margin-top: 3rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: var(--text-gray);
}

/* ============ Portfolio Grid ============ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-item:hover::after {
    opacity: 0.05;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Portfolio page specific gradient */
body[data-page="portfolio"] .portfolio-image {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 0.1)),
                linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 0.1));
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.3;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.portfolio-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.portfolio-title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.portfolio-description {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============ Page Header ============ */
.page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Page-specific header gradients */
body[data-page="about"] .page-header {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

body[data-page="services"] .page-header {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

body[data-page="portfolio"] .page-header {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

body[data-page="contact"] .page-header {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

body[data-page="pricing"] .page-header {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    color: white;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.breadcrumb {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* ============ Services Detail ============ */
.service-detail-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.service-detail-section:last-child {
    border-bottom: none;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detail-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-detail-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.service-detail-content li {
    margin-bottom: 0.75rem;
    color: var(--text-gray);
}

/* ============ Team Section ============ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.team-member:hover::before {
    transform: scaleX(1);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.3);
    border: 4px solid white;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

    .team-member:hover .team-avatar {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.4);
    }

    /* Testimonials responsive */
    .testimonials-carousel {
        margin-top: 2rem;
        padding: 0.5rem 0;
    }

    .testimonials-track {
        gap: 1.5rem;
        animation-duration: 35s;
    }

    .testimonial-card {
        min-width: 280px;
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .testimonial-quote-icon {
        width: 50px;
        height: 50px;
        top: -25px;
    }

    .testimonial-rating {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
        padding: 0;
    }

    .author-avatar {
        width: 64px;
        height: 64px;
        font-size: 1.25rem;
    }

    .testimonial-author {
        gap: 0.75rem;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-role {
        font-size: 0.875rem;
    }

.team-name {
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ============ Responsive Design ============ */
@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .about-preview-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 35px;
        max-width: 140px;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .top-bar {
        padding: 0.5rem 0;
    }

    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .top-bar-right {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        align-items: flex-start;
    }

    .top-bar-hours {
        font-size: 0.75rem;
    }

    .top-bar-link {
        font-size: 0.75rem;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 60px 20px 60px;
    }

    .page-header {
        padding: 60px 0 60px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-popular {
        transform: scale(1);
    }

    .pricing-popular:hover {
        transform: translateY(-10px) scale(1);
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .service-card {
        padding: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .partners-track {
        gap: 2rem;
    }

    .partner-logo {
        min-width: 150px;
    }
}

/* ============ WhatsApp Contact Button ============ */
.whatsapp-contact-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 10002;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6), 0 6px 15px rgba(37, 211, 102, 0.5), 0 0 0 4px rgba(37, 211, 102, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-contact-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 45px rgba(37, 211, 102, 0.7), 0 8px 20px rgba(37, 211, 102, 0.6), 0 0 0 6px rgba(37, 211, 102, 0.3);
}

.whatsapp-contact-btn:active {
    transform: scale(0.95);
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.whatsapp-link svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* WhatsApp Popup Overlay - Side Panel Style */
.whatsapp-popup-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10004;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.whatsapp-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.whatsapp-popup-container {
    position: fixed;
    top: 1rem;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: auto;
    max-height: calc(100% - 2rem);
    margin-right: 1rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2), -4px 0 20px rgba(79, 70, 229, 0.1);
    overflow-y: hidden;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10005;
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--primary-color);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.whatsapp-popup-overlay.active .whatsapp-popup-container {
    right: 0;
}

/* WhatsApp button connection line effect */
.whatsapp-popup-overlay.active::before {
    content: '';
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 2px;
    height: calc(100vh - 130px);
    background: linear-gradient(180deg, var(--primary-color) 0%, transparent 100%);
    z-index: 10004;
    animation: whatsapp-connect 0.4s ease;
}

@keyframes whatsapp-connect {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: calc(100vh - 130px);
        opacity: 0.3;
    }
}

.whatsapp-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    flex-shrink: 0;
}

.whatsapp-popup-header h3 {
    margin: 0;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
    flex-wrap: wrap;
}


.whatsapp-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: var(--transition);
    padding: 0;
}

.whatsapp-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.whatsapp-popup-form {
    padding: 0.75rem 0.75rem 0.75rem 0.75rem;
    flex: 0 1 auto;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
    animation: formFadeIn 0.4s ease-out;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.whatsapp-popup-form .form-group {
    margin-bottom: 0.5rem;
    position: relative;
    flex-shrink: 0;
}

.whatsapp-popup-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
    position: relative;
}

.whatsapp-popup-form .form-label::before {
    content: '';
    width: 2px;
    height: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
    display: inline-block;
}

.whatsapp-popup-form .form-input-wrapper {
    position: relative;
}

.whatsapp-popup-form .form-input,
.whatsapp-popup-form .form-textarea,
.whatsapp-popup-form .form-select {
    width: 100%;
    padding: 0.4rem 0.4rem 0.4rem 1.5rem;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: var(--font-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: var(--text-dark);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.whatsapp-popup-form .form-input:focus,
.whatsapp-popup-form .form-textarea:focus,
.whatsapp-popup-form .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1), 0 2px 6px rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
    background: #F5F7FF;
}

.whatsapp-popup-form .form-input-wrapper::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #9CA3AF;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    pointer-events: none;
    z-index: 1;
}

.whatsapp-popup-form .form-group:has(#whatsappName) .form-input-wrapper::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.whatsapp-popup-form .form-group:has(#whatsappState) .form-input-wrapper::before,
.whatsapp-popup-form .form-group:has(#whatsappDistrict) .form-input-wrapper::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.whatsapp-popup-form .form-group:has(#whatsappService) .form-input-wrapper::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");
}

.whatsapp-popup-form .form-group:has(#whatsappForWhom) .form-input-wrapper::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.whatsapp-popup-form .form-group:has(#whatsappComment) .form-input-wrapper::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
    top: 0.4rem;
    transform: none;
}

.whatsapp-popup-form .form-input:focus ~ .form-input-wrapper::before,
.whatsapp-popup-form .form-textarea:focus ~ .form-input-wrapper::before,
.whatsapp-popup-form .form-select:focus ~ .form-input-wrapper::before,
.whatsapp-popup-form .form-group:has(.form-input:focus) .form-input-wrapper::before,
.whatsapp-popup-form .form-group:has(.form-textarea:focus) .form-input-wrapper::before,
.whatsapp-popup-form .form-group:has(.form-select:focus) .form-input-wrapper::before {
    background: var(--primary-color);
}

.whatsapp-popup-form .form-textarea {
    resize: none;
    height: 3.5rem;
    min-height: 3.5rem;
    max-height: 3.5rem;
    padding-left: 1.5rem;
    padding-top: 0.4rem;
    columns: 1;
    line-height: 1.2;
    overflow-y: hidden;
}

.whatsapp-popup-form .form-textarea::placeholder {
    font-size: 0.75rem;
    line-height: 1.2;
}

.whatsapp-popup-form .form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px;
    padding-right: 1.75rem;
    background-color: white;
}

.whatsapp-popup-form .form-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Address section with district and state */
.address-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    background: white;
    padding: 0.4rem;
    border-radius: 10px;
    border: 1.5px solid #F3F4F6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.address-row:has(.form-select:focus) {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.05);
}

.whatsapp-popup-form .form-group:has(.address-row) .form-label::before {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    width: 2.5px;
    height: 12px;
}

/* Form section divider */
.whatsapp-popup-form .form-group::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
    border-radius: 1px;
}

.whatsapp-popup-form .form-group:last-child::after {
    display: none;
}

.whatsapp-popup-form .form-group:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .address-row {
        grid-template-columns: 1fr;
    }
}

.whatsapp-submit-btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3), 0 1px 4px rgba(79, 70, 229, 0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.whatsapp-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.whatsapp-submit-btn:hover::before {
    left: 100%;
}

.whatsapp-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5), 0 4px 12px rgba(79, 70, 229, 0.3);
}

.whatsapp-submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

@media (max-width: 768px) {
    .whatsapp-popup-container {
        max-width: 100%;
        top: 0;
        height: auto;
        max-height: 100%;
        margin-right: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .whatsapp-popup-overlay.active::before {
        display: none;
    }
    
    .whatsapp-popup-header {
        padding: 0.625rem 0.75rem;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    
    .whatsapp-popup-header h3 {
        font-size: 0.9375rem;
        line-height: 1.3;
    }
    
    .whatsapp-popup-form {
        padding: 0.75rem 0.625rem;
    }
    
    .address-row {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-popup-form .form-textarea {
        columns: 1;
        height: 3.5rem;
        min-height: 3.5rem;
        max-height: 3.5rem;
    }
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 4px 10px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(37, 211, 102, 0.5), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 4px 10px rgba(37, 211, 102, 0.3);
    }
}

@media (max-width: 768px) {
    .whatsapp-contact-btn {
        bottom: 90px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-link svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-contact-btn {
        bottom: 85px;
        right: 15px;
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-link svg {
        width: 26px;
        height: 26px;
    }
}

/* ============ Language Switcher ============ */
.language-switcher {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    display: flex !important;
    gap: 0;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(79, 70, 229, 0.2);
    padding: 4px;
    z-index: 10003 !important;
    border: 2px solid var(--primary-color);
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}

.language-switcher::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.05;
    z-index: -1;
}

.lang-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    min-width: 50px;
    text-align: center;
}

.lang-btn:hover {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.lang-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transform: scale(1.05);
}

.lang-btn.active:hover {
    background: var(--primary-gradient-hover);
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .whatsapp-contact-btn {
        bottom: 90px !important;
        right: 20px !important;
    }
    
    .language-switcher {
        bottom: 20px !important;
        right: 20px !important;
        padding: 4px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10003 !important;
        position: fixed !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 3px 8px rgba(79, 70, 229, 0.3) !important;
    }

    .lang-btn {
        padding: 0.625rem 1.125rem !important;
        font-size: 0.9375rem !important;
        min-width: 50px !important;
        display: inline-block !important;
        visibility: visible !important;
        font-weight: 700 !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-contact-btn {
        bottom: 85px !important;
        right: 15px !important;
    }
    
    .language-switcher {
        bottom: 15px !important;
        right: 15px !important;
        padding: 3px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10003 !important;
        position: fixed !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 3px 10px rgba(79, 70, 229, 0.35) !important;
        border-width: 2px !important;
    }

    .lang-btn {
        padding: 0.5625rem 1rem !important;
        font-size: 0.875rem !important;
        min-width: 48px !important;
        display: inline-block !important;
        visibility: visible !important;
        font-weight: 700 !important;
    }
}

/* ============ SEO Page Headings - Single Line ============ */
.hero-content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
}

.hero-text-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.seo-page-title-new {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Ensure headings don't wrap on larger screens - increase container width */
@media (min-width: 768px) {
    .hero-content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .hero-text-content {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .seo-page-title-new {
        white-space: nowrap !important;
        font-size: clamp(2rem, 4vw, 3.5rem) !important;
        overflow: visible !important;
    }
}

/* For mobile, allow wrapping */
@media (max-width: 767px) {
    .seo-page-title-new {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

