/* Reusable components: heroes, cards, services, projects, clients, contact. */

/* Compact shared section refinements */

/* tighten section headers globally for better vertical rhythm */
.section-header {
  margin-bottom: 2rem; /* was 4rem */
}
.section-header :is(h1, h2) {
  margin-bottom: 0.75rem; /* smaller gap under title */
}
.section-header p {
  margin-bottom: 0.5rem;
}

/* About area — reduce large paddings */
.about-hero {
  padding: 2rem 0; /* was 4rem 0 */
}
.about-main {
  padding: 2rem 0; /* was 4rem 0 */
}

/* Intro paragraph block */
.about-intro {
  max-width: 720px;      /* slightly narrower */
  margin: 0 auto 1.5rem; /* reduce bottom gap (was 4rem) */
  padding: 0 12px;       /* small horizontal padding for narrow screens */
}
.about-intro h3 {
  margin-bottom: 1rem; /* reduce gap */
  font-size: 1.9rem;   /* keep prominent but slightly smaller */
}
.about-intro p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Feature cards and grid — reduce internal spacing */
.about-features {
  gap: 1rem; /* was 2rem */
  margin-bottom: 1.5rem;
}
.feature-card {
  padding: 1.25rem; /* was 2rem */
  border-radius: 10px;
}
.feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: .75rem;
}
.feature-content h4 {
  margin-bottom: .35rem;
  font-size: 1.05rem;
}
.feature-content p {
  font-size: 0.95rem;
}

/* Stats block — smaller padding & tighter numbers */
.about-stats {
  gap: 1rem;    /* was 2rem */
  padding: 1.5rem; /* was 3rem */
  border-radius: 12px;
}
.stat-card {
  padding: 0.75rem;
}
.stat-number {
  font-size: 2.2rem; /* was 3rem */
}
.stat-label {
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* Company details grid (if present) */
.company-details {
  gap: 0.75rem; /* was 1rem */
  margin-bottom: 1rem;
}
.detail-item {
  padding: 0.75rem;
}

/* Projects / other sections below should slightly tighten spacing too */
.engineering-showcase { margin-top: 2rem; } /* reduce from 4rem */
.projects-grid { gap: 1.25rem; } /* was 2rem */

/* ===== Responsive adjustments - keep compact on small screens ===== */
@media (max-width: 992px) {
  .about-hero { padding: 1.6rem 0; }
  .about-main { padding: 1.6rem 0; }
  .about-intro { margin-bottom: 1rem; padding: 0 10px; }
  .about-features { gap: 0.8rem; }
  .feature-card { padding: 1rem; }
  .about-stats { padding: 1rem; }
}

@media (max-width: 480px) {
  .section-header { margin-bottom: 1rem; }
  .about-hero { padding: 1rem 0; }
  .about-main { padding: 1rem 0; }
  .about-intro { max-width: 100%; margin-bottom: 0.75rem; padding: 0 12px; }
  .feature-card { padding: 0.9rem; }
  .about-stats { padding: 0.75rem; gap: 0.6rem; }
  .stat-number { font-size: 2rem; }
}

/* Feature items alignment fix */
.feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem !important;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    min-height: 80px;
}
.feature-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-image img,
.feature-image img.side-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.feature-icon {
    flex-shrink: 0;
}
.feature-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-align: left;
    line-height: 1.2;
}

/* About Section Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}
/* Specific animation delays */
.animate-on-scroll[data-delay="100"] {
    transition-delay: 0.1s;
}
.animate-on-scroll[data-delay="200"] {
    transition-delay: 0.2s;
}

.animate-on-scroll[data-delay="300"] {
    transition-delay: 0.3s;
}
.animate-on-scroll[data-delay="400"] {
    transition-delay: 0.4s;
}

.animate-on-scroll[data-delay="500"] {
    transition-delay: 0.5s;
}

.animate-on-scroll[data-delay="600"] {
    transition-delay: 0.6s;
}

.animate-on-scroll[data-delay="700"] {
    transition-delay: 0.7s;
}
  
/* Services Hero Section */
.services-hero-section {
    padding: 100px 0 3rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    color: var(--text-on-navy);
    text-align: center;
}

.services-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-on-navy);
}

.services-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
}

.services-hero-description {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-on-navy-2);
    line-height: 1.7;
}

/* Services Detail Page Styles */
.services-detail {
    padding: 4rem 0;
    background: transparent;
    min-height: 100vh;
    position: relative;
}

