/* Custom CSS for Lanspect Engineering Website */

/* ======================
   FOOTER STYLES
   ====================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Footer Base */
footer {
    background-color: #111827; /* bg-gray-900 */
    color: white;
    position: relative;
    overflow: hidden;
}

/* Footer Top Border */
footer .top-border {
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #2563EB);
}

/* Footer Links */
footer a {
    transition: color 0.2s ease;
}

/* Social Icons */
footer .social-icons a {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
}

footer .social-icons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Section Headers */
footer h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #374151;
}

/* Hover Effects */
.social-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.footer-link:hover {
    transform: translateY(-1px);
}

/* Footer Structure */
.footer-structure {
    background: #0b1a33;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    padding-top: 40px;
}

.footer-top {
    padding-bottom: 40px;
    background: linear-gradient(135deg, black 30%, #004a85 70%);
    background-size: 400% 400%;
    animation: gradientMove 10s ease-in-out infinite;
}

.footer-color {
    color: #ffffff;
}

.footer-margin {
    margin-left: 1%;
}

.footer-font-size {
    font-size: 15px;
}

/* About/Contact Section */
.footer-about p {
    color: #dcdcdc;
    line-height: 1.7;
    font-size: 14px;
}

.footer-about a, .contact-a {
    text-decoration: none;
    color: white;
}

.contact-a:hover {
    color: #33aaff;
}

/* Quick Links */
.footer-links ul {
    padding: 0;
    margin-top: 10px;
}

.footer-links ul li {
    list-style: none;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    padding: 1% 0;
    color: white;
}

.footer-ul-icon-gap {
    margin-right: 10px;
    color: #33aaff;
    font-size: 16px;
}

.footer-links ul li a {
    color: #dcdcdc;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: #33aaff;
}

/* Services Section */
.footer-col-6 {
    width: 50%;
}

.footer-service-left-gap {
    padding-left: 3%;
}

.footer-services-right {
    padding-left: 0;
}

.footer-services-right li a {
    font-size: 14px;
}

.footer-services-right li i {
    color: #33aaff;
}

.footer-ourservice-second {
    font-size: 16px;
    margin-bottom: 12px;
}

/* Request a Quote Button */
.requestquote {
    background: #33aaff;
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: 0.3s;
}

.requestquote:hover {
    background: #1f7bbd;
}

/* About Us hero */
.about-hero-section {
    position: relative;
    background-image: linear-gradient(180deg, rgba(3, 7, 18, 0.88), rgba(15, 23, 42, 0.58)), url('images/AboutUs/Aboutus.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(1.5px);
}

.about-hero-section > div {
    position: relative;
}

.about-hero-inner {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 0;
}

#about .py-24 {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 12rem;
    padding-bottom: 6rem;
}

/* Medium screens: tablets (≤ 1024px) */
@media (max-width: 1024px) {
    #about .py-24 {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
}

/* Small screens: tablets / large phones (≤ 768px) */
@media (max-width: 768px) {
    #about .py-24 {
        min-height: 360px;
        padding-top: 7rem;
        padding-bottom: 3rem;
        flex-direction: column;
        text-align: center;
    }
}

/* Extra small screens: small phones (≤ 480px) */
@media (max-width: 480px) {
    #about .py-24 {
        min-height: 320px;
        padding-top: 6rem;
        padding-bottom: 2.5rem;
    }
}
/* Centered copy for About hero */
.about-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.about-hero-left {
    align-items: flex-start;
    text-align: left;
}

.about-hero-title,
.about-hero-subtitle {
    opacity: 0;
    animation: slide-right 0.8s ease forwards;
}

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.section-line {
    display: block;
    width: 120px;
    height: 3px;
    margin: 0 auto;
    border-radius: 999px;
    background: #33aaff;
}

.about-hero-subtitle {
    animation-delay: 0.3s;
}

