/* ============================================
   Meglo — Static Site Stylesheet
   ============================================ */

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap");

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.timeline-section {
    overflow-x: hidden;
}

:root {
    --bg: #f2f3f6;
    --fg: #1c2133;
    --card: #ffffff;
    --card-fg: #1c2133;
    --primary: #1e2640;
    --primary-fg: #ffffff;
    --muted: #e8e9ed;
    --muted-fg: #242425;
    --border: #e2e3e8;
    --coral: #ff6b3d;
    --coral-hover: #f25a2e;
    --coral-gradient: linear-gradient(135deg, #ff6b3d, #ff8a47);
    --navy-gradient: linear-gradient(135deg, #1e2640, #2c3554);
    --navy-light: #2c3554;
    --section-alt: #eef0f4;
    --shadow-card: 0 4px 24px -4px rgba(30, 38, 64, 0.08);
    --shadow-card-hover: 0 12px 40px -8px rgba(30, 38, 64, 0.15);
    --shadow-coral: 0 8px 30px -6px rgba(255, 107, 61, 0.4);
    --radius: 0.75rem;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Space Grotesk", sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}
.container-c {
    display: flex;
    margin: 40px 0px;
}

/* ── Header ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(30, 38, 64, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--navy-light);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}
.logo span {
    color: var(--coral);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-desktop a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}
.nav-desktop a:hover {
    color: var(--coral);
}

.nav-cta,
.nav-cta-m {
    display: inline-flex;
    align-items: center !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    background: var(--coral-gradient);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-coral);
    transition: opacity 0.2s;
}
.nav-cta:hover {
    opacity: 0.9;
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: var(--primary);
    border-top: 1px solid var(--navy-light);
}
.mobile-menu.open {
    display: flex;
}
.mobile-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.2s;
}
.mobile-menu a:hover {
    color: var(--coral);
}

@media (max-width: 768px) {
    .nav-desktop,
    .header .nav-cta {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--navy-gradient);
    overflow: hidden;
    padding-top: 64px;
    justify-content: center;
}
.hero-blob-1 {
    position: absolute;
    top: 5rem;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 107, 61, 0.05);
    filter: blur(80px);
}
.hero-blob-2 {
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 107, 61, 0.1);
    filter: blur(80px);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 60%;
}
.hero-right {
    max-width: 40%;
}
.hero-label {
    color: var(--coral);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}
.hero h2,
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.text-gradient-coral {
    background: var(--coral-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 740px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.btn-coral {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    background: var(--coral-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: var(--shadow-coral);
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
}
.btn-coral:hover {
    opacity: 0.9;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    background: transparent;
    transition: background 0.2s;
    cursor: pointer;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ── Section helpers ── */
.section {
    padding: 5rem 0;
}
.section-alt {
    background: var(--section-alt);
}
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}
.section-heading .label {
    color: var(--coral);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}
.section-heading h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--fg);
}

/* ── Timeline (Why Choose Us / Our Process) ── */
.timeline {
    position: relative;
    max-width: 60rem;
    margin: 0 auto;
}
.timeline-line {
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.timeline-dot.coral {
    background: var(--coral-gradient);
}
.timeline-dot.navy {
    background: var(--primary);
}
.timeline-dot svg {
    width: 20px;
    height: 20px;
    color: #fff;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.timeline-card {
    flex: 1;
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--card);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s;
}
.timeline-card:hover {
    box-shadow: var(--shadow-card-hover);
}
.timeline-card .num {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: rgb(255, 106, 61);
}
.timeline-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--fg);
    margin: 0.25rem 0 0.5rem;
}
.timeline-card p {
    font-size: 1rem;
    color: var(--muted-fg);
    line-height: 1.6;
}

.timeline-item.left {
    padding-right: 10rem;
    text-align: right;
}
.timeline-item.right {
    padding-left: 10rem;
    text-align: left;
}

