/* ============================================================
   VAPT HUB — contact.css : TERMINAL BACKGROUND & UNIFIED UI
   ============================================================ */

/* ---- GLOBAL ACCENTS & ANIMATIONS ---- */
.glow-hover { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease; }
.glow-hover:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(255, 20, 40, 0.15); border-color: var(--red); z-index: 10; }

.float-item { animation: floatAnim 4s ease-in-out infinite; }
.float-item:nth-child(even) { animation-delay: 1s; }
@keyframes floatAnim { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.shine-text { background: linear-gradient(90deg, var(--red) 0%, #ff6b6b 50%, var(--red) 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shineAnim 3s linear infinite; }
@keyframes shineAnim { to { background-position: 200% center; } }

.pulse-btn { position: relative; overflow: hidden; }
.pulse-btn::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--red); opacity: 0; transform: scale(1); transition: all 0.6s ease-out; clip-path: inherit; }
.pulse-btn:hover::after { opacity: 1; transform: scale(1.15, 1.3); opacity: 0; border-color: transparent; }

.pulsing { animation: vhNodeBlink 1.5s infinite alternate; }
@keyframes vhNodeBlink { 0% { opacity: 0.3; filter: drop-shadow(0 0 2px var(--red));} 100% { opacity: 1; filter: drop-shadow(0 0 8px var(--red));} }

.hover-text-glow { transition: color 0.4s ease, text-shadow 0.4s ease; }
.hover-text-glow:hover { color: #fff; text-shadow: 0 0 12px rgba(255,20,40,0.6); }
.mt-20 { margin-top: 24px; }

/* ---- CYBER SHAPES (Chamfered Clip Paths) ---- */
.cyber-cut {
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    border-radius: 0 !important;
}
.cyber-cut-btn {
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    border-radius: 0 !important;
}

/* Base Utility */
svg { max-width: 100%; display: inline-block; }
.icon-sm { width: 14px; height: 14px; }
.hud-frame { position: relative; width: 100%; height: 100%; overflow: hidden; display: block; }
.img-shell { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }
.img-shell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: 0.5s ease; filter: contrast(1.1) brightness(0.9); }
.hud-frame:hover .img-shell img { opacity: 1; transform: scale(1.05); }

/* Global Background Patterns */
.pattern-dots { position: relative; }
.pattern-dots::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 20px 20px; z-index: -1; pointer-events: none;}
.pattern-grid { position: relative; }
.pattern-grid::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,20,40,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,20,40,0.02) 1px, transparent 1px); background-size: 40px 40px; z-index: -1; pointer-events: none;}
.dotbg{position:relative}
.dotbg::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.6; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E")}


/* ============================================================
   HERO SECTION (Terminal Window with Inner Image)
   ============================================================ */
.ct-hero { position: relative; display: flex; align-items: center; justify-content: center; padding: calc(var(--hdr-h) + 60px) 0 80px; min-height: 80vh; }
.hero-container { position: relative; z-index: 3; display: flex; justify-content: center; width: 100%; }

/* Cyber Terminal Box */
.cyber-terminal-window {
    position: relative;
    width: 100%; max-width: 900px;
    background: #090a0d; /* Solid fallback */
    border: 1px solid var(--red55);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 30px rgba(255,20,40,0.15);
    clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
    overflow: hidden; /* Keeps background image bound inside the shape */
}

