* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background: #ffffff;
    color: #333;
    overflow-x: hidden;
}

/* ================================
   SERVICES HERO
================================ */

.services-hero {
    background: linear-gradient(135deg, #2038afc2 0%, #03afffc7 100%), url(../img/ser1.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
}

.services-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.services-hero p {
    font-size: 14px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-hero {
        padding: 80px 20px;
    }

    .services-hero h1 {
        font-size: 34px;
        line-height: 36px;
    }
}



/* Animated Background Pattern */
.re-background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.05;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, .1) 35px, rgba(255, 255, 255, .1) 70px);
    animation: rePatternMove 20s linear infinite;
}

@keyframes rePatternMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(70px, 70px);
    }
}

.re-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}


/* Main Layout */
.re-services-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    min-height: 600px;
}

/* Side Navigation */
.re-side-nav {
    flex: 0 0 320px;
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.re-side-nav h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
}

.re-nav-item {
    padding: 20px;
    margin-bottom: 12px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    border: 2px solid transparent;
}

.re-nav-text {
    display: flex;
    flex-direction: column;
    padding: 0px;
    margin: 0px;
}

.re-nav-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.re-nav-item.active {
    background:linear-gradient(135deg, #2038af 0%, #03afff 100%);
    color: white;
    border-color: #00b7ff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.re-nav-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255, 255, 255);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.re-nav-item.active .re-nav-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffffdb;
}

.re-nav-text h4 {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.re-nav-text p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.re-nav-item.active .re-nav-text p {
    opacity: 0.9;
}

/* Content Area */
.re-content-area {
    flex: 1;
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.re-service-content {
    display: none;
    animation: reFadeIn 0.5s ease;
}

.re-service-content.active {
    display: block;
}

@keyframes reFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.re-content-header {
    margin-top: -40px;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
}

.re-content-header h2 {
    font-size: 2.8rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 20px;
}

.re-content-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-left: 75px;
}

/* Service Grid */
.re-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.modern-card {
    background:linear-gradient(135deg, #2038af 0%, #03afff 100%);
    /* Gradient card */
    color: #fff;
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.modern-card::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    top: -50%;
    left: -50%;
    pointer-events: none;
}

.modern-card:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.modern-card .re-card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 50%;
    display: inline-block;
}

.modern-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.modern-card p {
    font-size: 1rem;
    line-height: 1.5;
}


.re-service-card:nth-child(4n+1) {
    --card-gradient-1: #667eea;
    --card-gradient-2: #764ba2;
}

.re-service-card:nth-child(4n+2) {
    --card-gradient-1: #f093fb;
    --card-gradient-2: #f5576c;
}

.re-service-card:nth-child(4n+3) {
    --card-gradient-1: #4facfe;
    --card-gradient-2: #00f2fe;
}

.re-service-card:nth-child(4n+4) {
    --card-gradient-1: #43e97b;
    --card-gradient-2: #38f9d7;
}

.re-nav-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f1f3f6;
    font-size: 26px;
    color: #10449adb;
    /* construction yellow */
}

.re-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--card-gradient-1);
}


/* ---------------------- */
/* Responsive Breakpoints */
/* ---------------------- */

/* Tablets */
@media (max-width: 992px) {
    .re-services-wrapper {
        flex-direction: column;
    }

    .re-side-nav {
        flex: 1;
        margin-bottom: 20px;
        position: static;
        /* Disable sticky on mobile to prevent overlay issues */
    }

    .re-hero {
        padding: 50px 20px;
    }

    .re-content-header h2 {
        font-size: 2.2rem;
    }

    .re-content-header p {
        font-size: 1rem;
        color: #7f8c8d;
        margin-left: 0;
    }

    .re-services-wrapper {
        gap: 20px;
    }


}

/* Mobile */
@media (max-width: 768px) {
    .re-services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        /* single column for cards */
    }

    .re-content-area {
        padding: 20px;
        border-radius: 15px;
    }

    .re-content-header {
        margin-top: -20px;
        margin-bottom: 25px;
    }

    .re-content-header h2 {
        font-size: 1.8rem;
        gap: 10px;
    }

    .re-content-header p {
        margin-left: 0;
        font-size: 0.95rem;
    }

    .re-hero h1 {
        font-size: 1.8rem;
    }

    .re-hero p {
        font-size: 1rem;
    }

    .re-side-nav {
        padding: 15px;
    }

    .re-nav-item {
        gap: 10px;
        padding: 10px;
    }

    .re-nav-icon {
        font-size: 1.3rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .re-hero h1 {
        font-size: 1.5rem;
    }

    .re-hero p {
        font-size: 0.95rem;
    }

    .re-container {
        padding: 5px;
    }
    
    .re-content-area {
        padding: 15px;
    }
}

/* Hide the header icon on screens 768px wide or smaller */
@media (max-width: 768px) {
    .re-content-header h2 span {
        display: none;
    }
}



/* CTA Section */
.re-cta-section {
    background: white;
    padding: 60px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.re-cta-content {
    position: relative;
    z-index: 1;
}

.re-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.re-cta-btn {
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.re-primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.re-secondary-btn {
    background: transparent;
    color: #667eea;
    border: 3px solid #667eea;
}
