* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    overflow-x: hidden;
    min-height: 100vh;
    color: #333;
}

.animate-fade-up {
    opacity: 1;
    transform: translateY(0);
}

.animate-scale {
    opacity: 1;
    transform: scale(1);
}

.main-content > h1.animate-on-scroll { 
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.6rem); 
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 45px; 
    position: relative;
    padding-bottom: 15px;
}
.main-content > h1.animate-on-scroll::after { 
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: #4169e1;
    border-radius: 2px;
}

.intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.logo {
    opacity: 0;
    transform: scale(0.8);
    max-width: 250px;
    height: auto;
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1.5s ease;
}

.logo.animate {
    opacity: 1;
    transform: scale(1);
}

.company-name {
    margin-top: 25px;
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 600;
    color: #2d3748;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 1px;
    text-align: center;
}

.company-name.animate {
    opacity: 1;
    transform: translateY(0);
}

.prompt-container {
    margin-top: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.prompt-container p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: #4a4a4a;
    font-weight: 300;
    letter-spacing: 1px;
    padding: 12px 28px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
}

.prompt-container p:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.prompt-container.animate {
    opacity: 1;
    transform: translateY(0);
}

.content-container {
    position: relative;
    top: 100vh;
    width: 100%;
    min-height: 100vh;
    background-color: #f0f2f5;
    transition: top 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    opacity: 0.25;
}

/* NEW: Style for the second background video overlay */
.video-background-overlay-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    opacity: 0.4; 
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid #dde1e6;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 500;
}

.header-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 25px; /* Creates space between the logo and the button */
}

.header-logo:hover {
    transform: scale(1.05);
}

.small-logo {
    height: 35px;
    margin-right: 12px;
}

.header-company-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3748;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4169e1;
    transition: width 0.3s ease-out;
}

nav ul li a:hover::after,
nav ul li.active a::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li.active a {
    color: #4169e1;
}

nav ul li.active a {
    font-weight: 500;
}

main {
    padding: 40px 20px;
    min-height: calc(100vh - 150px);
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out 0.8s, transform 1s ease-out 0.8s;
}

.content-section {
    padding: 60px 0;
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.6rem); 
    font-weight: 600;
    color: #2d3748; 
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: #4169e1; 
    border-radius: 2px;
}

.section-intro-text {
    max-width: 750px;
    margin: 0 auto 30px auto;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 40px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    text-align: center;
}

.hero-text {
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 25px;
    color: #2d3748;
}

.hero-title .hero-line:nth-child(2) {
    color: #2d3748;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: heroLineUp 0.8s ease-out forwards;
}

.hero-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: clamp(2rem, 4vw, 2rem);
    color: #555;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroLineUp 0.8s ease-out 0.4s forwards;
}

@keyframes heroLineUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-visual {
    position: relative;
    height: auto;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
}

.floating-elements {
    position: relative;
    width: 100%;
    max-width: 700px; 
    margin: 0 auto; 
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    align-items: flex-start;
    gap: 25px;
}

.floating-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-align: center;
    
    width: calc(50% - 12.5px); 
    min-width: 220px; 
    max-width: 280px; 

    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

.floating-card.card-cost {
    width: calc(50% - 12.5px); 
}

.hero-section.is-visible .floating-card {
    animation-name: cardFadeIn, floatAnimation;
    animation-duration: 0.7s, 6s;
    animation-timing-function: ease-out, ease-in-out;
    animation-fill-mode: forwards, none; 
    animation-iteration-count: 1, infinite; 
}
.hero-section.is-visible .floating-card.card-sourcing { 
    animation-delay: 0.5s, 0.5s; 
    animation-duration: 0.7s, 6s; 
}
.hero-section.is-visible .floating-card.card-shortage { 
    animation-delay: 0.7s, 0.7s; 
    animation-duration: 0.7s, 7s; 
    animation-direction: normal, alternate; 
}
.hero-section.is-visible .floating-card.card-cost { 
    animation-delay: 0.9s, 0.9s; 
    animation-duration: 0.7s, 6.5s; 
}


@keyframes cardFadeIn {
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

@keyframes floatAnimation {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-8px); 
    }
}

.floating-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-glow {
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, #4169e1, #00d4ff, #4169e1);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-card:hover .card-glow {
    opacity: 0.5;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #4169e1;
}

.card-content span {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.welcome-section {
    background-color: #ffffff; 
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.stats-section {
    padding: 50px 20px; 
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    margin: 50px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 25px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4169e1, #00d4ff);
    transition: left 0.4s ease-out;
}

.stat-item.is-visible::before {
    left: 0;
}
.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}


.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: #4169e1;
    display: inline-block;
    line-height: 1;
}

