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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #1a365d;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1f4f7f 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(31, 79, 127, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(31, 79, 127, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #1f4f7f;
    border: 2px solid #1f4f7f;
}

.btn-secondary:hover {
    background: #1f4f7f;
    color: white;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1f4f7f;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #64748b;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1f4f7f;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1f4f7f;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #1f4f7f;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: white;
    overflow: hidden;
    padding-top: 130px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/background-pattern.svg') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 0;
    width: 100%;
}

.hero-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1a365d 0%, #1f4f7f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.hero-img {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Company Overview */
.company-overview {
    padding: 3rem 0;
    background: white;
}

/* Spacer Section */
.spacer-section {
    padding: 50px 0;
    background: white;
}

/* Remove background and padding from company-overview in SPA mode */
.spa-mode .company-overview {
    background: white;
    padding: 0.5rem 0 0.5rem 0;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
}

.overview-lead {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1f4f7f;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.overview-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.overview-image img {
    width: 120%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* Quick Actions */
.quick-actions {
    padding: 2.5rem 0;
    background: darkgray;
}

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

.quick-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.quick-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.quick-primary { border-left: 4px solid #3b82f6; }
.quick-secondary { border-left: 4px solid #10b981; }
.quick-tertiary { border-left: 4px solid #f59e0b; }
.quick-quaternary { border-left: 4px solid #ef4444; }

.quick-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.quick-primary .quick-icon { background: #3b82f6; }
.quick-secondary .quick-icon { background: #10b981; }
.quick-tertiary .quick-icon { background: #f59e0b; }
.quick-quaternary .quick-icon { background: #ef4444; }

.quick-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1a365d;
}

.quick-item p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Section Styles */
section {
    padding: 2.5rem 0;
}

/* Override section padding in SPA mode for tighter layout */
body.spa-mode section {
    padding: 0.5rem 0;
}

body.spa-mode .hero {
    padding: 0;
}

body.spa-mode .company-overview {
    padding: 0.5rem 0;
    margin: 0;
}


body.spa-mode .services {
    padding: 0.5rem 0;
    margin: 0;
}

body.spa-mode .quick-actions {
    padding: 0.5rem 0;
    margin: 0;
}

/* Single Page Application Styles */
.page-section {
    display: none !important;
    padding-top: 80px;
    padding-bottom: 0;
}

.page-section.active {
    display: block !important;
}

/* Ensure no scrolling in SPA mode */
body.spa-mode {
    overflow-x: hidden;
}

/* Hide individual sections when in SPA mode */
.spa-mode .page-section:not(.active) {
    display: none !important;
    visibility: hidden;
}

/* Optimize spacing for SPA mode */
.spa-mode .page-section {
    padding-top: 80px;
    padding-bottom: 0;
}

/* Reduce top padding for services page since it has no hero */
.spa-mode #services.page-section {
    padding-top: 90px;
}

.spa-mode .page-section section {
    padding: 1rem 0;
}

.spa-mode .page-section section:first-child {
    padding-top: 0;
}

.spa-mode .page-section section:last-child {
    padding-bottom: 0;
}

/* Reduce gaps between service cards and featured content */
.spa-mode .services-grid {
    gap: 1.5rem;
}

.spa-mode .featured-grid {
    gap: 2rem;
}

.spa-mode .industries-grid {
    gap: 1.5rem;
}

.spa-mode .reasons-grid {
    gap: 1.5rem;
}

.spa-mode .section-header {
    margin-bottom: 1.5rem;
}

/* Remove excessive spacing at bottom of page sections */
.spa-mode .page-section .container:last-child {
    padding-bottom: 0;
}

/* Tighter spacing for specific sections in SPA mode */
.spa-mode .industries,
.spa-mode .why-choose-us,
.spa-mode .services,
.spa-mode .faq,
.spa-mode .contact {
    padding: 0.5rem 0;
    margin: 0;
}


.spa-mode .section-header {
    margin-bottom: 1rem;
    margin-top: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a365d;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: #f8fafc;
    padding: 4rem 0 6rem 0;
    margin: 0;
}

/* Consistent background in SPA mode */
.spa-mode .services {
    background: #f8fafc;
    padding: 4rem 0 6rem 0;
    margin: 0;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e6f3ff 0%, #bfdbfe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #1f4f7f;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a365d;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Why Choose Us Section */
.why-choose-us {
    background: white;
}

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

.reason-card {
    padding: 2rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.reason-number {
    font-size: 3rem;
    font-weight: 800;
    color: #1f4f7f;
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    right: 1rem;
    line-height: 1;
}

.reason-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a365d;
    position: relative;
    z-index: 2;
}

.reason-card p {
    color: #64748b;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}



.featured-card {
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.featured-content {
    padding: 2rem;
}

.featured-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a365d;
}

.featured-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-content ul {
    list-style: none;
    padding: 0;
}

.featured-content li {
    color: #64748b;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.featured-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Industries Section */
.industries {
    background: #f8fafc;
}

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

.industry-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.industry-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #f59e0b;
    margin-bottom: 1.5rem;
}

.industry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a365d;
}

.industry-card p {
    color: #64748b;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    background: white;
    padding: 2.5rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e2e8f0;
}

.faq-question h3 {
    font-size: 1.125rem;
    color: #1a365d;
    margin: 0;
}

.faq-question i {
    color: #64748b;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 1.5rem 2rem;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e6f3ff 0%, #bfdbfe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #1f4f7f;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #1a365d;
}

.contact-details p {
    margin: 0;
    color: #64748b;
}

.contact-details a {
    color: #1f4f7f;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.consultation-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.consultation-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a365d;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1f4f7f;
    box-shadow: 0 0 0 3px rgba(31, 79, 127, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: #1a365d;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
}

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

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

.footer-links a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

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

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

.footer-contact i {
    width: 16px;
    color: #64748b;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #94a3b8;
    margin: 0;
}

.footer-links-bottom {
    display: flex;
    gap: 1rem;
}

.footer-links-bottom a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1f4f7f 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 79, 127, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Mobile: Ensure images are consistent size and order */
    .overview-image {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .overview-image img {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .hero-image img {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .nav-container {
        padding: 1rem 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Tighter paragraph spacing for mobile */
    p {
        margin-bottom: 0.4rem;
    }
    
    .service-card p,
    .reason-card p,
    .industry-card p {
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        font-size: 0.9rem;
        padding: 10px 18px;
    }
    
    .quick-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .industry-card,
    .reason-card {
        padding: 1.5rem;
    }
    
    .consultation-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Very tight paragraph spacing for small screens */
    p {
        margin-bottom: 0.3rem;
    }
    
    .service-card p,
    .reason-card p,
    .industry-card p {
        margin-bottom: 0.3rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* Mobile optimization for hero sections */
    .industries-hero-text .section-title {
        font-size: 1.75rem;
    }
    
    .industries-hero-text .section-subtitle {
        font-size: 0.9rem;
    }
    
    .industries-stats {
        gap: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .reason-text h3 {
        font-size: 1.35rem;
    }
    
    .reason-text p {
        font-size: 0.95rem;
    }
    
    .reason-features li {
        font-size: 0.9rem;
    }
    
    .industry-showcase-text h3 {
        font-size: 1.35rem;
    }
    
    .industries-hero-image img,
    .reason-image img,
    .industry-showcase-image img {
        height: 200px;
        width: 100%;
        object-fit: cover;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .overview-text h2 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.slide-in-left.show {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.slide-in-right.show {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1f4f7f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #1f4f7f;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-title {
        -webkit-text-fill-color: #1a365d;
        background: none;
    }
    
    .btn-primary {
        background: #1a365d;
        border: 2px solid #1a365d;
    }
    
    .btn-secondary {
        background: white;
        color: #1a365d;
        border: 2px solid #1a365d;
    }
}
/* Services Hero Section */
.services-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 0 0.5rem 0;
    margin-bottom: 0rem;
}

.services-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.services-hero-text {
    padding-right: 1rem;
}

.services-hero-text .section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
}

.services-hero-text .section-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.services-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #1a365d;
}

.highlight-item i {
    color: #3b82f6;
    font-size: 1.1rem;
}

.services-hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.services-hero-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
}

/* Enhanced Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #64748b;
    font-size: 0.9rem;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Digital Solutions Showcase */
.digital-solutions-showcase {
    background: white;
    padding: 3rem 0 2rem 0;
    margin-top: 2rem;
    border-radius: 16px;
}

.showcase-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.showcase-header h2 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.showcase-header p {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
}

.solutions-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.solution-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem;
    border-radius: 16px;
    background: #f8fafc;
}

.solution-item.reverse {
    direction: rtl;
}

.solution-item.reverse .solution-content {
    direction: ltr;
}

.solution-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

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

.solution-content {
    padding: 1rem;
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.solution-icon i {
    font-size: 1.5rem;
    color: white;
}

.solution-content h3 {
    font-size: 1.75rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.solution-content p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.solution-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
    font-size: 0.95rem;
}

.solution-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .services-hero-text {
        padding-right: 0;
    }
    
    .services-hero-text .section-title {
        font-size: 2.5rem;
    }
    
    .services-hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-highlights {
        justify-content: center;
        align-items: center;
    }
    
    .solution-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .solution-item.reverse {
        direction: ltr;
    }
    
    .showcase-header h2 {
        font-size: 2rem;
    }
    
    .digital-solutions-showcase {
        padding: 3rem 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .services-hero-text {
        padding-right: 0;
    }
    
    .services-hero-text .section-title {
        font-size: 2.5rem;
    }
    
    .services-hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-highlights {
        justify-content: center;
        align-items: center;
    }
}

/* Enhanced Why Choose Us Section */
.why-choose-us {
    padding: 4rem 0 6rem 0;
    background: #f8fafc;
}

.reason-section {
    margin: 4rem 0;
    padding: 3rem 2rem;
}

.reason-section:nth-child(even) {
    background: white;
    margin-left: 0;
    margin-right: 0;
    padding-left: 3rem;
    padding-right: 3rem;
    border-radius: 20px;
}

.reason-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.reason-section.reverse .reason-content {
    direction: rtl;
}

.reason-section.reverse .reason-text {
    direction: ltr;
}

.reason-text {
    padding: 1rem;
}

.reason-number {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.reason-text h3 {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.reason-text p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.reason-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #475569;
    font-size: 1rem;
    line-height: 1.4;
}

.reason-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2rem;
}

.reason-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.reason-image:hover {
    transform: scale(1.02);
}

.reason-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reason-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .reason-section.reverse .reason-content {
        direction: ltr;
    }
    
    /* Mobile: Always show image first, then text */
    .reason-image {
        order: -1;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 1.5rem auto;
    }
    
    .reason-image img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }
    
    .reason-section:nth-child(even) {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .reason-text h3 {
        font-size: 1.75rem;
    }
}

/* Enhanced Industries Section */
.industries {
    background: #f8fafc;
}

.industries-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2563eb 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.industries-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.industries-hero-text .section-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.industries-hero-text .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.industries-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #60a5fa;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

.industries-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Industries Showcase */
.industries-showcase {
    padding: 2rem 0;
}

.industry-showcase {
    margin: 4rem 0;
    padding: 3rem 0;
}

.industry-showcase:nth-child(even) {
    background: white;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.industry-showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.industry-showcase.reverse .industry-showcase-content {
    direction: rtl;
}

.industry-showcase.reverse .industry-showcase-text {
    direction: ltr;
}

.industry-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
}

.industry-icon-large i {
    font-size: 2rem;
    color: white;
}

.industry-showcase-text h3 {
    font-size: 2.25rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.industry-showcase-text p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.industry-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #475569;
    font-size: 1rem;
    line-height: 1.4;
}

.industry-features li::before {
    content: "⚙";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-size: 1.1rem;
}

.industry-showcase-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.industry-showcase-image:hover {
    transform: scale(1.02);
}

.industry-showcase-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .industries-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    /* Mobile: Image first, then text */
    .industries-hero-image {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .industries-hero-image img {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }
    
    .industries-hero {
        padding: 3rem 0;
        margin-bottom: 2rem;
    }
    
    .industries-hero-text .section-title {
        font-size: 2rem;
    }
    
    .industries-hero-text .section-subtitle {
        font-size: 1rem;
    }
    
    .industries-stats {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .industry-showcase-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .industry-showcase.reverse .industry-showcase-content {
        direction: ltr;
    }
    
    /* Mobile: Always show image first */
    .industry-showcase-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto 1.5rem auto;
    }
    
    .industry-showcase-image img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }
    
    .industry-showcase:nth-child(even) {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .industry-showcase-text h3 {
        font-size: 1.5rem;
    }
    
    /* Better reason section mobile styling */
    .reason-section {
        margin: 2rem 0;
        padding: 2rem 1rem;
    }
    
    .reason-text h3 {
        font-size: 1.5rem;
    }
    
    .reason-text p {
        font-size: 1rem;
    }
    
    .reason-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto 1rem auto;
    }
    
    .reason-features li {
        font-size: 0.95rem;
        padding-left: 1.5rem;
    }
    
    .reason-image img {
        height: 250px;
    }
}
