/*
Theme Name: CricBook
Description: A professional WordPress theme for CricBook - Cricket Scoring and Analytics Platform. Converted from the original static Next.js design.
Author: CricBook Team
Version: 1.1
Tags: cricket, sports, analytics, responsive, modern, blue
Text Domain: cricbook
*/

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #374151;
    background: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Modern CSS Variables for consistent theming */
:root {
    --primary-color: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-lighter: #dbeafe;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #374151;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Grid Layout Optimizations */
.testimonials-grid-premium,
.case-studies-grid-premium {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 2rem !important;
}

@media (min-width: 768px) {
    .testimonials-grid-premium,
    .case-studies-grid-premium {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2.5rem !important;
    }
}

/* Card Optimizations */
.testimonial-card-premium,
.case-study-card-premium {
    height: fit-content;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card-premium:hover,
.case-study-card-premium:hover {
    transform: translateY(-2px);
}

/* Container and Outer Padding Optimizations */
.services-section-premium,
.testimonials-section-premium,
.case-studies-section-premium,
.trust-section {
    overflow: hidden;
}

.services-section-premium .max-w-6xl,
.testimonials-section-premium .max-w-6xl,
.case-studies-section-premium .max-w-6xl,
.trust-section .max-w-6xl {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .services-section-premium .max-w-6xl,
    .testimonials-section-premium .max-w-6xl,
    .case-studies-section-premium .max-w-6xl,
    .trust-section .max-w-6xl {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .services-section-premium .max-w-6xl,
    .testimonials-section-premium .max-w-6xl,
    .case-studies-section-premium .max-w-6xl,
    .trust-section .max-w-6xl {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Enhanced Header Navigation with Glassmorphism */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 50;
    height: 80px;
    transition: var(--transition);
}

.site-header:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-xl);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1.5rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.site-branding:hover {
    transform: scale(1.02);
}

.site-branding img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.site-branding:hover img {
    transform: rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.site-title:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.main-navigation a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: var(--transition);
    border-radius: 1px;
}

.main-navigation a:hover::after,
.main-navigation a.current-menu-item::after {
    width: 100%;
}

.main-navigation a:hover,
.main-navigation a.current-menu-item {
    color: var(--primary-color);
}

.nav-cta {
    margin-left: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.nav-cta::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: var(--transition-slow);
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* Enhanced Hero Section with Modern Effects */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(17, 24, 39, 0.9) 0%, 
        rgba(30, 64, 175, 0.8) 25%, 
        rgba(59, 130, 246, 0.7) 50%, 
        rgba(30, 64, 175, 0.8) 75%, 
        rgba(17, 24, 39, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    margin: 0 auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-2xl);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 3.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: heroFadeIn 1s ease-out;
    transition: var(--transition);
}

.hero-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
    letter-spacing: -0.02em;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 5px rgba(219, 234, 254, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(219, 234, 254, 0.6)); }
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: #dbeafe;
    margin-bottom: 2.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.hero-cta::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: var(--transition-slow);
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-cta svg {
    width: 1.75rem;
    height: 1.75rem;
    margin-right: 0.75rem;
    transition: var(--transition);
}

.hero-cta:hover svg {
    transform: scale(1.1);
}

.hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.hero-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(29, 78, 216, 0.1), transparent);
    transition: var(--transition-slow);
}

.hero-secondary:hover::before {
    left: 100%;
}

.hero-secondary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

.hero-secondary svg {
    width: 1.75rem;
    height: 1.75rem;
    margin-right: 0.75rem;
    transition: var(--transition);
}

.hero-secondary:hover svg {
    transform: scale(1.1);
}

/* Enhanced Content Section */
.content-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Enhanced Services Grid with Modern Cards */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.service-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    animation: cardFadeIn 0.6s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.service-card.featured .service-title,
.service-card.featured .service-description,
.service-card.featured .service-features strong,
.service-card.featured .service-features span {
    color: white;
}

.service-card.featured .service-features svg {
    color: #dbeafe;
}

.service-card-content {
    padding: 2rem;
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-lighter), white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card.featured .service-icon svg {
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.service-features {
    margin-bottom: 2rem;
}

.service-features ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    font-size: 0.875rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.service-features li:hover {
    background: var(--primary-lighter);
    transform: translateX(5px);
}

.service-features svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary-color);
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.service-features li:hover svg {
    transform: scale(1.2);
}

.service-features strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 0.5rem;
}

.service-features span {
    color: var(--text-secondary);
    line-height: 1.5;
}

.service-card-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover .service-card-footer {
    background: var(--primary-lighter);
}