.stat-unit {
    font-size: 1.2rem;
    color: #4169e1;
    display: inline-block;
    margin-left: 3px;
    font-weight: 500;
}

.stat-label {
    font-size: 0.95rem;
    color: #444;
    margin-top: 8px;
    font-weight: 400;
    line-height: 1.4;
    display: block;
}

.core-services-section {
    background-color: #ffffff;
    border-radius: 12px;
    padding-top: 40px;
    padding-bottom: 40px;
     box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.core-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: #f8f9fa;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-top-color: #4169e1;
}

.service-icon {
    font-size: 2.5rem; 
    margin-bottom: 15px;
    color: #4169e1; 
}

.service-card h3 {
    font-size: 1.3rem; 
    color: #2d3748;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.9rem;
}

.tech-grid-section {
    padding: 50px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.tech-tile {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}
.tech-tile:hover {
    transform: scale(1.05);
}

.tech-tile-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4169e1 0%, #00aeff 100%);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.tech-tile:hover .tech-tile-bg {
    opacity: 1;
}

.tech-tile-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 30px;
}

.tech-icon-large {
    font-size: 3.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.tech-tile h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tech-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(60deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
    transform: translateX(-100%) skewX(-20deg);
    transition: transform 0.7s ease-in-out;
    z-index: 3;
}

.tech-tile:hover::before {
    transform: translateX(100%) skewX(-20deg);
}

.why-choose-us-section {
    background-color: #ffffff;
    border-radius: 12px;
    padding-top: 40px;
    padding-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.why-choose-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.why-choose-us-card {
    background: #f8f9fa; 
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-choose-us-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.why-choose-us-card .icon { 
    font-size: 2.5rem;
    color: #4169e1;
    margin-bottom: 15px;
}

.why-choose-us-card h3 {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 600;
}

.why-choose-us-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.9rem;
}

.particle-section {
    position: relative;
    height: 400px; 
    margin: 60px 0; 
    border-radius: 15px; 
    overflow: hidden;
    background: linear-gradient(145deg, #1e273c 0%, #131823 100%); 
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5; 
}

.particle-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 30px; 
    max-width: 90%; 
}

.particle-title {
    font-size: clamp(2rem, 5.5vw, 3rem); 
    font-weight: 700;
    margin-bottom: 20px; 
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); 
    line-height: 1.2;
}

.particle-title::after {
    content: '';
    display: block;
    width: 80px; 
    height: 3px; 
    background-color: #4198e1; 
    margin: 15px auto 0; 
    border-radius: 2px;
}


.particle-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.25rem); 
    opacity: 0.9; 
    font-weight: 300;
    max-width: 700px; 
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2); 
}

.cta-section {
    background: linear-gradient(135deg, #4a78e2 0%, #3a5bb6 100%);
    color: white;
    padding: 50px 30px; 
    text-align: center;
    border-radius: 12px; 
    margin-top: 50px; 
}

.cta-section .section-title {
    color: white;
    margin-bottom: 20px;
}
.cta-section .section-title::after {
    background-color: white; 
}

.cta-section .section-intro-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem; 
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #4169e1;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px; 
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #f0f0f0; 
    color: #2d3748;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 7px 18px rgba(0,0,0,0.15);
}

footer {
    padding: 25px 30px;
    border-top: 1px solid #dde1e6;
    background-color: #fff;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.footer-links ul {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links ul li {
    margin: 5px 10px;
}

.footer-links ul li a {
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #4169e1;
}

.copyright {
    text-align: center;
    color: #777;
    font-size: 0.8rem;
}

.about-cards-section {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 25px; 
    max-width: 1100px; 
    margin: 0 auto 50px auto; 
}

