/* ================= SERVICES PAGE & ZIG-ZAG LAYOUT ================= */

.service-intro-text {
    max-width: 700px;
    margin: 20px auto;
    color: #aaa;
}

/* ================= CONTINUOUS GLOWING TIMELINE ================= */

/* Container jisme saari rows hain usko relative banayenge */
.web-details-z-pattern .container,
.services-list .container {
    position: relative;
}

/* 1. THE MAIN LINE (Solid but subtle) */
.web-details-z-pattern .container::before,
.services-list .container::before {
    content: '';
    position: absolute;
    top: 50px;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255, 90, 31, 0.3) 10%, rgba(255, 90, 31, 0.3) 90%, transparent);
    z-index: 0;
}

/* 2. THE GLOWING MOVING DOT */
.web-details-z-pattern .container::after,
.services-list .container::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 40px;
    border-radius: 50px;
    background: var(--primary-orange);
    box-shadow: 0 0 15px var(--primary-orange), 0 0 30px var(--primary-orange);
    z-index: 1;
    animation: timeline-glow-drop 8s linear infinite;
}

/* Moving Animation Keyframes */
@keyframes timeline-glow-drop {
    0% {
        top: 50px;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: calc(100% - 100px);
        opacity: 0;
    }
}


/* ================= EXACT 50/50 ZIGZAG LAYOUT ================= */

.service-row {
    display: flex !important;
    flex-direction: row !important;
    /* Force side-by-side */
    align-items: center !important;
    justify-content: space-between !important;
    gap: 60px !important;
    /* Fixed gap */
    margin-bottom: 120px !important;
    /* Proper spacing between rows */
    width: 100% !important;
    position: relative;
    z-index: 2;
    /* Keeps rows above the timeline line */
}

/* Even Rows: Image Left, Text Right */
.service-row:nth-child(even) {
    flex-direction: row-reverse !important;
}

/* Dono boxes ko exactly 50% width (minus half gap) diya gaya hai */
.srv-text,
.srv-visual {
    flex: 0 0 calc(50% - 30px) !important;
    /* 50% screen minus 30px gap */
    max-width: calc(50% - 30px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative;
}

.srv-text {
    padding: 40px !important;
}

/* Service Icons & Images */
.srv-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 90, 31, 0.1);
    border: 1px solid var(--primary-orange);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-orange);
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(255, 90, 31, 0.3);
}

.srv-visual img {
    width: 100% !important;
    /* height: 400px !important; */
    /* Fixed height for uniformity */
    object-fit: cover ;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    transition: 0.5s !important;
    filter: grayscale(30%);
    background: var(--bg-dark);
    /* Fallback */
}

.service-row:hover .srv-visual img {
    filter: grayscale(0%);
    transform: scale(1.03) !important;
    box-shadow: 0 20px 50px rgba(255, 90, 31, 0.15) !important;
    border-color: rgba(255, 90, 31, 0.3) !important;
}


/* ================= CONTACT FORM STYLES ================= */
.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 14, 23, 0.6);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-box {
    margin-bottom: 20px;
    text-align: left;
}

.input-box label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.input-box input,
.input-box select,
.input-box textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.input-box input:focus,
.input-box select:focus,
.input-box textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: rgba(255, 90, 31, 0.05);
    box-shadow: 0 0 10px rgba(255, 90, 31, 0.2);
}

/* Fix Select Dropdown arrow color */
.input-box select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.input-box select option {
    background: #0a0e17;
    color: #fff;
}


/* ================= RESPONSIVE FIXES ================= */

/* Tablet Adjustments */
@media (max-width: 1024px) {
    .service-row {
        gap: 30px !important;
    }

    .srv-text,
    .srv-visual {
        flex: 0 0 calc(50% - 15px) !important;
        max-width: calc(50% - 15px) !important;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    /* Hide the timeline and glowing dot on mobile */
    .web-details-z-pattern .container::before,
    .services-list .container::before,
    .web-details-z-pattern .container::after,
    .services-list .container::after {
        display: none !important;
    }

    /* Stack Everything on Mobile */
    .service-row,
    .service-row:nth-child(even) {
        flex-direction: column-reverse !important;
        /* Forces Text on Top, Image on Bottom */
        gap: 40px !important;
        margin-bottom: 80px !important;
        text-align: center !important;
    }

    /* Make boxes take 100% width on Mobile */
    .srv-text,
    .srv-visual {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 20px 0 !important;
    }

    .srv-visual img {
        height: 250px !important;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}