/* =========================================================
   REXMYZE AGENCY SERVICES
   PROFESSIONAL LANDING PAGE STYLESHEET
========================================================= */

.rex-page *,
.rex-page *::before,
.rex-page *::after {
    box-sizing: border-box;
}

.rex-page {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif;
    color: #111827;
    background: #ffffff;
    line-height: 1.6;
}

.rex-page a {
    text-decoration: none;
    color: inherit;
}

.rex-container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* =========================================================
   PROFESSIONAL SVG ICONS
========================================================= */

.rex-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.rex-icon-lg {
    width: 27px;
    height: 27px;
    display: inline-block;
    vertical-align: middle;
}

.rex-icon-sm {
    width: 19px;
    height: 19px;
    display: inline-block;
    vertical-align: middle;
}

/* =========================================================
   HERO
========================================================= */

.rex-hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(87, 148, 199, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(87, 148, 199, 0.08),
            transparent 30%
        ),
        #f8fafc;
    padding: 60px 0;
}

.rex-hero-content {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.rex-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px;
    border: 1px solid #dbe5ee;
    background: #ffffff;
    border-radius: 50px;
    color: #5794c7;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
}

.rex-hero-tag span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5794c7;
}

.rex-hero h1 {
    margin: 0 0 25px;
    font-size: clamp(45px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -2px;
    color: #111827;
    font-weight: 800;
}

.rex-highlight {
    color: #5794c7;
    font-style: normal;
}

.rex-hero p {
    margin: 0 0 35px;
    max-width: 650px;
    color: #64748b;
    font-size: 19px;
    font-weight: 400;
}

.rex-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* =========================================================
   BUTTONS
========================================================= */

.rex-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    background: #111827;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s cubic-bezier(0.21, 0.47, 0.32, 0.98);
    cursor: pointer;
    border: none;
}

.rex-btn-primary:hover {
    background: #5794c7;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(87, 148, 199, 0.25);
}

.rex-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 27px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827 !important;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}

.rex-btn-secondary:hover {
    border-color: #5794c7;
    color: #5794c7 !important;
    transform: translateY(-2px);
}

/* =========================================================
   HERO SHAPES
========================================================= */

.rex-hero-shape {
    position: absolute;
    width: 480px;
    height: 480px;
    right: -180px;
    top: 80px;
    border: 1px solid rgba(87, 148, 199, 0.25);
    border-radius: 50%;
    pointer-events: none;
}

.rex-hero-shape::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: 80px;
    left: 80px;
    border: 1px solid rgba(87, 148, 199, 0.2);
    border-radius: 50%;
}

/* =========================================================
   STATS
========================================================= */

.rex-stats {
    background: #111827;
    color: #ffffff;
    padding: 28px 0;
}

.rex-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.rex-stat h3 {
    margin: 0 0 2px;
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
}

.rex-stat p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
   COMMON SECTION
========================================================= */

.rex-section {
    padding: 100px 0;
}

.rex-section-header {
    max-width: 700px;
    margin-bottom: 55px;
}

.rex-section-label {
    margin-bottom: 12px;
    color: #5794c7;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rex-section-title {
    margin: 0 0 16px;
    color: #111827;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    font-weight: 800;
}

.rex-section-description {
    margin: 0;
    color: #64748b;
    font-size: 17px;
}

/* =========================================================
   SERVICES
========================================================= */

.rex-services {
    background: #ffffff;
}

.rex-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

@media (max-width: 1200px) and (min-width: 951px) {
    .rex-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rex-service-card {
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    transition: 0.35s cubic-bezier(0.21, 0.47, 0.32, 0.98);
    display: flex;
    flex-direction: column;
}

.rex-service-card:hover {
    transform: translateY(-8px);
    border-color: #b8d2e7;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.rex-service-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background: #eef6fb;
    color: #5794c7;
    border-radius: 12px;
}

.rex-service-card h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 21px;
    font-weight: 700;
}

.rex-service-card p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    flex-grow: 1;
}

.rex-service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: #5794c7 !important;
    font-weight: 700;
    font-size: 14px;
    transition: gap 0.2s ease;
}

.rex-service-card:hover .rex-service-link {
    gap: 10px;
}

/* =========================================================
   ABOUT
========================================================= */

.rex-about {
    background: #f8fafc;
}

.rex-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.rex-about-visual {
    min-height: 500px;
    position: relative;
    overflow: hidden;
    padding: 40px;
    display: flex;
    align-items: flex-end;
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            rgba(87, 148, 199, 0.95),
            rgba(17, 24, 39, 0.98)
        );
}

.rex-about-circle {
    position: absolute;
    width: 330px;
    height: 330px;
    top: -80px;
    right: -80px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
}

.rex-about-circle-two {
    position: absolute;
    width: 220px;
    height: 220px;
    bottom: -60px;
    left: -60px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
}

.rex-about-box {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    color: #ffffff;
}

.rex-about-box h3 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 35px;
    font-weight: 800;
}

.rex-about-box p {
    margin: 0;
    color: #e2e8f0;
}

.rex-about-content h2 {
    margin: 0 0 22px;
    color: #111827;
    font-size: clamp(35px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 800;
}

.rex-about-content > p {
    margin: 0 0 28px;
    color: #64748b;
    font-size: 16px;
}

.rex-check-list {
    list-style: none;
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.rex-check-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #111827;
    font-weight: 600;
    font-size: 15px;
}

.rex-check {
    flex-shrink: 0;
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5794c7;
    border-radius: 50%;
    color: #ffffff;
}

/* =========================================================
   WHY US
========================================================= */

.rex-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.rex-why-card {
    padding: 40px 25px;
    text-align: center;
}

.rex-why-number {
    margin-bottom: 5px;
    color: #dbeaf4;
    font-size: 45px;
    font-weight: 800;
}

.rex-why-card h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
}

