/* =========================================================
   MEG MINING - MAIN CSS
========================================================= */

:root {

    --primary: #d99a27;
    --primary-dark: #a96e0d;

    --dark: #101820;
    --dark-2: #17232d;

    --light: #f7f8f9;
    --white: #ffffff;

    --text: #5e6872;

    --border: #e5e7eb;

    --transition: all 0.35s ease;

}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family: "Inter", sans-serif;

    color: var(--text);

    background: #ffffff;

    overflow-x: hidden;

}


h1,
h2,
h3,
h4,
h5 {

    font-family: "Montserrat", sans-serif;

}


a {

    text-decoration: none;

}


/* =========================================================
   NAVBAR
========================================================= */

.meg-navbar {

    padding: 16px 0;

    transition: var(--transition);

    background: transparent;

}


.meg-navbar.scrolled {

    background: rgba(16, 24, 32, 0.96);

    backdrop-filter: blur(15px);

    padding: 10px 0;

    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);

}


.navbar-brand {

    display: flex;

    align-items: center;

    gap: 10px;

    color: white;

}


.logo-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {

    display: block;

    font-size: 22px;

    font-weight: 800;

    line-height: 20px;

}


.brand-sub {

    display: block;

    font-size: 10px;

    letter-spacing: 3px;

    color: var(--primary);

    font-weight: 700;

}


.nav-link {

    color: rgba(255, 255, 255, 0.85) !important;

    font-size: 13px;

    font-weight: 600;

    margin: 0 8px;

    position: relative;

}


.nav-link::after {

    content: "";

    position: absolute;

    width: 0;

    height: 2px;

    background: var(--primary);

    bottom: 0;

    left: 50%;

    transition: var(--transition);

}


.nav-link:hover::after,
.nav-link.active::after {

    width: 100%;

    left: 0;

}


.search-box {

    display: flex;

    background: rgba(255,255,255,0.1);

    border: 1px solid rgba(255,255,255,0.2);

    border-radius: 30px;

    overflow: hidden;

    margin: 0 10px;

}


.search-box input {

    background: transparent;

    border: 0;

    outline: none;

    color: white;

    padding: 8px 12px;

    width: 120px;

    font-size: 12px;

}


.search-box input::placeholder {

    color: rgba(255,255,255,0.6);

}


.search-box button {

    border: 0;

    background: transparent;

    color: white;

    padding: 0 13px;

}


.language-btn {

    border: 1px solid rgba(255,255,255,0.3);

    background: transparent;

    color: white;

    border-radius: 25px;

    padding: 8px 12px;

    font-size: 12px;

    margin-right: 10px;

}


.language-btn:hover {

    background: var(--primary);

    color: var(--dark);

}


.btn-contact {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    background: var(--primary);

    color: var(--dark);

    font-weight: 700;

    font-size: 12px;

    padding: 10px 18px;

    border-radius: 5px;

    transition: var(--transition);

}


.btn-contact:hover {

    background: white;

    transform: translateY(-2px);

}


.navbar-toggler {

    color: white;

    border: 1px solid rgba(255,255,255,0.3);

}


.navbar-toggler i {

    font-size: 20px;

}


/* =========================================================
   HERO
========================================================= */

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;

    background-image: url("../images/hero.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10,16,21,0.95) 0%,
            rgba(10,16,21,0.78) 50%,
            rgba(10,16,21,0.3) 100%
        );

}


.hero-content {

    position: relative;

    z-index: 2;

    padding-top: 80px;

}


.hero-label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--primary);

    font-size: 12px;

    letter-spacing: 2px;

    font-weight: 700;

    margin-bottom: 20px;

}


.hero-content h1 {

    color: white;

    font-size: clamp(50px, 7vw, 100px);

    line-height: 0.95;

    font-weight: 800;

    margin-bottom: 25px;

}


.hero-content h1 span {

    color: var(--primary);

}


.hero-content h2 {

    color: white;

    font-size: clamp(24px, 3vw, 40px);

    margin-bottom: 15px;

}


.hero-description {

    color: rgba(255,255,255,0.75);

    font-size: 16px;

    max-width: 650px;

}


.hero-buttons {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;

    margin-top: 30px;

}


.btn-primary-meg {

    border: 0;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 14px 24px;

    background: var(--primary);

    color: var(--dark);

    font-size: 13px;

    font-weight: 700;

    border-radius: 4px;

    transition: var(--transition);

}


.btn-primary-meg:hover {

    background: white;

    color: var(--dark);

    transform: translateY(-3px);

}


.btn-outline-meg {

    display: inline-flex;

    align-items: center;

    padding: 13px 24px;

    color: white;

    border: 1px solid rgba(255,255,255,0.5);

    font-size: 13px;

    font-weight: 600;

    border-radius: 4px;

    transition: var(--transition);

}


.btn-outline-meg:hover {

    background: white;

    color: var(--dark);

}


.hero-scroll {

    position: absolute;

    bottom: 30px;

    left: 50%;

    transform: translateX(-50%);

    z-index: 2;

    color: rgba(255,255,255,0.6);

    font-size: 10px;

    letter-spacing: 3px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

}