.services-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 0;
}

.services-detail .container {
    position: relative;
    z-index: 1;
}
.services-detail-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}
.services-detail-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.services-detail-header p {
    font-size: 1.2rem;
    color: rgba(233, 241, 248, 0.85);
    font-weight: 500;
}

.service-detail-section {
    margin-bottom: 2rem;
}

.service-detail-card {
    background: rgba(10, 24, 38, 0.86);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(233, 241, 248, 0.85);
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.32);
    border-color: rgba(0, 188, 212, 0.35);
}

.service-header-row {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.service-detail-icon i {
    font-size: 2.5rem;
    color: white;
}

.service-header-text {
    flex: 1;
}

.service-detail-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
}

.service-intro {
    font-size: 1.2rem;
    color: rgba(233, 241, 248, 0.85);
    line-height: 1.8;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

.service-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-on-navy);
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    padding-bottom: 1rem;
    padding-left: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-content h3:first-of-type {
    margin-top: 0;
}

.service-content h3 i {
    color: var(--link-on-navy);
    font-size: 1.5rem;
}

.service-subsection {
    margin-bottom: 3rem;
    padding-left: 1rem;
}

.service-subsection p {
    font-size: 1.1rem;
    color: rgba(233, 241, 248, 0.85);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-list {
    list-style: disc;
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.service-list li {
    margin-left: 0;
    padding: 0;
    background: transparent;
    border: none;
    display: list-item;
}

.service-list li strong {
    color: var(--text-on-navy);
    font-weight: 600;
}

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

.service-feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-feature-item:hover {
    background: white;
    border-color: var(--link-on-navy);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.feature-icon-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), rgba(21, 37, 64, 0.85));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-on-navy);
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 1rem;
    color: rgba(233, 241, 248, 0.85);
    line-height: 1.6;
}

.service-audience {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--brand-navy-600);
    margin-top: 3rem;
    margin-left: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-audience h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.service-audience p {
    font-size: 1.1rem;
    color: rgba(233, 241, 248, 0.85);
    line-height: 1.7;
    margin: 0;
}

.services-cta {
    text-align: center;
    padding: 5rem 3rem;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 16px;
    color: white;
    margin-top: 6rem;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 2rem;
}

.services-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.services-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.services-cta .btn-primary {
    background: white;
    color: var(--link-on-navy);
    border-color: white;
    font-size: 1.1rem;
    padding: 18px 40px;
}

.services-cta .btn-primary:hover {
    background: #f8fafc;
    color: var(--link-on-navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Additional Services Section */
.additional-services-section {
    margin: 6rem 0;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-left: 1rem;
    margin-right: 1rem;
}

.additional-services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
    text-align: center;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.additional-services-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(233, 241, 248, 0.85);
    margin-bottom: 3rem;
    padding: 0 2rem;
}

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

.additional-service-item {
    display: flex;
    align-items: center;
    gap: 1.2rem !important;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text-on-navy);
}

.additional-service-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 188, 212, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.additional-service-item i {
    font-size: 1.5rem;
    color: var(--link-on-navy);
    width: 30px;
    text-align: center;
}

/* Quality Focus Section */
.quality-focus-section {
    margin: 6rem 0;
    padding: 4rem;
    background: rgba(10, 24, 38, 0.86);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border-left: 5px solid var(--brand-navy-600);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-left: 1rem;
    margin-right: 1rem;
}

.quality-focus-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-on-navy);
    margin-bottom: 1.5rem;
}

.quality-focus-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(233, 241, 248, 0.85);
    margin: 0;
    padding-left: 0.5rem;
}

