/* Bala Ji Softwares - WebFX Style Theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2072f3;
    --primary-dark: #1557c7;
    --primary-light: #4d8ff7;
    --secondary: #00c4a7;
    --secondary-dark: #00a38c;
    --accent-orange: #f97316;
    --dark: #0f172a;
    --dark-blue: #1a2b4a;
    --navy: #1e3a5f;
    --text: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-section: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-stats {
    display: flex;
    gap: 24px;
    align-items: center;
}

.top-bar-stats span { color: var(--secondary); font-weight: 700; }

.top-bar-links { display: flex; gap: 20px; align-items: center; }
.top-bar-links a { color: rgba(255,255,255,0.85); font-size: 13px; }
.top-bar-links a:hover { color: var(--white); }

/* Header */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 18px;
    font-family: var(--font-heading);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--dark);
    line-height: 1.2;
}

.logo-text small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav > li {
    list-style: none;
    position: relative;
}

.main-nav > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
}

.main-nav > li > a:hover,
.main-nav > li:hover > a { color: var(--primary); background: var(--bg-light); }

.main-nav > li > a i { font-size: 10px; transition: transform 0.3s; }
.main-nav > li:hover > a i { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    min-width: 700px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    z-index: 100;
}

.main-nav > li:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mega-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.mega-col ul { list-style: none; }
.mega-col ul li a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
    font-weight: 400;
}
.mega-col ul li a:hover { color: var(--primary); padding-left: 4px; }

.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32,114,243,0.35);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.btn-white:hover { background: var(--bg-light); color: var(--primary-dark); }

.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 8px 20px; font-size: 13px; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    padding: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1a2b4a 40%, #1e3a5f 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(32,114,243,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,196,167,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container { position: relative; z-index: 2; }

.hero-content { max-width: 720px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.15;
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 600px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--white);
    font-size: 22px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Stats Bar */
.stats-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-item .stat-value {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.4;
}

.stat-item .stat-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Section Styles */
.section { padding: 80px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-light { background: var(--bg-light); }
.section-blue { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); }
.section-blue h2, .section-blue h3 { color: var(--white); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
}

.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* Pillars / Three Columns */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pillar-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.pillar-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--white);
}

.pillar-body { padding: 28px; }
.pillar-body h3 { font-size: 20px; margin-bottom: 12px; }
.pillar-body p { font-size: 15px; color: var(--text-light); margin-bottom: 16px; }
.pillar-body ul { list-style: none; margin-bottom: 20px; }
.pillar-body ul li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
    padding-left: 20px;
    position: relative;
}
.pillar-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* Case Studies */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.case-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.case-card-header {
    padding: 28px;
    background: linear-gradient(135deg, var(--dark-blue), var(--navy));
    color: var(--white);
}

.case-industry {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.case-stat {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.case-stat-label { font-size: 14px; opacity: 0.85; }

.case-card-body { padding: 24px 28px; }
.case-card-body h3 { font-size: 18px; margin-bottom: 12px; }
.case-card-body p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }

/* Testimonials */
.testimonials-slider { position: relative; }

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-quote {
    font-size: 20px;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 24px;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 60px;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author { font-weight: 600; color: var(--dark); font-size: 16px; }
.testimonial-company { font-size: 14px; color: var(--text-light); }

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* Services Funnel */
.funnel-section { background: var(--bg-section); }

.funnel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.funnel-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.funnel-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.funnel-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary);
}

.funnel-card ul { list-style: none; }
.funnel-card ul li { margin-bottom: 8px; }
.funnel-card ul li a {
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.funnel-card ul li a::before {
    content: '→';
    color: var(--primary);
    font-weight: 700;
}
.funnel-card ul li a:hover { color: var(--primary); }

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.blog-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
}

.blog-card-body { padding: 24px; }
.blog-card-body h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }
.blog-card-body h3 a { color: var(--dark); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.blog-card-meta { font-size: 13px; color: var(--text-muted); }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1557c7 50%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    color: var(--white);
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding-top: 64px;
}

.footer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 48px;
}

.footer-stat { text-align: center; }
.footer-stat .value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    display: block;
}
.footer-stat .label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand p { font-size: 14px; line-height: 1.7; margin: 16px 0; }
.footer-brand .phone { font-size: 20px; font-weight: 700; color: var(--white); margin-top: 12px; }

