:root {
    --primary-color: #1b3a57;
    --secondary-color: #3498db;
    --accent-color: #2ecc71;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: #f4f7fa;
    color: #222;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Header/Navbar */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    margin-left: 15px;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
    border-bottom: 2px solid var(--secondary-color);
    background: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(120deg, rgba(27,58,87,0.92) 60%, rgba(52,152,219,0.85) 100%), url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 200px 0 120px 0;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 8px 32px rgba(27,58,87,0.15);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 1.5px 0 rgba(27,58,87,0.10);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 1.5px 0 rgba(27,58,87,0.10);
}

.btn-primary {
    background: linear-gradient(90deg, #3498db 60%, #2ecc71 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 30px;
    padding: 14px 36px;
    font-size: 1.1rem;
    box-shadow: 0 2px 12px rgba(52,152,219,0.15);
    transition: all 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #2ecc71 60%, #3498db 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(46,204,113,0.18);
}

/* Section Common */
section {
    padding: 80px 0 60px 0;
    background: #fff;
    border-radius: 18px;
    margin-bottom: 40px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.04);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: #4a6fa1;
    font-size: 1.2rem;
}

/* About Section */
.about-img {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(52,152,219,0.15);
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    padding: 15px;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-content h3 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
}

/* Services Section */
.services {
    background-color: var(--light-bg);
}

.service-card, .cloud-edge .service-card {
    background-color: #fff;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 6px 32px rgba(52,152,219,0.13), 0 1.5px 0 rgba(27,58,87,0.04);
    border: 1.5px solid #e1eaf4;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.service-card:hover, .cloud-edge .service-card:hover {
    box-shadow: 0 16px 48px rgba(52,152,219,0.22), 0 2.5px 0 rgba(27,58,87,0.08);
    transform: translateY(-8px) scale(1.025);
    border-color: var(--secondary-color);
}

.service-img {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.1));
    z-index: 1;
    pointer-events: none;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    filter: brightness(0.95);
    padding: 10px;
}

.service-card:hover .service-img img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* Specific Service Image Adjustments */
.service-card:nth-child(1) .service-img img { /* Level-2 Automation */
    object-position: center 30%;
}

.service-card:nth-child(2) .service-img img { /* Industrial IoT */
    object-position: center 40%;
}

.service-card:nth-child(3) .service-img img { /* Healthcare Management */
    object-position: center 35%;
}

.service-card:nth-child(4) .service-img img { /* MES/ERP */
    object-position: center 45%;
}

.service-card:nth-child(5) .service-img img { /* Custom Solutions */
    object-position: center 40%;
}

.service-card:nth-child(6) .service-img img { /* Production Dashboard */
    object-position: center 35%;
}

.service-card:nth-child(7) .service-img img { /* Mobile Application */
    object-position: center 40%;
}

.service-content {
    padding: 25px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-content h3 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.service-content p {
    color: #4a6fa1;
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Ensure consistent card heights */
.services .row {
    display: flex;
    flex-wrap: wrap;
}

.services .col-md-4 {
    display: flex;
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .service-img {
        height: 200px;
    }
    
    .about-img,
    .product-img {
        height: 280px;
    }
}

@media (max-width: 992px) {
    .service-img {
        height: 180px;
    }
    
    .about-img,
    .product-img {
        height: 250px;
    }
    
    .logo-svg {
        width: 50px;
        height: 50px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .service-img {
        height: 160px;
    }
    
    .about-img,
    .product-img {
        height: 220px;
    }
    
    .cloud-edge .service-img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .service-img {
        height: 140px;
    }
    
    .about-img,
    .product-img {
        height: 180px;
    }
    
    .cloud-edge .service-img {
        height: 160px;
    }
    
    .logo-svg {
        width: 40px;
        height: 40px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

.service-link {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--primary-color);
}

.service-link i {
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.service-link:hover i {
    margin-left: 8px;
}

/* Products Section */
.product-img {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(52,152,219,0.15);
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    padding: 15px;
}

.product-img:hover img {
    transform: scale(1.05);
}

.trademark {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.trademark span {
    color: var(--secondary-color);
}

/* Contact Section */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(52,152,219,0.08);
}

.form-control {
    border-radius: 5px;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

.form-label {
    color: #495057;
    font-weight: 600;
}

textarea.form-control {
    min-height: 150px;
}

.btn-submit {
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(120deg, #1b3a57 60%, #3498db 100%);
    color: #fff;
    padding: 70px 0 30px;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -4px 32px rgba(27,58,87,0.10);
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #eaf6fb;
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    background: #3498db;
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background 0.2s, transform 0.2s;
}

.social-links a:hover {
    background: #2ecc71;
    transform: translateY(-2px) scale(1.08);
}

.footer-bottom {
    text-align: center;
    padding-top: 18px;
    margin-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 1rem;
    color: #eaf6fb;
}

/* Custom Logo */
.logo-svg {
    width: 180px;
    height: 50px;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.logo-svg:hover {
    transform: scale(1.05);
}

/* Animation Delays */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* MES/ERP and Custom Solutions visuals */
.mes-erp-img, .custom-solutions-img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(52,152,219,0.10);
    margin-bottom: 24px;
}

.cloud-edge {
    background: linear-gradient(120deg, #eaf6fb 60%, #f8f9fa 100%);
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(52,152,219,0.08);
}

.cloud-edge .service-card {
    background: #f4f7fa;
    border: 1px solid #e1eaf4;
}

.cloud-edge .service-content h3 {
    color: #3498db;
}

/* Cloud & Edge section image sizing */
.cloud-edge .service-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloud-edge .service-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: brightness(0.9);
    padding: 10px;
}

.cloud-edge .service-card:hover .service-img img {
    filter: brightness(1);
}

/* Image Optimization and Styling */
img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
    object-fit: cover;
}

/* Solutions Section Grid and Card Styles */
.solutions .row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.solution-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(52,152,219,0.13), 0 1.5px 0 rgba(27,58,87,0.04);
    border: 1.5px solid #e1eaf4;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 0;
}

.solution-card:hover {
    box-shadow: 0 16px 48px rgba(52,152,219,0.22), 0 2.5px 0 rgba(27,58,87,0.08);
    transform: translateY(-8px) scale(1.025);
    border-color: var(--secondary-color);
}

.solution-img {
    width: 100%;
    height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e1eaf4;
    overflow: hidden;
}

.solution-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.4s;
}

.solution-card:hover .solution-img img {
    transform: scale(1.07);
}

.solution-body {
    padding: 28px 22px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.solution-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.2px;
}

.solution-body p {
    color: #4a6fa1;
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

.solution-meta {
    font-size: 0.98rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.solution-link {
    margin-top: auto;
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.05rem;
}

.solution-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .solution-img {
        height: 150px;
    }
}
@media (max-width: 992px) {
    .solution-img {
        height: 120px;
    }
    .solution-body {
        padding: 18px 12px 16px 12px;
    }
}
@media (max-width: 768px) {
    .solution-img {
        height: 100px;
    }
    .solution-body h3 {
        font-size: 1.1rem;
    }
}
@media (max-width: 576px) {
    .solution-img {
        height: 80px;
    }
    .solution-body {
        padding: 10px 6px 10px 6px;
    }
}