.quality-safety-cta {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.safety-btn {
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s ease;
}

.safety-btn:hover {
    background: var(--brand-navy-700);
}

@media (max-width: 768px) {
    .quality-safety-cta {
        margin-top: 16px;
        margin-bottom: 24px;
    }

    /* Responsive services detail layout */
    .services-hero-section {
        padding: 90px 0 2rem;
    }

    .services-hero-content h1 {
        font-size: 2rem;
    }

    .services-hero-subtitle {
        font-size: 1.2rem;
    }

    .services-hero-description {
        font-size: 1rem;
    }

    .services-detail {
        padding: 2rem 0;
    }

    .services-detail-header h1 {
        font-size: 2rem;
    }

    .service-detail-card {
        padding: 2.5rem 1.5rem;
        margin: 0 0.5rem;
    }

    .service-header-row {
        flex-direction: column;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .service-detail-card h2 {
        font-size: 2rem;
    }

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

    .service-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-feature-item {
        flex-direction: column;
        text-align: center;
    }

    .service-list {
        padding-left: 2rem;
    }

    .service-list li {
        padding: 0;
    }

    .service-subsection {
        padding-left: 0.5rem;
    }

    /* Hide "Where This Applies" sections on mobile */
    .service-audience {
        display: none !important;
    }

    /* Hide "Focus on Quality and Safety" section on mobile */
    .quality-focus-section {
        display: none !important;
    }

    /* Compress images and padding for mobile - show more items at a glance */
    .service-block {
        margin-bottom: 1rem !important;
        gap: 0.75rem !important;
    }

    .service-block__media img {
        height: 120px !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }

    .service-block__content {
        padding: 0 !important;
    }

    .service-block__content h3 {
        font-size: 1.1rem !important;
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }

    .service-list {
        padding-left: 1.25rem !important;
        margin-top: 0.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    .service-list li {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.25rem !important;
        padding: 0 !important;
    }

    .service-content {
        padding: 0 !important;
    }

    .service-detail-card {
        padding: 1.25rem 1rem !important;
        margin: 0 0.5rem 1.5rem 0.5rem !important;
    }

    .service-header-row {
        gap: 1rem !important;
        padding-bottom: 1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .service-header-text h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .service-intro {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.75rem !important;
    }

    .service-detail-section {
        margin-bottom: 1.5rem !important;
    }

    .services-detail {
        padding: 1rem 0 !important;
    }

    /* Compress "Ready to Get Started?" CTA section for mobile */
    .services-cta {
        padding: 2rem 1.5rem !important;
        margin-top: 3rem !important;
        margin-bottom: 1.5rem !important;
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
        border-radius: 12px !important;
    }

    .services-cta h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    .services-cta p {
        font-size: 0.95rem !important;
        margin-bottom: 1.25rem !important;
        line-height: 1.5 !important;
    }

    .services-cta .btn-primary {
        font-size: 0.95rem !important;
        padding: 12px 24px !important;
    }
}

/* Global list formatting overrides */
ul ul {
    margin-left: 20px !important;
    padding-left: 20px !important;
}

ul li {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    line-height: 1.45 !important;
}

ul ul li {
    margin-top: 3px !important;
    margin-bottom: 3px !important;
}

.nav-toggle {
    display: none;
    border: 0;
    background: rgba(233, 241, 248, 0.12);
    color: var(--text-on-navy);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    transition: background 0.2s ease;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(233, 241, 248, 0.24);
}

.nav-panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: 84%;
    max-width: 360px;
    background: var(--brand-navy-700);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.nav-panel.open {
    transform: translateX(0);
}

.nav-list {
    list-style: none;
    padding: 32px 28px;
    margin: 0;
    display: grid;
    gap: 16px;
}

.nav-list a {
    color: var(--text-on-navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-list .has-sub {
    display: grid;
    gap: 12px;
}

.mobile-services-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-services-link {
    flex: 1;
    color: var(--text-on-navy);
    text-decoration: none;
    font-weight: 600;
    padding: 0;
}

.mobile-services-link:hover {
    color: var(--text-on-navy);
    text-decoration: none;
}

.sub-toggle {
    background: none;
    border: 0;
    color: var(--text-on-navy);
    font: inherit;
    font-weight: 600;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    min-width: 30px;
}

.sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.sub-list[hidden] {
    display: none;
}
.sub-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(233, 241, 248, 0.65);
}

.sub-divider {
    width: 100%;
    height: 1px;
    background: rgba(233, 241, 248, 0.15);
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (min-width: 1025px) {
    .nav-panel {
        display: none;
    }
}

/* Hero Section */
.hero,
.home-hero,
.page-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(80vh, 100vh, 100vh);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 56px 24px 64px;
    background: url("/assets/images/clients/lumico_background_wordless.webp") center 35% / cover no-repeat fixed;
    color: #ffffff;
}

.hero::before,
.home-hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 65% 50%, rgba(5, 16, 26, 0.35) 0%, rgba(5, 16, 26, 0.85) 55%, rgba(5, 16, 26, 0.95) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero::after,
.home-hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--overlay) 0%, rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-background {
    display: none;
}

.hero-overlay {
    display: none;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(158, 195, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(158, 195, 255, 0.12) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.18;
    animation: heroGridDrift 18s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 32px;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--text-on-navy);
}

.hero-kicker {
    font-size: 1.1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--link-on-navy);
    font-weight: 600;
}
.hero-left h1 {
    font-size: clamp(36px, 6.2vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hero-title-line {
    color: var(--text-on-navy);
}
.hero-title-accent {
    color: var(--link-on-navy);
}
.hero-subheading {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    color: var(--link-on-navy);
    margin: 8px 0 0;
}

.hero-description {
    max-width: 640px;
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.7;
    color: var(--text-on-navy-2);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.btn-hero-primary,
.btn-hero-secondary {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-hero-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(21, 37, 64, 0.35);
}

.btn-hero-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 26px 55px rgba(21, 37, 64, 0.45);
    filter: brightness(0.95);
}
.btn-hero-secondary {
    border: 1px solid var(--text-on-navy-2);
    color: var(--text-on-navy);
    background: transparent;
}

.btn-hero-secondary:hover {
    color: var(--link-on-navy);
    background: rgba(21, 37, 64, 0.6);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 26px 50px rgba(31, 42, 57, 0.3);
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-service-card {
    display: flex;
    gap: 1.2rem !important;
    align-items: center;
    padding: 16px;
    min-height: 96px;
    max-width: 520px;
    border-radius: 20px;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 24px 60px rgba(4, 10, 24, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(158, 195, 255, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hero-service-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 32px 70px rgba(0, 219, 255, 0.35);
    border-color: rgba(0, 229, 255, 0.45);
}

.hero-service-card:hover::after {
    opacity: 1;
}
.hero-card-thumb {
    width: 100px !important;
    height: 100px !important;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-thumb img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover;
    border-radius: 10px;
}

.hero-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #f8fafc;
}

.hero-card-link {
    font-size: 14px;
    color: rgba(226, 232, 240, 0.75);
}

.hero-service-card:nth-child(1) {
    animation: heroCardFloat 9s ease-in-out infinite;
}

.hero-service-card:nth-child(2) {
    animation: heroCardFloat 9s ease-in-out infinite 1.5s;
}

.hero-service-card:nth-child(3) {
    animation: heroCardFloat 9s ease-in-out infinite 3s;
}

@keyframes heroGridDrift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-30px, -40px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

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

@media (max-width: 1279px) {
    .hero-service-card {
        min-height: 92px;
    }

    .hero-left h1 {
        font-size: clamp(34px, 5.6vw, 60px);
    }
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0;
    }

    .hero-right {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-service-card {
        width: min(320px, 100%);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 88vh;
    }

    .hero-inner {
        padding: 0;
    }

    .hero-left {
        text-align: center;
        align-items: center;
    }

    .hero-right {
        flex-direction: column;
        align-items: center;
    }

    .hero-service-card {
        width: 100%;
        max-width: 340px;
    }
}

/* Engineering Graphics */
.engineering-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.circuit-pattern {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,30 L70,30 L70,50 L30,50 L30,70 L50,70 L50,90 L10,90 Z" fill="none" stroke="%2306b6d4" stroke-width="0.5" opacity="0.3"/><circle cx="20" cy="20" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="80" cy="20" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="20" cy="80" r="2" fill="%2306b6d4" opacity="0.4"/><circle cx="80" cy="80" r="2" fill="%2306b6d4" opacity="0.4"/></svg>') no-repeat center;
    background-size: contain;
    animation: float 6s ease-in-out infinite;
}

.engineering-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.engineering-icons i {
    position: absolute;
    font-size: 2rem;
    color: rgba(6, 182, 212, 0.2);
    animation: engineeringFloat 8s ease-in-out infinite;
}

.engineering-icons i:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.engineering-icons i:nth-child(4) {
    top: 40%;
    right: 35%;
    animation-delay: 6s;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes engineeringFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.2; }
    50% { transform: translateY(-15px) scale(1.1); opacity: 0.4; }
}

.hero-logo {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s forwards;
}

/* Hero Logo */
.hero-logo-image {
    height: 120px;
    max-width: 400px;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-main {
    display: block;
    color: white;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.title-sub {
    display: block;
    background: linear-gradient(135deg, var(--link-on-navy), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--link-on-navy);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 4rem;
    line-height: 1.7;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(21, 37, 64, 0.32);
    filter: brightness(0.95);
}

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

.btn-secondary:hover {
    background: white;
    color: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.2rem !important;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--link-on-navy);
    width: 40px;
    text-align: center;
}

.feature-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(158, 195, 255, 0.35), rgba(21, 37, 64, 0.75));
    opacity: 0.12;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header :is(h1, h2) {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
}

/* About Section */
.about {
    padding: 0;
    background: white;
}

/* About Hero */
.about-hero {
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}

.about-hero-content h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--link-on-navy);
    font-weight: 600;
    margin: 0;
}

/* About Main Content */
.about-main {
    padding: 4rem 0;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-intro h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-intro p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* About Features */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-navy-600);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}

.stat-card {
    text-align: center;
    padding: 1rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-navy-2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Engineering Showcase */
.engineering-showcase {
    margin-top: 4rem;
    text-align: center;
}

.engineering-showcase h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Trust Indicators */
.trust-indicators {
    padding: 4rem 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

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

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}
.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.company-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem !important;
    margin-bottom: 2rem;
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 1.2rem !important;
    padding: 1rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--brand-navy-600);
    color: var(--text-on-navy);
}
.detail-item i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 20px;
}

.detail-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-navy);
    margin-bottom: 0.25rem;
}
.detail-item p {
    font-size: 0.9rem;
    color: var(--text-on-navy-2);
    margin: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.stat {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    border-radius: 12px;
    transition: transform 0.3s ease;
    color: var(--text-on-navy);
}
.stat:hover {
    transform: translateY(-5px);
}
.stat h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-on-navy-2);
    font-weight: 500;
}

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

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--link-on-navy);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.image-placeholder p {
    font-size: 1rem;
    color: #64748b;
    margin-top: 1rem;
    font-weight: 500;
}