/* Background Image INSIDE the terminal only */
.terminal-bg-image { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.terminal-bg-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; filter: grayscale(50%) contrast(1.2); }
.terminal-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,16,0.95) 0%, rgba(9,10,13,0.85) 100%); z-index: 1; }
.active-scanline { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(to bottom, transparent, rgba(255,20,40,0.8), transparent); box-shadow: 0 0 15px rgba(255,20,40,0.9); animation: imageScan 3s linear infinite; z-index: 5; pointer-events: none; }
@keyframes imageScan { 0% { transform: translateY(-10px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(110%); opacity: 0; } }

/* Terminal Header */
.term-header { position: relative; z-index: 2; background: rgba(255,20,40,0.15); border-bottom: 1px solid var(--red30); padding: 12px 24px; display: flex; align-items: center; gap: 20px; backdrop-filter: blur(5px); }
.term-dots { display: flex; gap: 8px; flex: none; }
.term-dots span { width: 12px; height: 12px; background: rgba(255,255,255,0.2); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.term-dots span:nth-child(1) { background: var(--red); box-shadow: 0 0 8px var(--red); }
.term-title { font-family: var(--f-tech); font-size: 11px; letter-spacing: 0.15em; color: #fff; flex: 1; text-align: center; }
.term-status { font-family: var(--f-tech); font-size: 10px; letter-spacing: 0.1em; color: var(--red); display: flex; align-items: center; gap: 6px; }

/* Terminal Body */
.term-body { position: relative; z-index: 2; padding: 50px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.breadcrumb { justify-content: center; margin-bottom: 16px;}
.ct-title { font-size: clamp(2.4rem, 4vw, 4rem); font-weight: 700; text-transform: uppercase; line-height: 1.1; margin: 16px 0 20px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.ct-title .line { display: block; }
.ct-title .t-red { color: var(--red); }
.ct-sub { max-width: 650px; font-size: clamp(1rem, 1.2vw, 1.1rem); color: #fff; line-height: 1.6; margin-bottom: 40px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* Quick Action Buttons (Cyber Angled) */
.quick-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; width: 100%; }
.action-btn { display: flex; align-items: center; gap: 16px; padding: 14px 24px; background: rgba(0,0,0,0.7); border: 1px solid var(--line); text-decoration: none; transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); flex: 1; min-width: 220px; text-align: left; }
.act-icon { width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); transition: 0.3s; color: #fff;}
.act-icon svg { width: 18px; height: 18px; }
.act-text { display: flex; flex-direction: column; font-family: var(--f-tech); font-size: 13px; font-weight: 700; color: #fff; letter-spacing: 0.05em; transition: 0.3s; }
.act-text small { font-family: var(--f-sec); font-size: 10.5px; color: var(--tx3); font-weight: 400; letter-spacing: 0.02em; margin-top: 4px; transition: 0.3s; }

.action-btn:hover { transform: translateY(-4px); }
.wa-btn:hover { border-color: #25D366; background: rgba(37, 211, 102, 0.1); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2); }
.wa-btn .act-icon { color: #25D366; }
.wa-btn:hover .act-icon { background: #25D366; color: #fff; box-shadow: 0 0 15px #25D366; }
.call-btn:hover { border-color: #3b82f6; background: rgba(59, 130, 246, 0.1); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2); }
.call-btn .act-icon { color: #3b82f6; }
.call-btn:hover .act-icon { background: #3b82f6; color: #fff; box-shadow: 0 0 15px #3b82f6; }
.mail-btn:hover { border-color: var(--red); background: rgba(255, 20, 40, 0.1); box-shadow: 0 10px 20px rgba(255, 20, 40, 0.2); }
.mail-btn .act-icon { color: var(--red); }
.mail-btn:hover .act-icon { background: var(--red); color: #fff; box-shadow: 0 0 15px var(--red); }


/* ============================================================
   OFFICE LOCATION & MAP
   ============================================================ */
.cd-sec { padding: 80px 0; }
.cd-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: stretch; max-width: 1280px; margin: 0 auto; }

/* Map Container */
.cd-map-wrap { position: relative; height: 100%; min-height: 400px; padding: 15px; border: 1px dashed rgba(255,255,255,0.1); }
.cyber-bracket { position: absolute; width: 30px; height: 30px; }
.cyber-bracket.tl { top: -2px; left: -2px; }
.cyber-bracket.tr { top: -2px; right: -2px; }
.cyber-bracket.bl { bottom: -2px; left: -2px; }
.cyber-bracket.br { bottom: -2px; right: -2px; }

.cd-map { position: relative; overflow: hidden; width: 100%; height: 100%; border: 1px solid var(--red55); background: #0b0c10; box-shadow: 0 0 30px rgba(255,20,40,0.1); }
.map-shell { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }
.map-shell iframe { width: 100%; height: 100%; border: none; filter: invert(90%) hue-rotate(180deg) brightness(1.1) contrast(1.1); pointer-events: auto; }

.map-tag { position: absolute; top: 16px; right: 16px; z-index: 7; display: flex; gap: 8px; align-items: center; font-family: var(--f-tech); font-size: 10px; letter-spacing: .15em; color: #fff; background: rgba(11,13,16,0.9); border: 1px solid var(--red); padding: 8px 14px; box-shadow: 0 0 10px rgba(255,20,40,0.2); pointer-events: none;}

/* Information Cards */
.cd-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: center; }
.info-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: rgba(16,17,20,0.85); border: 1px solid rgba(255,255,255,0.1); color: inherit; text-decoration: none; transition: 0.35s; overflow: hidden; }
.info-card:hover { border-color: var(--red55); background: rgba(255,20,40,0.05); transform: translateY(-4px); box-shadow: 0 15px 30px rgba(255,20,40,0.1); }

.info-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); color: var(--red); transition: 0.35s; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.info-icon svg { width: 20px; height: 20px; }
.info-card:hover .info-icon { background: var(--red); color: #fff; box-shadow: 0 0 15px var(--red); }

.info-text { display: flex; flex-direction: column; gap: 6px; flex: 1; position: relative; z-index: 2;}
.info-label { font-family: var(--f-tech); font-size: 10px; font-weight: 700; letter-spacing: .15em; color: var(--red); }
.info-value { font-size: 13.5px; color: #fff; line-height: 1.5; }


/* ============================================================
   SECURE CONTACT FORM
   ============================================================ */
.cf2-sec { padding: 80px 0; }
.cf2-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; max-width: 1280px; margin: 0 auto; }

/* Cyber Form Block - High Contrast Visibility */
.cyber-form { 
    position: relative; 
    padding: 44px; 
    background: rgba(11,13,16,0.95); /* Much darker for better contrast */
    border: 1px solid var(--red55); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 40px rgba(255,20,40,0.05); 
    display: flex; flex-direction: column; gap: 20px; 
    backdrop-filter: blur(20px); 
}
.cyber-form:hover { border-color: var(--red); box-shadow: 0 20px 60px rgba(255,20,40,0.15); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.form-full { grid-column: 1 / -1; }
.field-label { font-family: var(--f-tech); font-size: 11px; font-weight: 700; letter-spacing: 0.15em; color: #fff; display: flex; align-items: center; gap: 8px; }
.field-label svg { width: 14px; height: 14px; color: var(--red); flex: none; }

/* High Visibility Inputs */
.form-field input, .form-field select, .form-field textarea {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); color: #fff;
  padding: 16px 20px; font-family: var(--f-body); font-size: 15px; outline: none; transition: 0.3s; width: 100%;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--red); box-shadow: 0 0 20px rgba(255,20,40,0.3); background: rgba(255,20,40,0.1); }
.form-field select option { background: #171A21; color: #fff; }
.form-field textarea { resize: vertical; min-height: 140px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.form-status { font-family: var(--f-tech); font-size: 10px; letter-spacing: .1em; color: var(--tx3); }

/* Side Information Box */
.form-side-info { display: flex; flex-direction: column; justify-content: flex-start; gap: 24px; }
.info-box { padding: 36px 30px; background: rgba(16,17,20,0.9); border: 1px solid var(--red30); display: flex; flex-direction: column; gap: 20px; box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.box-title { display: flex; align-items: center; gap: 10px; font-family: var(--f-tech); font-size: 13px; font-weight: 700; letter-spacing: .15em; color: var(--red); border-bottom: 1px dashed rgba(255,255,255,0.15); padding-bottom: 16px; }
.box-title svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.info-box ul { display: flex; flex-direction: column; gap: 18px; }
.info-box li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; color: #E8E8E8; line-height: 1.6; }
.step-num { font-family: var(--f-tech); font-size: 12px; color: #fff; background: var(--red); padding: 4px 8px; flex: none; font-weight: 700; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); box-shadow: 0 0 10px rgba(255,20,40,0.5);}

/* Form Section Restored Image */
.cf2-img { aspect-ratio: 16/10; border: 1px solid var(--red30); background: rgba(255,20,40,0.03); width: 100%; max-width: 100%; box-shadow: 0 15px 30px rgba(0,0,0,0.4); }

/* ---- 3D TRACKING ANIMATION FIX ---- */
.3d-tilt { transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); transform-style: preserve-3d; }

/* ---- FAIL-SAFE REVEAL SYSTEM ---- */
.js-reveal-hidden { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js-reveal-hidden[data-reveal="left"] { transform: translateX(-40px); }
.js-reveal-hidden[data-reveal="right"] { transform: translateX(40px); }
.js-reveal-hidden[data-reveal="3d"] { transform: perspective(1000px) rotateX(15deg) translateY(30px); }
.js-reveal-visible { opacity: 1 !important; transform: translate(0, 0) !important; }

/* ---- RESPONSIVE OVERRIDES ---- */
@media(max-width: 1180px) {
  .cd-grid, .cf2-grid { grid-template-columns: 1fr; gap: 50px; }
  .cd-map-wrap { aspect-ratio: 16/9; min-height: 450px; }
  .cd-cards { grid-template-columns: repeat(2, 1fr); }
  .term-body { padding: 40px 20px; }
  .cf2-img { aspect-ratio: 21/9; } /* Make wider on tablets */
}
@media(max-width: 900px) {
  .quick-actions { flex-direction: column; align-items: center; }
  .action-btn { width: 100%; max-width: 400px; justify-content: center; }
}
@media(max-width: 760px) {
  .cd-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 16px;}
  .cyber-form { padding: 30px 20px; }
  .cd-map-wrap { aspect-ratio: auto; height: 350px;}
  .term-header { justify-content: center;}
  .term-status { display: none; }
  .cf2-img { aspect-ratio: 4/3; }
}
@media(max-width: 480px) {
  .form-footer .cyber-button { width: 100%; }
}