/* ============================================================
   DIGIスタート — style.css
   Folder structure:
     DIGIstart/
     ├── index.html
     ├── style.css
     ├── script.js
     └── photos/
         ├── adit.jpg
         ├── pradip.jpg
         ├── rajan.jpg
         └── nabin.jpg
   ============================================================ */

:root {
  --bg: #080e18;
  --surface: #0f1824;
  --card: #131f2e;
  --accent: #00c8e0;
  --accent2: #7b5ea7;
  --accent3: #ff6b35;
  --accent4: #00c97a;
  --text: #e2eaf6;
  --muted: #6b7f96;
  --border: rgba(0,200,224,0.12);
  --border2: rgba(255,255,255,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── GRID BACKGROUND ── */
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0,200,224,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,224,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,14,24,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900; font-size: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; cursor: pointer;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-btn {
  background: none; border: none; color: var(--muted);
  font-family: 'Noto Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 4px; cursor: pointer;
  transition: color 0.2s, background 0.2s; letter-spacing: 0.5px;
}
.nav-btn:hover, .nav-btn.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-btn.active { color: var(--accent); }

.lang-switcher {
  display: flex; gap: 4px; margin-left: 16px;
  border-left: 1px solid var(--border); padding-left: 16px;
}
.lang-btn {
  background: none; border: 1px solid var(--border2);
  color: var(--muted); font-size: 11px; font-weight: 600;
  padding: 5px 10px; border-radius: 3px; cursor: pointer;
  transition: all 0.2s; font-family: 'Space Mono', monospace;
}
.lang-btn:hover { color: var(--text); border-color: var(--accent); }
.lang-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(0,200,224,0.08); }

.hamburger {
  display: none; background: none; border: none;
  color: var(--text); font-size: 22px; cursor: pointer;
}

@media (max-width: 700px) {
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 16px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .lang-switcher { border-left: none; padding-left: 0; margin-left: 0; margin-top: 8px; }
  .hamburger { display: block; }
}

/* ── PAGES ── */
.page { display: none; padding-top: 64px; min-height: 100vh; }
.page.active { display: block; }
.page-content { position: relative; z-index: 1; }

/* ── HOME — HERO ── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,200,224,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,200,224,0.08); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 20px; font-size: 11px;
  letter-spacing: 3px; color: var(--accent); text-transform: uppercase;
  margin-bottom: 32px; font-family: 'Space Mono', monospace;
}
.hero-tag span:first-child {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; animation: pulse 1.5s infinite;
}
.hero-title {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 900;
  font-size: clamp(52px, 10vw, 96px); line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 60%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 16px;
}
.hero-sub {
  font-family: 'Space Mono', monospace; font-size: 13px;
  color: var(--muted); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 28px;
}
.hero-desc {
  font-size: 17px; color: #8fa0b5; max-width: 560px;
  line-height: 1.8; margin-bottom: 44px; font-weight: 300;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.btn-primary {
  background: var(--accent); color: #080e18;
  border: none; padding: 14px 36px; border-radius: 4px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all 0.2s; letter-spacing: 1px; text-transform: uppercase;
}
.btn-primary:hover { background: #00e0f8; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,200,224,0.3); }

.btn-outline {
  background: none; color: var(--text); border: 1px solid var(--border2);
  padding: 14px 36px; border-radius: 4px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; letter-spacing: 1px; text-transform: uppercase;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Stats row */
.stats-row {
  display: flex; gap: 0; margin-top: 80px;
  border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; background: var(--card); flex-wrap: wrap;
}
.stat {
  flex: 1; min-width: 140px; padding: 28px 32px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Space Mono', monospace; font-size: 28px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

/* ── SECTION SHARED ── */
.section { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: 'Space Mono', monospace; font-size: 11px; color: var(--accent);
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 900;
  font-size: clamp(28px, 5vw, 44px); margin-bottom: 16px; line-height: 1.2;
}
.section-desc {
  font-size: 16px; color: var(--muted); max-width: 520px;
  line-height: 1.8; margin-bottom: 48px; font-weight: 300;
}

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.service-card {
  background: var(--card); border: 1px solid var(--border2); border-radius: 6px;
  padding: 32px 28px; transition: all 0.3s;
}
.service-card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.service-icon { font-size: 28px; margin-bottom: 16px; }
.service-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.service-desc { font-size: 14px; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* ── PAGE HERO ── */
.page-hero { padding: 72px 24px 48px; text-align: center; max-width: 700px; margin: 0 auto; }

/* ── TEAM ── */
.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 1100px; margin: 0 auto; padding: 0 24px 80px;
}
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }

.member-card {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 8px; overflow: hidden; transition: all 0.3s;
}
.member-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); border-color: var(--border); }
.member-top { height: 4px; background: var(--mc, var(--accent)); }
.member-card:nth-child(1) { --mc: #00c8e0; }
.member-card:nth-child(2) { --mc: #7b5ea7; }
.member-card:nth-child(3) { --mc: #ff6b35; }
.member-card:nth-child(4) { --mc: #00c97a; }
.member-body { padding: 32px; }

.member-photo-wrap {
  width: 88px; height: 88px; border-radius: 50%;
  border: 3px solid var(--mc, var(--accent));
  overflow: hidden; margin-bottom: 20px;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
}
.member-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 28px; background: rgba(255,255,255,0.03);
}

.member-num { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--mc, var(--accent)); letter-spacing: 3px; margin-bottom: 8px; opacity: 0.7; }
.member-role {
  display: inline-block; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--mc, var(--accent)); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 3px; margin-bottom: 12px; font-family: 'Space Mono', monospace;
}
.member-name { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.member-title { font-size: 13px; color: var(--mc, var(--accent)); margin-bottom: 14px; font-family: 'Space Mono', monospace; letter-spacing: 1px; }
.member-desc { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; font-weight: 300; }
.skills-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-size: 11px; padding: 4px 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px; color: #8899aa; letter-spacing: 0.5px;
}

/* ── PORTFOLIO ── */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
  max-width: 1100px; margin: 0 auto; padding: 0 24px 80px;
}
.portfolio-card {
  background: var(--card); border: 1px solid var(--border2); border-radius: 8px;
  overflow: hidden; transition: all 0.3s; cursor: pointer;
}
.portfolio-card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.portfolio-thumb {
  height: 180px; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; border-bottom: 1px solid var(--border2);
  position: relative; overflow: hidden;
}
.portfolio-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,200,224,0.06), rgba(123,94,167,0.06));
}
.portfolio-info { padding: 24px; }
.portfolio-tag { font-size: 10px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; font-family: 'Space Mono', monospace; margin-bottom: 10px; }
.portfolio-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.portfolio-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
  max-width: 1100px; margin: 0 auto; padding: 0 24px 80px;
}
.testi-card {
  background: var(--card); border: 1px solid var(--border2); border-radius: 8px;
  padding: 32px; transition: all 0.3s;
}
.testi-card:hover { border-color: var(--border); transform: translateY(-3px); }
.testi-stars { color: #f5a623; font-size: 14px; margin-bottom: 16px; letter-spacing: 2px; }
.testi-quote { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 24px; font-style: italic; opacity: 0.9; font-weight: 300; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  border: 2px solid var(--border);
}
.testi-name { font-size: 14px; font-weight: 700; color: #fff; }
.testi-co { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; padding: 0 24px 80px; }
.faq-item { border-bottom: 1px solid var(--border2); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  text-align: left; padding: 22px 0; font-size: 16px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; transition: color 0.2s;
}
.faq-q:hover, .faq-q.open { color: var(--accent); }
.faq-icon { font-size: 18px; color: var(--accent); transition: transform 0.3s; flex-shrink: 0; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  font-size: 14px; color: var(--muted); line-height: 1.8;
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
  font-weight: 300;
}
.faq-a.open { max-height: 300px; padding-bottom: 22px; }

/* ── FOOTER ── */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 48px 24px; text-align: center;
}
.footer-logo {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 26px;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 20px;
}
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color 0.2s; font-family: 'Space Mono', monospace; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--muted); opacity: 0.6; font-family: 'Space Mono', monospace; }

