/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f97316;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* default nav links */
.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--secondary-color);
}

.nav-menu li a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* ================= HERO SECTION ================= */

.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    /* space for fixed navbar */
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.8);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    padding-top: 12px;
}

/* Main typed title (responsive) */
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    line-height: 1.2;
    word-break: break-word;
    white-space: normal;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtitle smaller than title */
.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* ensure typed span inherits visible styles */
#typed-text {
    display: inline-block;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: normal;
    text-align: center;
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Section */
.stats {
    background-color: var(--light-bg);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ================= About SECTION ================= */
.about {
    padding: 2.5rem 0 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 5px;
    color: var(--primary-color);
    font-weight: 600;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us */
.why-choose {
    background-color: var(--light-bg);
    padding: 5rem 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-item {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.why-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.why-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.why-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.why-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ================= Services SECTION ================= */
.services {
    padding: 2.5rem 0 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 2rem;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(30, 58, 138, 0.85));
    z-index: 0;
}

.service-card * {
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.service-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: #f97316;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    line-height: 1.8;
}

.service-card ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    font-size: 0.95rem;
}

.service-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f97316;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Background Images */
.bg-piling {
    background-image: url("../gallery img/piling-machinery-on-site.jpeg");
}


.bg-rental {
    background-image: url("../gallery img/hydraulic-piling-machine-on-site.jpeg");
}

.bg-special {
    background-image: url("../gallery img/railway-bridge-construction.jpeg");
}

.bg-testing {
    background-image: url("../gallery img/manual-pile-driving-worksite.jpeg");
}

.bg-extra {
    background-image: url("../gallery img/MS-Line-Plate-Rolling.jpg");
}

/* ================= TEAM SECTION ================= */
.team {
    background-color: var(--light-bg);
    padding: 2.5rem 0 3rem;
}

.team .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 3.5rem;
}

.team-outline {
    border: 2px solid #2f5fd7;
    border-radius: 70px;
    padding: 2rem 0.5rem;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 100%;
}

.team-card {
    width: 340px;
    max-width: 100%;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 100%;
    height: 340px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f0ff, #f5f9ff);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-card h3 {
    margin: 1.4rem 0 0.4rem;
    color: var(--primary-color);
    font-size: 1.45rem;
    font-weight: 600;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding-bottom: 1.6rem;
    margin: 0;
}

@media (max-width: 900px) {
    .section-title {
        font-size: 2rem;
    }

    .team-outline {
        border-radius: 50px;
        padding: 3.5rem 2rem;
    }

    .team-card {
        width: 320px;
    }

    .team-image {
        height: 320px;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 1.75rem;
    }

    .team-outline {
        border-radius: 35px;
        padding: 3rem 1.25rem;
    }

    .team-grid {
        gap: 2rem;
    }

    .team-card {
        width: 100%;
        max-width: 360px;
    }

    .team-image {
        height: 300px;
    }

    .team-card h3 {
        font-size: 1.3rem;
    }

    .team-role {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .team-image {
        height: 270px;
    }
}

/* ================= PROJECTS SECTION ================= */

.projects {
    padding: 2.5rem 0 3rem;
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1e3a8a;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #64748b;
}


.projects-wrapper {
    position: relative;
}

.projects-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #f97316;
    transform: translateX(-50%);
}

.projects-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #f97316;
    transform: translateY(-50%);
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    position: relative;
    z-index: 2;
}


.project-item {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}


