/* ============================================
   ALGOSTECH CONTACT — Cyan Fintech System
   Matches: index.html design language exactly
   ============================================ */

:root {
  --primary: #00ffcc;
  --primary-dim: rgba(0, 255, 204, 0.12);
  --primary-glow: rgba(0, 255, 204, 0.35);
  --accent: #00c2ff;
  --bg: #050914;
  --bg-2: #080e1f;
  --bg-card: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(0, 255, 204, 0.28);
  --text: #e8edf8;
  --text-muted: #6b7a99;
  --text-dim: #9aa5be;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
  --nav-h: 76px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 255, 204, 0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); }

/* NOISE */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* GRADIENT TEXT */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* SECTION TAG */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  color: var(--primary); background: var(--primary-dim);
  border: 1px solid var(--border-bright);
  padding: 5px 14px; border-radius: var(--radius-pill); margin-bottom: 1.2rem;
}

/* ======================== NAV ======================== */


.logo-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; z-index: 1000;
  transition: var(--transition); border-bottom: 1px solid transparent;
}


nav.scrolled {
  background: rgba(5, 9, 20, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 800;
}
.logo-mark { display: flex; align-items: center; filter: drop-shadow(0 0 8px var(--primary)); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link { padding: 8px 14px; border-radius: var(--radius-pill); font-size: 0.9rem; color: var(--text-dim); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-card); }
.nav-link.active { color: var(--primary); }

.nav-btn {
  background: var(--primary); color: #000; border: none;
  padding: 8px 20px; border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 700; transition: var(--transition); font-family: var(--font-body);
}
.nav-btn:hover { background: #fff; transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================== PAGE HERO ======================== */
.page-hero {
  position: relative; min-height: 42vh;
  display: flex; align-items: center; justify-content: center;
  padding-top: var(--nav-h); overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

.page-hero-inner { text-align: center; padding: 60px 20px; position: relative; z-index: 1; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 1rem;
}

.page-desc {
  color: var(--text-dim); font-size: 1.05rem; max-width: 520px; margin: 0 auto; line-height: 1.7;
}

/* ======================== CONTACT SECTION ======================== */
.contact-section { padding: 60px 0 100px; }

.contact-grid {
  display: grid; grid-template-columns: 380px 1fr; gap: 24px;
}

/* PANEL BASE */
.panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px;
  position: relative; overflow: hidden;
}
.panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.panel-heading {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  margin-bottom: 28px;
}

/* INFO ITEMS */
.info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }

.info-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--primary-dim); border: 1px solid var(--border-bright);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}

.info-label {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  color: var(--primary); text-transform: uppercase; margin-bottom: 4px;
}
.info-val { color: var(--text-dim); font-size: 0.88rem; line-height: 1.65; }

.panel-divider { height: 1px; background: var(--border); margin: 20px 0; }

/* SUPPORT BLOCK */
.support-block { display: flex; align-items: center; gap: 18px; margin-bottom: 4px; }

.support-ring {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border-bright);
  background: var(--primary-dim);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px var(--primary-glow);
  animation: supportPulse 3s ease-in-out infinite;
}

@keyframes supportPulse {
  0%,100% { box-shadow: 0 0 16px var(--primary-glow); }
  50% { box-shadow: 0 0 32px var(--primary-glow), 0 0 48px rgba(0,255,204,0.1); }
}

.support-core { text-align: center; }
.support-num {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
  color: var(--primary); line-height: 1;
}
.support-lbl {
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.2em;
  color: var(--primary); opacity: 0.7;
}

.support-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.support-hours { color: var(--text-muted); font-size: 0.82rem; font-family: var(--font-mono); }

/* WHATSAPP BTN */
.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #25D366; color: #fff;
  padding: 13px 20px; border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 600;
  transition: var(--transition); margin-bottom: 20px;
}
.wa-btn:hover { background: #1fb357; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(37,211,102,0.3); }

/* MAP */
.map-wrap { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 185px; border: none; display: block; }

/* ======================== FORM ======================== */
.form-panel { }

.form-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 30px; margin-top: -16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

label { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; color: var(--primary); text-transform: uppercase; }

input, select, textarea {
  width: 100%; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 13px 16px;
  font-size: 0.92rem; font-family: var(--font-body);
  outline: none; transition: var(--transition); -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  border-color: var(--border-bright);
  background: rgba(0,255,204,0.03);
  box-shadow: 0 0 0 3px rgba(0,255,204,0.07);
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300ffcc' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
select option { background: #0a0f20; }

textarea { height: 140px; resize: vertical; line-height: 1.6; }

.form-footer {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px;
}

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius-pill); font-size: 0.95rem; font-weight: 600; border: none; transition: var(--transition); white-space: nowrap; }
.btn.primary { background: var(--primary); color: #000; font-weight: 700; box-shadow: 0 0 24px rgba(0,255,204,0.25); }
.btn.primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 0 40px rgba(0,255,204,0.45); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.secure-note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }

.success-msg {
  display: none; margin-top: 20px;
  background: rgba(0,255,204,0.06); border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm); padding: 14px 18px;
  color: var(--primary); font-family: var(--font-mono); font-size: 0.82rem;
}

/* ======================== FLOATING WA ======================== */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  background: #25D366; color: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-size: 0.88rem; font-weight: 600;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
  transition: var(--transition);
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(37,211,102,0.5); }

/* ======================== FOOTER ======================== */
footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 48px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 10px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-copy { color: var(--text-muted); font-size: 0.78rem; font-family: var(--font-mono); }

/* ======================== REVEAL ======================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
  .info-panel { order: 2; }
  .form-panel { order: 1; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(5,9,20,0.97); backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch; padding: 20px;
    gap: 4px; border-bottom: 1px solid var(--border);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: var(--transition); z-index: 999;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-link { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav-btn { width: 100%; padding: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .panel { padding: 28px 22px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; border-radius: 50%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
}