.service-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.service-link::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: var(--transition-slow);
}

.service-link:hover::before {
    left: 100%;
}

.service-link:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.service-link svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.service-link:hover svg {
    transform: translateX(3px);
}

/* Enhanced Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.stats-section .section-title {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    animation: statFadeIn 0.6s ease-out;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes statFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #dbeafe;
}

.stat-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* CTA Section Styles */
.cta-section {
    margin-top: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-button::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: var(--transition-slow);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.cta-button svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: var(--transition);
}

.cta-button:hover svg {
    transform: translateX(3px);
}

/* Enhanced Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    z-index: 50;
}

.mobile-menu-toggle:hover {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.mobile-menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-navigation {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    transition: var(--transition);
    z-index: 40;
    display: none;
}

.mobile-navigation.active {
    transform: translateY(0);
    display: block;
}

.mobile-navigation ul {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.mobile-navigation li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-navigation a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-navigation a:hover {
    background: var(--primary-lighter);
    color: var(--primary-color);
    padding-left: 2.5rem;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Mobile Navigation */
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .site-header .container {
        justify-content: space-between;
        align-items: center;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta,
    .hero-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .service-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card-content {
        padding: 1.5rem;
    }
    
    .service-card-footer {
        padding: 1rem 1.5rem;
    }
}

/* Enhanced Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Focus States for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* Enhanced Selection */
::selection {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

::-moz-selection {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

/* Inline Edit Buttons for Logged-in Users */
.cricbook-inline-edit-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(-10px);
}

.cricbook-inline-edit-button::before {
    content: '✏️';
    font-size: 0.875rem;
}

.cricbook-inline-edit-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

/* Show edit buttons on hover of parent sections */
.hero-section:hover .cricbook-inline-edit-button,
.content-section:hover .cricbook-inline-edit-button,
.stats-section:hover .cricbook-inline-edit-button,
.service-card:hover .cricbook-inline-edit-button,
.testimonial-card:hover .cricbook-inline-edit-button,
.case-study-card:hover .cricbook-inline-edit-button {
    opacity: 1;
    transform: translateY(0);
}

/* Always show edit buttons for sections that are positioned relative */
.hero-section,
.content-section,
.stats-section {
    position: relative;
}

/* Mobile adjustments for edit buttons */
@media (max-width: 768px) {
    .cricbook-inline-edit-button {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.6875rem;
    }
    
    .cricbook-inline-edit-button::before {
        font-size: 0.75rem;
    }
}

/* Enhanced focus states for edit buttons */
.cricbook-inline-edit-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    opacity: 1;
    transform: translateY(0);
}

/* Animation for edit buttons */
@keyframes editButtonFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cricbook-inline-edit-button {
    animation: editButtonFadeIn 0.3s ease-out;
}

/* Enhanced accessibility for edit buttons */
@media (prefers-reduced-motion: reduce) {
    .cricbook-inline-edit-button {
        animation: none;
        transition: none;
    }
}

/* Print styles - hide edit buttons */
@media print {
    .cricbook-inline-edit-button {
        display: none !important;
    }
}

/* Testimonials Section - Exact match to static site */
.testimonials-section {
    background: #f9fafb;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.testimonial-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: #e5e7eb;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    margin-left: 1rem;
}

.testimonial-name {
    font-weight: 600;
    color: #111827;
}

.testimonial-role {
    font-size: 0.875rem;
    color: #6b7280;
}

.testimonial-rating {
    display: flex;
    margin-bottom: 0.75rem;
}

.testimonial-rating svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #fbbf24;
}

.testimonial-content {
    color: #6b7280;
    font-style: italic;
}