/* About hero refined layout */
.about-hero-frame {
    position: relative;
    border-radius: 1.5rem;
    background: transparent;
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.7);
    overflow: hidden;
}

.about-hero-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(191, 219, 254, 0.8) 10%,
        rgba(37, 99, 235, 0.95) 50%,
        rgba(191, 219, 254, 0.8) 90%,
        transparent 100%
    );
    background-size: 300% 100%;
    animation: borderFlow 4s linear infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes borderFlow {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.about-hero-frame-inner {
    border-radius: inherit;
    padding: 2.5rem 2.75rem;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.2));
    backdrop-filter: blur(1px);
    position: relative;
    z-index: 1;
}

.about-hero-frame-inner .about-hero-title {
    letter-spacing: 0.08em;
}

.about-hero-kicker {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #bfdbfe;
}

.about-hero-meta {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.about-hero-cta-btn {
    padding: 0.75rem 1.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.45);
}

.about-hero-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.about-hero-pill {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.45), rgba(15, 23, 42, 0.25));
    font-size: 0.8rem;
    font-weight: 500;
    color: #e5edff;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.about-hero-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
    border-color: rgba(191, 219, 254, 0.9);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.85), rgba(15, 23, 42, 0.4));
}

@media (max-width: 768px) {
    .about-hero-inner {
        padding-top: 4.5rem;
        padding-bottom: 3.5rem;
    }

    .about-hero-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-hero-frame-inner {
        padding: 1.75rem 1.75rem;
    }
}

@keyframes slide-right {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* info banner */
.info-banner {
    /* background: linear-gradient(135deg, rgba(15, 97, 252, 0.15), rgba(10, 22, 54, 0.95)); */
    /* box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45); */
}

.info-banner-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.4);
}

.info-banner-text {
    flex: 1;
    color: #f0f4ff;
    font-weight: 500;
}

.info-banner-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.6rem;
    border-radius: 999px;
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 600;
    border: 1px solid rgba(29, 78, 216, 0.2);
    text-decoration: none;
    overflow: hidden;
    transition: color 0.4s ease;
}

.info-banner-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
    z-index: 0;
}

.info-banner-btn span {
    position: relative;
    z-index: 1;
}

.info-banner-btn:hover::after {
    transform: scaleX(1);
}

.info-banner-btn:hover {
    color: #ffffff;
    border-color: transparent;
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.about-cta-btn span {
    position: relative;
    z-index: 2;
}

.about-cta-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
    z-index: 1;
}

.about-cta-btn:hover {
    color: #ffffff;
    border-color: transparent;
}

.about-cta-btn:hover::after {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .info-banner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 1.25rem;
        border-radius: 0;
    }

    .info-banner-text {
        flex: none;
        width: 100%;
        font-size: 0.95rem;
    }

    .info-banner-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Footer Bottom */
.footer-bottom {
    background: #081325;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #33aaff;
}

/* Wave Shape + Social Links */
.wave-shape {
    background: linear-gradient(to right, #0a1731, #112d57);
    text-align: center;
    padding: 25px 0;
}

.footer-social-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    margin-top: -2.5%;
    margin-right: -72%;
}

.footer-social-links a {
    font-size: 22px;
    margin: 0 10px;
    color: white;
    transition: 0.3s;
}

.footer-social-links a:hover {
    color: #33aaff;
}

/* Mobile Footer */
.mobile-footer {
    display: none;
    background: #0b1a33;
    text-align: center;
    color: white;
    padding: 20px;
    font-size: 14px;
}

.mobile-footer a {
    color: white;
    text-decoration: none;
}

.mobile-footer a:hover {
    color: #33aaff;
}

.social-icons a {
    margin: 0 10px;
    font-size: 22px;
    color: white;
}

.social-icons a:hover {
    color: #33aaff;
}

/* Animation for gradient background movement */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive Footer Behavior */
@media (max-width: 992px) {
    .footer-quote {
        text-align: left !important;
    }
}

