/* ===== SERVICES PAGE SPECIFIC STYLES ===== */

/* Services Hero Section */
.services-hero {
    padding-top: 30px !important;
    background: #ffffff;
    position: relative;
    overflow: visible;
    min-height: 500px;
    margin-bottom: 30px;
}

.services-hero .container {
    position: relative;
    z-index: 2;
}

.services-hero .row {
    position: relative;
    min-height: 400px;
}

/* Hero Image Column */
.services-image-column {
    position: absolute;
    right: -100px;
    top: 90px;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 5;
    width: 640px;
}

.services-image-column img {
    width: 640px;
    height: 676px;
    object-fit: contain;
    max-width: none;
}

/* Hero Text Column */
.services-hero .services-text-column {
    position: relative;
    z-index: 3;
    background: #ffffff;
    padding-right: 40px;
    margin-top: 300px;
    margin-top: 70px; /* Normal margin, not pushed down */
}

.services-hero .text-head {
    font-family: "Gotham", sans-serif;
    font-size: 78px;
    line-height: 1.1;
    font-weight: 300;
    color: #303030;
    white-space: normal;
    margin-bottom: 0;
    margin-top: 0;
}

#webdevelopment .service-content-container {
    border: 2;
    order: 1;
    transform: translateX(0px) !important; /* Same left shift as branding */
    padding-left: 30px !important;  /* Increase left padding */
    padding-right: 20px !important; /* Decrease right padding */
}

#webdevelopment .service-image-container {
    order: 2;
    padding: 25px !important; /* Add padding to image container */
    transform: translateX(-100px) !important; /* Push image right to maintain gap */
}

#uiux .service-content-container {
    order: 1;
    transform: translateX(0px) !important; /* Same left shift as branding */
    padding-left: 30px !important;  /* Increase left padding */
    padding-right: 20px !important; /* Decrease right padding */
}

#uiux .service-image-container {
    order: 2;
    
    padding: 20px !important; /* Add padding to image container */
    transform: translateX(-100px) !important; /* Push image right to maintain gap */
}

#digitalmarketing.service-section {
    border-bottom: none !important;
}

/* Alternative: Remove border from all potential elements in the last section */
#digitalmarketing .service-row,
#digitalmarketing .service-content-container,
#digitalmarketing .service-image-container {
    border-bottom: none !important;
}

/* If there's a pseudo-element creating the line */
#digitalmarketing.service-section::after,
#digitalmarketing.service-section::before {
    display: none !important;
    content: none !important;
}

.services-hero-description {
    color: #6e6e6e;
    font-size: 14px;
    line-height: 30px;
    margin-top: 20px;
    font-family: "Inter", sans-serif;
    font-weight: 400;
}

/* ===== SERVICE SECTIONS STYLES ===== */

/* Service Section Container */
.service-section {
    padding: 40px 0 60px 0;
    background: #ffffff;
    width: 100%;
    position: relative;
    z-index: 10;
    margin-top: 0;
}

.service-section:first-of-type {
    padding-top: 50px;
}

.service-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Service Row */
.service-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 60px;
    min-height: 400px;
    /* border: 2px solid green !important; */
}

/* Service Image Container */
.service-image-container {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px !important;
    /* border: 2px solid red !important; */
}

.service-image-container img {
    max-width: calc(100% - 20px) !important; /* Increase image width */
    padding-left: 20px !important; /* Add left padding */
    height: auto;
    object-fit: contain;
}

/* Service Content Container */
.service-content-container {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 20px 40px;
    width: 100%; /* Ensure full width */
    transform: translateX(-55px) !important;
    /* border: 2px solid blue !important; */
}

.service-content-container .service-description {
    width: 100%;
    max-width: 100%;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* Service Title */
.service-title {
    font-family: "Gotham", sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #303030;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Service Description */
.service-description {
    font-family: "Inter", sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px;
    color: #6E6E6E;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 500px;
}

/* Service Items List */
.service-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-item {
    padding: 8px 0;
    position: relative; /* Needed for pseudo-element */
    border-bottom: none !important; /* Remove the border */
}

.service-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15%; /* Start at 15% from left = 70% width line */
    width: 70%;
    height: 1px;
    background-color: #E1E1E1;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:last-child::after {
    display: none;
}

.service-item-header {
    display: flex;
    align-items: center !important;;
    margin-bottom: 10px;
}

/* Draw 80% width lines between service sections */
.service-section {
    position: relative;
    padding: 40px 0 60px 0;
}

.service-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%; /* 10% from left = 80% width line */
    width: 80%; /* 80% width */
    height: 1px;
    background-color: #E1E1E1;
}

