/* ======================= GLOBAL SAFE RESETS ======================= */

html,
body {
    margin: 0;
    padding: 0;
}

main,
.main-content,
.site-main,
.content,
.content-wrapper {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ======================= GLOBAL SPACING TOKENS ======================= */

:root {
    --section-padding-desktop: 80px;  /* desktop base */
    --section-padding-tablet: 70px;   /* tablet / small laptop */
    --section-padding-mobile: 55px;   /* mobile */
}

/* ======================= HERO SECTION ======================= */

.hero-section {
    /* full space at top, half at bottom */
    padding-top: var(--section-padding-desktop);
    padding-bottom: calc(var(--section-padding-desktop) / 2);
    background: #fbf7f1;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* LEFT SIDE SHOULD BE WIDER THAN IMAGE SIDE */
.hero-left {
    flex: 1.4;
    min-width: 320px;
    max-width: 780px;
}

.hero-title {
    font-size: 50px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 14px;
    color: #0b1020;
}

/* MAIN HERO PARAGRAPH – uses full width of left column */
.hero-subtitle {
    font-size: 14px;
    margin-top: 0;
    color: #555;
    max-width: 100%;
    line-height: 1.7;
    text-align: left;
}

/* Button row */
.hero-buttons {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Generic primary button (hero, etc.) */
.btn-primary {
    background: #FF8804;
    padding: 13px 28px;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.25s ease-in-out;
    box-shadow: 0 6px 18px rgba(255, 136, 4, 0.32);
}

.btn-primary:hover {
    background: #e67600;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 136, 4, 0.45);
}

.hero-call {
    display: flex;
    flex-direction: column;
}

/* ===== WHATSAPP / PHONE LINK STYLE ===== */
.call-title {
    font-weight: 600;
    color: #222;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.call-title:hover {
    color: #FF8804;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.call-sub {
    color: #777;
    font-size: 14px;
}

/* IMAGE SIDE A BIT NARROWER */
.hero-right {
    flex: 0.9;
    min-width: 320px;
    display: flex;
    justify-content: flex-end;
}

.hero-image-wrapper {
    max-width: 420px;
    width: 100%;
    margin-left: auto;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 22px;
}

/* ======================= ANIMATED GRADIENT TEXT ======================= */

.animated-text {
    background: linear-gradient(
        90deg,
        #FF8804,
        #ff4e00,
        #e60073,
        #6300ff,
        #FF8804
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flowingGradient 8s ease infinite;
}

@keyframes flowingGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ======================= GENERIC SECTION LEAD PARAGRAPH ======================= */

.section-lead {
    max-width: 850px;
    margin: 10px auto 0;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    text-align: center;
}

/* ======================= TECH SECTION ======================= */

.tech-section {
    /* half space on top & bottom to avoid double gap */
    padding-top: calc(var(--section-padding-desktop) / 2);
    padding-bottom: calc(var(--section-padding-desktop) / 2);
    background: #ffffff;
    text-align: center;
}

.tech-section > .section-lead {
    margin-top: 12px;
}

.tech-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.tech-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 20px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f1f1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
}

.tech-card h3 {
    margin-top: 12px;
    font-size: 19px;
    font-weight: 700;
    color: #0b1020;
}

.tech-card p {
    color: #555;
    font-size: 14px;
    margin-top: 6px;
    line-height: 1.7;
    text-align: center;
}

.tech-icon {
    height: 56px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.1);
}

/* ======================= SERVICES SECTION ======================= */

.services-section {
    /* same pattern as tech-section */
    padding-top: calc(var(--section-padding-desktop) / 2);
    padding-bottom: calc(var(--section-padding-desktop) / 2);
    text-align: center;
}

/* remove default top margin so gap is exactly padding only */
.section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 18px;  /* top = 0, bottom = 18 */
}

.services-section > .section-lead {
    margin: 0 auto 26px;
}

/* grid with equal-height cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;              /* make all cards same height */
}

.service-card {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    transition:
        0.25s ease box-shadow,
        0.25s ease transform,
        0.25s ease background,
        0.25s ease border-color,
        0.25s ease color;
    display: flex;                     /* ✅ flex to align content */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    background: linear-gradient(135deg, #4f46e5, #6d28d9);
    border-color: transparent;
}

.service-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
    transition: color 0.25s ease;
    min-height: 46px;                  /* ✅ same title block height in every card */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

.service-card p {
    color: #555;
    font-size: 14px;
    margin-top: 4px;
    line-height: 1.7;
    transition: color 0.25s ease;
    text-align: center;
}

.service-card:hover h3,
.service-card:hover p {
    color: #ffffff;
}

/* ======================= CTA SECTION ======================= */

.cta-section {
    padding-top: 40px; 
    padding-bottom: 30px;   
    background: linear-gradient(135deg, #4f46e5, #6d28d9);
    text-align: center;
    color: white;
    margin: 0;
}

.cta-inner {
    max-width: 780px;
    margin: 0 auto;
}

.cta-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
}

.cta-subtitle {
    font-size: 14px;
    margin-top: 6px;
}

.cta-btn {
    display: inline-block;
    background: #FF8804;
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.25s ease-in-out;
    margin-top: 16px; /* small gap above button */
    box-shadow: 0px 10px 25px rgba(255, 136, 4, 0.35);
}

.cta-btn:hover {
    background: #e67600;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0px 14px 32px rgba(255, 136, 4, 0.45);
}

/* make sure footer doesn't add extra gap */
footer,
.site-footer,
.footer {
    margin-top: 0 !important;
}

/* ======================= RESPONSIVE (LARGE) ======================= */

@media (max-width: 1200px) {
    .hero-section {
        padding-top: var(--section-padding-tablet);
        padding-bottom: calc(var(--section-padding-tablet) / 2);
    }

    .tech-section,
    .services-section {
        padding-top: calc(var(--section-padding-tablet) / 2);
        padding-bottom: calc(var(--section-padding-tablet) / 2);
    }

    /* keep CTA compact on tablet as well */
    .cta-section {
        padding-top: 36px;
        padding-bottom: 18px;
    }

    .hero-title {
        font-size: 46px;
    }

    .hero-image-wrapper {
        max-width: 380px;
    }
}

/* Tablets / small laptops (landscape) */
@media (max-width: 992px) {
    .hero-inner {
        gap: 28px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 14px;
    }
}

/* ======================= RESPONSIVE (STACKED) =================== */

@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .hero-left,
    .hero-right {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
    }

    .hero-image-wrapper {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-call {
        align-items: center;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: var(--section-padding-mobile);
        padding-bottom: calc(var(--section-padding-mobile) / 2);
    }

    .tech-section,
    .services-section {
        padding-top: calc(var(--section-padding-mobile) / 2);
        padding-bottom: calc(var(--section-padding-mobile) / 2);
    }

    /* still keep CTA tight on mobile */
    .cta-section {
        padding-top: 32px;
        padding-bottom: 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-buttons {
        justify-content: center;
        gap: 14px;
    }

    .btn-primary {
        font-size: 14px;
        padding: 11px 24px;
    }

    .cta-btn {
        font-size: 16px;
        padding: 13px 32px;
        margin-left: auto;
        margin-right: auto;
        display: inline-flex;
        justify-content: center;
    }

    .services-grid {
        gap: 20px;
    }

    .service-card {
        padding: 20px;
    }
}

/* Extra-small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .tech-card,
    .service-card {
        padding: 18px;
    }

    .section-title {
        font-size: 28px;
    }
}