@media (max-width: 768px) {
    .footer-structure {
        display: none;
    }

    footer.mobile-footer {
        display: block;
    }

    .footer {
        padding: 20px;
    }

    .footer-social-links {
        margin-top: 10px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .social-icons a {
        font-size: 20px;
        margin: 0 6px;
    }

    .footer-top::before {
        height: 9% !important;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .footer-top {
        padding: 20px 0;
    }

    .footer-top .footer-company {
        font-size: 14px;
        left: 10px;
    }

    .footer-top::before {
        height: 8%;
    }
}

/* Footer Line Effect */
.footer-line {
    background-color: #121212;
    color: white;
    padding: 40px 0;
    position: relative;
}

.footer-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15%;
    background: linear-gradient(135deg, #003157, #3a8edb);
    clip-path: polygon(0 0%, 100% 0%, 0% 100%);
}

/* Company Name Styling */
.footer-top .footer-company {
    position: absolute;
    top: 20px;
    left: 15px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    footer .grid {
        gap: 2.5rem;
    }

    footer .border-t {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

/* Footer Contact */
.footer-contact a {
    color: white;
    font-size: 14px;
    text-decoration: none;
    text-align: left;
}

.footer-contact a:hover {
    color: #00b0b9;
}

/* Link Items */
footer ul li a {
    display: flex;
    align-items: center;
    color: #9CA3AF;
    padding: 0.25rem 0;
    transition: all 0.2s ease;
    font-size: 0.9rem; /* ~14.4px */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

footer ul li a:hover {
    color: white;
    transform: translateX(4px);
}

footer ul li a i {
    font-size: 0.75rem;
    margin-right: 0.5rem;
    color: #3B82F6;
}

/* Bottom Bar */
.footer-bottom {
    background: linear-gradient(90deg, #111827, #1F2937, #111827);
    border-top: 1px solid #374151;
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    footer .grid {
        gap: 2.5rem;
    }

    footer .border-t {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .flex {
        flex-direction: column;
    }

    .footer-bottom .md\:mt-0 {
        margin-top: 1rem;
    }
}

/* Hover Effects */
.social-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.footer-link:hover {
    transform: translateY(-1px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.7s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.7s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Staggered animation delays */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* Custom gradient backgrounds */
.gradient-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
}

.gradient-overlay {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 64, 175, 0.8) 100%);
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Ripple hover effect for primary button */
.ripple-btn {
    position: relative;
    overflow: hidden;              /* hide the expanding circle */
    isolation: isolate;            /* avoid blending issues in some browsers */
}

/* circle that expands from the center */
.ripple-btn::before {
    content: "";
    position: absolute;
    inset: 50%;                    /* start at center */
    transform: translate(-50%, -50%) scale(0);
    width: 200%;                   /* large enough to cover button */
    height: 200%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0, transparent 60%);
    opacity: 0;
    transition:
        transform 0.5s ease-out,
        opacity 0.5s ease-out;
    pointer-events: none;
    z-index: -1;
}

/* on hover: expand and fade */
.ripple-btn:hover::before,
.ripple-btn:focus-visible::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* keep existing hover for color/scale, combine with ripple */
.ripple-btn:hover,
.ripple-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* About page feature cards: stronger hover with blue border and slight scale */
.about-feature.card-hover:hover {
    border: 2px solid #2563eb; /* blue border on hover */
    transform: translateY(-5px) scale(1.02);
}

/* Service card styles */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

/* Home services flip-cards ("What's Our Superpower?" style) */
.services-flip-grid {
    /* marker class used for JS to skip default hover transform */
    position: relative;
}

.services-flip-card {
    perspective: 1100px;
}
.service-copy {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.service-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    /* margin-bottom: 1rem; */
}
.service-description,
.service-copy h2,
.service-bullets li {
    color: #1f2937;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.service-link {
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 50%, #1d4ed8 100%);
    z-index: -1;
    transition: transform 0.5s ease-out;
    transform-origin: center;
}

.service-link:hover {
    color: white;
    background-color: transparent;
    border-radius: 0.375rem;
}

.service-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.service-link i {
    transition: transform 0.3s ease;
    position: relative;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* Click effect */
.service-link:active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%) scale(0);
    border-radius: 50%;
    animation: ripple 0.6s ease-out;
    z-index: -1;
}

@keyframes ripple {
    to {
        transform: translateX(-50%) scale(2);
        opacity: 0;
    }
}
.icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.icon-badge.blue {
    background: #e0f2fe;
}
.services-flip-inner {
    position: relative;
    width: 100%;
    min-height: 260px;
    transform-style: preserve-3d;
    transition:
        transform 0.7s cubic-bezier(0.21, 0.61, 0.35, 1),
        box-shadow 0.4s ease;
    border-radius: 1rem;
}

.services-flip-card:hover .services-flip-inner {
    transform: rotateY(180deg);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.20);
}

.services-flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 1rem;
    overflow: hidden;
}

.services-flip-front {
    background: #f9fafb;
}

.services-flip-back {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #e5edff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.services-flip-back h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #eff6ff;
}

.services-flip-back p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #dbeafe;
}

.services-flip-back ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.services-flip-back li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.services-flip-back li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #93c5fd;
}

.services-flip-back a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #bfdbfe;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.services-flip-back a:hover {
    color: #ffffff;
}