/* Services Section */
.services {
    position: relative;
    background: url('/assets/images/engineering/Electrical_Engineering.webp') center/cover no-repeat fixed;
    color: var(--text-on-navy);
}

.services::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 27, 42, 0.78) 0%, rgba(10, 22, 34, 0.85) 100%);
    pointer-events: none;
}

.services > * {
    position: relative;
    z-index: 1;
}
/* Services Hero Banner */
.services-hero {
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.services-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><filter id="blur"><feGaussianBlur stdDeviation="10"/></filter></defs><rect width="100%" height="100%" fill="rgba(255,255,255,0.1)"/><circle cx="200" cy="200" r="100" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/><circle cx="800" cy="300" r="150" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/><circle cx="400" cy="700" r="120" fill="rgba(255,255,255,0.05)" filter="url(%23blur)"/></svg>');
    opacity: 0.3;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-on-navy);
}

.services-hero :is(h1, h2) {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-on-navy);
    margin: 0;
    text-shadow: 0 2px 4px rgba(15, 23, 42, 0.35);
}

/* Services Cards */
.services-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0;
    align-items: stretch;
}

.service-card {
    background: rgba(20, 24, 32, 0.75);
    padding: 2.5rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: center;
    color: var(--text-on-navy);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
    position: relative;
    transform: rotate(0deg);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-on-navy);
    margin-bottom: 1.5rem;
    margin-top: 0;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-on-navy-2);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.service-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-description {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
}

