/* --- SERVICES.CSS --- */

/* 1. Split Hero Section */
.services-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 8rem 5% 4rem;
    max-width: 1300px;
    margin: 0 auto;
}
.hero-content { flex: 1; min-width: 300px; }
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-top: 1rem; margin-bottom: 1.5rem;}
.hero-content p { color: var(--text-muted); font-size: 1.2rem; line-height: 1.8; margin-bottom: 2rem; }

.hero-image-box {
    flex: 1;
    position: relative;
    min-width: 300px;
    display: flex;
    justify-content: center;
}
.floating-img {
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    border: 2px solid rgba(56,189,248,0.3);
    box-shadow: 0 20px 50px rgba(37,99,235,0.2);
    animation: float 6s ease-in-out infinite;
    object-fit: cover;
    aspect-ratio: 4/3;
    background: #111; /* Fallback if image is missing */
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* 2. Tech Stack Section (Animated) */
.tech-stack-section { padding: 4rem 2rem; overflow: hidden; background: rgba(255,255,255,0.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 6rem; }
.tech-marquee {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 2rem auto 0;
}
.tech-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    border-radius: 50px;
    color: var(--sky-blue);
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: default;
}
.tech-box:hover { background: var(--sky-blue); color: #fff; transform: scale(1.1); box-shadow: 0 0 20px rgba(56,189,248,0.4); }

/* 3. Detailed Services Grid (With Images) */
.services-showcase { max-width: 1300px; margin: 0 auto 8rem; padding: 0 2rem; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    justify-content: center; /* ADDED: Centers the cards on the page */
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--sky-blue);
    box-shadow: 0 15px 35px rgba(37,99,235,0.15);
}
.card-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: #222; /* Fallback */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .card-image img { transform: scale(1.1); }
.service-card h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* 4. Digital Impact Section (Overlapping Layout) */
.impact-section { max-width: 1200px; margin: 0 auto 8rem; padding: 0 2rem; }
.impact-container {
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 30px;
}
.impact-image {
    width: 60%;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}
.impact-image img { width: 100%; height: 450px; object-fit: cover; display: block; background: #1a1a1a; }
.impact-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(17,24,39,1));
}
.impact-text-box {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 4rem;
    border-radius: 24px;
    width: 50%;
    position: absolute;
    right: 0;
    box-shadow: -20px 20px 50px rgba(0,0,0,0.5);
    border-right: 4px solid var(--sky-blue);
}
.impact-text-box h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.impact-text-box p { color: var(--text-muted); line-height: 1.8; font-size: 1.1rem; }

/* 5. Process Grid (Interactive Boxes) */
.process-section { max-width: 1000px; margin: 0 auto 8rem; padding: 0 2rem; }
.process-interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-content: center; /* ADDED: Centers the process boxes on the page */
}
.p-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    padding: 2.5rem 1rem;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.p-box:hover {
    background: var(--surface-hover);
    border-color: var(--sky-blue);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(56,189,248,0.1);
}
.p-box h3 { font-size: 3rem; color: rgba(255,255,255,0.1); transition: color 0.3s; margin-bottom: 0.5rem; line-height: 1; }
.p-box span { font-weight: bold; color: var(--text-muted); font-size: 1.1rem; letter-spacing: 1px; transition: color 0.3s;}
.p-box:hover h3 { color: var(--sky-blue); }
.p-box:hover span { color: #fff; }

.highlight-box { background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(124,58,237,.1)); border-color: rgba(124,58,237,.4); }

/* Custom Modal Styles (Themed Popup) */
.custom-modal {
    display: none; /* Hidden by default */
    position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.custom-modal.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s forwards;
}
@keyframes modalFadeIn { from { transform: scale(0.9); } to { transform: scale(1); } }
.modal-content {
    background: var(--bg);
    border: 1px solid var(--sky-blue);
    border-radius: 24px;
    padding: 4rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 50px rgba(56,189,248,0.2);
    text-align: center;
}
.close-modal {
    position: absolute;
    top: 1.5rem; right: 2rem;
    color: var(--text-muted);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.close-modal:hover { color: #fff; }
.modal-header h2 { font-size: 2.5rem; margin: 1rem 0 1.5rem; }
#modal-desc { font-size: 1.2rem; color: var(--text-muted); line-height: 1.8; }

/* 6. Success / Testimonial Section */
.success-section { max-width: 800px; margin: 0 auto 8rem; padding: 0 2rem; }
.success-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), transparent);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}
.success-card::before {
    content: "”";
    position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
    font-size: 8rem; color: rgba(56,189,248,0.2); line-height: 1; font-family: serif;
}
.success-quote { font-size: 1.4rem; font-style: italic; line-height: 1.8; margin-bottom: 2rem; }
.success-author { color: var(--sky-blue); font-weight: bold; letter-spacing: 2px; text-transform: uppercase; }

/* CTA Setup (Keeping from previous) */
.services-cta { text-align: center; padding: 6rem 2rem; background: rgba(17,24,39,0.5); border-top: 1px solid var(--border); }
.services-cta h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.services-cta p { color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; line-height: 1.7; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; }

/* Mobile Adjustments */
@media (max-width: 900px) {
    .services-hero { flex-direction: column; text-align: center; }
    .impact-container { flex-direction: column; }
    .impact-image, .impact-text-box { width: 100%; position: static; }
    .impact-text-box { margin-top: -50px; border-right: none; border-top: 4px solid var(--sky-blue); padding: 2.5rem; }
    .impact-glow { background: linear-gradient(180deg, transparent, rgba(17,24,39,1)); }
    .modal-content { padding: 3rem 2rem; }
}