/* Navigation styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #2563eb;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

nav .group .absolute {
    width: 36rem !important;
    max-width: 90vw;
    z-index: 9999;
    pointer-events: auto;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row;
    align-items: stretch;
    white-space: normal !important;
}

nav .group .absolute a span {
    white-space: nowrap;
}

nav .group:hover .absolute {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Ensure dropdown items stack vertically and fill the menu width */
nav .group .absolute a {
    display: flex !important;
    align-items: center;
    width: 100% !important;
}

/* Hero section styles */
.hero-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 3.5rem;
}

.hero-bg::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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Stats counter animation */
.stat-number {
    font-weight: 700;
    color: #ffffff;
}

/* Project card styles */
.project-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-image {
    transition: all 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

/* Form styles */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

/* Mobile responsiveness */

@media (max-width: 640px) {
  nav .align-middle {
    font-size: 1rem !important;
    max-width: 60vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
  }
  nav .flex.items-center > .flex-shrink-0 {
    min-width: 0;
  }
  nav .flex.items-center {
    min-width: 0;
  }
  nav .flex.justify-between.items-center.h-16 {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.loading:nth-child(1) { animation-delay: 0.1s; }
.loading:nth-child(2) { animation-delay: 0.2s; }
.loading:nth-child(3) { animation-delay: 0.3s; }
.loading:nth-child(4) { animation-delay: 0.4s; }

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 9999;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Floating buttons styles */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    color: white;
    font-size: 24px;
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.floating-btn:active {
    transform: scale(0.95);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #1BA84F 100%);
}

.chatbot-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.chatbot-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* Back to Top Button */
#backToTopBtn {
    position: fixed;
    bottom: 120px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 40;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#backToTopBtn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#backToTopBtn:active {
    transform: translateY(-1px);
}

#backToTopBtn.show {
    display: flex;
    animation: fadeInUp 0.3s ease-out;
}

@media (max-width: 768px) {
    #backToTopBtn {
        width: 45px;
        height: 45px;
        bottom: 110px;
        left: 15px;
        font-size: 20px;
    }
}

@media print {
    #backToTopBtn {
        display: none !important;
    }
}