.service-description li {
    color: var(--text-on-navy-2);
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-description li:last-child {
    margin-bottom: 0;
}

.service-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
}

.service-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: auto;
    align-self: center;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 37, 64, 0.28);
    filter: brightness(0.95);
    color: #ffffff;
}
  
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--brand-navy-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

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

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

/* Detailed Services */
.detailed-services {
    padding: 6rem 0;
    background: white;
    display: none; /* Hidden by default */
}

.detailed-services.active {
    display: block; /* Show when active */
}

/* Certificate Page */
.certificate-page {
    padding: 8rem 0 4rem;
    background: #f8fafc;
    min-height: 100vh;
}

/* Certificate Section (for overlay) */
.certificate-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f8fafc;
    z-index: 9999;
    overflow-y: auto;
    display: none; /* Hidden by default */
    padding: 0;
}

.certificate-section.active {
    display: block; /* Show when active */
}

.certificate-header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10000;
}

.back-to-home-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-to-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 37, 64, 0.3);
    filter: brightness(0.95);
}

.back-to-home-btn i {
    font-size: 0.9rem;
}

.certificate-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 20px;
}

.certificate-row {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.certificate-row:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.certificate-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
}

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

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

.certificate-content {
    flex: 1;
}

.certificate-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

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

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

.detailed-service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.detailed-service-card:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.detailed-service-card .service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.detailed-service-card .service-content {
    flex: 1;
}