/* Case Studies Preview */
.case-studies-preview {
    margin-top: 4rem;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .case-study-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.case-study-card {
    background: #f9fafb;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.case-study-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.case-study-image {
    height: 12rem;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-content {
    padding: 2rem;
}

.case-study-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.case-study-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.case-study-description {
    color: #6b7280;
    margin-bottom: 1rem;
}

.case-study-link {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-study-link:hover {
    color: #1e40af;
}

/* Contact Section - Exact match to static site */
.contact-section {
    background: white;
}

.contact-section .section-title {
    color: #1e3a8a;
}

.contact-section .section-subtitle {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 2.5rem;
}

.contact-form {
    background: #dbeafe;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #bfdbfe;
    padding: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.form-group label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: #1d4ed8;
    color: white;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background: #1e40af;
}

/* Footer - Exact match to static site */
.site-footer {
    background: #111827;
    color: white;
    margin-top: auto;
    border-top: 1px solid #374151;
}

.footer-content {
    text-align: center;
    padding: 2rem 0;
}

.footer-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-branding img {
    width: 3rem;
    height: 3rem;
}

.footer-title {
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-description {
    color: #dbeafe;
    font-size: 0.875rem;
    max-width: 28rem;
    margin: 0 auto 1.5rem;
}

.footer-navigation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-navigation a {
    color: #dbeafe;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-navigation a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
}

.footer-copyright {
    color: #dbeafe;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-navigation {
        gap: 3rem;
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .content-section {
        padding: 3rem 0;
    }
    
    .hero-section {
        padding: 4rem 1rem;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
    }
}

/* WordPress Specific Styles */
.wp-block-group {
    margin: 2rem 0;
}

.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image img {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wp-block-quote {
    border-left: 4px solid #1d4ed8;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
}

/* Animation Classes */
.fade-in {
    opacity: 1;
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    opacity: 1;
    transform: translateY(0);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Templates */
.page-header {
    background: linear-gradient(to bottom, #dbeafe, white);
    padding: 6rem 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.page-description {
    font-size: 1.5rem;
    color: #374151;
    max-width: 48rem;
    margin: 0 auto;
}

/* Contact Form 7 Styling - Exact match to original design */
.contact-form .wpcf7-form {
    background: #dbeafe;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #bfdbfe;
    padding: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

.contact-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .contact-form .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form .form-group label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-form .form-control {
    width: 100% !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 1.125rem !important;
    transition: all 0.3s ease !important;
    background-color: white !important;
    color: #374151 !important;
    font-family: inherit !important;
}

.contact-form .form-control:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.contact-form .form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.contact-form textarea.form-control {
    resize: vertical !important;
    min-height: 120px !important;
}

.contact-form .form-submit {
    width: 100% !important;
    margin-top: 1rem !important;
    padding: 1rem 2rem !important;
    background: #1d4ed8 !important;
    color: white !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.contact-form .form-submit:hover {
    background: #1e40af !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

.contact-form .form-submit:active {
    transform: translateY(0) !important;
}

/* Contact Form 7 validation styling */
.contact-form .wpcf7-not-valid-tip {
    color: #dc2626 !important;
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
}

.contact-form .wpcf7-not-valid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.contact-form .wpcf7-response-output {
    border: none !important;
    margin: 1rem 0 0 0 !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
}

.contact-form .wpcf7-mail-sent-ok {
    background: #dcfce7 !important;
    color: #166534 !important;
    border-left: 4px solid #22c55e !important;
}

.contact-form .wpcf7-mail-sent-ng,
.contact-form .wpcf7-validation-errors {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-left: 4px solid #ef4444 !important;
}

.contact-form .wpcf7-spinner {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px !important;
    height: 20px !important;
}

/* Loading state for submit button */
.contact-form .wpcf7-form.submitting .form-submit {
    opacity: 0.7;
    cursor: not-allowed !important;
    position: relative;
}

.contact-form .wpcf7-form.submitting .form-submit::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Focus states for better accessibility */
.contact-form .form-control:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.contact-form .form-submit:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

/* Success message styling */
.contact-form .wpcf7-mail-sent-ok::before {
    content: '✓ ';
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Error message styling */
.contact-form .wpcf7-validation-errors::before {
    content: '⚠ ';
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Widget Performance Containment */
.cricbook-widget {
    contain: layout style paint;
    will-change: transform;
}

.cricbook-widget img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy Loading Styles */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy.loaded {
    opacity: 1;
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    .cricbook-widget {
        contain: layout style;
    }
    
    .cricbook-widget * {
        animation-duration: 0.3s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Reduce box-shadow complexity on mobile */
    .cricbook-widget {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .cricbook-widget:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* Optimize touch interactions */
    .cricbook-widget {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* Touch Optimizations */
.touch-active {
    transform: scale(0.98);
    transition: transform 0.1s ease-out;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .cricbook-widget *,
    .cricbook-widget {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cricket-match.fade-in {
        animation: none !important;
    }
    
    .widget-hover {
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    .cricbook-widget {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .cricbook-widget * {
        color: black !important;
        background: white !important;
        box-shadow: none !important;
    }
    
    .cricbook-inline-edit-button {
        display: none !important;
    }
}

/* Performance Monitoring Styles */
.widget-loading {
    position: relative;
    min-height: 100px;
}

.widget-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Critical CSS for above-the-fold content */
.hero-section,
.hero-content,
.hero-title,
.hero-subtitle {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Optimize images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reduce layout shifts */
.cricbook-widget {
    min-height: 200px;
}

.cricket-score-widget-content,
.player-stats-widget-content,
.match-schedule-widget-content,
.cricket-news-widget-content {
    min-height: 150px;
}

/* Performance-focused animations */
@keyframes fadeInOptimized {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cricket-match.fade-in {
    animation: fadeInOptimized 0.4s ease-out forwards;
}

/* Memory optimization */
.cricbook-widget {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Network optimization hints */
.cricbook-widget img {
    fetchpriority: low;
}

.cricbook-widget img[data-src] {
    fetchpriority: high;
}

/* ===== PREMIUM LANDING PAGE REDESIGN ===== */

/* Hero Section - Professional Modern Redesign */
.hero-section-premium {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hero-gradient-start, #0f172a) 0%, var(--hero-gradient-mid1, #1e293b) 20%, var(--hero-gradient-mid2, #334155) 40%, var(--hero-gradient-mid3, #475569) 60%, var(--hero-gradient-mid4, #64748b) 80%, var(--hero-gradient-end, #94a3b8) 100%);
    padding: 0;
}

.hero-bg-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-background-premium {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-overlay-premium {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.7) 0%, 
        rgba(30, 41, 59, 0.6) 25%, 
        rgba(51, 65, 85, 0.5) 50%, 
        rgba(71, 85, 105, 0.6) 75%, 
        rgba(15, 23, 42, 0.7) 100%);
}

.cricket-data-viz {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
}

.hero-content-premium {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    min-height: 50vh;
}

.hero-text-content {
    text-align: left;
    padding-right: 1.5rem;
}

.hero-visual-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title-premium {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle-premium {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #e2e8f0;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-secondary-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 24rem;
}

.hero-buttons-premium {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .hero-buttons-premium {
        flex-direction: row;
        gap: 1rem;
    }
}

.hero-cta-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cta-premium:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.35);
    color: white;
    text-decoration: none;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.cta-icon {
    width: 1.75rem;
    height: 1.75rem;
    transition: transform 0.3s ease;
}

.hero-cta-premium:hover .cta-icon {
    transform: scale(1.1);
}

.cta-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.hero-cta-premium:hover .cta-arrow {
    transform: translateX(3px);
}

.cta-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.hero-cta-premium:hover .cta-glow {
    transform: translateX(100%);
}

.hero-secondary-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
}

.hero-secondary-premium:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.hero-secondary-premium:hover .cta-arrow {
    transform: translateX(3px);
}

/* App Mockup */
.hero-mockup {
    margin-top: 0;
    width: 100%;
    max-width: 400px;
}

.mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-device {
    background: linear-gradient(135deg, #1f2937, #374151);
    border-radius: 1.5rem;
    padding: 0.5rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-10deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.mockup-device:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(2deg);
}

.mockup-screen {
    width: 280px;
    height: 480px;
    background: #000;
    border-radius: 1.25rem;
    overflow: hidden;
    position: relative;
}

.mockup-content {
    height: 100%;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.mockup-status-bar {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.mockup-scoring-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-score-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    color: white;
}

.mockup-team-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mockup-team-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.mockup-score {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fbbf24;
}

.mockup-overs {
    font-size: 0.875rem;
    opacity: 0.8;
}

.mockup-controls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.mockup-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.mockup-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.mockup-button.wicket {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Cricket Elements Animation - Minimal and Balanced */
.cricket-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
}

.cricket-ball {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.8), rgba(245, 158, 11, 0.6));
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.cricket-ball-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.cricket-ball-2 {
    top: 75%;
    right: 8%;
    animation-delay: 4s;
}

.cricket-stumps {
    position: absolute;
    width: 3px;
    height: 24px;
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0.6), rgba(124, 58, 237, 0.4));
    border-radius: 1px;
    animation: sway 12s ease-in-out infinite;
}

.cricket-stumps-1 {
    top: 35%;
    right: 12%;
    animation-delay: 6s;
}

.cricket-stumps-1::before,
.cricket-stumps-1::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 24px;
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0.6), rgba(124, 58, 237, 0.4));
    border-radius: 1px;
}

.cricket-stumps-1::before {
    left: -6px;
}

.cricket-stumps-1::after {
    right: -6px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-15px) rotate(90deg); opacity: 0.8; }
}

@keyframes sway {
    0%, 100% { transform: rotate(-2deg); opacity: 0.4; }
    50% { transform: rotate(2deg); opacity: 0.7; }
}

/* Trust Section - Professional Redesign */
.trust-section {
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
    padding: 6rem 0;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
}

.trust-title {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #1f2937, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.025em;
    line-height: 1.1;
    position: relative;
}

.trust-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: #6b7280;
    font-weight: 400;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.trust-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #6b7280;
    text-align: center;
    max-width: 32rem;
    margin: 0 auto 3rem;
}

/* Partner Logos Grid - Professional Design */
.partner-logos-container {
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.partner-logos-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .partner-logos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 900px;
    }
}

@media (min-width: 768px) {
    .partner-logos-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1200px;
    }
}

.partner-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.875rem 0.5rem !important;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    min-height: 70px !important;
    justify-content: center !important;
    height: 100%;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.partner-logo:hover::before {
    transform: scaleX(1);
}

.partner-logo:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #ffffff, #fafbfc);
}

.logo-placeholder {
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b;
    font-weight: 600;
    font-size: 0.5rem !important;
    text-align: center;
    line-height: 1.1;
    padding: 0.375rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.logo-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(29, 78, 216, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-logo:hover .logo-placeholder::before {
    opacity: 1;
}

.partner-logo:hover .logo-placeholder {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.logo-label {
    font-size: 0.6875rem;
    color: #374151;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
    max-width: 90px;
    word-wrap: break-word;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.partner-logo:hover .logo-label {
    color: #1f2937;
}

/* Enhanced Statistics - Professional Design */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem !important;
        margin-top: 4rem;
        max-width: 1200px;
        padding: 0 2rem;
    }
}

.stat-card-premium {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.25rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.stat-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card-premium:hover::before {
    transform: scaleX(1);
}

.stat-card-premium:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.stat-number-premium {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    .stat-number-premium {
        font-size: 2.75rem;
    }
}

.stat-label-premium {
    font-size: 1rem;
    color: #374151;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.stat-icon-premium {
    font-size: 1.75rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    color: #3b82f6;
    transition: all 0.3s ease;
}

.stat-card-premium:hover .stat-icon-premium {
    transform: scale(1.1);
    opacity: 1;
}





/* Services Section - Enhanced */
.services-section-premium {
    background: linear-gradient(135deg, #e2e8f0 0%, #dbeafe 30%, #c7d2fe 70%, #a5b4fc 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Background Elements */
.services-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.cricket-field-pattern {
    opacity: 0.08;
    color: #3b82f6;
}

.testimonials-bg-pattern {
    opacity: 0.06;
    color: #6366f1;
}

.case-studies-bg-pattern {
    opacity: 0.07;
    color: #475569;
}

.services-title-premium {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.services-subtitle-premium {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #64748b;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 3rem;
    font-weight: 500;
    line-height: 1.5;
}

.services-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.service-card-premium {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-content-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 246, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 2.5rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.service-card-premium:hover .service-card-content-premium {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Icon Container */
.icon-container-premium {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 25px -5px rgba(59, 130, 246, 0.4),
        0 4px 6px -1px rgba(59, 130, 246, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.icon-container-premium::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card-premium:hover .icon-container-premium {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 20px 40px -10px rgba(59, 130, 246, 0.6),
        0 8px 16px -4px rgba(59, 130, 246, 0.3);
}

.service-card-premium:hover .icon-container-premium::before {
    opacity: 1;
}

.service-title-premium {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.service-description-premium {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.125rem;
}

.service-features-premium {
    margin-bottom: 2rem;
}

.feature-list-premium {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item-premium {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #374151;
    font-weight: 500;
}

.feature-icon-premium {
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
    flex-shrink: 0;
}

.service-cta-premium {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-cta-premium a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 6px -1px rgba(59, 130, 246, 0.3),
        0 2px 4px -1px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.service-cta-premium a::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 ease;
}

.service-cta-premium a:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px -5px rgba(59, 130, 246, 0.5),
        0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.service-cta-premium a:hover::before {
    left: 100%;
}

.cta-arrow-premium {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.service-cta-premium a:hover .cta-arrow-premium {
    transform: translateX(4px);
}

.service-pattern-premium {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
    border-radius: 50%;
    transform: translate(50%, -50%);
    z-index: 1;
}

/* Services Section Responsive */
@media (max-width: 1024px) {
    .services-section-premium {
        padding: 4rem 0;
    }
    
    .services-title-premium {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    
    .services-subtitle-premium {
        font-size: clamp(1.125rem, 3vw, 1.5rem);
        margin-bottom: 3rem;
    }
    
    .services-grid-premium {
        gap: 2rem;
    }
    
    .service-card-content-premium {
        padding: 2.5rem 1.5rem;
    }
    
    .icon-container-premium {
        width: 4rem;
        height: 4rem;
    }
}

@media (max-width: 768px) {
    .services-section-premium {
        padding: 3rem 0;
    }
    
    .services-title-premium {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 1.5rem;
    }
    
    .services-subtitle-premium {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
    
    .services-grid-premium {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card-content-premium {
        padding: 2rem 1.5rem;
    }
    
    .icon-container-premium {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .service-title-premium {
        font-size: 1.5rem;
    }
    
    .service-description-premium {
        font-size: 1rem;
    }
    
    .service-cta-premium a {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Testimonials Section - Enhanced */
.testimonials-section-premium {
    background: white;
    padding: 5rem 0;
    position: relative;
}

.testimonials-title-premium {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.testimonials-subtitle-premium {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: #6b7280;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.testimonials-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card-premium {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.testimonial-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.testimonial-content-premium {
    position: relative;
}

.quote-icon-premium {
    font-size: 4rem;
    color: #3b82f6;
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-family: serif;
}

.testimonial-text-premium {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-style: italic;
}

.testimonial-author-premium {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar-premium {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3b82f6;
    flex-shrink: 0;
}

.avatar-image-premium {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info-premium {
    flex: 1;
}

.author-name-premium {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.author-role-premium {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Case Studies Section - Enhanced */
.case-studies-section-premium {
    background: linear-gradient(135deg, #f9fafb, #f0f9ff);
    padding: 5rem 0;
    position: relative;
}

.case-studies-title-premium {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.case-studies-subtitle-premium {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: #6b7280;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.case-studies-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.case-study-card-premium {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.case-study-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.case-study-image-premium {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.case-study-img-premium {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-card-premium:hover .case-study-img-premium {
    transform: scale(1.05);
}

.case-study-placeholder-premium {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.case-study-graphic {
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 200px;
}

.case-study-content-premium {
    padding: 2.5rem;
}

.case-study-title-premium {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.case-study-description-premium {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.case-study-cta-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.case-study-cta-premium:hover {
    color: #1d4ed8;
    text-decoration: none;
    transform: translateX(5px);
}

.case-study-arrow-premium {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.case-study-cta-premium:hover .case-study-arrow-premium {
    transform: translateX(3px);
}

/* Contact Section - Enhanced */
.contact-section-premium {
    background: linear-gradient(135deg, #1e3a8a, #1e40af, #3730a3);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.contact-title-premium {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-subtitle-premium {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #bfdbfe;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.contact-form-container-premium {
    max-width: 48rem;
    margin: 0 auto;
}

.contact-form-premium {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.form-step-premium {
    transition: all 0.3s ease;
}

.form-step-premium.hidden {
    display: none;
}

.form-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group-premium {
    margin-bottom: 1rem;
}

.form-label-premium {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-icon-premium {
    width: 1.25rem;
    height: 1.25rem;
    color: #93c5fd;
}

.form-input-premium,
.form-select-premium,
.form-textarea-premium {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input-premium::placeholder,
.form-textarea-premium::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input-premium:focus,
.form-select-premium:focus,
.form-textarea-premium:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select-premium option {
    background: #1e3a8a;
    color: white;
}

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

.form-actions-premium {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .form-actions-premium {
        flex-direction: row;
        gap: 1rem;
    }
}

.form-next-btn-premium,
.form-back-btn-premium,
.form-submit-btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.form-next-btn-premium {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.form-next-btn-premium:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.form-back-btn-premium {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-back-btn-premium:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.form-submit-btn-premium {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    flex: 1;
}

.form-submit-btn-premium:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.form-arrow-premium {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.form-next-btn-premium:hover .form-arrow-premium,
.form-submit-btn-premium:hover .form-submit-icon-premium {
    transform: translateX(3px);
}

.form-back-btn-premium:hover .form-arrow-premium {
    transform: translateX(-3px);
}

.form-submit-icon-premium {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

/* Contact Pattern Background */
.contact-pattern-premium {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    z-index: 1;
}

/* Blog Section - Enhanced */
.blog-section {
    background: white;
    padding: 4rem 0;
}

.blog-card-premium {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.blog-image-premium {
    height: 200px;
    overflow: hidden;
}

.blog-image-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card-premium:hover .blog-image-premium img {
    transform: scale(1.05);
}

.blog-content-premium {
    padding: 1.5rem;
}

.blog-title-premium {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-title-premium a {
    color: inherit;
    text-decoration: none;
}

.blog-title-premium a:hover {
    color: #3b82f6;
}

.blog-meta-premium {
    margin-bottom: 1rem;
}

.blog-date-premium {
    font-size: 0.875rem;
    color: #6b7280;
}

.blog-excerpt-premium {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-read-more-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.blog-read-more-premium:hover {
    color: #1d4ed8;
    text-decoration: none;
    transform: translateX(5px);
}

.blog-arrow-premium {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.blog-read-more-premium:hover .blog-arrow-premium {
    transform: translateX(3px);
}

/* Pagination - Enhanced */
.pagination-premium {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-link-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-link-premium:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.pagination-link-premium.current {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content-premium {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .hero-text-content {
        text-align: center;
        padding-right: 0;
        order: 1;
    }
    
    .hero-visual-content {
        order: 2;
    }
    
    .hero-buttons-premium {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero-section-premium {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-title-premium {
        font-size: clamp(2.25rem, 6vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle-premium {
        font-size: clamp(1.125rem, 4vw, 1.375rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-secondary-subtitle {
        font-size: clamp(0.875rem, 3vw, 1rem);
        max-width: 24rem;
        margin-bottom: 2rem;
    }
    
    .hero-content-premium {
        gap: 2rem;
        padding: 1rem;
        min-height: auto;
    }
    
    .hero-buttons-premium {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .hero-cta-premium,
    .hero-secondary-premium {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-mockup {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .mockup-device {
        transform: none !important;
    }
    
    .mockup-screen {
        width: 220px;
        height: 380px;
    }
    
    /* Trust Section Mobile Styles */
    .trust-section {
        padding: 4rem 0;
    }
    
    .trust-title {
        font-size: clamp(2.25rem, 6vw, 3rem);
    }
    
    .trust-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.125rem);
        margin-bottom: 3rem;
    }
    
    .partner-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .partner-logo {
        padding: 1rem 0.75rem;
        min-height: 90px;
    }
    
    .logo-placeholder {
        width: 50px;
        height: 50px;
        font-size: 0.5rem;
    }
    
    .logo-label {
        font-size: 0.625rem;
        max-width: 80px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 3rem;
        max-width: 600px;
    }
    
    .stat-card-premium {
        padding: 1.5rem 1rem;
        min-height: 120px;
    }
    
    .stat-number-premium {
        font-size: 2.25rem;
    }
    
    .stat-label-premium {
        font-size: 0.875rem;
    }
}
    
    .services-grid-premium,
    .testimonials-grid-premium {
        grid-template-columns: 1fr;
    }
    
    .case-studies-grid-premium {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .partner-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 800px;
    }
    
    .trust-section {
        padding: 4rem 0;
    }
}
    
    .form-grid-premium {
        grid-template-columns: 1fr;
    }
    
    .form-actions-premium {
        flex-direction: column;
    }
    
    .mockup-device {
        transform: none;
    }
    
    .partner-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .partner-logo {
        padding: 1rem 0.75rem;
    }
    
    .logo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 0.625rem;
    }
    
    .logo-label {
        font-size: 0.75rem;
        max-width: 100px;
    }
    
    .stat-card-premium {
        padding: 2rem 1.5rem;
    }
    
    .stat-number-premium {
        font-size: 2.5rem;
    }
    
    .stat-label-premium {
        font-size: 1rem;
    }
}

/* Professional Animation Enhancements */
@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered animations for partner logos */
.partner-logo {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.partner-logo:nth-child(1) { animation-delay: 0.1s; }
.partner-logo:nth-child(2) { animation-delay: 0.2s; }
.partner-logo:nth-child(3) { animation-delay: 0.3s; }
.partner-logo:nth-child(4) { animation-delay: 0.4s; }
.partner-logo:nth-child(5) { animation-delay: 0.5s; }
.partner-logo:nth-child(6) { animation-delay: 0.6s; }

/* Staggered animations for statistics */
.stat-card-premium {
    animation: slideInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.stat-card-premium:nth-child(1) { animation-delay: 0.2s; }
.stat-card-premium:nth-child(2) { animation-delay: 0.3s; }
.stat-card-premium:nth-child(3) { animation-delay: 0.4s; }
.stat-card-premium:nth-child(4) { animation-delay: 0.5s; }

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

.service-card-premium,
.testimonial-card-premium,
.case-study-card-premium,
.blog-card-premium {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card-premium:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card-premium:nth-child(3) {
    animation-delay: 0.2s;
}

.testimonial-card-premium:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonial-card-premium:nth-child(3) {
    animation-delay: 0.2s;
}

/* Performance Optimizations */
.hero-section-premium,
.services-section-premium,
.testimonials-section-premium,
.case-studies-section-premium,
.contact-section-premium {
    contain: layout style paint;
    will-change: transform;
}

/* Print Styles */
@media print {
    .hero-section-premium,
    .services-section-premium,
    .testimonials-section-premium,
    .case-studies-section-premium,
    .contact-section-premium {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .service-card-premium,
    .testimonial-card-premium,
    .case-study-card-premium {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ===== TRUST SECTION DYNAMIC STYLES ===== */

.logo-image {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 0.25rem;
}

.logo-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid var(--primary-color);
}

.logo-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

/* Dynamic Statistics */
.stat-card-premium {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-card-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.stat-number-premium {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label-premium {
    font-size: 1rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-icon-premium {
    font-size: 2rem;
    margin-top: 0.5rem;
}

/* Section Visibility */
.trust-section.hidden {
    display: none;
}

.stats-grid.hidden {
    display: none;
}

/* Partner Logos Container */
.partner-logos-container {
    margin-bottom: 2rem;
}

.partner-logos-scroll {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: scrollLogos 20s linear infinite;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partner-logos-scroll {
        animation: none;
        gap: 1rem;
    }
    
    .partner-logo {
        padding: 0.75rem;
    }
    
    .logo-placeholder {
        font-size: 1.25rem;
        padding: 0.25rem 0.75rem;
    }
    
    .stat-card-premium {
        padding: 1rem;
    }
    
    .stat-number-premium {
        font-size: 2rem;
    }
    
    .stat-icon-premium {
        font-size: 1.5rem;
    }
}

/* ===== INLINE EDIT BUTTONS ===== */

/* Inline Edit Button Container */
.cricbook-inline-edit {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 100000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Show edit buttons on hover of parent container */
.hero-section-premium:hover .cricbook-inline-edit,
.trust-section:hover .cricbook-inline-edit,
.services-section-premium:hover .cricbook-inline-edit,
.testimonials-section-premium:hover .cricbook-inline-edit,
.case-studies-section-premium:hover .cricbook-inline-edit,
.contact-section-premium:hover .cricbook-inline-edit,
.blog-section:hover .cricbook-inline-edit {
    opacity: 1;
    transform: translateY(0);
}

/* Edit Button Styling */
.cricbook-inline-edit a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cricbook-inline-edit a:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cricbook-inline-edit a:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

/* Edit Icon */
.cricbook-inline-edit a span:first-child {
    font-size: 0.875rem;
    line-height: 1;
}

/* Button Text */
.cricbook-inline-edit a span:last-child {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Always show edit buttons for admin users */
body.logged-in .cricbook-inline-edit {
    opacity: 1;
    transform: translateY(0);
}

/* Show edit buttons when .show class is added */
.cricbook-inline-edit.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cricbook-inline-edit {
        top: 8px;
        right: 8px;
    }
    
    .cricbook-inline-edit a {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    .cricbook-inline-edit a span:last-child {
        display: none; /* Hide text on mobile, show only icon */
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cricbook-inline-edit a {
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cricbook-inline-edit,
    .cricbook-inline-edit a {
        transition: none;
    }
}

/* Print styles - hide edit buttons */
@media print {
    .cricbook-inline-edit {
        display: none !important;
    }
}

/* Individual CPT Edit Button Styling */
.partner-edit-btn,
.stat-edit-btn,
.service-edit-btn,
.testimonial-edit-btn,
.case-study-edit-btn {
    z-index: 1000;
}

/* Ensure edit buttons don't interfere with card hover effects */
.partner-logo:hover .partner-edit-btn,
.stat-card-premium:hover .stat-edit-btn,
.service-card-premium:hover .service-edit-btn,
.testimonial-card-premium:hover .testimonial-edit-btn,
.case-study-card-premium:hover .case-study-edit-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Smaller edit buttons for compact cards */
.partner-edit-btn .cricbook-inline-edit a,
.stat-edit-btn .cricbook-inline-edit a {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
}

.partner-edit-btn .cricbook-inline-edit a span:last-child,
.stat-edit-btn .cricbook-inline-edit a span:last-child {
    display: none; /* Hide text for compact cards */
}

/* Ensure edit buttons are visible on hover */
.partner-logo:hover .cricbook-inline-edit,
.stat-card-premium:hover .cricbook-inline-edit,
.service-card-premium:hover .cricbook-inline-edit,
.testimonial-card-premium:hover .cricbook-inline-edit,
.case-study-card-premium:hover .cricbook-inline-edit {
    opacity: 1;
    transform: translateY(0);
}