.floating-label {
    position: absolute;
    right: 75px;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.floating-btn:hover .floating-label {
    opacity: 1;
}

/* Mobile responsiveness for floating buttons */
@media (max-width: 640px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .floating-label {
        right: 65px;
        font-size: 12px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }

    .floating-buttons {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

.card-scroll-section {
    padding: 4rem 0;
    background: radial-gradient(circle at top left, #eff6ff 0, #f9fafb 40%, #ffffff 100%);
}

.card-scroll-header {
    max-width: 960px;
    margin: 0 auto 2rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.card-scroll-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.card-scroll-header p {
    margin-top: 0.75rem;
    font-size: 1rem;
    color: #6b7280;
}

.card-scroll-wrapper {
    position: relative;
    padding: 0 1.5rem;
}

.card-scroll-list {
    display: flex;
    flex-direction: row;
    gap: 1.75rem;
    list-style: none;
    padding-bottom: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.card-scroll-list::-webkit-scrollbar {
    height: 6px;
}

.card-scroll-list::-webkit-scrollbar-track {
    background: #e5e7eb;
}

.card-scroll-list::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 999px;
}

.card-scroll {
    flex: 0 0 min(460px, 85vw);
    scroll-snap-align: start;
    list-style: none;
    position: relative;
}

.card-scroll-inner {
    width: 100%;
    height: 100%;
}

.card-scroll-face {
    position: static;
    inset: auto;
    backface-visibility: hidden;
    border-radius: 1.5rem;
    overflow: hidden;
}

.card-scroll-face.card-scroll-front {
    z-index: 1;
}

.card-scroll-face.card-scroll-back {
    display: none;
}

.card-scroll.flip-active .card-scroll-inner {
    transform: none;
}

.card-body-scroll {
    height: 100%;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.16);
    overflow: hidden;
    transform: translateY(30px) scale(0.94);
    opacity: 0;
    transition:
        transform 0.55s cubic-bezier(0.21, 0.61, 0.35, 1),
        box-shadow 0.45s ease,
        opacity 0.55s ease;
}

.card-scroll.visible .card-body-scroll {
    opacity: 1;
    transform: translateY(0) scale(1.04);
}

.card-body-scroll:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(37, 99, 235, 0.15);
}

.homepage-section-1-box {
    display: grid;
    grid-template-columns: 160px 1fr;
min-height: 220px;
    min-height: 220px;
}

.homepage-sec-1-left {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    position: relative;
}

.homepage-sec-1-left::before {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    opacity: 0.7;
}

.homepage-sec-1-right {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.homepage-sec-1-right h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.homepage-sec-1-right h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
}

.homepage-sec-1-right hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0.5rem 0 0.75rem;
}

.list-items-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.list-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-items li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.list-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #2563eb;
}

.homepage-sec-1-right a {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.homepage-sec-1-right a::after {
    content: '→';
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.homepage-sec-1-right a:hover::after {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .card-scroll-section {
        padding: 3rem 0;
    }

    .homepage-section-1-box {
        grid-template-columns: 1fr;
    }

    .homepage-sec-1-left {
        min-height: 140px;
    }

    .homepage-sec-1-right {
        padding: 1.25rem 1.4rem 1.4rem;
    }

    .list-items-section {
        grid-template-columns: 1fr;
    }
}

/* Superpower scroll-reveal section */
.superpower-section {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.superpower-header {
    max-width: 720px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.superpower-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.03em;
}

.superpower-subtitle {
    margin-top: 0.75rem;
    font-size: 1rem;
    color: #6b7280;
}

.superpower-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.superpower-item {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.75rem 1.8rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition:
        opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.7s cubic-bezier(0.19, 1, 0.22, 1),
        box-shadow 0.4s ease;
}

.superpower-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.superpower-item:hover {
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
}

.superpower-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0%, #bfdbfe 0, #1d4ed8 55%, #0f172a 100%);
    margin-bottom: 1rem;
}

.superpower-icon {
    width: 22px;
    height: 22px;
    color: #eff6ff;
}

.superpower-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.superpower-item p {
    font-size: 0.95rem;
    color: #4b5563;
}

@media (max-width: 1024px) {
    .superpower-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .superpower-section {
        padding: 3rem 0 3.5rem;
    }

    .superpower-title {
        font-size: 1.6rem;
    }

    .superpower-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.client-marquee-wrapper {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem 0;
}

.client-marquee-track {
    display: flex;
    gap: 2rem;
    align-items: center;
    animation: marquee-rtl 5s linear infinite;
    animation-play-state: running;
    min-width: max-content;
}

.client-card {
    height: 160px;
    width: 180px;
    filter: none !important;
    opacity: 1;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-card:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.client-detail-panel {
    margin-top: 1.5rem;
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.client-detail-panel h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.client-detail-panel p {
    margin: 0.35rem 0 0;
    color: #4b5563;
}

@keyframes marquee-rtl {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .about-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .about-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* About us -Our Services */
.services-flip-front .manpower-overlay {
    position: absolute;
    inset: auto 0 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.7) 75%, rgba(2, 6, 23, 0.9) 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-feature {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), rgba(15, 23, 42, 0.05));
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.about-feature::after {
    /* overlay removed: no extra hover color */
}

.about-feature > * {
    position: relative;
    z-index: 1;
}

.services-flip-front .manpower-overlay span {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.services-flip-front a {
    position: relative;
    display: block;
	height: 100%;
}

.services-flip-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.8) 60%, rgba(15, 23, 42, 0.95) 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.9rem 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.service-overlay-icon {
    width: 22px;
    height: 22px;
    line-height: 1;
}

.service-overlay span {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}
.services-flip-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.services-flip-back a::after {
    content: '\2192';
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.services-flip-back a:hover::after {
    transform: translateX(4px);
}

.manpower-card {
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.7)), url('images/Services/Manpower-Solutions.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    color: #f8fafc;
}

.manpower-description,
.manpower-bullets {
    color: rgba(248, 250, 252, 0.9);
}

/* .service-link {
    color: #bae6fd;
}

.service-link:hover {
    color: #e0f2fe;
} */



.manpower-title {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}



.service-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Clean hover effect for service cards */
.service-card:hover {
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.25);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    transition: all 0.25s ease;
}

/* Remove white hover effect from "Why Choose Us" cards (about-feature inside blue section) */
.bg-blue-900 .about-feature.service-card:hover {
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.35);
    border-color: rgba(148, 163, 184, 0.45);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), rgba(15, 23, 42, 0.05));
    transform: none;
}

/* Service card image container */
.service-image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

/* Ensure consistent image height for all service cards */
.service-card img {
    width: 100%;
    /* height: 200px; */
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: block; /* Remove any extra spacing */
}

/* Specific fix for Handyman Services image */
#handyman-services img {
    object-position: center 25%; /* Better centered for the handyman image */
    object-fit: cover; /* Ensure consistent image coverage */
    width: 100%; /* Ensure full width */
    height: 200px; /* Match other service card images */
}

/* Maintain aspect ratio for all service images */
.service-image-card {
    position: relative;
    overflow: hidden;
}

.service-image-card img {
    transition: transform 0.3s ease;
}

.service-image-card:hover img {
    transform: scale(1.03);
}

/* Extracted CSS specifically for Resident-Technical-Officer.html (copied from styles.css to keep layout consistent) */

/* Custom CSS for Lanspect Engineering Website */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes */
/*.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.7s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.7s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}*/

/* Staggered animation delays */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* Custom gradient backgrounds */
.gradient-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
}

