/* ==========================================================================
   CONTACT PAGE STYLES - Premium Tech Identity
   ========================================================================== */

/* --- Premium B2B Contact Hero --- */
.contact-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 5%;
    background: #FAFAFA;
    overflow: hidden;
    z-index: 1;
}

.ch-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    overflow: hidden;
}

.ch-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.ch-glow.glow-1 { width: 50vw; height: 50vw; background: #9D4EDD; top: -10%; left: -10%; }
.ch-glow.glow-2 { width: 40vw; height: 40vw; background: #111; bottom: 0%; right: -5%; }
.ch-glow.glow-3 { width: 30vw; height: 30vw; background: #3b82f6; top: 30%; left: 40%; opacity: 0.1; }

.ch-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.contact-hero-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ch-content-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ch-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #111;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    width: fit-content;
}

.ch-pulse {
    width: 8px; height: 8px;
    background: #9D4EDD;
    border-radius: 50%;
    position: relative;
}
.ch-pulse::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    border: 1px solid #9D4EDD;
    animation: chPulseAnim 2s infinite;
}
@keyframes chPulseAnim {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.ch-title {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #111;
}

.ch-title .reveal-text {
    display: block;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}   

.ch-title .text-gradient {
    background: linear-gradient(135deg, #111 0%, #9D4EDD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ch-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #555;
    max-width: 95%;
}

.ch-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.ch-btn-primary {
    background: #111;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.ch-btn-primary:hover {
    background: #fff;
    color: #111;
    border: 1px solid #111;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.ch-tech-stack {
    display: flex;
    gap: 15px;
    color: #888;
}
.ch-tech-stack .material-icons {
    font-size: 28px;
    transition: color 0.3s ease;
    cursor: default;
}
.ch-tech-stack .material-icons:hover {
    color: #9D4EDD;
}

.ch-visual-side {
    position: relative;
    height: 600px;
    perspective: 1200px;
}

.ch-premium-visual {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
}

.ch-ui-panel {
    position: absolute;
    border-radius: 20px;
    transform-style: preserve-3d;
    will-change: transform;
}

.ch-panel-glass {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: inherit;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(255,255,255,0.5);
    z-index: 1;
}

/* Main Dashboard */
.ch-main-panel {
    width: 420px;
    height: 480px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
}

.ch-panel-header {
    position: relative;
    z-index: 2;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ch-window-controls {
    display: flex;
    gap: 6px;
    margin-right: 15px;
}
.ch-window-controls i {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}
.ch-window-controls i:nth-child(1) { background: #ff5f56; }
.ch-window-controls i:nth-child(2) { background: #ffbd2e; }
.ch-window-controls i:nth-child(3) { background: #27c93f; }

.ch-panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.5px;
}

.ch-panel-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: calc(100% - 46px);
}

/* Data Stream Bars */
.ch-data-stream {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ch-data-row {
    display: flex;
    align-items: center;
    gap: 15px;
}
.ch-data-row span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    width: 60px;
}
.ch-progress {
    flex-grow: 1;
    height: 6px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}
.ch-progress-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #111, #9D4EDD);
}
.p-70 { width: 70%; animation: pLoad 2s ease-out forwards; }
.p-40 { width: 40%; background: linear-gradient(90deg, #3b82f6, #9D4EDD) !important; }
.p-90 { width: 90%; background: linear-gradient(90deg, #10b981, #3b82f6) !important; }

/* Visual Node Graph */
.ch-visual-node-graph {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}
.v-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(0,0,0,0.15);
}
.ring-1 { width: 140px; height: 140px; animation: rotateCW 20s linear infinite; }
.ring-2 { width: 220px; height: 220px; animation: rotateCCW 30s linear infinite; }

.v-node {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.center-node {
    width: 60px; height: 60px;
    z-index: 5;
    background: linear-gradient(135deg, #111, #9D4EDD);
    color: #fff;
    animation: chPulseAnim 2s infinite;
}
.center-node .material-icons { font-size: 28px; color: #fff; }

.orbit-node {
    width: 40px; height: 40px;
    color: #111;
    z-index: 4;
}
.orbit-node .material-icons { font-size: 20px; }
.n1 { top: -20px; left: 50%; transform: translateX(-50%); color: #9D4EDD; }
.n2 { bottom: 20px; right: -15px; color: #3b82f6; }
.n3 { bottom: 20px; left: -15px; color: #10b981; }

@keyframes rotateCW {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes rotateCCW {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}
@keyframes pLoad {
    0% { width: 0; }
}

/* Floating AI Engine Panel */
.ch-float-panel.p-ai {
    width: 180px; height: 70px;
    top: 15%; left: -10%;
    transform: translateZ(60px) rotateY(10deg) rotateX(5deg);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}
.ch-ai-indicator {
    position: relative;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 50%;
    z-index: 2;
}
.ai-pulse-disc {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: #9D4EDD;
    opacity: 0.2;
    animation: radarPulse 2s infinite;
}
.ch-ai-indicator .material-icons { font-size: 22px; color: #9D4EDD; }
.ch-ai-details {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
}
.ai-title { font-size: 0.85rem; font-weight: 600; color: #111; }
.ai-status { font-size: 0.7rem; color: #10b981; font-weight: 500; display: flex; align-items: center; gap:4px; }
.ai-status::before { content:''; width:6px; height:6px; background:#10b981; border-radius:50%; display:inline-block; }

/* Floating Code Panel */
.ch-float-panel.p-code {
    width: 280px;
    bottom: -5%; right: -5%;
    transform: translateZ(80px) rotateY(-15deg) rotateX(-10deg);
    padding: 20px;
    z-index: 11;
}
.ch-code-content {
    position: relative; z-index: 2;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #475569;
}
.code-line.keyword { color: #9D4EDD; font-weight: 600; }
.code-line.variable { color: #2563eb; }
.code-line.variable-2 { color: #059669; }
.code-line.function { color: #d97706; }
.code-line.property { color: #111; }
.code-line.boolean { color: #e11d48; }
.code-line.string { color: #16a34a; }

/* Floating Metric Panel */
.ch-float-panel.p-metric {
    width: 140px; height: 100px;
    top: -5%; right: 10%;
    transform: translateZ(40px) rotateY(-10deg) rotateX(15deg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    z-index: 9;
}
.ch-metric-content { position: relative; z-index: 2; }
.metric-val { font-size: 2rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; line-height: 1; margin-bottom: 5px; }
.metric-label { font-size: 0.75rem; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: 1px; }

@keyframes radarPulse {
    0% { transform: scale(0.5); opacity: 1; border-width: 6px; }
    100% { transform: scale(3); opacity: 0; border-width: 1px; }
}

.gradient-icon {
    font-size: 44px !important;
    background: linear-gradient(135deg, #111, #9D4EDD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Capabilities Row (Replacing Marquee) --- */
.capabilities-row {
    background: #050505;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.cap-bg-glow {
    position: absolute;
    top: -50px; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 100px;
    background: radial-gradient(ellipse, rgba(157, 78, 221, 0.15), transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.cap-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.cap-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    padding: 1rem;
    transition: transform 0.4s ease;
    cursor: default;
}

.cap-item:hover {
    transform: translateY(-8px);
}

.cap-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #9D4EDD;
    letter-spacing: 2px;
}

.cap-name {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cap-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.cap-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
}

/* --- Inquiry Section --- */
.inquiry-section {
    padding: 120px 5%;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.inquiry-container {
    max-width: 1400px;
    margin: 0 auto;
}

.inquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.inquiry-info-side {
    position: sticky;
    top: 120px;
}

.inquiry-heading {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: #111;
    margin-bottom: 1.5rem;
}

.inquiry-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 3rem;
    max-width: 500px;
}

.inquiry-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #FAFAFA;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: rgba(157, 78, 221, 0.2);
}

.detail-icon-wrap {
    width: 60px;
    height: 30px;
    background: #111;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.detail-icon-wrap .material-icons {
    font-size: 20px;
    /* color: #9D4EDD; */
}

.detail-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.5rem;
}

.detail-content p, .detail-content a {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-content a:hover {
    color: #9D4EDD;
}

/* --- Google Form Side --- */
.inquiry-form-side {
    position: relative;
    width: 100%;
}

.form-wrapper-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.05);
    padding: 1rem;
}

.map-wrapper-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    padding: 1rem;
    margin-top: 2rem;
}

.form-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(157,78,221,0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Custom Form Styling */
.custom-form-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-top: 1rem;
    padding: 0 2rem;
}

.custom-contact-form {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: transparent;
}

.form-group-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    flex-grow: 1;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #111;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Hide placeholder completely so only the modern floating label is visible */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent; 
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9D4EDD;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.1);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.form-group textarea ~ label {
    top: 1.5rem;
}

/* Floating Label Animation */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    left: 0.8rem;
    background: #fff;
    padding: 0 6px;
    border-radius: 4px;
    color: #9D4EDD;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #111;
    color: #fff;
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #9D4EDD;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .inquiry-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .inquiry-info-side {
        position: relative;
        top: 0;
    }
    .contact-hero-container {
        grid-template-columns: 1fr;
        padding-top: 4rem;
        gap: 2rem;
    }
    .ch-content-side { text-align: center; align-items: center; }
    .ch-subtitle { max-width: 100%; }
    .ch-main-panel { width: 360px; height: 400px; }
    .ch-float-panel.p-ai { left: 0%; top: 5%; }
    .ch-float-panel.p-code { right: 0%; bottom: -10%; }
    
    .cap-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    .cap-divider { display: none; }
    .cap-item { width: 45%; align-items: center; text-align: center; }
}

@media (max-width: 768px) {
    .contact-hero { padding: 150px 5% 100px; }
    .ch-title { font-size: 2.5rem; }
    .ch-visual-side { height: 450px; }
    .ch-main-panel { width: 280px; height: 340px; }
    .ch-float-panel.p-ai { width: 140px; height: 60px; padding: 8px 12px; }
    .ch-float-panel.p-code { display: none; }
    .ch-float-panel.p-metric { top: 5%; right: 0; }
    .gradient-icon { font-size: 34px !important; }
    
    .inquiry-section { padding: 80px 5%; }
    .inquiry-heading { font-size: 2.5rem; }

    .cap-item { width: 100%; }

    /* Custom Form Responsive */
    .form-group-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .custom-contact-form { padding: 1rem; }
    .custom-form-title { padding: 0 1rem; }

    /* Small Mobile Optimizations */
    @media (max-width: 480px) {
        .contact-hero { padding: 120px 5% 60px; }
        .ch-title { font-size: 1.8rem; letter-spacing: -0.5px; }
        .ch-subtitle { font-size: 1rem; }
        .ch-badge { font-size: 0.7rem; padding: 8px 15px; }
        .ch-btn-primary { padding: 0.8rem 2rem; width: 100%; text-align: center; }
        .ch-actions { width: 100%; flex-direction: column; gap: 1rem; }
        .ch-visual-side { height: 350px; }
        .ch-main-panel { width: 240px; height: 300px; }
    }
}