.footer-col h4 {
    color: var(--white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 14px; }
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-social { display: flex; gap: 16px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 12px;
}

.page-header p { font-size: 18px; opacity: 0.8; max-width: 600px; margin: 0 auto; }

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* Service Page */
.service-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 60px 0;
}

.service-hero-content h1 { font-size: 40px; margin-bottom: 16px; }
.service-hero-content p { font-size: 17px; color: var(--text-light); margin-bottom: 24px; }

.service-hero-visual {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 15px;
}

.feature-item i { color: var(--secondary); font-size: 18px; }

.content-area { padding: 60px 0; }
.content-area h2 { font-size: 28px; margin: 32px 0 16px; }
.content-area h3 { font-size: 22px; margin: 24px 0 12px; }
.content-area p { margin-bottom: 16px; color: var(--text); }
.content-area ul { margin: 16px 0 16px 24px; }
.content-area ul li { margin-bottom: 8px; }

/* Services Listing */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 40px 0 60px;
}

.services-grid .service-card--has-media {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.services-grid .service-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.services-grid .service-card-body .btn {
    margin-top: auto;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 { font-size: 20px; margin-bottom: 12px; }
.service-card h3 a { color: var(--dark); }
.service-card h3 a:hover { color: var(--primary); }
.service-card p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.service-card .category {
    display: inline-block;
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(32,114,243,0.15);
}

textarea.form-control { min-height: 120px; resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Proposal Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 28px 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-header h2 { font-size: 24px; }
.modal-close {
    background: var(--bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: var(--transition);
}
.modal-close:hover { background: var(--border); }

.modal-body { padding: 24px 28px 28px; }

/* Proposal Modal — Premium */
.modal--proposal {
    max-width: 580px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 1px rgba(32, 114, 243, 0.06),
        0 24px 80px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: min(92vh, 820px);
}

.modal-proposal-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #00c4a7, var(--primary));
    background-size: 200% 100%;
    animation: proposalAccentShift 4s ease infinite;
}

@keyframes proposalAccentShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.modal--proposal .modal-header {
    padding: 28px 28px 0;
    position: relative;
    background: linear-gradient(180deg, rgba(32, 114, 243, 0.06) 0%, transparent 100%);
    flex-shrink: 0;
}

.modal--proposal .modal-header-content {
    flex: 1;
    padding-right: 12px;
}

.modal--proposal .modal-header h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin: 6px 0 8px;
    line-height: 1.2;
}

.modal--proposal .modal-badge {
    background: linear-gradient(135deg, rgba(32, 114, 243, 0.14), rgba(0, 196, 167, 0.12));
    border: 1px solid rgba(32, 114, 243, 0.2);
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
}

.modal--proposal .modal-desc {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-light);
    max-width: 420px;
}

.modal--proposal .modal-close {
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
}

.modal--proposal .modal-body {
    padding: 20px 28px 24px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.proposal-form-section {
    margin-bottom: 4px;
}

.proposal-form-section--location {
    background: linear-gradient(145deg, #f8fbff, #f1f6ff);
    border: 1px solid rgba(32, 114, 243, 0.12);
    border-radius: 16px;
    padding: 16px 18px 6px;
    margin: 16px 0 18px;
}

.proposal-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 12px;
}

.proposal-form .form-group {
    margin-bottom: 16px;
}

.proposal-form .form-group label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}

.proposal-form .form-group label i {
    width: 18px;
    color: var(--primary);
    font-size: 12px;
    opacity: 0.85;
}

.proposal-form .form-control {
    border-radius: 12px;
    border: 1.5px solid var(--border);
    padding: 12px 14px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.proposal-form .form-control:hover {
    border-color: #cbd5e1;
}

.proposal-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(32, 114, 243, 0.12);
    background: #fff;
}

.proposal-form textarea.form-control {
    min-height: 96px;
}

.proposal-select-wrap {
    position: relative;
}

.proposal-select-wrap .form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.proposal-select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--text-light);
    pointer-events: none;
}

.proposal-form-actions {
    margin-top: 12px;
    padding: 16px 0 8px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, #fff 24px);
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proposal-submit-btn {
    border-radius: 14px !important;
    padding: 15px 20px !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 24px rgba(32, 114, 243, 0.28) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    visibility: visible !important;
}

.proposal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(32, 114, 243, 0.35) !important;
}

