/* ==========================================
   1. LAYOUT CONTAINERS & HERO
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.custom-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    box-sizing: border-box;
    background: radial-gradient(circle at top, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
}

.badge {
    background: rgba(236, 72, 153, 0.15);
    color: var(--color-accent);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(236, 72, 153, 0.25);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.custom-hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
}

.custom-hero p {
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==========================================
   2. CAPABILITIES GRID
   ========================================== */
.capabilities {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.01);
}

.caps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.cap-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cap-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.3);
}

.cap-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.cap-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.35rem;
    color: var(--text-main);
}

.cap-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==========================================
   UPDATED PIPELINE GRID (Max 3 Cols)
   ========================================== */
.pipeline {
    display: grid;
    /* Forces at least 320px width per card, ensuring max 3 cols on large screens */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px; /* Constrains total width to keep it centered and controlled */
    margin: 0 auto;
}

.step {
    background: var(--bg-card); /* Filled Background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden; /* Ensures glow doesn't bleed outside the rounded corners */
}

/* SPOTLIGHT GLOW EFFECT FOR STEPS */
.step::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Base visibility: 0.15 is subtle, 0.3 is more pronounced */
    background: radial-gradient(800px circle at var(--x) var(--y), var(--color-primary), transparent 40%);
    opacity: 0.25; 
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Brighter glow when you actually move your mouse over it */
.step:hover::before {
    opacity: 0.5; 
}

.step > * {
    position: relative;
    z-index: 1;
}

/* Adjusting step number to fit the new card style */
.step-number {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, var(--color-primary), var(--dark-color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

.step h4 {
    margin: 0 0 1rem 0;
    color: var(--text-main);
}

/* ==========================================
   4. INTAKE FORM STYLING
   ========================================== */
.inquiry-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, transparent, rgba(28, 17, 41, 0.4));
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}


.form-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.form-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.form-header p {
    color: var(--text-secondary);
}

/* Update your existing .custom-form class with these two lines */
.custom-form {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    box-sizing: border-box;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    
    /* ADD THESE FOR THE GLOW TO WORK */
    position: relative; 
    overflow: hidden;
}

/* Add the glow pseudo-element for the form */
.custom-form::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--x) var(--y), var(--color-primary), transparent 40%);
    opacity: 0.15; /* Base glow */
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0; /* Keep it behind the form inputs */
}

/* Ensure the inputs stay ABOVE the glow so they remain clickable */
.custom-form > * {
    position: relative;
    z-index: 1;
}


.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(10, 5, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.form-group textarea {
    resize: vertical;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

/* ==========================================
   5. RESPONSIVE MEDIA BREAKPOINTS
   ========================================== */
@media (max-width: 768px) {
    .custom-hero h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.8rem;
    }
    
    .custom-form {
        padding: 2rem 1.5rem;
    }
    
    .pipeline {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==========================================
   REPLICATED TECH GRID (Layout Fix)
   ========================================== */
.capabilities-alternating {
    padding: 6rem 0;
}

.cap-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.cap-row.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 3;
}

/* ==========================================
   3D TILT CONTAINER (Replaces previous spotlight-row-image styles)
   ========================================== */
.spotlight-row-image {
    flex: 2;
    height: 350px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.spotlight-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .cap-row, .cap-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }
}

#success-message h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

#echo-data {
    font-family: monospace;
    white-space: pre-wrap; /* Ensures the message preserves line breaks */
    color: var(--text-secondary);
}