/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.4;
    color: #000;
    font-family: 'Poppins', sans-serif;
}

.container-services-page {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.hero-services-page {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero-content-services-page {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: center; /* Ensures content is centered */
    flex-wrap: wrap; /* Allows responsiveness on smaller screens */
}

.text-contentservices-page {
    flex: 1;
    font-family: 'Poppins', sans-serif; /* Updated font-family */
    font-size: 1rem; /* Updated font-size */
    text-align: justify; /* Adjusts text evenly on both sides */
}

.text-contentservices-page h1 {
    font-size: 2.5rem; /* Updated font-size */
    margin-bottom: 1.5rem;
    color: #000;
    line-height: 1.4;
}

.text-contentservices-page p {
    font-size: 1rem; /* Updated font-size */
    margin-bottom: 2rem;
    color: #333;
    line-height: 1.4;
    text-align: justify; /* Makes paragraph justified for equal left & right spacing */
}

.text-contentservices-page button {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
}

.image-content-services-page {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-content-services-page img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
}


/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: #10b981;
    color: white;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-secondary:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(16, 185, 129, 0.3);
}

/* 🌟 Features Section */
.crm-features-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #5ba7d4, #60B3D9);
    color: white;
    position: relative;
    overflow: hidden;
}

/* subtle floating light overlay for depth */
.crm-features-section::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(100px);
    z-index: 0;
}

/* text center and spacing */
.features-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.features-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    margin-top:-50px
}

.features-header p {
    font-size: 1rem;
    margin: -10px auto;
    //color: rgba(255, 255, 255, 0.9);
    color:#475569
}

/* 💎 Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* 🎯 Feature Cards */
.feature-card {
    background-color: #E0E0E0;
    color: #0b213f;
    border-radius: 18px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 320px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* hover lighting */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(145deg, #f0f8ff, #dbeafe);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* 🎨 Icon Circle */
.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #60B3D9, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* white icons with glow */
.feature-icon {
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* headings + text */
.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0b213f;
}

.feature-card p {
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.4;
}

/* 🌍 Responsive Layout */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}


/* Fixed Image Section */
.fixed-image-section-services-page {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.fixed-content-services-page {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.fixed-text-sevices-page {
    flex: 1;
}

.fixed-text-sevices-page h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.fixed-text-sevices-page p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #333;
    line-height:1.4;
}

.fixed-image-services-page {
    flex: 1;
    display: flex;
    justify-content: center;
}

.fixed-image-services-page img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    
}

/* Popup Styles */
.popup-overlay-services-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay-services-page.active {
    opacity: 1;
    visibility: visible;
}

.popup-services-page {
    background-color: white;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.popup-overlay-services-page.active .popup-services-page {
    transform: translateY(0);
}

.popup-header-services-page {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f8fafc;
    flex-shrink: 0;
}

.popup-header-services-page h3 {
    color: #1e293b;
    font-size: 1.5rem;
    flex: 1;
}

.close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    background: none;
    border: none;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.popup-form-container-servces-page {
    padding: 0 2rem 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

.popup-form-services-page {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    height: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    height: auto;
}

.required::after {
    content: " *";
    color: #ef4444;
}

.form-submit {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content-services-page,
    .fixed-content-services-page {
        flex-direction: column;
        text-align: center;
    }
    
    .text-contentservices-page p {
        max-width: 100%;
    }
    
    .text-contentservices-page h1 {
        font-size: 2.5rem;
    }
    
    .features-header h2 {
        font-size: 2rem;
    }
    
    .fixed-text-sevices-page h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-services-page,
    .crm-features-section,
    .fixed-image-section-services-page {
        padding: 3rem 0;
    }
    
    .text-contentservices-page h1 {
        font-size: 2rem;
    }
    
    .features-header h2,
    .fixed-text-sevices-page h2 {
        font-size: 1.8rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .popup-services-page {
        width: 95%;
        max-height: 90vh;
    }
    
    .popup-header-services-page,
    .popup-form-container-servces-page {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .text-contentservices-page h1 {
        font-size: 1.8rem;
    }
    
    .text-contentservices-page p,
    .features-header p,
    .fixed-text-sevices-page p {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .popup-header-services-page,
    .popup-form-container-servces-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem 0.9rem;
        height: 44px;
    }
    
    .form-group textarea {
        height: auto;
    }
    
    .feature-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon {
        font-size: 1.7rem;
    }
    
    .feature-card h4 {
        font-size: 1.2rem;
    }
}