/* Process Section Timeline */
.process-section {
    padding: 100px 0;
    background: #f8fafc;
}
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
}
.timeline {
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 4px;
    background: rgba(147,51,234,0.2);
    transform: translateX(-50%);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}
.timeline-icon {
    position: absolute;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 0 0 8px #f8fafc, 0 5px 15px rgba(0,0,0,0.1);
}
.timeline-item:nth-child(odd) .timeline-icon {
    right: 0;
    transform: translateX(50%);
}
.timeline-item:nth-child(even) .timeline-icon {
    left: 0;
    transform: translateX(-50%);
}
.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.3s ease;
}
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(147,51,234,0.1);
}
.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0; height: 0;
    border-style: solid;
}
.timeline-item:nth-child(odd) .timeline-content::before {
    right: -15px;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent white;
}
.timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-color: transparent white transparent transparent;
}
.step-num {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(147,51,234,0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.timeline-content h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Timeline Mobile Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        padding: 0 0 30px 80px !important;
        text-align: left !important;
        left: 0 !important;
    }
    .timeline-icon {
        left: 30px !important;
        transform: translateX(-50%) !important;
        width: 50px; height: 50px;
        font-size: 1.2rem;
    }
    .timeline-content::before {
        left: -15px !important;
        right: auto !important;
        border-width: 15px 15px 15px 0 !important;
        border-color: transparent white transparent transparent !important;
    }
}

/* 1. Hero Background Wave Animation */
@keyframes wave {
    0% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
    100% { transform: translateX(0); }
}

/* 2. Floating Laptop Animation */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.laptop {
    animation: floating 4s ease-in-out infinite;
}

/* 3. Fade Up Animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. Card Hover Animation */
.card {
    transition: .4s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(var(--bs-primary-rgb), 0.2) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.3) !important;
}

/* 5. Button Glow Animation */
@keyframes glow {
    0% { box-shadow: 0 0 5px #7b4dff; }
    50% { box-shadow: 0 0 20px #7b4dff; }
    100% { box-shadow: 0 0 5px #7b4dff; }
}
.btn {
    animation: glow 2s infinite;
}

/* 7. Logo Slider Marquee */
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* 8. Process Icons Zoom In */
@keyframes zoomIn {
    from { transform: scale(.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Swiper Additional Styles */
.testimonial {
    overflow: hidden;
}

/* --- Global Responsive Adjustments --- */
@media (max-width: 991px) {
    /* Adjust Section Paddings */
    .py-5, .py-6, .section-padding, .process-section, .projects-grid-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    
    /* Typography Scaling */
    h1, .display-4 { font-size: 2.5rem !important; }
    h2, .display-5 { font-size: 2rem !important; }
    h3, .section-title { font-size: 1.75rem !important; }
    
    /* Remove fixed heights on address cards */
    .address-card {
        min-height: auto !important;
        padding: 30px !important;
    }
    
    /* Services vertical tabs - Make them horizontal and scrollable on tablet/mobile */
    .nav-pills.flex-column {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    .nav-pills.flex-column .nav-link {
        white-space: nowrap;
        margin-right: 10px;
        margin-bottom: 0 !important;
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    /* Further adjust on phones */
    .py-5, .py-6, .section-padding, .process-section, .projects-grid-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    h1, .display-4 { font-size: 2rem !important; }
    h2, .display-5 { font-size: 1.5rem !important; }
    
    /* Hero button stacks */
    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        width: 100%;
    }
    .hero-section .d-flex.gap-3 .btn {
        width: 100%;
    }
}

/* =========================================
   LIQUID GLASS (GLASSMORPHISM) UI
   ========================================= */

.glass-ui {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05) !important;
}

.glass-bg {
    background: linear-gradient(-45deg, #f3e8ff, #e0e7ff, #fce7f3, #dcfce7);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Global Overrides for Glassmorphism */
.card, .stat-card, .timeline-content, .address-card, .tech-card, .service-card, .awards-card {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05) !important;
}

.bg-white, .bg-light, section[style*="background-color: var(--bg-light)"] {
    background-color: transparent !important;
    background: transparent !important;
}

/* Global Paragraph Text Justification */
p {
    text-align: justify;
}

/* Mobile Responsiveness Enhancements for Main Site */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 16px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
        text-align: left;
    }
    .hero-section {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }
    .section-padding, section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .whatsapp-widget-btn, .chat-widget-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.3rem !important;
    }
    .awards-section, .testimonials-section {
        padding: 30px 15px !important;
    }
    .card {
        padding: 20px 15px !important;
    }
}