.proposal-wa-btn {
    margin-top: 0 !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    visibility: visible !important;
    opacity: 1 !important;
    background: #25d366 !important;
    color: #fff !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28) !important;
}

.proposal-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35) !important;
    color: #fff !important;
}

.proposal-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin-top: 18px;
    padding-top: 4px;
}

.proposal-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
}

.proposal-trust-row span i {
    color: var(--primary);
    font-size: 11px;
}

@media (max-width: 576px) {
    .modal--proposal .modal-header,
    .modal--proposal .modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    .modal--proposal .modal-header h2 {
        font-size: 22px;
    }
    .proposal-form-section--location {
        padding: 14px 14px 4px;
    }
    .proposal-trust-row {
        gap: 8px 14px;
    }
}

/* Client Logos */
.logos-scroll {
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px 0;
    opacity: 0.6;
}

.logo-item {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-4px); }

/* Alert Messages */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}
.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text);
}
.pagination a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination .active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 60px 0;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-info-item .icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-item h4 { font-size: 16px; margin-bottom: 4px; }
.contact-info-item p { font-size: 15px; color: var(--text-light); }

.contact-form-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid, .stats-grid, .pillars-grid, .case-studies-grid,
    .funnel-grid, .blog-grid, .services-grid, .footer-grid, .footer-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .mega-menu { min-width: 500px; }
    .mega-menu-grid { grid-template-columns: repeat(2, 1fr); }
    .service-hero { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .menu-toggle { display: block; }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 24px;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .main-nav.active { left: 0; }
    .main-nav > li > a { padding: 14px 16px; }
    .mega-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: auto;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        display: none;
    }
    .main-nav > li.open .mega-menu { display: block; }
    .mega-menu-grid { grid-template-columns: 1fr; }
    
    .header-cta .btn-outline { display: none; }
    
    .features-grid, .stats-grid, .pillars-grid, .case-studies-grid,
    .funnel-grid, .blog-grid, .services-grid, .footer-grid, .footer-stats {
        grid-template-columns: 1fr;
    }
    
    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: 32px; }
    .features-grid { margin-top: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .features-list { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============================================
   UI ENHANCEMENTS v3
   ============================================ */

.site-header {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.nav-link--mega { position: relative; }

.nav-item-has-mega::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

.mega-menu {
    border-radius: 16px;
    padding: 28px 32px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.mega-col ul li a {
    border-radius: 6px;
    padding: 8px 10px;
    margin: 0 -10px;
    font-weight: 500;
}

.mega-col ul li a:hover {
    background: linear-gradient(90deg, rgba(32, 114, 243, 0.08), transparent);
    color: var(--primary);
    padding-left: 14px;
}

.btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(32, 114, 243, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(32, 114, 243, 0.35);
}

.btn-white {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #2072f3 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 196, 167, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(32, 114, 243, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.feature-card,
.service-card,
.case-study-card,
.blog-card,
.pillar-card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.feature-card:hover,
.service-card:hover,
.case-study-card:hover,
.blog-card:hover,
.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border-color: rgba(32, 114, 243, 0.2);
}

.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1a2b4a 50%, #2072f3 100%);
    position: relative;
    overflow: hidden;
}

.footer-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.footer-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.8;
}

.footer-stat-card--blue::before { background: linear-gradient(90deg, #2072f3, #60a5fa); }
.footer-stat-card--teal::before { background: linear-gradient(90deg, #00c4a7, #2dd4bf); }
.footer-stat-card--purple::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.footer-stat-card--gold::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.footer-stat-card--blue .footer-stat-icon { background: rgba(32,114,243,0.2); color: #60a5fa; }
.footer-stat-card--teal .footer-stat-icon { background: rgba(0,196,167,0.2); color: #2dd4bf; }
.footer-stat-card--purple .footer-stat-icon { background: rgba(124,58,237,0.2); color: #a78bfa; }
.footer-stat-card--gold .footer-stat-icon { background: rgba(245,158,11,0.2); color: #fbbf24; }

.footer-stat-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 16px rgba(32, 114, 243, 0.35);
}