.project-image {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    margin: 0 auto 1.75rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.project-content {
    text-align: center;
}

.project-title {
    font-size: 1.35rem;
    color: #1e3a8a;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.project-desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    max-width: 640px;
    margin: auto;
}


@media (max-width: 1024px) {
    .projects-grid {
        gap: 3rem;
    }

    .project-image {
        max-width: 520px;
    }

    .project-item {
        padding: 2.5rem 1.75rem;
    }
}

@media (max-width: 768px) {

    .projects-wrapper::before,
    .projects-wrapper::after {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-image {
        max-width: 100%;
    }

    .project-item {
        padding: 2.25rem 1.5rem;
    }
}

@media (max-width: 480px) {

    .section-title {
        font-size: 2rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-desc {
        font-size: 0.95rem;
    }
}

/* project Links  */
.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-link .project-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-link .project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-link .project-item:hover .project-title {
    color: var(--secondary-color);
}

/* ================= TESTIMONIALS / FEEDBACK SECTION ================= */
.testimonials {
    background-color: var(--light-bg);
    padding: 5rem 0;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    min-height: 420px;
    padding-bottom: 1.2rem;
    overflow: hidden;
}

.testimonial-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.testimonial-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            var(--primary-color),
            var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.testimonial-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.client-name {
    color: var(--text-dark);
    font-weight: 600;
}

.client-role {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

@media (max-width: 576px) {
    .testimonial-slider {
        min-height: 520px;
        padding-bottom: 1rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-header {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-dots {
        margin-top: 0.4rem;
    }
}

/* ================= GALLERY SECTION ================= */

.assets-slider {
    position: relative;
    max-width: 1200px;
    width: 92%;
    margin: 2.5rem auto 2rem;
    overflow: visible;
}

.assets-track-wrapper {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.assets-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(.22, .9, .35, 1);
    will-change: transform;
    gap: 16px;
    padding: 20px 0;
    align-items: center;
}


.asset-slide {
    flex: 0 0 calc(33.333% - 10.667px);
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.asset-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.asset-slide.center {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    z-index: 5;
}


.asset-prev,
.asset-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(30, 58, 138, 0.95);
    color: #fff;
    border: none;
    font-size: 1.8rem;
    padding: 14px 18px;
    cursor: pointer;
    z-index: 100;
    border-radius: 10px;
    transition: all .3s ease;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-prev:hover,
.asset-next:hover {
    background-color: var(--secondary-color);
    transform: translateY(-50%) scale(1.08);
}

.asset-prev {
    left: -25px;
}

.asset-next {
    right: -25px;
}


.assets-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
    padding: 10px 0;
}

.asset-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: all .3s ease;
}

.asset-dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}


@media (max-width: 992px) {
    .asset-slide {
        flex: 0 0 calc(50% - 8px);
    }

    .asset-prev {
        left: -18px;
    }

    .asset-next {
        right: -18px;
    }
}

@media (max-width: 600px) {
    .assets-slider {
        width: 100%;
        margin: 1.5rem 0;
    }

    .asset-slide {
        flex: 0 0 100%;
        aspect-ratio: 3 / 4;
    }

    .assets-track {
        gap: 0;
        padding: 0;
    }

    .asset-prev,
    .asset-next {
        font-size: 1.4rem;
        padding: 10px 14px;
        display: flex;
        z-index: 120;
    }

    .asset-prev {
        left: 10px;
    }

    .asset-next {
        right: 10px;
    }
}

/* ================= CONTACT SECTION ================= */
.contact {
    background-color: var(--light-bg);
    padding: 2.5rem 0 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2.5rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1.1rem;
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-dark);
}

.contact-form {
    background-color: var(--white);
    padding: 1.75rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 1.1rem;
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.error-message {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    min-height: 14px;
    display: block;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #dc2626;
}

.contact-form button {
    width: 100%;
}

#contactSubmitBtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-loader {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #ffffff;
    animation: spin 0.7s linear infinite;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-loader.visible {
    opacity: 1;
    transform: scale(1);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Compact success popup */
.contact-success {
    position: fixed;
    top: 20px;
    right: 20px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-success.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.contact-success-inner {
    background: #ecfdf5;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 340px;
    border: 1px solid #22c55e;
}

.contact-success-inner h3 {
    margin: 0.3rem 0 0.2rem;
    color: #166534;
    font-size: 1rem;
    font-weight: 600;
}

.contact-success-inner p {
    margin: 0;
    color: #15803d;
    font-size: 0.875rem;
    line-height: 1.4;
}

.success-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}


/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

/* Changed from svg to .social-icon (img tag) */
.social-links a .social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Changed from svg to .social-icon */
.social-links a:hover .social-icon {
    transform: scale(1.1);
}

/* Style for the span text */
.social-links a span {
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-links {
        flex-direction: column;
    }

    .social-links a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .social-links a {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }

    .social-links a .social-icon {
        width: 18px;
        height: 18px;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        gap: 4px;
        height: 36px;
        width: 36px;
        align-items: center;
        justify-content: center;
    }

    /* on small screens: nav menu becomes a block that pushes content down when active */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: none;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        height: 100vh;
        min-height: 600px;
    }

    /* ensure hero content gets extra top spacing so navbar doesn't overlap */
    .hero-content {
        padding-top: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 500px;
    }

    .hero-title {
        font-size: 1.9rem;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .why-grid,
    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Zoom In-Out (simultaneous) --- */
@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/* keeps overlay visible while zooming */
.service-card.auto-hover,
.service-card.zoom-effect {
    transform-origin: center center;
}

/* show overlay when auto-hovering */
.service-card.auto-hover::after {
    opacity: 1;
    transition: opacity 0.25s ease;
}

/* animation class applied to all cards simultaneously */
.service-card.zoom-effect {
    animation: zoomInOut 1s ease-in-out;
}

/* optional: small shadow/glow during effect (tweak as needed) */
.service-card.auto-hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* optional: small shadow/glow during effect (tweak as needed) */
.service-card.auto-hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Pulse animation for WhatsApp button */
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }

    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

.whatsapp-float::before {
    content: "Chat with us";
    position: absolute;
    right: 70px;
    background-color: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover::before {
    opacity: 1;
}

/* Tooltip arrow */
.whatsapp-float::after {
    content: "";
    position: absolute;
    right: 60px;
    border: 5px solid transparent;
    border-left-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover::after {
    opacity: 1;
}