.detailed-service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.detailed-service-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Projects Section */
.projects {
    padding: clamp(48px, 7vw, 80px) 0;
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 16px);
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.project-image {
    height: clamp(200px, 22vw, 230px);
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

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

.project-image img:not([src]) {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img:not([src])::before {
    content: 'Loading...';
    color: #64748b;
    font-size: 1rem;
}

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

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover .image-overlay {
    opacity: 1;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(29, 78, 216, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-content {
    padding: clamp(1.4rem, 3vw, 1.75rem);
}

.project-content h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.45rem);
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.project-content p {
    color: #64748b;
    margin-bottom: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Clients Section */
.clients {
    padding: 4rem 0;
    background: white;
}

.clients-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.client-sector {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sector-header {
    flex-shrink: 0;
    min-width: 180px;
}

.sector-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-align: left;
    position: relative;
    padding-bottom: 0.5rem;
}

.sector-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    border-radius: 1px;
}

.clients-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    flex: 1;
}

.client-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: left;
}

.client-item:hover {
    border-color: var(--link-on-navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

.client-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(5%);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.client-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.client-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}
.client-item:hover .client-name {
    color: var(--link-on-navy);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 16px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.left-col {
    display: flex;
    flex-direction: column;
}
.left-col .map-card,
.address-card,
.form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.left-col .map-card {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}
.map-card iframe {
    width: 100%;
    height: 450px;
    display: block;
    border: 0;
}
.address-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-card {
    padding: 20px;
}
.form-note {
    margin: 0 0 14px;
    color: var(--brand-navy);
    font-size: 0.9rem;
}
.form-card form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.form-card .form-group {
    grid-column: 1 / -1;
    margin: 0;
}
.form-card .form-group label {
    display: block;
    margin-bottom: 6px;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-card .form-group textarea {
    min-height: 160px;
    resize: vertical;
}
.form-card input,
.form-card textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}
.form-card input:focus-visible,
.form-card textarea:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}
.form-card button.btn {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 12px 20px;
    border-radius: 12px;
}
@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 32px;
    }

    .address-card {
        margin-top: 0;
    }
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .left-col .map-card {
        margin-bottom: 12px;
    }

    .form-card form {
        grid-template-columns: 1fr;
    }

    .form-card button.btn {
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    .map-card iframe {
        height: 350px;
    }
}

/* Footer */
.footer {
    background: var(--brand-navy-700);
    color: var(--text-on-navy);
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    margin-bottom: 1rem;
}

/* Footer Logo */
.footer-logo-image {
    height: 60px;
    max-width: 250px;
}
.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-on-navy);
}
.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-on-navy-2);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: var(--link-on-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--link-on-navy-h);
}

.social-links {
    display: flex;
    gap: 1.2rem !important;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--brand-navy);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Hero Responsive Styles */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.2rem !important;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-features {
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .feature-item i {
        font-size: 1.5rem;
        width: 30px;
    }
    
    .feature-item span {
        font-size: 1rem;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        border: none;
        border-radius: 0;
        margin: 10px 0;
        padding: 0;
    }
    
    .dropdown-menu a {
        padding: 12px 30px;
        border-bottom: 1px solid #e2e8f0;
        font-size: 1rem;
    }
    
    .dropdown-toggle i {
        display: none;
    }
    
    /* Mobile Certificate Styles */
    .certificate-row {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .certificate-image {
        width: 100px;
        height: 100px;
    }
    
    .certificate-content h3 {
        font-size: 1.1rem;
    }
    
    .certificate-content p {
        font-size: 0.9rem;
    }
    
    /* Full-page Certificate Mobile Styles */
    .certificate-header {
        padding: 0.8rem 0;
    }
    
    .back-to-home-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-left: 15px;
    }
    
    .certificate-list {
        padding: 2rem 15px;
    }
    
    .certificate-row {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .certificate-image {
        width: 100px;
        height: 100px;
    }
}
  

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 1rem;
    }
    
    .hero-logo-image {
        height: 80px;
        max-width: 300px;
    }
    
    .nav-logo .logo-image {
        height: 35px;
        max-width: 120px;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero { padding-top: 80px; }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.2rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
