/* Reset & Variables */
:root {
    /* Civil Engineering Theme */
    --primary-color: #1a2a3a; /* Deep Navy Blue (Blueprint) */
    --secondary-color: #2c3e50;
    --accent-color: #ff6b00; /* Safety Orange */
    --accent-hover: #e55e00;
    --text-color: #333333;
    --text-light: #666666;
    --light-bg: #f5f7fa;
    --dark-bg: #111111;
    --white: #ffffff;
    --border-color: #e1e4e8;
    
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Utilities */
.highlight { color: var(--accent-color); }
.text-accent { color: var(--accent-color); }
.btn-block { width: 100%; display: block; }
.mt-20 { margin-top: 20px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 4px; /* Slightly squared for technical feel */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.6rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn-nav) {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    font-size: 0.95rem;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-nav:hover {
    background-color: var(--accent-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    /* Civil eng / survey background */
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    padding-top: 80px;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 42, 58, 0.9) 0%, rgba(26, 42, 58, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: capitalize;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.hero .tagline {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tagline span {
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.tagline i {
    color: var(--accent-color);
}

.cta-group {
    display: flex;
    gap: 20px;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.shape-fill {
    fill: #ffffff;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background-color: var(--white);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--accent-color);
}

.stat-item {
    text-align: center;
    padding: 10px;
    border-right: 1px solid #eee;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}
.stat-number::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    vertical-align: top;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

.bg-pattern {
    background-color: #f8f9fa;
    background-image: linear-gradient(#e5e5e5 1px, transparent 1px), linear-gradient(90deg, #e5e5e5 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
}

/* About Section */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.img-box {
    width: 100%;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80') center/cover;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.05rem;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.tech-item i {
    color: var(--accent-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(26, 42, 58, 0.05); /* Light primary */
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background-color: var(--accent-color);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-list {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.service-list li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
    color: var(--text-light);
}

.service-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    top: -2px;
}

/* Process Timeline */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px; /* Adjust for icon width */
    width: 2px;
    background-color: #e9ecef;
}

.process-step {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 0 0 5px var(--white); /* Halo effect to cover line */
}

.step-content {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    flex: 1;
    border-left: 4px solid var(--primary-color);
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Industries */
.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.white-divider {
    background-color: var(--white);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.industry-box {
    background-color: rgba(255,255,255,0.05); /* Transparent white */
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.industry-box:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.industry-box i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.section-bottom-shape svg {
    fill: var(--white);
    transform: rotate(180deg);
}

/* Why Choose Us */
.features-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-row {
    display: flex;
    gap: 20px;
}

.f-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-bg);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.f-text h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.f-text p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact */
.bg-light { background-color: var(--light-bg); }

.contact-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px;
    text-align: center;
}

.contact-body {
    display: flex;
    flex-wrap: wrap;
}

.contact-details {
    flex: 1;
    padding: 50px;
    background-color: #f8f9fa;
    min-width: 300px;
}

.detail-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.detail-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-item h5 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.c-form {
    flex: 1.5;
    padding: 50px;
    min-width: 300px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.c-form input, .c-form select, .c-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    font-family: inherit;
    background-color: #fcfcfc;
    transition: var(--transition);
}

.c-form input:focus, .c-form select:focus, .c-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* Footer */
.footer {
    background-color: #0b1219;
    color: #8892b0;
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

/* ANIMATION CLASSES */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-up {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { transition-delay: 0.1s; animation-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; animation-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; animation-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; animation-delay: 0.4s; }

.visible {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 900px) {
    .features-container { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        background-color: var(--primary-color);
        height: calc(100vh - 80px);
        width: 100%;
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        z-index: 1000;
        padding-bottom: 50px;
    }
    
    .nav-links.active { right: 0; }
    .nav-links a:not(.btn-nav) { color: var(--white); font-size: 1.5rem; }
    .hamburger { display: block; }
    .about-wrapper, .contact-body { flex-direction: column; }
    .form-row { flex-direction: column; gap: 0; }
    .process-timeline::before { left: 20px; }
    .process-step { gap: 20px; }
}

/* Contact Links */
.detail-item p a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Survey Kid Animation */
.survey-kid {
    width: 200px;
    height: 200px;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    background: url('https://cdn-icons-png.flaticon.com/512/3252/3252989.png') no-repeat center center/contain;
    animation: surveyWalk 4s infinite linear;
    display: none;
}

@keyframes surveyWalk {
    0% { transform: translateX(-100px); }
    50% { transform: translateX(100px); }
    100% { transform: translateX(-100px); }
}

@media (min-width: 768px) {
    .survey-kid {
        display: block;
    }
}


/* Survey Kid Wrapper */
.survey-kid-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    pointer-events: none;
    z-index: 1000;
    overflow: visible;
}

.survey-kid {
    width: 100px;
    height: 100px;
    background: url('https://cdn-icons-png.flaticon.com/512/3252/3252989.png') no-repeat center center/contain;
    position: absolute;
    bottom: 20px;
    left: -120px;
    animation: walkAcross 15s linear infinite;
}

@keyframes walkAcross {
    0% { left: -120px; transform: scaleX(1); }
    45% { left: 45%; transform: scaleX(1); }
    50% { left: 50%; transform: scaleX(1) rotate(-5deg); }
    55% { left: 55%; transform: scaleX(1); }
    100% { left: 110%; transform: scaleX(1); }
}

@media (max-width: 768px) {
    .survey-kid {
        width: 60px;
        height: 60px;
        bottom: 10px;
    }
}


/* Mobile Navigation Fix */
@media (max-width: 768px) {
    .header .container {
        padding: 0 20px;
    }
    .nav-links {
        width: 100vw;
        right: -100vw;
    }
    .nav-links.active {
        right: 0;
    }
    .hero-content {
        padding-top: 50px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-wrapper, .contact-body {
        flex-direction: column;
    }
    .contact-details, .c-form {
        padding: 20px;
    }
    .process-timeline::before {
        left: 25px;
    }
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    .step-content {
        padding: 15px;
    }
    .survey-kid {
        width: 60px;
        height: 60px;
        bottom: 5px;
    }
}


/* Survey Kid Wrapper - Repositioning */
.survey-kid-wrapper {
    position: fixed;
    bottom: 50px;
    left: -100px;
    z-index: 1000;
    width: 80px;
    height: 80px;
    background: none;
    animation: surveyWalkMobile 15s linear infinite;
}

.survey-kid {
    width: 100%;
    height: 100%;
    background: url('https://cdn-icons-png.flaticon.com/512/3252/3252989.png') no-repeat center center/contain;
}

@keyframes surveyWalkMobile {
    0% { left: -100px; transform: scaleX(1); }
    45% { left: 45%; transform: scaleX(1); }
    50% { left: 50%; transform: rotate(10deg); }
    55% { left: 55%; transform: scaleX(1); }
    100% { left: 100%; transform: scaleX(1); }
}

@media (min-width: 768px) {
    .survey-kid-wrapper {
        width: 100px;
        height: 100px;
        bottom: 20px;
    }
}


/* Survey Kid - Visibility & Mobile Adjustment */
.survey-kid-wrapper {
    display: block;
    z-index: 9999;
    position: fixed;
    bottom: 20px;
    left: -100px;
    width: 60px;
    height: 60px;
    animation: surveyKidWalk 20s infinite linear;
}

.survey-kid {
    width: 100%;
    height: 100%;
    background: url('https://cdn-icons-png.flaticon.com/512/3252/3252989.png') no-repeat center bottom/contain;
}

@keyframes surveyKidWalk {
    0% { left: -10%; transform: scaleX(1); }
    45% { left: 45%; transform: scaleX(1); }
    50% { left: 50%; transform: rotate(-5deg); }
    55% { left: 55%; transform: scaleX(1); }
    100% { left: 110%; transform: scaleX(1); }
}

@media (min-width: 768px) {
    .survey-kid-wrapper {
        width: 100px;
        height: 100px;
        bottom: 30px;
    }
}


/* Survey Kid Wrapper - Final Fix */
.survey-kid-wrapper {
    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 20px;
    left: -10%;
    z-index: 10000;
    pointer-events: none;
    animation: finalWalk 20s linear infinite;
}

.survey-kid {
    width: 100%;
    height: 100%;
    background: url('https://cdn-icons-png.flaticon.com/512/3252/3252989.png') no-repeat center bottom / contain;
}

@keyframes finalWalk {
    0% { left: -10%; }
    100% { left: 110%; }
}

@media (min-width: 768px) {
    .survey-kid-wrapper {
        width: 100px;
        height: 100px;
        bottom: 30px;
    }
}