/* Remove line from last section */
.service-section:last-child::after {
    display: none;
}

/* Remove line from contact section */
.getintouch::after {
    display: none !important;
}

/* Font-based Bullet with Right Arrow */
.service-item-bullet {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    flex-shrink: 0;
    background-color: transparent !important;
    border: 2px solid #4A4A4A !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A4A4A !important;
    font-size: 12px;
    font-weight: bold;
    position: relative;
}

.service-item-bullet::after {
    content: ""; /* Remove text arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M2 1 L6 4 L2 7' fill='none' stroke='%234A4A4A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
}

.service-item-title {
    font-family: "Gotham", sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #4A4A4A;
    margin: 0;
    line-height: 1.4;
}

.service-item-description {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #6E6E6E;
    line-height: 1.6;
    margin: 0;
    padding-left: 39px;
}

/* Alternating Layout */
.service-image-right .service-row {
    flex-direction: row-reverse;
}

/* Contact Form Section */
.getintouch {
    background: #D9F0F0;
    padding: 60px 0;
    width: 100%;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.getintouch .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.sectionsinside {
    align-items: flex-start;
}

.lefttext {
    font-family: 'Gotham', sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #303030;
    margin-bottom: 25px;
    line-height: 1.2;
}

.lefttextptag {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #6E6E6E;
    line-height: 1.6;
    margin: 0;
}

.form-section {
    margin-top: 30px;
    padding: 20px;
}

.formbox {
    width: 100%;
    border: 1px solid #DFDCDC;
    border-radius: 6px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-bottom: 1rem;
}

.formboxs {
    background: #092bf7;
    color: #ffffff;
    border: none;
    padding: 14px 16px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    display: block;
    transition: all 0.3s ease;
}

.formboxs:hover {
    background: #071fcc;
    transform: translateY(-2px);
}

.overlay-message {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-align: center;
    border: 1px solid #c3e6cb;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 1001;
}

.close-btn:hover {
    color: #000;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 3px 3px 10px #999;
}

/* Contact Us Section Styles */

/* Floating Label Styles */
.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-input {
    width: 100%;
    border: 1px solid #DFDCDC;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #303030;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.floating-input {
    width: 100%;
    height: 58px;
    padding: 1rem 1rem;
    border: 1px solid #DFDCDC;
    border-radius: 6px;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #303030;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.floating-input:focus {
    outline: none;
    border-color: #092bf7;
    box-shadow: 0 0 0 2px rgba(9, 43, 247, 0.1);
    padding: 1.6rem 1rem 0.4rem 1rem;
}

.floating-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
}

/* Floating effect */
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: 0.4rem;
    left: 1rem;
    font-size: 12px;
    color: #092bf7;
    font-weight: 500;
}

/* Select dropdown specific styles */
.form-floating select.floating-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23303030' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.form-floating select.floating-input:focus ~ .floating-label,
.form-floating select.floating-input:valid ~ .floating-label {
    top: 0.4rem;
    left: 1rem;
    font-size: 12px;
    color: #092bf7;
    font-weight: 500;
}

/* Textarea specific styles */
.form-floating textarea.floating-input {
    height: 120px;
    min-height: 120px;
    padding: 1.6rem 1rem 1rem 1rem;
    resize: vertical;
}

.form-floating textarea.floating-input:focus {
    padding: 2rem 1rem 1rem 1rem;
}

.form-floating textarea.floating-input:focus ~ .floating-label,
.form-floating textarea.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: 0.4rem;
}


.contact-us-section {
    background-color: #D9F0F0;
    padding: 80px 0;
    width: 100%;
}

.contact-us-section .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.contact-text-column {
    flex: 1;
}

.contact-form-column {
    flex: 1;
}

.contact-title {
    font-family: 'Gotham', Arial, sans-serif;
    font-weight: bold;
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #000;
    transform: translateY(-140px);
}

.contact-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    transform: translateY(-140px);
}

.contact-form-wrapper {
    background: transparent;
}

.form-group {
    margin-bottom: 20px;
}

.contact-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.contact-input::placeholder {
    color: #999;
}

.contact-input textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-submit-btn {
    background: #092bf7 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 16px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease !important;
    width: 100%;
    display: block;
    margin-top: 10px;
}

.contact-submit-btn:hover {
    background: #071fcc !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 43, 247, 0.3);
}

#branding,
#webdevelopment,
#mobile,
#uiux,
#strategicservices,
#IoT,
#digitalmarketing {
  scroll-margin-top: 110px; /* Adjust based on your header height + 10px */
}