.gradient-overlay {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 64, 175, 0.8) 100%);
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    }

/* Ripple hover effect for primary button */
.ripple-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

    .ripple-btn::before {
        content: "";
        position: absolute;
        inset: 50%;
        transform: translate(-50%, -50%) scale(0);
        width: 200%;
        height: 200%;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,255,255,0.35) 0, transparent 60%);
        opacity: 0;
        transition: transform 0.5s ease-out, opacity 0.5s ease-out;
        pointer-events: none;
        z-index: -1;
    }

    .ripple-btn:hover::before,
    .ripple-btn:focus-visible::before {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    .ripple-btn:hover,
    .ripple-btn:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    }

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

/* Service card styles */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .service-card:hover::before {
        left: 100%;
    }

/* Navigation styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 50%;
        background-color: #2563eb;
        transition: all 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
        left: 0;
    }

/* Hero & section titles (used on careers page, can share with RTO page) */
.hero-title {
    font-weight: 700;
}

.hero-subtitle {
    color: #4b5563;
}

.section-title {
    letter-spacing: 0.03em;
}

/* Back to Top Button */
#backToTopBtn {
    position: fixed;
    bottom: 120px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-center: center;
    font-size: 24px;
    z-index: 40;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

    #backToTopBtn:hover {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

    #backToTopBtn.show {
        display: flex;
    }