.hero-scroll i {

    animation: scrollDown 1.5s infinite;

}


@keyframes scrollDown {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }

}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section-padding {

    padding: 100px 0;

}


.section-label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--primary-dark);

    font-size: 11px;

    letter-spacing: 2px;

    font-weight: 800;

    margin-bottom: 15px;

}


.section-title {

    color: var(--dark);

    font-size: clamp(30px, 4vw, 45px);

    font-weight: 800;

    margin-bottom: 20px;

}


.section-heading {

    max-width: 750px;

    margin: auto;

}


.section-heading p {

    max-width: 650px;

    margin: auto;

}


/* =========================================================
   ABOUT
========================================================= */

.about-section {

    background: white;

}


.about-image {

    position: relative;

}


.about-image img {

    width: 100%;

    height: 520px;

    object-fit: cover;

    border-radius: 8px;

}


.experience-badge {

    position: absolute;

    right: -20px;

    bottom: 30px;

    background: var(--primary);

    padding: 20px 25px;

    border-radius: 5px;

    color: var(--dark);

    display: flex;

    flex-direction: column;

}


.experience-badge strong {

    font-size: 28px;

}


.experience-badge span {

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

}


.about-section p {

    line-height: 1.9;

}


.about-features {

    display: flex;

    gap: 30px;

    margin-top: 30px;

}


.feature-item {

    display: flex;

    gap: 12px;

}


.feature-item > i {

    font-size: 24px;

    color: var(--primary-dark);

}


.feature-item h5 {

    margin: 0;

    font-size: 14px;

    color: var(--dark);

}


.feature-item p {

    font-size: 11px;

    margin: 5px 0 0;

}


/* =========================================================
   SERVICES
========================================================= */

.services-section {

    background: var(--light);

}


.service-card {

    height: 100%;

    padding: 35px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 8px;

    transition: var(--transition);

    position: relative;

    overflow: hidden;

}


.service-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 3px;

    background: var(--primary);

    transform: scaleX(0);

    transform-origin: left;

    transition: var(--transition);

}


.service-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 20px 50px rgba(0,0,0,0.08);

}


.service-card:hover::before {

    transform: scaleX(1);

}


.service-icon {

    width: 60px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(217,154,39,0.12);

    color: var(--primary-dark);

    border-radius: 8px;

    font-size: 25px;

    margin-bottom: 25px;

    transition: var(--transition);

}


.service-card:hover .service-icon {

    background: var(--primary);

    color: var(--dark);

    transform: rotateY(180deg);

}


.service-card h3 {

    font-size: 20px;

    color: var(--dark);

    margin-bottom: 15px;

}


.service-card p {

    font-size: 14px;

    line-height: 1.8;

    margin-bottom: 20px;

}


.service-card a {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--primary-dark);

    font-size: 12px;

    font-weight: 700;

}


.service-card a i {

    transition: var(--transition);

}


.service-card a:hover i {

    transform: translateX(5px);

}


/* =========================================================
   STATS
========================================================= */

.stats-section {

    background: var(--dark);

    padding: 70px 0;

}


.stat {

    color: white;

    padding: 20px;

}


.stat i {

    display: block;

    color: var(--primary);

    font-size: 25px;

    margin-bottom: 15px;

}


.stat strong {

    display: block;

    font-size: 40px;

    font-family: "Montserrat";

}


.stat span {

    display: block;

    color: rgba(255,255,255,0.6);

    font-size: 11px;

    margin-top: 5px;

}


/* =========================================================
   EXPERIENCES
========================================================= */

.experience-section {

    background: white;

}


.project-card {

    position: relative;

    height: 420px;

    border-radius: 8px;

    overflow: hidden;

}


.project-card img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.7s ease;

}


.project-card:hover img {

    transform: scale(1.08);

}


.project-card::after {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
        transparent 30%,
        rgba(0,0,0,0.9)
    );

}


.project-overlay {

    position: absolute;

    z-index: 2;

    left: 30px;

    right: 30px;

    bottom: 30px;

    color: white;

}


.project-overlay span {

    color: var(--primary);

    font-weight: 800;

    font-size: 12px;

}


.project-overlay h3 {

    font-size: 23px;

    margin: 8px 0;

}


.project-overlay p {

    margin: 0;

    color: rgba(255,255,255,0.7);

    font-size: 12px;

}


/* =========================================================
   NEWS
========================================================= */

.news-section {

    background: var(--light);

}


.news-card {

    display: flex;

    gap: 20px;

    height: 100%;

    padding: 30px;

    background: white;

    border-radius: 8px;

    border: 1px solid var(--border);

    transition: var(--transition);

}


.news-card:hover {

    transform: translateY(-7px);

    box-shadow: 0 15px 40px rgba(0,0,0,0.07);

}


.news-icon {

    flex-shrink: 0;

    width: 55px;

    height: 55px;

    display: flex;

    justify-content: center;

    align-items: center;

    background: rgba(217,154,39,0.12);

    color: var(--primary-dark);

    border-radius: 6px;

}