/* Responsive Design */
@media (max-width: 991px) {
    .contact-row {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-text-column,
    .contact-form-column {
        width: 100%;
    }
    
    .contact-title {
        font-size: 32px;
        text-align: center;
    }
    
    .contact-description {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contact-us-section {
        padding: 60px 0;
    }
    
    .contact-title {
        font-size: 28px;
    }
    
    .contact-description {
        font-size: 14px;
    }
}

/* Form Validation Styles */
.contact-input:invalid {
    border-color: #dc3545;
}

.contact-input:valid {
    border-color: #28a745;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1200px) {
    .services-image-column {
        right: -50px;
        width: 550px;
        top: -30px;
    }
    
    .services-image-column img {
        width: 550px;
        height: 580px;
    }
    
    .services-hero .services-text-column {
        margin-top: 250px;
    }
    
    .service-row {
        gap: 40px;
    }
    
    .service-content-container {
        padding: 20px 30px;
    }
}

@media (max-width: 992px) {
    .services-hero {
        padding-top: 140px;
        min-height: 400px;
        margin-bottom: 20px;
    }
    
    .services-image-column {
        position: relative;
        right: 0;
        top: 0;
        width: 100%;
        justify-content: center;
        margin-top: 0;
        margin-bottom: 30px;
    }
    
    .services-image-column img {
        width: 100%;
        max-width: 450px;
        height: auto;
    }
    
    .services-hero .services-text-column {
        padding-right: 0;
        margin-top: 0;
        text-align: center;
    }
    
    .services-hero .text-head {
        font-size: 60px;
        margin-top: 0;
    }
    
    .service-row {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
    }
    
    .service-image-container,
    .service-content-container {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .service-image-right .service-row {
        flex-direction: column;
    }
    
    .service-content-container {
        padding: 0 20px;
    }
    
    .service-section {
        padding: 30px 0 40px 0;
    }
    
    .service-section:first-of-type {
        padding-top: 30px;
    }
    
    .service-item-bullet {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .service-item-description {
        padding-left: 37px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding-top: 120px;
        min-height: 350px;
        margin-bottom: 10px;
    }
    
    .services-hero .text-head {
        font-size: 48px;
    }
    
    .service-section {
        padding: 20px 0 30px 0;
    }
    
    .service-section:first-of-type {
        padding-top: 20px;
    }
    
    .service-title {
        font-size: 28px;
    }
    
    .service-description {
        font-size: 14px;
    }
    
    .service-item-title {
        font-size: 17px;
    }
    
    .service-item-description {
        font-size: 13px;
        padding-left: 35px;
    }
    
    .lefttext {
        font-size: 32px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .service-item-bullet {
        width: 20px;
        height: 20px;
        font-size: 10px;
        margin-right: 12px;
    }
}

@media (max-width: 576px) {
    .services-hero {
        padding-top: 100px;
        min-height: auto;
        margin-bottom: 0;
    }
    
    .services-hero .text-head {
        font-size: 36px;
    }
    
    .services-hero-description {
        font-size: 13px;
        line-height: 24px;
    }
    
    .service-content-container {
        padding: 0 15px;
    }
    
    .service-item {
        padding: 12px 0;
    }
    
    .service-item-description {
        padding-left: 32px;
    }
    
    .lefttext {
        font-size: 28px;
    }
    
    .service-item-bullet {
        width: 18px;
        height: 18px;
        font-size: 9px;
        margin-right: 10px;
    }
    
    .getintouch {
        padding: 40px 0;
        margin-top: 20px;
    }
    
    .form-section {
        padding: 10px;
    }
}

/* EMERGENCY FIXES - Add these if issues persist */
#branding .service-content-container {
    position: relative !important;
    left: -30px !important; /* Direct left positioning */
    order: 2;
}

#branding .service-image-container {
    order: 1;
}

/* EMERGENCY FIXES - Add these if issues persist */
#mobile .service-content-container {
    position: relative !important;
    left: -30px !important; /* Direct left positioning */
    order: 2;
}

#mobile .service-image-container {
    order: 1;
}


.service-section {
    clear: both;
}

.service-content-container .service-title,
.service-content-container .service-description {
    position: static;
    transform: none;
}

/**/
#IoT .service-content-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    order: 1;
    transform: translateX(0px) !important; /* Same left shift as branding */
    padding-left: 30px !important;  /* Increase left padding */
    padding-right: 20px !important; /* Decrease right padding */
}

#IoT .service-image-container {
    order: 2;
    display: flex;
    flex: 0 0 67% !important;
    max-width: 52% !important;
    align-items: center;
    justify-content: center;
    padding: 20px !important; /* Add padding to image container */
    transform: translateX(-100px) !important; /* Push image right to maintain gap */
}