@media (min-width: 768px) { 
    .about-cards-section {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}
@media (min-width: 1024px) { 
    .about-cards-section {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}


.about-card-item {
    background: #ffffff; 
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 7px 20px rgba(60, 70, 90, 0.07); 
    text-align: left; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
    border-top: 3px solid transparent; 
    display: flex; 
    flex-direction: column; 

    opacity: 0;
    transform: translateY(30px);
}

.about-cards-section.is-visible .about-card-item:nth-child(1) {
    animation: cardFadeInUp 0.6s ease-out 0.2s forwards;
}
.about-cards-section.is-visible .about-card-item:nth-child(2) {
    animation: cardFadeInUp 0.6s ease-out 0.35s forwards;
}
.about-cards-section.is-visible .about-card-item:nth-child(3) {
    animation: cardFadeInUp 0.6s ease-out 0.5s forwards;
}

@keyframes cardFadeInUp { 
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(60, 70, 90, 0.1);
    border-top-color: #4169e1; 
}

.about-card-icon {
    font-size: 2.2rem; 
    margin-bottom: 15px;
    color: #4169e1; 
    text-align: center; 
}

.about-card-title {
    font-size: 1.25rem; 
    color: #2d3748; 
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.about-card-description {
    color: #55595d; 
    line-height: 1.65;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0;
    flex-grow: 1; 
}

.about-card-description strong {
    color: #333b47; 
    font-weight: 600; 
}

@media (max-width: 767px) { 
    .about-cards-section {
        gap: 20px;
    }
    .about-card-item {
        padding: 25px 20px;
        text-align: center; 
    }
    .about-card-title {
        font-size: 1.15rem;
    }
    .about-card-description {
        font-size: 0.9rem;
    }
    .about-card-icon { 
        margin-left: auto;
        margin-right: auto;
    }
}

.lead-paragraph {
    font-size: 1.18rem; 
    color: #2d3748; 
    font-weight: 400; 
    margin-bottom: 2.25rem; 
}

.lead-paragraph::before {
    height: 24px; 
    opacity: 1; 
    top: 11px; 
}

.brand-name-highlight {
    font-weight: 600; 
    color: #2d3748; 
}

.key-fact-highlight {
    color: #4169e1; 
    font-weight: 500; 
    border-bottom: 2px dotted rgba(65, 105, 225, 0.3); 
    padding-bottom: 1px;
}

.key-concept-highlight {
    font-style: italic;
    color: #3a5bb6; 
    font-weight: 500;
}

.iso-standard-highlight { 
    font-weight: 600;
    color: #ffffff;
    background-color: #4169e1;
    padding: 0.25em 0.65em;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.88em; 
    letter-spacing: 0.5px;
    display: inline-block;
    line-height: 1.2; 
    box-shadow: 0 2px 4px rgba(65, 105, 225, 0.2); 
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.iso-standard-highlight:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(65, 105, 225, 0.3);
}

@media (max-width: 768px) {
    .about-text-container {
        padding: 30px 25px;
        margin: 20px auto 40px auto;
    }
    .about-paragraph {
        font-size: 1rem;
        padding-left: 20px; 
    }
    .about-paragraph::before {
        top: 8px;
        height: 18px;
    }
    .lead-paragraph {
        font-size: 1.1rem;
    }
    .lead-paragraph::before {
        top: 9px;
        height: 20px;
    }
    .iso-standard-highlight {
        font-size: 0.85em;
        padding: 0.2em 0.5em;
    }
}

@media (max-width: 480px) {
    .about-text-container {
        padding: 25px 20px;
        border-radius: 12px;
    }
    .about-paragraph {
        line-height: 1.7;
    }
    .key-fact-highlight {
        border-bottom-width: 1px; 
    }
}

.certifications {
    padding-top: 3.5rem;
    padding-bottom: 6rem;
    position: relative;
}

.certifications h2 {
    color: #2d3748;
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 15px;
}

.certifications h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: #4169e1;
    border-radius: 2px;
}

.certification-items-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch; 
    gap: 2.5rem;
}

.certification-item {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    padding: 2.25rem;
    width: calc(50% - 1.25rem);
    max-width: 420px;
    min-width: 300px;
    box-sizing: border-box;
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 8px 24px rgba(45, 55, 72, 0.08);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.certification-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #4169e1;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

.certification-item:hover::after {
    width: 70%;
    left: 15%;
}

.certification-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(45, 55, 72, 0.12);
    border-color: #c0c8d4;
}

.certification-link-block {
    text-decoration: none;
    display: flex; 
    flex-direction: column;
    align-items: center; 
    flex-grow: 1; 
    text-align: center; 
}

.certification-badge {
    max-width: 150px;
    max-height: 90px;
    object-fit: contain;
    height: auto;
    margin-bottom: 1.25rem; 
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.3s ease;
}

.certification-item:hover .certification-badge {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.item-linked-text {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 0.75rem 0; 
    font-weight: 500;
    color: #2d3748;
    transition: color 0.3s ease;
}

.certification-item:hover .item-linked-text {
    color: #4169e1; 
}

.certification-link-block .view-certificate-cta {
    font-size: 0.95rem;
    color: #4169e1;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.9;
    padding-top: 0.5rem; 
    margin-top: auto; 
    padding-bottom: 0.25rem; 
    transition: color 0.3s ease, opacity 0.3s ease, text-decoration 0.3s ease;
}

.certification-item:hover .certification-link-block .view-certificate-cta {
    color: #3a5bb6;
    opacity: 1;
    text-decoration: underline; 
}

.item-additional-text {
    color: #5a677d;
    font-size: 0.92rem;
    line-height: 1.65;
    padding: 1.25rem 0 0 0; 
    border-top: 1px solid #e0e4e8;
    text-align: left;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    flex-shrink: 0; 
}

.certification-item:hover .item-additional-text {
    opacity: 1;
}

.item-additional-text strong {
    color: #2d3748;
    font-weight: 600;
    background-color: rgba(65, 105, 225, 0.08);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    display: inline-block;
    margin: 0.05em 0;
}

.certifications.animate-on-scroll.is-visible .certification-items-container .certification-item {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: cardEnterRefined 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.certifications.animate-on-scroll.is-visible .certification-items-container .certification-item:nth-child(1) {
    animation-delay: 0.2s;
}
.certifications.animate-on-scroll.is-visible .certification-items-container .certification-item:nth-child(2) {
    animation-delay: 0.35s;
}
@keyframes cardEnterRefined {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 960px) {
    .certification-item {
        width: calc(60% - 1.25rem); 
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .certification-item {
        width: calc(85% - 1.25rem); 
        padding: 2rem 1.75rem;
    }
    .certification-items-container {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .certification-item {
        width: calc(95% - 1rem);
        padding: 1.75rem 1.25rem;
    }
    .item-linked-text {
        font-size: 1rem;
    }
    .certification-link-block .view-certificate-cta {
        font-size: 0.9rem; 
    }
}


.info-cards-section { 
    display: grid;
    grid-template-columns: 1fr; 
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto 50px auto;
}

@media (min-width: 768px) {
    .info-cards-section {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}
@media (min-width: 1024px) {
    .info-cards-section {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.info-card-item { 
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 7px 20px rgba(60, 70, 90, 0.07);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
    border-top: 3px solid transparent;
    display: flex;
    flex-direction: column;

    opacity: 0;
    transform: translateY(30px);
}

.info-cards-section.is-visible .info-card-item:nth-child(1) {
    animation: cardFadeInUp 0.6s ease-out 0.2s forwards;
}
.info-cards-section.is-visible .info-card-item:nth-child(2) {
    animation: cardFadeInUp 0.6s ease-out 0.35s forwards;
}
.info-cards-section.is-visible .info-card-item:nth-child(3) {
    animation: cardFadeInUp 0.6s ease-out 0.5s forwards;
}

.info-card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(60, 70, 90, 0.1);
    border-top-color: #4169e1; 
}

.info-card-title { 
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.info-card-description { 
    color: #55595d;
    line-height: 1.65;
    font-size: 0.92rem; 
    text-align: center;
    margin-bottom: 0;
    flex-grow: 1;
}

.info-card-description strong { 
    color: #333b47;
    font-weight: 600;
}

@media (max-width: 767px) {
    .info-cards-section {
        gap: 20px;
    }
    .info-card-item {
        padding: 25px 20px;
        text-align: center; 
    }
    .info-card-title {
        font-size: 1.15rem;
    }
    .info-card-description {
        font-size: 0.9rem;
    }
}

.logo-collage-section {
    width: 100%;
    padding: 30px 0;
    margin-bottom: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.logo-collage-container {
    width: 100%;
    overflow: hidden; 
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
}

.logo-scroller {
    display: flex;
    align-items: center;
    width: fit-content;
    animation: scrollLogos 80s linear infinite;
    pointer-events: none;
    will-change: transform;
}

.logo-scroller img {
    height: 50px;
    width: auto;
    margin: 0 40px;
    object-fit: contain;
}

/* Size adjustments for wide/text-based logos to make them appear visually balanced */
.logo-scroller img[src*="altera.png"],
.logo-scroller img[src*="atmel.png"],
.logo-scroller img[src*="avx.jpg"],
.logo-scroller img[src*="infineon.png"],
.logo-scroller img[src*="intersil.png"],
.logo-scroller img[src*="micron.png"],
.logo-scroller img[src*="molex.png"],
.logo-scroller img[src*="murata.png"],
.logo-scroller img[src*="nexperia.png"],
.logo-scroller img[src*="omron.png"],
.logo-scroller img[src*="onsemi.jpg"],
.logo-scroller img[src*="osram.png"],
.logo-scroller img[src*="panasonic.jpg"],
.logo-scroller img[src*="samsung.png"],
.logo-scroller img[src*="toshiba.png"],
.logo-scroller img[src*="tyco.png"] {
    height: 40px;
    transform: scale(1.2);
}

.logo-scroller img[src*="sandisk.png"] {
    height: 35px;
    transform: scale(1.1);
}


@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logo-info-button-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.logo-info-button {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0,0,0,0.1);
    color: #555;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 28px; 
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative; 
}

.logo-info-button:hover {
    background-color: #fff;
    color: #333;
}

.logo-info-tooltip {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%; 
    left: 50%;
    margin-left: -110px; 
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 0.8rem;
    pointer-events: none; 
}

.logo-info-button:hover .logo-info-tooltip {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .logo-scroller img {
        height: 40px; 
        margin: 0 15px;
    }
    .logo-collage-section {
        padding: 20px 0;
    }
    
    .logo-info-button {
        width: 26px;
        height: 26px;
        font-size: 14px;
        line-height: 24px;
    }
    .logo-info-tooltip {
        width: 180px;
        margin-left: -90px;
        font-size: 0.75rem;
    }
}

.linecard-intro {
    max-width: 800px;
    margin: 0 auto 40px auto; 
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.linecard-intro strong {
    font-weight: 600; 
    color: #2d3748; 
}

.linecard-intro.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}
.linecard-intro.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.linecard-manufacturers-section {
    margin-bottom: 50px;
    padding: 30px 15px;
    background-color: #ffffff; 
    border-radius: 10px;
    box-shadow: 0 7px 20px rgba(60, 70, 90, 0.07);
}

.linecard-manufacturers-section.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out 0.3s, transform 0.7s ease-out 0.3s;
}
.linecard-manufacturers-section.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.linecard-manufacturers-columns {
    display: flex;
    justify-content: space-around; 
    max-width: 700px; 
    margin: 0 auto;
    gap: 30px; 
}

.linecard-manufacturer-column {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-basis: 45%; 
}

.linecard-manufacturer-column li {
    padding: 8px 0; 
    font-size: 0.98rem; 
    color: #3a3a3a; 
    border-bottom: 1px solid #f0f0f0; 
    transition: color 0.3s ease;
}
.linecard-manufacturer-column li:last-child {
    border-bottom: none;
}
.linecard-manufacturer-column li:hover {
    color: #4169e1; 
}

.linecard-iso-section {
    padding-top: 0; 
    margin-bottom: 50px;
}

.single-iso-badge-container .certification-item {
    max-width: 380px; 
    margin: 0 auto; 
}

.additional-logos-section {
    padding: 40px 0;
    margin-top: 30px;
    background-color: #f8f9fa; 
    border-radius: 10px;
    box-shadow: 0 7px 20px rgba(60, 70, 90, 0.05);
}

.additional-logos-section.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out 0.4s, transform 0.7s ease-out 0.4s;
}
.additional-logos-section.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.additional-logos-section .section-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem); 
    margin-bottom: 25px;
}
.additional-logos-section .section-intro-text {
    font-size: 1rem;
    margin-bottom: 30px;
}

.logo-grid-linecard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px; 
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

.logo-grid-linecard img {
    height: 45px; 
    max-width: 120px; 
    object-fit: contain;
    filter: grayscale(50%) opacity(0.8);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-grid-linecard img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.main-content > h1.animate-on-scroll { 
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.1s, transform 0.6s ease-out 0.1s;
}
.main-content > h1.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .linecard-manufacturers-columns {
        max-width: 90%;
    }
    .linecard-manufacturer-column li {
        font-size: 0.9rem;
    }
    .logo-grid-linecard img {
        height: 40px;
    }
}

@media (max-width: 550px) {
    .linecard-manufacturers-columns {
        flex-direction: column;
        gap: 0; 
        align-items: center; 
    }
    .linecard-manufacturer-column {
        flex-basis: auto; 
        width: 80%; 
        margin-bottom: 20px; 
    }
    .linecard-manufacturer-column:last-child {
        margin-bottom: 0;
    }
    .logo-grid-linecard {
        gap: 20px;
    }
    .logo-grid-linecard img {
        height: 35px;
    }
}

.service-item {
    background-color: #ffffff;
    padding: 25px 30px;
    margin-bottom: 35px;
    border-radius: 10px;
    box-shadow: 0 7px 20px rgba(60, 70, 90, 0.07);
    border-left: 4px solid #4169e1;
}

.service-item.animate-on-scroll {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.service-item.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.service-item.animate-on-scroll.is-visible:nth-of-type(1) { transition-delay: 0.2s; }
.service-item.animate-on-scroll.is-visible:nth-of-type(2) { transition-delay: 0.3s; }
.service-item.animate-on-scroll.is-visible:nth-of-type(3) { transition-delay: 0.4s; }
.service-item.animate-on-scroll.is-visible:nth-of-type(4) { transition-delay: 0.5s; }
.service-item.animate-on-scroll.is-visible:nth-of-type(5) { transition-delay: 0.6s; }


.service-item h2 {
    font-size: 1.6rem; 
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}
.service-item h2::after { 
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2.5px;
    background-color: #4169e1; 
    border-radius: 1px;
}


.service-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #55595d;
    margin-bottom: 12px;
}
.service-item p:last-child {
    margin-bottom: 0;
}

.service-item strong {
    font-weight: 600;
    color: #333b47;
}

.service-item.value-added-services ul {
    list-style: disc; 
    margin-left: 25px;
    padding-left: 0;
    margin-top: 10px;
}

.service-item.value-added-services li {
    font-size: 0.98rem;
    color: #55595d;
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-info-services {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f0f4f8;
    border-radius: 8px;
}
.contact-info-services.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.7s, transform 0.6s ease-out 0.7s;
}
.contact-info-services.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info-services p {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}
.contact-info-services strong {
    color: #4169e1;
}

.services-iso-section {
    padding-top: 0;
    margin-bottom: 50px;
}

.services-iso-section .single-iso-badge-container .certification-item {
    max-width: 380px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .service-item {
        padding: 20px 25px;
        border-left-width: 3px;
    }
    .service-item h2 {
        font-size: 1.4rem;
    }
    .service-item p, .service-item.value-added-services li {
        font-size: 0.95rem;
    }
    .contact-info-services p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-item {
        padding: 15px 20px;
        margin-bottom: 25px;
    }
     .service-item h2 {
        font-size: 1.3rem;
    }
    .service-item p, .service-item.value-added-services li {
        font-size: 0.9rem;
    }
    .service-item.value-added-services ul {
        margin-left: 20px;
    }
}

.contact-page-layout {
    padding: 20px 0;
    margin-bottom: 40px;
}

.head-office-section {
    margin-bottom: 40px;
}

.head-office-section .contact-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(45, 55, 72, 0.08);
    padding: 0;
    text-align: center;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}
.head-office-section .contact-card:hover {
     box-shadow: 0 15px 35px rgba(45, 55, 72, 0.12);
}

.head-office-section .contact-card .contact-card-header {
    padding: 30px 25px 15px 25px;
    border-bottom: none; 
}

.head-office-section .contact-card .contact-icon {
    font-size: 2.8rem;
    color: #4169e1;
    margin-bottom: 18px;
}

.head-office-section .contact-card h3 {
    font-size: 1.5rem;
    color: #2d3748;
    font-weight: 600;
    position: relative; 
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 0;
}
.head-office-section .contact-card h3 .title-underline {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #4169e1;
    border-radius: 2px;
}

.head-office-section .contact-card .contact-card-body {
    padding: 10px 25px 30px 25px;
}
.head-office-section .contact-card .address {
    font-size: 1rem;
    line-height: 1.7;
    color: #5a677d;
    margin-bottom: 15px;
}
.head-office-section .contact-card .contact-info-item {
    font-size: 1rem;
    justify-content: center;
}

.contact-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(45, 55, 72, 0.08);
    padding: 0; 
    text-align: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-card:not(.head-office-section .contact-card)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background-color: #4169e1;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}
.contact-card:not(.head-office-section .contact-card):hover::before {
    width: 100%;
}
.contact-card:not(.head-office-section .contact-card):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(45, 55, 72, 0.12);
}


.contact-card-header {
    padding: 25px 20px 20px 20px;
    border-bottom: 1px solid #e9ecef;
    position: relative; 
}

.contact-icon {
    font-size: 2.2rem;
    color: #4169e1;
    margin-bottom: 15px;
    display: block;
    line-height: 1;
}

.contact-card h3 {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 0;
    font-weight: 600;
}

.contact-card-body {
    padding: 20px 25px 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card .contact-info-item {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5a677d;
    margin-bottom: 10px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center;
}
.contact-card .contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-card .contact-info-item .fas {
    margin-right: 8px;
    color: #788292;
    width: 18px; 
    text-align: center;
    font-size: 0.9em;
}

.contact-card .address {
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: normal;
    color: #5a677d;
    display: block;
}

.contact-card a {
    color: #4169e1; 
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.contact-card a:hover {
    color: #3252a8;
}

.contact-placeholder {
    font-style: italic;
    color: #868e96;
    padding: 10px 0;
    text-align: center;
    display: block;
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 0;
    align-items: stretch;
}

.contact-grid > .contact-section {
    min-width: 0;
}

.contact-grid.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out 0.2s, transform 0.5s ease-out 0.2s;
}
.contact-grid.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-section.animate-on-scroll { 
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.contact-section.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.head-office-section.animate-on-scroll.is-visible { transition-delay: 0.1s; }

.contact-grid .contact-section.animate-on-scroll.is-visible:nth-child(1) { transition-delay: 0.1s; }
.contact-grid .contact-section.animate-on-scroll.is-visible:nth-child(2) { transition-delay: 0.15s; }
.contact-grid .contact-section.animate-on-scroll.is-visible:nth-child(3) { transition-delay: 0.2s; }
.contact-grid .contact-section.animate-on-scroll.is-visible:nth-child(4) { transition-delay: 0.25s; }
.contact-grid .contact-section.animate-on-scroll.is-visible:nth-child(5) { transition-delay: 0.3s; }


.contact-iso-section {
    padding-top: 50px;
    margin-bottom: 50px;
}
.contact-iso-section.animate-on-scroll.is-visible {
    transition-delay: 0.4s;
}
.contact-iso-section .single-iso-badge-container .certification-item {
    max-width: 380px;
    margin: 0 auto;
}

@media (max-width: 1024px) { 
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .contact-grid .contact-section:nth-child(1),
    .contact-grid .contact-section:nth-child(2),
    .contact-grid .contact-section:nth-child(3),
    .contact-grid .contact-section:nth-child(4),
    .contact-grid .contact-section:nth-child(5) {
        grid-column: auto / span 1;
    }
   .contact-grid .contact-section:nth-child(odd):nth-last-child(1) { 
        grid-column: 1 / span 2;
   }
}

@media (max-width: 680px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .contact-grid .contact-section,
    .contact-grid .contact-section:nth-child(odd):nth-last-child(1) {
        grid-column: auto / span 1;
    }

    .head-office-section .contact-card h3 { font-size: 1.3rem; }
    .head-office-section .contact-card .contact-icon { font-size: 2.5rem; }
    .contact-card h3 { font-size: 1.15rem; }
    .contact-icon { font-size: 2rem; }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual {
        margin-top: 40px;
    }
    .floating-elements {
        flex-direction: column;
        align-items: center;
    }
     .floating-card {
        margin-bottom: 20px;
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .header-logo {
        margin-bottom: 10px;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    nav ul li {
        margin: 8px 0;
    }
    main {
        padding: 30px 15px;
    }
    .section-intro-text {
        font-size: 1rem;
    }
    .hero-section {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .stat-item {
        padding: 20px 10px;
    }
    .stat-number {
        font-size: 2.2rem;
    }
    .core-services-grid,
    .tech-grid,
    .why-choose-us-grid {
        grid-template-columns: repeat(2, 1fr);
    } 
    .tech-tile {
        height: 180px;
    }
    .particle-section {
        height: 300px;
    }
    .cta-section {
        padding: 40px 20px;
    }
    .footer-content {
        flex-direction: column;
    }
    .footer-links ul {
       margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }
    .prompt-container p {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    .floating-card {
        padding: 20px;
        min-width: 180px;
    }
}

@media (max-width: 550px) { 
    .floating-elements {
        flex-direction: column; 
        align-items: center; 
        gap: 20px;
    }
    .floating-card,
    .floating-card.card-cost {
        width: 80%; 
        max-width: 300px; 
    }
}

.industries-section {
    position: relative;
    padding: 60px 20px;
    background-color: #3f3f3f;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 20px 20px;
}

.industries-container {
    max-width: 2000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.industries-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.industry-card {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease; /* Simplified hover effect */
}

.industry-card:hover {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.industry-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
    z-index: 1;
}

.card-title {
    position: absolute;
    bottom: 20px; left: 20px;
    color: #ffffff; font-size: 1.5rem; font-weight: 600;
    z-index: 2; text-transform: capitalize;
}

.game-section {
    text-align: center;
    padding-top: 60px;
}

.play-game-button {
    background-color: #007bff;
    color: white; border: none; padding: 15px 30px;
    font-size: 1.2rem; font-weight: 600; border-radius: 8px;
    cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease;
}

.play-game-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* --- Game Modal Styles --- */

.game-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

/* Add a class to show the modal */
.game-modal-overlay.is-visible {
    display: flex;
}

.game-modal-content {
    position: relative;
    padding: 20px;
    background-color: #161b22;
    border-radius: 12px;
    border: 1px solid #30363d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close-game-button {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    color: #8b949e;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-game-button:hover {
    color: #ffffff;
}

#snake-game {
    background-color: #0d1117;
    border-radius: 8px;
}

.game-instructions {
    color: #c9d1d9;
    margin-top: 15px;
    font-style: italic;
    min-height: 20px; /* Prevents layout shift when text is hidden */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 40px;
    box-sizing: border-box;
}

.quote-button {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quote-button:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.quote-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(10, 20, 40, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quote-modal-overlay.is-visible {
    display: flex;
    opacity: 1;
}

.quote-modal-content {
    background-color: #161b22;
    color: #c9d1d9;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #30363d;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.quote-modal-overlay.is-visible .quote-modal-content {
    transform: scale(1);
}

.quote-modal-content h2 {
    color: #ffffff;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 2rem;
}

.quote-modal-content p {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    color: #8b949e;
}

.close-quote-button {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    color: #8b949e; font-size: 2.5rem; line-height: 1;
    cursor: pointer; transition: color 0.2s ease;
}

.close-quote-button:hover {
    color: #ffffff;
}

#quote-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

#quote-form .form-group {
    display: flex;
    flex-direction: column;
}

#quote-form .form-group.full-width {
    grid-column: 1 / -1;
}

#quote-form .form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: left;
}

#quote-form .form-group input,
#quote-form .form-group textarea {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 12px;
    color: #c9d1d9;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#quote-form .form-group input:focus,
#quote-form .form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#quote-form .form-group textarea {
    resize: vertical;
}

/* --- Embedded Verification Styles --- */
.honeypot-field {
    opacity: 0; position: absolute; top: 0; left: 0;
    height: 0; width: 0; z-index: -1;
}

.verification-group {
    margin: 20px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.verification-group label {
    margin-bottom: 10px;
    font-weight: 600;
}

.verification-group input {
    max-width: 100px;
    text-align: center;
}

#form-result {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    display: none;
}

#quote-form .submit-button {
    width: 100%;
    padding: 15px;
    background-color: #b81d2c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#quote-form .submit-button:hover {
    background-color: #a11926;
}

#quote-form .submit-button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    #quote-form .form-grid {
        grid-template-columns: 1fr;
    }
}

.terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 20, 40, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000; /* Higher than other modals */
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.terms-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.terms-modal-content {
    background-color: #ffffff;
    color: #333;
    padding: 30px 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh; /* Ensure it doesn't cover the whole screen vertically */
    overflow-y: auto; /* IMPORTANT for long text */
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.terms-modal-overlay.is-visible .terms-modal-content {
    transform: scale(1);
}

.terms-modal-content h2 {
    color: #2d3748;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: sticky; /* Keeps title visible when scrolling */
    top: -31px; /* Adjust based on padding */
    background: #ffffff;
    padding-top: 30px;
    padding-bottom: 15px;
    margin-left: -40px;
    margin-right: -40px;
}

.terms-modal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4169e1;
    margin-top: 20px;
    margin-bottom: 8px;
}

.terms-modal-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.close-terms-button {
    position: sticky; /* Keeps close button visible */
    top: -15px;      /* Adjust based on padding */
    right: 0px;
    float: right;
    background: none;
    border: none;
    color: #8b949e;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
}

.close-terms-button:hover {
    color: #333;
}

.industries-scroller-section {
    width: 100%;
    padding: 40px 0;
    background-color: #1e273c;
    overflow: hidden;
    position: relative;
}

.industries-scroller-container {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.industries-scroller {
    display: flex;
    width: fit-content;
    animation: scrollIndustries 40s linear infinite;
    will-change: transform;
}

@keyframes scrollIndustries {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.industries-scroller .industry-card {
    height: 220px;
    width: 320px; 
    margin: 0 15px;
    flex-shrink: 0; /* Prevent cards from shrinking */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.industries-scroller .industry-card:hover {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
    transform: translateY(-5px);
}

.industries-scroller .industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.industries-scroller .industry-card:hover img {
    transform: scale(1.05);
}

.industries-scroller .card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
    z-index: 1;
}

.industries-scroller .card-title {
    position: absolute;
    bottom: 20px; left: 20px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 2;
    text-transform: capitalize;
}

/* Special Card for 'Innovating for your future' */
.industries-scroller .special-card {
    background: linear-gradient(145deg, #1e273c 0%, #131823 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.special-card-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.special-card-content p {
    font-size: 1rem;
    color: #a0aec0; /* A light grey for subtitle */
    line-height: 1.4;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

@media (max-width: 768px) {
    /* Make hamburger visible on mobile */
    .hamburger-menu {
        display: block;
    }

    /* Adjust header to a single row for better alignment on mobile */
    header {
        flex-direction: row; /* Override the column direction */
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    .header-logo {
        margin-bottom: 0; /* Remove bottom margin from column layout */
    }

    /* Reposition and hide the navigation menu for mobile */
    nav {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        padding-top: 80px; /* Space for header */
    }

    /* Class to show the navigation menu */
    nav.nav-active {
        right: 0;
    }
    
    /* Override nav list styles for the slide-out menu */
    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 20px 0;
    }

    nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        font-size: 1.2rem;
        padding: 10px 0;
        width: 100%;
        display: block;
    }

    /* Animation for hamburger turning into an 'X' */
    .hamburger-menu.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Prevent body from scrolling when menu is open */
    body.no-scroll {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    /* Reset the large negative margins on the home page sections to prevent overlap on mobile */
    .hero-section,
    .welcome-section {
        margin-top: 0 !important;
    }
}