.news-card small {

    color: var(--primary-dark);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

}


.news-card h3 {

    color: var(--dark);

    font-size: 18px;

    margin: 7px 0 10px;

}


.news-card p {

    font-size: 12px;

    line-height: 1.7;

}


.news-card a {

    color: var(--primary-dark);

    font-size: 11px;

    font-weight: 700;

    display: inline-flex;

    gap: 8px;

}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {

    background: white;

}


.contact-info {

    margin-top: 30px;

}


.contact-item {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px 0;

    color: var(--text);

}


.contact-item:hover {

    color: var(--primary-dark);

}


.contact-icon {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: rgba(217,154,39,0.12);

    color: var(--primary-dark);

}


.contact-item small {

    display: block;

    font-size: 9px;

    letter-spacing: 1px;

}


.contact-item strong {

    display: block;

    color: var(--dark);

    font-size: 13px;

}


.contact-form-box {

    padding: 35px;

    background: var(--light);

    border-radius: 8px;

}


.contact-form-box label {

    display: block;

    font-size: 11px;

    font-weight: 700;

    color: var(--dark);

    margin-bottom: 6px;

}


.form-control {

    border: 1px solid var(--border);

    padding: 12px 14px;

    border-radius: 4px;

    font-size: 12px;

}


.form-control:focus {

    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(217,154,39,0.12);

}


#formMessage {

    margin-top: 15px;

    font-size: 12px;

    font-weight: 600;

}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    background: #0b1117;

    color: rgba(255,255,255,0.6);

    padding: 70px 0 25px;

}


.footer-brand {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 20px;

}


.footer p {

    font-size: 12px;

    line-height: 1.8;

}


.footer h5 {

    color: white;

    font-size: 14px;

    margin-bottom: 20px;

}


.footer ul {

    list-style: none;

    padding: 0;

    margin: 0;

}


.footer li {

    font-size: 11px;

    margin-bottom: 12px;

}


.footer a {

    color: rgba(255,255,255,0.6);

    transition: var(--transition);

}


.footer a:hover {

    color: var(--primary);

}


.social-links {

    display: flex;

    gap: 10px;

    margin-top: 20px;

}


.social-links a {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(255,255,255,0.15);

    border-radius: 50%;

}


.social-links a:hover {

    background: var(--primary);

    color: var(--dark);

    border-color: var(--primary);

}


.footer-contact i {

    color: var(--primary);

    margin-right: 8px;

}


.footer hr {

    border-color: rgba(255,255,255,0.1);

    margin: 40px 0 20px;

}


.footer-bottom {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    flex-wrap: wrap;

}


.footer-bottom p {

    margin: 0;

    font-size: 10px;

}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp-floating {

    position: fixed;

    right: 25px;

    bottom: 25px;

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #25d366;

    color: white;

    border-radius: 50%;

    font-size: 27px;

    z-index: 1000;

    box-shadow: 0 5px 25px rgba(0,0,0,0.2);

    animation: whatsappPulse 2s infinite;

}


@keyframes whatsappPulse {

    0% {
        box-shadow: 0 0 0 0 rgba(37,211,102,0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37,211,102,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37,211,102,0);
    }

}


/* =========================================================
   BACK TO TOP
========================================================= */

#backToTop {

    position: fixed;

    right: 25px;

    bottom: 90px;

    width: 42px;

    height: 42px;

    border: 0;

    border-radius: 5px;

    background: var(--dark);

    color: white;

    opacity: 0;

    visibility: hidden;

    transition: var(--transition);

    z-index: 999;

}


#backToTop.show {

    opacity: 1;

    visibility: visible;

}


#backToTop:hover {

    background: var(--primary);

    color: var(--dark);

}


/* =========================================================
   SEARCH HIGHLIGHT
========================================================= */

.search-highlight {

    animation: highlightCard 1s ease;

}


@keyframes highlightCard {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 5px rgba(217,154,39,0.2);
    }

    100% {
        transform: scale(1);
    }

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .meg-navbar {

        background: rgba(16,24,32,0.97);

    }

    .navbar-collapse {

        margin-top: 15px;

        padding: 20px;

        background: var(--dark-2);

        border-radius: 8px;

    }

    .nav-link {

        margin: 8px 0;

    }

    .search-container {

        margin: 10px 0;

    }

    .search-box {

        margin: 0;

    }

    .search-box input {

        width: 100%;

    }

    .language-item {

        margin: 10px 0;

    }

    .btn-contact {

        margin-top: 10px;

    }

    .about-features {

        flex-direction: column;

    }

}


@media (max-width: 767px) {

    .section-padding {

        padding: 70px 0;

    }

    .hero-section {

        background-attachment: scroll;

    }

    .hero-content {

        padding-top: 100px;

    }

    .hero-content h1 {

        font-size: 58px;

    }

    .hero-scroll {

        display: none;

    }

    .about-image img {

        height: 350px;

    }

    .experience-badge {

        right: 15px;

    }

    .project-card {

        height: 350px;

    }

    .news-card {

        flex-direction: column;

    }

    .footer-bottom {

        flex-direction: column;

    }

}