@media (min-width: 769px) {
    .timeline-line {
        left: 50%;
        transform: translateX(-1px);
    }
    .timeline-item {
        gap: 0;
    }
    .timeline-item .timeline-card {
        flex: 1;
    }
    .timeline-item .timeline-dot {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .timeline-item .spacer {
        flex: 1;
        display: block;
    }
    .timeline-item.left .timeline-card {
        padding-right: 2rem;
        text-align: right;
    }
    .timeline-item.right .timeline-card {
        padding-left: 2rem;
        text-align: left;
    }
    .timeline-item.left {
        flex-direction: row;
    }
    .timeline-item.right {
        flex-direction: row-reverse;
    }

    .hero-content {
        max-width: 80%;
        padding: 60px 0px;
    }
}
/* For Mobile */
@media (max-width: 769px) {
    
    .container-c h1.about-us-text{
        font-size: 1.9rem !important;
     }
    
    .floating-btns a,
    .floating-btns-to-top a {
        width: 2.8rem !important;
        height: 2.8rem !important;
    }

    .btn-outline,
    .btn-coral {
        padding: 0.5rem 1.2rem !important;
    }

    .timeline-item {
        display: flex;
        flex-direction: row-reverse;
        margin-left: -23px !important;
    }

    .timeline-item.left {
        padding-right: 0rem !important;
    }
    .timeline-item.right {
        padding-left: 0rem !important;
    }

    .timeline-item.left {
        text-align: left;
    }

    .hero-right {
        display: none !important;
    }
    .hero-content {
        max-width: 100%;
        padding: 0px 0px;
    }
}

/* ── Services Cards ── */
.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(255, 107, 61, 0.4);
}
.service-card .accent-bar {
    height: 4px;
    background: var(--coral-gradient);
}
.service-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: var(--section-alt);
    color: var(--muted-fg);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--coral-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s;
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(3deg);
}
.service-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.service-card p {
    font-size: 0.875rem;
    color: var(--muted-fg);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.25rem;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--coral);
    font-size: 0.875rem;
    font-weight: 600;
    transition: gap 0.3s;
}
.service-card:hover .service-link {
    gap: 0.75rem;
}

/* ── CTA Section ── */
.cta-section {
    padding: 5rem 0;
    background: var(--navy-gradient);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-section .blob {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 107, 61, 0.1);
    filter: blur(80px);
}
.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}
.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

/* ── Portfolio ── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}
.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card);
    color: var(--muted-fg);
    box-shadow: var(--shadow-card);
}
.filter-btn.active {
    background: var(--coral-gradient);
    color: #fff;
    box-shadow: var(--shadow-coral);
}
.portfolio-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center !important;
}
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
.portfolio-card {
    width: 320px;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s;
}
.portfolio-card:hover {
    box-shadow: var(--shadow-card-hover);
}
.portfolio-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.portfolio-card:hover .portfolio-img img {
    transform: scale(1.05);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 38, 64, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-overlay span {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}
.portfolio-card-body {
    padding: 1.25rem;
}
.portfolio-card-body .cat {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--coral);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.portfolio-card-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.25rem 0 0.5rem;
}
.portfolio-card-body p {
    font-size: 0.875rem;
    color: var(--muted-fg);
    line-height: 1.6;
}

/* ── Contact Page ── */
.page-hero {
    background: var(--navy-gradient);
    padding: 5rem 0;
    text-align: center;
    padding-top: calc(64px + 3rem);
}
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}
.page-hero p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 480px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    gap: 3rem;
}
@media (min-width: 769px) {
    .contact-grid {
        grid-template-columns: 2fr 3fr;
    }
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    background: var(--coral-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contact-item .label {
    font-size: 0.75rem;
    color: var(--muted-fg);
}
.contact-item .value {
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-form {
    padding: 2rem;
    border-radius: 1rem;
    background: var(--card);
    box-shadow: var(--shadow-card);
}
.form-row {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
@media (min-width: 500px) {
    .form-row.two {
        grid-template-columns: 1fr 1fr;
    }
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--fg);
    font-size: 0.875rem;
    font-family: "Inter", sans-serif;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 61, 0.15);
}
.form-group textarea {
    resize: none;
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: 0;
    filter: grayscale(100%);
    transition: filter 0.5s;
}
.map-section iframe:hover {
    filter: grayscale(0);
}

/* ── Footer ── */
.footer {
    background: var(--primary);
    color: #fff;
}
.footer-grid {
    display: grid;
    gap: 3rem;
    padding: 4rem 0;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 280px;
    margin-top: 1rem;
}
.footer h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--coral);
}
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
.footer-contact svg {
    width: 16px;
    height: 16px;
    color: var(--coral);
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.footer-bottom {
    border-top: 1px solid var(--navy-light);
    padding: 1.25rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    text-align: center;
}
.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    transition: color 0.2s;
}
.footer-bottom a:hover {
    color: var(--coral);
}

/* ── Floating Buttons ── */
.floating-btns-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.floating-btns {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.floating-btns a,
.floating-btns-to-top a {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}
.floating-btns a:hover {
    transform: scale(1.1);
}
.btn-whatsapp {
    background: #25d366;
}
.btn-whatsapp svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}
.btn-call {
    background: var(--coral-gradient);
}
.btn-call svg {
    width: 24px;
    height: 24px;
    color: #fff;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out;
}
.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out;
}
.fade-left.visible,
.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --------- Contact-form success and error text --------- */
.form-message.success,
.form-message.error {
    color: #fff;
    margin-top: 20px !important;
    border-left: 6px solid #FD6D3E;
    padding: 10px;
    display: inline-block;
    margin: 5px;
    background: #008000;
    border-radius: 0px 5px 5px 0;
}
.form-message.error {
    border: 1px solid #ff0000de;
    background: #ff00008a;
}
