/* Enhanced CSS for Vijesha Digital Marketing - Fixed Version */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2f3396 0%, #3949ab 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
    color: white;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

/* Header */
header {
    background: #2f3396;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

header.scrolled {
    background: rgba(47, 51, 150, 0.95);
    backdrop-filter: blur(20px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: bold;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 50%;
    background: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 3px;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2f3396 0%, #3949ab 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero::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 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-spacing: 0.1em;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #2f3396;
    color: white;
    box-shadow: 0 4px 15px rgba(47, 51, 150, 0.4);
}

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

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #1e2578;
    box-shadow: 0 10px 25px rgba(47, 51, 150, 0.5);
}

.btn-secondary:hover {
    background: white;
    color: #2f3396;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 48px;
    width: 100%;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    width: 100%;
}

.stat-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Stats Animation Styles */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    will-change: transform; /* Optimize for animations */
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: transform, background; /* Optimize for animations */
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

/* Mobile specific stat optimizations */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
        will-change: auto; /* Reset will-change on mobile for better performance */
    }
    
    .stat-item {
        padding: 20px 16px;
        will-change: auto; /* Reset will-change on mobile for better performance */
    }
    
    .stat-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-item {
        padding: 16px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    color: rgba(255, 255, 255, 0.2);
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    animation-delay: -1s;
}

.floating-element:nth-child(2) {
    animation-delay: -2s;
}

.floating-element:nth-child(3) {
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Section Styles */
section {
    padding: 80px 0;
    width: 100%;
    overflow-x: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
    width: 100%;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    color: #2f3396;
    font-weight: 700;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #2f3396 0%, #3949ab 100%);
    border-radius: 2px;
}

.section-title p {
    font-size: 18px;
    color: #64748b;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: 0.1em;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* About Section */
.about {
    background: #f8fafc;
    width: 100%;
}

.vision-mission-section {
    max-width: 1000px;
    margin: 0 auto 64px auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.vision-card, .mission-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #2f3396;
    width: 100%;
}

.vision-card:hover, .mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(45deg, #2f3396, #3949ab);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(47, 51, 150, 0.3);
    flex-shrink: 0;
}

.card-header h3 {
    font-size: 24px;
    color: #2f3396;
    margin: 0;
    font-weight: 600;
}

.vision-card p, .mission-card p {
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: 0.08em;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* About Cards */
.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
    width: 100%;
}

.about-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid #2f3396;
    width: 100%;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.about-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #2f3396, #3949ab);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: white;
    box-shadow: 0 6px 18px rgba(47, 51, 150, 0.3);
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #2f3396;
    font-weight: 600;
}

.about-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 16px;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: 0.08em;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Services Section */
.services {
    background: #ffffff;
    width: 100%;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 64px;
    margin-bottom: 80px;
    position: relative;
    width: 100%;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 50%;
}

.service-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

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

.service-icon-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #2f3396, #3949ab);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(47, 51, 150, 0.3);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(47,51,150,0.1), rgba(57,73,171,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-image:hover .image-overlay {
    opacity: 1;
}

.service-content {
    flex: 1;
    padding: 32px 0;
    width: 100%;
    max-width: 50%;
}

.service-content h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #2f3396;
    font-weight: 700;
}

.service-content p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 32px;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: 0.08em;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: #475569;
    font-size: 16px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.1);
    transition: all 0.3s ease;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li:hover {
    color: #2f3396;
    transform: translateX(8px);
}

.service-features li i {
    color: #10b981;
    margin-right: 16px;
    font-size: 18px;
    width: 20px;
}

/* Process Section */
.process {
    background: white;
    width: 100%;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
    width: 100%;
}

.process-step {
    text-align: center;
    padding: 32px;
    transition: all 0.3s ease;
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    position: relative;
    width: 100%;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: white;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #2f3396, #3949ab);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 20px rgba(47, 51, 150, 0.3);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #2f3396, #3949ab);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.4);
}

.process-step h3 {
    margin-bottom: 16px;
    color: #2f3396;
    font-size: 20px;
    font-weight: 600;
}