/* ── ANIMATIONS ── */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeUp 0.6s ease both; }

/* ── ADMIN PANEL STYLES ── */
.admin-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(4, 8, 15, 0.8); display: none;
  justify-content: center; align-items: center; padding: 16px;
}
.admin-overlay.active { display: flex; }
.admin-modal {
  width: min(460px, calc(100% - 32px)); background: #0f1824;
  border: 1px solid rgba(0,200,224,0.25); border-radius: 10px;
  padding: 24px; box-shadow: 0 16px 44px rgba(0,0,0,0.7);
}
.admin-modal h2 { margin-bottom: 10px; font-size: 22px; }
.admin-modal p { color: #9bb0cc; margin-bottom: 18px; font-size: 14px; }
.admin-modal label { color: #a8c0d8; font-size: 12px; display: block; margin-top: 10px; }
.admin-modal input {
  width: 100%; border: 1px solid rgba(255,255,255,0.12); background: #131f2e;
  color: #edf3ff; border-radius: 6px; padding: 10px 12px; margin-top: 6px;
}
.admin-modal button {
  margin-top: 16px; width: 100%; border: none; border-radius: 6px;
  background: #00c8e0; color: #08101b; font-weight: 700; padding: 10px;
  cursor: pointer;
}
.admin-error { color: #ff7b79; margin-top: 8px; min-height: 18px; }

#page-admin { background: #070d18; }
.admin-section { margin: 20px auto 40px; max-width: 1000px; background: linear-gradient(160deg, rgba(19,31,46,0.95), rgba(14,22,35,0.92)); border: 1px solid rgba(0,200,224,0.24); border-radius: 12px; padding: 18px; box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.admin-section h3 { margin-bottom: 10px; color: #54e9ff; letter-spacing: 0.8px; }
.admin-list { min-height: 80px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; background: rgba(11,22,35,0.95); padding: 12px; max-height: 260px; overflow-y: auto; margin-bottom: 14px; }
.admin-list::-webkit-scrollbar { width: 8px; }
.admin-list::-webkit-scrollbar-thumb { background: rgba(0,200,224,0.4); border-radius: 8px; }
.admin-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }

/* Enhancing admin login page look */
#loginSection { background: rgba(5,12,20,0.92); border: 1px solid rgba(0,200,224,0.25); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
#loginSection h2 { margin-bottom: 12px; font-size: 26px; color: #aaffff; }
#loginSection p { margin-bottom: 16px; color: #cce6ff; }
#loginSection input { border-color: rgba(0,200,224,0.25); }
#loginSection button { background: linear-gradient(90deg, #00d0ec, #2b7fff); color: #040b12; font-weight: 700; }
#loginSection button:hover { transform: translateY(-1px); }
#loginSection .admin-error { min-height: 18px; color: #ff8e8e; font-weight: 600; }

#adminNameLabel { font-family: 'Space Mono', monospace; font-weight: 700; color: #8fffed; }
.admin-item { font-size: 13px; color: #dce9ff; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.admin-item:last-child { border-bottom: none; }
#conversationText, #todoTask, #linkUrl { width: 100%; resize: vertical; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; background: #111b28; color: #fff; padding: 10px; font-size: 14px; margin-bottom: 10px; }
.todo-input-row { display: flex; gap: 10px; }
.todo-input-row input { flex: 1; }
.todo-input-row button, .admin-section button { padding: 10px 12px; border: none; border-radius: 6px; background: #00c8e0; color: #07141f; cursor: pointer; font-weight: 700; }
.todo-input-row button:hover, .admin-section button:hover { filter: brightness(1.05); }