/* About feature grid (shared component) */
.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .about-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .about-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero image carousel layout */
.image-carousel {
    width: 100%;
    height: 100%;
}

/* 3D Flip Card Carousel */
.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0;              /* remove extra padding so images can fill */
    width: 100%;
    height: 100%;
    /* border-radius: 1.5rem; */
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;          /* each slide takes full width of container */
    perspective: 1000px;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* full-bleed, no white gaps */
    display: block;
}

/* 3D Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.carousel-slide:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem;
    pointer-events: none; /* arrows handle pointer events */
}

.carousel-arrow {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a8a;
    border: none;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    transition: all 0.2s ease;
    pointer-events: auto;
}

.carousel-arrow:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.45);
}

/* Active Dot */
.dot.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .flip-card {
        height: 22rem;
    }
}

/* Statistics Section Styles */
.stat-card {
    background: rgba(255,255,255,0.16);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 18px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.18);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.25s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(1px) saturate(1.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
}

.stat-card .counter {
    font-size: 2.8rem;
    font-weight: 800;
    color: #8fd4ff;
    text-shadow: 0 2px 8px rgba(30, 64, 175, 0.18);
}

.stat-card .counter::after {
    content: '+';
    color: #8fd4ff;
    font-size: inherit;
    font-weight: 900;
    margin-left: 0.15em;
    vertical-align: baseline;
    display: inline;
}

.stat-card .text-blue-100 {
    color: #e3efff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    text-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
    border-color: rgba(191, 219, 254, 0.8);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.5), rgba(15, 23, 42, 0.2));
}

.stat-card:hover::before {
    opacity: 1;
}

.counter {
    background: linear-gradient(90deg, #fdfdfd, #94b8f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

footer .py-16 {
padding-top: 1rem;
padding-bottom: 1rem;
}

.pb-16 {
padding-bottom: 1rem;
}

.py-20 {
padding-top: 2rem;
padding-bottom: 2rem;
}

.py-16 {
padding-top: 2rem;
padding-bottom: 2rem;
}

.certificate-modal {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
z-index: 9999;
}

.certificate-modal.open {
display: flex;
}

.certificate-modal-backdrop {
position: absolute;
inset: 0;
background: rgba(15, 23, 42, 0.75);
}

.certificate-modal-content {
position: relative;
max-width: 90vw;
max-height: 90vh;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
}

.certificate-modal-image {
max-width: 100%;
max-height: 100%;
border-radius: 0.75rem;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
background: #ffffff;
}

.certificate-modal-close {
position: absolute;
top: 0.5rem;
right: 0.75rem;
font-size: 2rem;
line-height: 1;
color: #0f172a;
background: #ffffff;
border-radius: 9999px;
width: 2.5rem;
height: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
border: none;
cursor: pointer;
}

.certificate-modal-prev,
.certificate-modal-next {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 3rem;
height: 3rem;
border-radius: 9999px;
border: none;
background: rgba(255, 255, 255, 0.9);
color: #1d4ed8;
font-size: 1.5rem;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}

.certificate-modal-prev {
left: -1.5rem;
}

.certificate-modal-next {
right: -1.5rem;
}