.process-step p {
    color: #64748b;
    line-height: 1.6;
    font-size: 16px;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: 0.08em;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Results Section */
.results {
    padding: 80px 0;
    background: linear-gradient(135deg, #2f3396 0%, #3949ab 100%);
    color: white;
    width: 100%;
}

.results .section-title h2 {
    color: white;
}

.results .section-title h2::after {
    background: rgba(255, 255, 255, 0.5);
}

.results .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

.case-studies {
    margin-top: 64px;
    text-align: center;
    width: 100%;
}

.case-studies h3 {
    font-size: 2rem;
    margin-bottom: 32px;
    color: white;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 32px;
    width: 100%;
}

.case-study {
    background: rgba(255,255,255,0.1);
    padding: 32px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.case-study::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffffff, #ffffff);
}

.case-study:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.case-study-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: white;
    box-shadow: 0 6px 15px rgba(100, 181, 246, 0.4);
}

.case-study h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.case-study p {
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 16px;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: 0.08em;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.case-metrics {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.case-metrics span {
    background: rgba(100, 181, 246, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: #f8fafc;
    width: 100%;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    width: 100%;
}

.testimonial-card {
    background: white;
    padding: 48px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 32px 0;
    display: none;
    border-top: 4px solid #2f3396;
    width: 100%;
}

.testimonial-card.active {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.testimonial-quote {
    margin-bottom: 24px;
}

.testimonial-quote i {
    font-size: 3rem;
    color: #2f3396;
    opacity: 0.6;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #475569;
    font-style: italic;
    position: relative;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: 0.08em;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #2f3396, #3949ab);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 6px 15px rgba(47, 51, 150, 0.3);
    flex-shrink: 0;
}

.author-info {
    text-align: left;
}

.author-info h4 {
    color: #2f3396;
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 600;
}

.author-info p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.rating {
    display: flex;
    gap: 2px;
}

.rating i {
    color: #f59e0b;
    font-size: 14px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2f3396;
    transform: scale(1.2);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    width: 100%;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    width: 100%;
}

.lets-talk {
    padding: 48px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 4px solid #2f3396;
    width: 100%;
}

.lets-talk h2 {
    font-size: 2.5rem;
    color: #2f3396;
    margin-bottom: 32px;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f8fafc;
    transform: translateX(8px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, #2f3396, #3949ab);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(47, 51, 150, 0.3);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: #2f3396;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.contact-form {
    background: white;
    padding: 48px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 4px solid #ffffff;
    width: 100%;
}

/* Footer - Fixed for both desktop and mobile */
footer {
    background: #2f3396;
    color: white;
    padding: 60px 0 20px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
    width: 100%;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: white;
    font-size: 22px;
    font-weight: 600;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #ffffff;
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.social-link:hover {
    background: #ffffff;
    color: #2f3396;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(100, 181, 246, 0.4);
}

.footer-contact-details p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    text-align: left;
}

.footer-contact-details i {
    width: 20px;
    color: #ffffff;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    text-align: center;
    opacity: 0.8;
    font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(45deg, #2f3396, #3949ab);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(47, 51, 150, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(47, 51, 150, 0.5);
}

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

/* Mobile Responsive Design */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: #2f3396;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 32px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin-bottom: 24px;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 18px;
        padding: 16px;
        display: block;
        border-radius: 8px;
        margin: 0 16px;
    }

    .mobile-menu {
        display: flex;
    }

    /* Mobile Hero */
    .hero {
        padding: 100px 0 60px;
        min-height: 80vh;
    }

    .hero-content {
        padding: 0 20px;
        margin-top: 30px;

    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 20px;
        text-align: center;
        max-width: 100%;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 28px;
        padding: 0 8px;
        text-align: left;
        line-height: 1.5;
        max-width: 100%;
        word-spacing: 0.05em;
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 36px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 28px;
        font-size: 16px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 36px;
    }

    .stat-item {
        padding: 20px 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 13px;
    }

    /* Mobile Sections */
    section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 48px;
    }

    .section-title h2 {
        font-size: clamp(1.8rem, 6vw, 2.25rem);
        margin: 16px;
    }

    .section-title p {
        font-size: 16px;
        text-align: left;
        word-spacing: 0.05em;
        padding: 0 8px;
    }

    /* Mobile About */
    .vision-mission-section {
        gap: 28px;
        margin-bottom: 48px;
    }

    .vision-card, .mission-card {
        padding: 28px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .card-icon {
        margin-right: 0;
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    .card-header h3 {
        font-size: 20px;
    }

    .vision-card p, .mission-card p {
        font-size: 15px;
        text-align: left;
        word-spacing: 0.05em;
    }

    .about-cards-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-card {
        padding: 28px;
    }

    .about-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 20px;
    }

    .about-card h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .about-card p {
        font-size: 15px;
        text-align: left;
        word-spacing: 0.05em;
    }

    /* Mobile Services */
    .service-row,
    .service-row.reverse {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 60px;
        text-align: center;
    }

    .service-image {
        order: -1;
        max-width: 100%;
        width: 100%;
    }

    .service-image img {
        height: 250px;
    }

    .service-icon-overlay {
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .service-content {
        padding: 0;
        text-align: left;
        max-width: 100%;
        width: 100%;
    }

    .service-content h3 {
        font-size: 1.75rem;
        margin-bottom: 20px;
        text-align: center;
    }

    .service-content p {
        font-size: 15px;
        margin-bottom: 28px;
        text-align: left;
        word-spacing: 0.05em;
        padding: 0 8px;
    }

    .service-features li {
        padding: 12px 8px;
        font-size: 15px;
    }

    /* Mobile Process */
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .process-step {
        padding: 28px;
    }

    .step-icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
        margin-bottom: 16px;
    }

    .step-number {
        top: -12px;
        right: -12px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .process-step h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .process-step p {
        font-size: 15px;
        text-align: left;
        word-spacing: 0.05em;
    }

    /* Mobile Results */
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .case-study {
        padding: 28px;
        text-align: center;
    }

    .case-study-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin: 0 auto 20px;
    }

    .case-study h4 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .case-study p {
        font-size: 15px;
        margin-bottom: 20px;
        text-align: left;
        word-spacing: 0.05em;
    }

    /* Mobile Testimonials */
    .testimonial-card {
        padding: 28px;
        margin: 20px 0;
    }

    .testimonial-text {
        font-size: 16px;
        margin-bottom: 28px;
        text-align: left;
        word-spacing: 0.05em;
    }

    .testimonial-author {
        flex-direction: column;
        gap: 16px;
    }

    .author-info {
        text-align: center;
    }

    /* Mobile Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .lets-talk,
    .contact-form {
        padding: 28px;
    }

    .lets-talk h2 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 28px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px;
    }

    .contact-item:hover {
        transform: translateY(-4px);
    }

    .contact-details {
        align-items: center;
    }

    /* Mobile Footer - Fixed alignment and font sizes */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 32px;
    }

    .footer-section {
        text-align: left !important;
    }

    .footer-section h3 {
        font-size: 20px;
        margin-bottom: 16px;
        text-align: left;
    }

    .footer-section h4 {
        font-size: 17px;
        margin-bottom: 16px;
        text-align: left;
    }

    .footer-section p {
        font-size: 15px;
        text-align: left !important;
        line-height: 1.5;
        margin-bottom: 16px;
    }

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

    .footer-section ul li a {
        font-size: 14px;
        text-align: left;
    }

    .footer-contact-details p {
        font-size: 14px;
        text-align: left !important;
        justify-content: flex-start;
        gap: 10px;
    }

    .social-links {
        justify-content: flex-start;
        margin-top: 16px;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }

    .footer-bottom {
        text-align: center;
        font-size: 13px;
        padding-top: 24px;
    }

    /* Mobile Floating Elements */
    .floating-elements {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .hero-content {
        padding: 0 16px;
        margin-top: 30px;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.4;
        padding: 0 12px;
        margin-bottom: 24px;
        word-spacing: 0.03em;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-item {
        padding: 16px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 12px;
    }

    section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .section-title p {
        font-size: 15px;
        padding: 0 12px;
    }

    .vision-card, .mission-card,
    .about-card,
    .process-step,
    .case-study,
    .testimonial-card,
    .lets-talk,
    .contact-form {
        padding: 20px;
    }

    .service-image img {
        height: 200px;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }

    .service-content p {
        font-size: 14px;
        padding: 0 12px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 15px;
    }

    /* Extra small mobile footer fixes */
    .footer-section h3 {
        font-size: 18px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-section p {
        font-size: 14px;
    }

    .footer-section ul li a {
        font-size: 13px;
    }

    .footer-contact-details p {
        font-size: 13px;
    }
}

/* Selection styles */
::selection {
    background: #2f3396;
    color: white;
}

::-moz-selection {
    background: #2f3396;
    color: white;
}
/* Default height for larger screens (website view) */
.airtable-embed {
    height: 530px !important; /* Override inline style, ensure this is in your CSS file */
    /* Add any other default styles here if they are not already */
    display: block; /* iframe is inline by default, block helps with centering and responsiveness */
    margin: 0 auto; /* Optional: if you want to center the iframe horizontally */
}

/* Media query for mobile view (e.g., screens up to 768px wide) */
@media (max-width: 768px) {
    .airtable-embed {
        height: 630px !important; /* Increase height for mobile view */
    }
}

/* You might want another breakpoint for very small phones if needed */
@media (max-width: 480px) {
    .airtable-embed {
        height: 730px !important; /* Even larger for very small screens if content needs more space */
    }
}

/* Complete Mobile Menu and Contact Fixes */

/* Remove blue highlight/tap color globally */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for content areas */
p, span, div, h1, h2, h3, h4, h5, h6, li {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Phone number and email link fixes */
a[href^="tel:"], 
a[href^="mailto:"] {
    color: inherit !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

a[href^="tel:"]:hover, 
a[href^="tel:"]:focus, 
a[href^="tel:"]:active,
a[href^="mailto:"]:hover, 
a[href^="mailto:"]:focus, 
a[href^="mailto:"]:active {
    color: inherit !important;
    background: none !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Contact section phone/email styling */
.contact-item a,
.footer-contact-details a {
    color: inherit !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.contact-item a:hover,
.contact-item a:focus,
.contact-item a:active,
.footer-contact-details a:hover,
.footer-contact-details a:focus,
.footer-contact-details a:active {
    color: inherit !important;
    background: none !important;
    outline: none !important;
}

/* Mobile Header Fixes */
@media (max-width: 768px) {
    /* Compact header */
    header {
        padding: 0.5rem 0; /* Further reduced */
        min-height: 55px; /* Smaller height */
    }
    
    nav {
        padding: 0 20px;
        height: 55px; /* Match header */
        align-items: center;
    }
    
    .logo {
        font-size: 1rem; /* Smaller logo text */
        gap: 6px;
    }
    
    .logo-img {
        height: 32px; /* Much smaller logo */
        width: auto;
    }
    
    /* Very compact mobile menu */
    .mobile-menu {
        display: flex;
        cursor: pointer;
        flex-direction: column;
        gap: 1px; /* Minimal gap */
        padding: 3px; /* Minimal padding */
        border-radius: 3px;
        transition: background 0.3s ease;
        position: relative;
        z-index: 1001;
        width: 18px; /* Fixed small width */
        height: 12px; /* Fixed small height */
    }
    
    .mobile-menu span {
        width: 18px; /* Small width */
        height: 1.5px; /* Very thin lines */
        background: white;
        transition: 0.3s;
        border-radius: 1px;
    }
    
    /* Mobile navigation adjustments */
    .nav-links {
        position: fixed;
        top: 55px; /* Match smaller header */
        left: 0;
        width: 100%;
    
        height: calc(100vh - 55px);
        background: #2f3396;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 15px 0 15px 0; /* Reduced top and bottom padding */
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        margin-bottom: 8px; /* Much smaller spacing */
        width: 85%;
        text-align: center;
    }
    
    .nav-links a {
        font-size: 15px;
        padding: 8px 16px; /* Reduced padding */
        display: block;
        border-radius: 5px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Hero section with smaller header */
    .hero {
        padding: 70px 0 40px; /* Adjusted for smaller header */
        min-height: 70vh;
    }
    
    .hero-content {
        padding: 0 16px;
        margin-top: 0; /* Remove extra margin */
    }
    
    /* Section adjustments */
    section {
        scroll-margin-top: 65px; /* Account for smaller header */
        padding: 45px 0; /* Reduced padding */
    }
    
    .section-title {
        margin-bottom: 35px; /* Reduced margin */
    }
    
    /* Contact section fixes */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 8px; /* Reduced gap */
        padding: 15px; /* Reduced padding */
    }
    
    .contact-item span,
    .contact-value {
        color: #2f3396 !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    /* Footer contact details */
    .footer-contact-details p {
        font-size: 14px;
        text-align: left !important;
        justify-content: flex-start;
        gap: 8px; /* Reduced gap */
        margin-bottom: 8px; /* Reduced margin */
    }
}

/* Extra small mobile (480px and below) */
@media (max-width: 480px) {
    header {
        padding: 0.4rem 0;
        min-height: 50px; /* Even smaller */
    }
    
    nav {
        height: 50px;
        padding: 0 16px;
    }
    
    .logo {
        font-size: 0.9rem;
        gap: 4px;
    }
    
    .logo-img {
        height: 28px; /* Very small logo */
    }
    
    /* Ultra-compact mobile menu */
    .mobile-menu {
        padding: 2px;
        width: 16px;
        height: 10px;
    }
    
    .mobile-menu span {
        width: 16px;
        height: 1px; /* Ultra-thin lines */
    }
    
    .nav-links {
        top: 50px;
        height: calc(100vh - 50px);
        padding: 12px 0 12px 0; /* Minimal padding */
    }
    
    .nav-links li {
        margin-bottom: 6px; /* Minimal spacing */
        width: 80%;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 6px 12px; /* Minimal padding */
    }
    
    .hero {
        padding: 65px 0 35px;
        min-height: 65vh;
    }
    
    section {
        scroll-margin-top: 60px;
        padding: 35px 0; /* Reduced padding */
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .container {
        padding: 0 14px; /* Reduced container padding */
    }
}

/* Scroll behavior fixes */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 65px;
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 60px;
    }
}

/* Prevent any blue highlighting on mobile */
input, textarea, button, select, a {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    outline: none;
}

/* Form elements should still be selectable */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}


/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* ... (your existing rules for html, body, container) ... */
    
    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 45px; /* Aligns with your header height for this breakpoint */
        left: auto; /* Remove left positioning */
        right: 0; /* Position it on the right side */
        width: 50vw; /* This makes it exactly half the screen width */
        max-height: 40vh; /* Keeps it roughly half screen vertically */
        overflow-y: auto; /* Adds scrollbar if content overflows */
        
        /* height: calc(100vh - 55px); */ /* Removed as it conflicts with max-height */
        
        background: #2f3396; /* Your current background color */
        flex-direction: column;
        justify-content: flex-start;
        align-items: center; /* Keeps menu items centered horizontally within the menu's new width */
        padding: 15px 0; /* Reduced top/bottom padding */
        transform: translateX(100%); /* Changed to slide from the right */
        transition: transform 0.3s ease;
        z-index: 999;

        /* --- BEAUTIFYING ADDITIONS --- */
        border-bottom-left-radius: 12px; /* Rounded bottom-left corner */
        border-bottom-right-radius: 12px; /* Rounded bottom-right corner */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
        /* --- END BEAUTIFYING ADDITIONS --- */
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin-bottom: 8px; /* Consistent spacing */
        width: 85%; /* Keep your item width, now relative to 50vw */
        text-align: center; /* Keeps text centered within each list item */
    }

    .nav-links a {
        font-size: 15px;
        padding: 8px 16px; /* Reduced padding for links */
        display: block;
        border-radius: 5px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
        color: #ffffff; /* Ensure text color is white for contrast on blue background */
        text-decoration: none; /* Remove underline */
        transition: background-color 0.2s ease; /* Smooth hover effect */
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1); /* Light background on hover */
    }

    /* ... (rest of your @media (max-width: 768px) rules) ... */
}

/* Extra small mobile (480px and below) */
@media (max-width: 480px) {
    /* ... (your existing header, nav, logo, mobile-menu rules) ... */
    
    .nav-links {
        top: 48px; /* Aligns with your header height for this breakpoint */
        left: auto; /* Remove left positioning */
        right: 0; /* Position it on the right side */
        width: 50vw; /* This makes it exactly half the screen width */
        max-height: 45vh; /* Keep consistent with larger mobile breakpoint */
        overflow-y: auto; /* Keep consistent */

        /* height: calc(100vh - 50px); */ /* Removed */

        padding: 12px 0; /* Minimal top/bottom padding */
        /* Beautifying styles inherited from 768px, no need to repeat unless overridden */
    }
    
    .nav-links li {
        margin-bottom: 6px; /* Minimal spacing */
        width: 80%; /* Keep your item width, now relative to 50vw */
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 6px 12px; /* Minimal padding */
    }
    
    /* ... (rest of your @media (max-width: 480px) rules) ... */
}