.rex-why-card p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

/* =========================================================
   PROCESS
========================================================= */

.rex-process {
    background: #111827;
    color: #ffffff;
}

.rex-process .rex-section-title {
    color: #ffffff;
}

.rex-process .rex-section-description {
    color: #9ca3af;
}

.rex-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.rex-process-card {
    padding: 30px;
    background: #151e2d;
    border: 1px solid #293244;
    border-radius: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.rex-process-card:hover {
    transform: translateY(-5px);
    border-color: #5794c7;
}

.rex-process-number {
    margin-bottom: 30px;
    color: #5794c7;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.rex-process-card h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.rex-process-card p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

/* =========================================================
   CTA
========================================================= */

.rex-cta {
    padding: 90px 0;
    background: #ffffff;
}

.rex-cta-box {
    position: relative;
    overflow: hidden;
    padding: 75px 60px;
    background:
        linear-gradient(
            135deg,
            #5794c7,
            #315f86
        );
    border-radius: 22px;
    color: #ffffff;
    text-align: center;
}

.rex-cta-box::before,
.rex-cta-box::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    pointer-events: none;
}

.rex-cta-box::before {
    width: 350px;
    height: 350px;
    left: -150px;
    top: -200px;
}

.rex-cta-box::after {
    width: 300px;
    height: 300px;
    right: -100px;
    bottom: -200px;
}

.rex-cta-content {
    position: relative;
    z-index: 2;
}

.rex-cta h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(35px, 4vw, 55px);
    line-height: 1.1;
    font-weight: 800;
}

.rex-cta p {
    max-width: 650px;
    margin: 0 auto 30px;
    color: #e5eef5;
    font-size: 17px;
}

.rex-cta .rex-btn-primary,
.rex-cta a.rex-btn-primary {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rex-cta .rex-btn-primary svg {
    stroke: #111827 !important;
}

.rex-cta .rex-btn-primary:hover,
.rex-cta a.rex-btn-primary:hover {
    background: #111827 !important;
    background-color: #111827 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.rex-cta .rex-btn-primary:hover svg {
    stroke: #ffffff !important;
}

/* =========================================================
   CONTACT
========================================================= */

.rex-contact {
    background: #f8fafc;
}

.rex-contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.rex-contact-info h2 {
    margin: 0 0 20px;
    color: #111827;
    font-size: clamp(32px, 3.5vw, 45px);
    line-height: 1.1;
    font-weight: 800;
}

.rex-contact-info > p {
    margin: 0 0 30px;
    color: #64748b;
    font-size: 16px;
}

/* CONTACT ITEMS */

.rex-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.rex-contact-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #5794c7;
}

.rex-contact-item h4 {
    margin: 0 0 3px;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.rex-contact-item p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.rex-contact-item a {
    color: #64748b;
    transition: color 0.2s ease;
}

.rex-contact-item a:hover {
    color: #5794c7;
}

/* =========================================================
   FORM
========================================================= */

.rex-contact-form {
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.05);
}

.rex-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.rex-form-group {
    margin-bottom: 18px;
}

.rex-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.rex-form-group input,
.rex-form-group textarea,
.rex-form-group select {
    width: 100%;
    padding: 13px 14px;
    background: #ffffff;
    border: 1px solid #dbe1e8;
    border-radius: 8px;
    color: #111827;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.rex-form-group input:focus,
.rex-form-group textarea:focus,
.rex-form-group select:focus {
    border-color: #5794c7;
    box-shadow: 0 0 0 3px rgba(87,148,199,0.15);
}

.rex-form-group input::placeholder,
.rex-form-group textarea::placeholder {
    color: #9ca3af;
}

.rex-form-group select {
    cursor: pointer;
    background-color: #ffffff;
}

.rex-form-group textarea {
    height: 130px;
    resize: vertical;
}

.rex-form-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
}

/* =========================================================
   SUCCESS MESSAGE
========================================================= */

.rex-success-message {
    display: none;
    margin-top: 15px;
    padding: 12px 15px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #047857;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

/* =========================================================
   ANIMATION
========================================================= */

.rex-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.21, 0.47, 0.32, 0.98), transform 0.7s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}

.rex-fade-up.rex-show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */

@media (max-width: 950px) {
    .rex-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .rex-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rex-about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .rex-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rex-contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 650px) {
    .rex-hero {
        min-height: 560px;
        padding: 40px 0;
    }

    .rex-hero h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .rex-hero p {
        font-size: 16px;
    }

    .rex-section {
        padding: 60px 0;
    }

    .rex-stats-grid,
    .rex-services-grid,
    .rex-why-grid,
    .rex-process-grid {
        grid-template-columns: 1fr;
    }

    .rex-about-visual {
        min-height: 360px;
        padding: 24px;
    }

    .rex-cta {
        padding: 60px 0;
    }

    .rex-cta-box {
        padding: 50px 20px;
    }

    .rex-contact-info h2 {
        font-size: 34px;
    }

    .rex-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rex-contact-form {
        padding: 20px;
    }

    .rex-hero-shape {
        width: 300px;
        height: 300px;
        right: -180px;
        top: 100px;
    }

    .rex-hero-shape::before {
        width: 200px;
        height: 200px;
        top: 50px;
        left: 50px;
    }

    .rex-hero-buttons {
        flex-direction: column;
    }

    .rex-hero-buttons .rex-btn-primary,
    .rex-hero-buttons .rex-btn-secondary {
        width: 100%;
    }
}
