/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

:root {
    --primary-color: #1a7f64;
    --primary-dark: #155a47;
    --primary-light: #2a9d7a;
    --secondary-color: #f4f4f4;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    background-image:
        linear-gradient(rgba(26, 127, 100, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 127, 100, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== LOADER ==================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

/* ==================== TYPOGRAPHY ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    /* Technical font for subtext */
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    /* Squared corners */
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.cta-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--primary-color);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 5px;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a:not(.cta-btn):hover {
    color: var(--primary-color);
}

.nav-links a:not(.cta-btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.cta-btn):hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 0;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 0;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    border-bottom: 2px solid var(--primary-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('construction_hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

/* Technical grid overlay for Hero */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(26, 127, 100, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 127, 100, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--primary-color);
    pointer-events: none;
    z-index: 1;
}

/* Corner markers for the technical look */
.hero-overlay::before,
.hero-overlay::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.hero-overlay::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.hero-overlay::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border: 1px solid var(--primary-color);
    box-shadow: 10px 10px 0 rgba(26, 127, 100, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--primary-dark);
    animation: fadeInUp 0.8s ease;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    font-family: 'Courier New', Courier, monospace;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease 0.6s backwards;
}

.badge-content {
    background: var(--white);
    color: var(--primary-color);
    padding: 3rem;
    border: 2px solid var(--primary-color);
    box-shadow: 10px 10px 0 rgba(26, 127, 100, 0.2);
    transform: rotate(-5deg);
    transition: var(--transition);
    position: relative;
}

.badge-content::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed var(--primary-color);
}

.badge-content:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 15px 15px 0 rgba(26, 127, 100, 0.1);
}

.badge-text {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Courier New', Courier, monospace;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== SECTIONS ==================== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background-color: var(--white);
}

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

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
    font-family: 'Courier New', Courier, monospace;
}

.why-choose {
    background: var(--primary-color);
    padding: 2.5rem;
    border: 4px solid var(--primary-dark);
    color: var(--white);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.1);
    position: relative;
}

.why-choose::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.why-choose h3 {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.why-choose>p {
    margin-bottom: 2rem;
    opacity: 0.95;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.features-list li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    border-color: var(--white);
}

.features-list svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    background-color: var(--white);
    position: relative;
    border-top: 1px solid var(--border-color);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(26, 127, 100, 0.1);
    transition: var(--transition);
    border-top: 2px solid var(--primary-color);
    /* Uniform border */
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed rgba(26, 127, 100, 0.3);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 0 rgba(26, 127, 100, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
}

/* Crosshairs for icon */
.service-icon::after,
.service-icon::before {
    content: '';
    position: absolute;
    background: var(--primary-color);
}

.service-icon::before {
    top: -5px;
    bottom: -5px;
    width: 1px;
    left: 50%;
}

.service-icon::after {
    left: -5px;
    right: -5px;
    height: 1px;
    top: 50%;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    z-index: 1;
    background: var(--white);
    /* Hide lines behind icon */
    padding: 2px;
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.service-card p {
    color: var(--text-dark);
    line-height: 1.6;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -50px;
    width: 300px;
    height: 400px;
    background-image: url('construction_crane.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 0;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(26, 127, 100, 0.05);
    transform: translateX(10px);
    border-color: var(--primary-color);
    color: inherit;
    /* Keep text color */
}

.contact-item:hover .contact-icon {
    background: var(--primary-color);
    color: var(--white);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.contact-item p {
    color: var(--text-dark);
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 0;
}

.contact-item:hover p {
    color: var(--text-dark);
}

/* ==================== CONTACT FORM ==================== */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 0;
    box-shadow: 10px 10px 0 rgba(26, 127, 100, 0.1);
    position: relative;
}

.contact-form::before {
    content: 'CONTACT_FORM_BLOCK_01';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--white);
    padding: 0 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-family: monospace;
    font-weight: bold;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--secondary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: none;
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    border: none;
    font-size: 1.1rem;
    padding: 15px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    border-top: 4px solid var(--primary-color);
    position: relative;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    background: var(--white);
    /* Ensure logo is visible on dark bg if it has transparency */
    padding: 10px;
    border: 2px solid var(--white);
}

.footer-brand p {
    margin-top: 1rem;
    opacity: 0.9;
    font-family: 'Courier New', Courier, monospace;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    display: inline-block;
}

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

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-family: 'Courier New', Courier, monospace;
}

.footer-column a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    text-align: center;
    opacity: 0.8;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-badge {
        margin-top: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .logo-img {
        height: 50px;
    }

    .footer-logo {
        height: 60px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        animation: slideDown 0.3s ease;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .badge-text {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.py-1 {
    padding: 1rem 0;
}

.py-2 {
    padding: 2rem 0;
}

.py-3 {
    padding: 3rem 0;
}