/* Tech Theme - Neon/Cyber Aesthetics */
* { box-sizing: border-box; }

:root {
    --bg-0: #060913;
    --bg-1: #0b1220;
    --bg-2: #0e1b2e;
    --text-0: #e8eefc;
    --text-1: #a9b7d9;
    --primary: #14b8ff;
    --primary-2: #2563eb;
    --accent: #00ffd1;
    --glass: rgba(255,255,255,0.05);
    --glass-2: rgba(255,255,255,0.08);
    --stroke: rgba(255,255,255,0.10);
    --shadow: 0 15px 45px rgba(20, 184, 255, 0.18);
}

/* Global */
html, body { height: 100%; }
body {
    margin: 0;
    font-family: "Segoe UI", Inter, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-0);
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
        radial-gradient(1000px 500px at 85% 120%, rgba(20, 184, 255, 0.15), transparent 60%),
        linear-gradient(180deg, var(--bg-0), var(--bg-1));
    overflow-x: hidden;
}

/* Preloader tech style */
.preloader-wrap { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; }
.preloader-wrap { background:
        radial-gradient(1200px 600px at 15% -10%, rgba(37, 99, 235, 0.28), transparent 60%),
        radial-gradient(1000px 500px at 85% 120%, rgba(20, 184, 255, 0.22), transparent 60%),
        linear-gradient(180deg, var(--bg-0), var(--bg-1)); }
.preloader-wrap::before { content:""; position: absolute; inset: 0; pointer-events: none; opacity: .75;
    background-image: linear-gradient(transparent 95%, rgba(20,184,255,0.08) 96%), linear-gradient(90deg, transparent 95%, rgba(20,184,255,0.08) 96%);
    background-size: 42px 42px, 42px 42px; mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.6), rgba(0,0,0,1)); }
.preloader-title { font-size: clamp(20px, 3.6vw, 28px); color: #e6f2ff; font-weight: 900; text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 18px 48px rgba(20,184,255,.20); }
.preloader-sub { color: var(--text-1); font-size: 14px; }

/* Simple top bar + hero (light theme) */
.topbar { position: sticky; top: 0; z-index: 1200; background: var(--glass); border-bottom: 1px solid var(--stroke); backdrop-filter: blur(10px); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.topbar-brand { font-weight: 800; font-size: 18px; color: var(--text-0); letter-spacing: .2px; }
.topbar-links a { color: var(--text-0); text-decoration: none; margin-left: 22px; opacity: .85; transition: color .2s ease, opacity .2s ease, text-shadow .2s ease; }
.topbar-links a:hover { opacity: 1; color: #7dd3fc; text-shadow: 0 0 10px rgba(125,211,252,.5); }

.simple-hero { position: relative; border-bottom: 1px solid var(--stroke); }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; display: block; mix-blend-mode: screen; opacity: .9; }
.simple-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(900px 480px at 15% 10%, rgba(37,99,235,.20), transparent 60%),
        radial-gradient(800px 420px at 85% 120%, rgba(20,184,255,.18), transparent 60%),
        linear-gradient(180deg, var(--bg-0), var(--bg-1));
}
.simple-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
    background-image:
        linear-gradient(transparent 95%, rgba(20,184,255,0.08) 96%),
        linear-gradient(90deg, transparent 95%, rgba(20,184,255,0.08) 96%);
    background-size: 42px 42px, 42px 42px;
    mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.6), rgba(0,0,0,1));
}
.simple-hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: clamp(70px, 13vw, 160px) 24px; text-align: center; }
.hero-title-alt { font-size: clamp(32px, 6.5vw, 68px); color: #e6f2ff; margin: 0 0 18px; font-weight: 900; text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 18px 48px rgba(20,184,255,.20); }
.hero-title-alt .accent { color: var(--primary); text-shadow: 0 0 16px rgba(20,184,255,.55); }
.hero-subtitle-alt { font-size: 18px; color: var(--text-1); margin: 0 0 30px; }
.hero-cta-alt { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-primary-alt { background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: #fff; padding: 12px 22px; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 28px rgba(20,184,255,.26); border: 1px solid rgba(255,255,255,.12); }
.btn-primary-alt:hover { filter: brightness(1.06); box-shadow: 0 18px 40px rgba(20,184,255,.36); }
.btn-outline-alt { border: 1px solid rgba(125,211,252,.55); color: #7dd3fc; padding: 12px 22px; border-radius: 999px; text-decoration: none; background: rgba(125,211,252,.06); box-shadow: 0 8px 20px rgba(125,211,252,.18); }
.btn-outline-alt:hover { background: rgba(125,211,252,.12); }

/* Neon breathing + sweep for primary button */
.btn-primary-alt { position: relative; overflow: hidden; }
.btn-primary-alt::after {
    content: ""; position: absolute; top: 0; left: -150%; height: 100%; width: 120%;
    background: linear-gradient(75deg, transparent 40%, rgba(255,255,255,.65) 50%, transparent 60%);
    transform: skewX(-20deg);
}
.btn-primary-alt:hover::after { animation: sweep 1.1s ease; }
.btn-primary-alt { animation: neon-breathe 3.2s ease-in-out infinite; }

@keyframes sweep { to { left: 160%; } }
@keyframes neon-breathe {
    0%, 100% { box-shadow: 0 12px 28px rgba(20,184,255,.26), 0 0 0 rgba(20,184,255,0); }
    50% { box-shadow: 0 16px 40px rgba(20,184,255,.42), 0 0 16px rgba(20,184,255,.35); }
}

/* Click ripple */
.ripple-container { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); transform: scale(0); opacity: .85; pointer-events: none; }
.ripple.show { animation: ripple .6s ease; }
@keyframes ripple { to { transform: scale(9); opacity: 0; } }

/* Typewriter for subtitle */
.typewriter { overflow: hidden; white-space: nowrap; border-right: 2px solid rgba(125,211,252,.8); animation: typing 2.8s steps(30, end), caret 1s step-end infinite; }
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes caret { 50% { border-color: transparent; } }

/* From Uiverse.io by iZOXVL */
.boton-elegante {
  padding: 15px 30px;
  border: 2px solid #2c2c2c;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.4s ease;
  outline: none;
  position: relative;
  overflow: hidden;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

/* Neon glass button (tech style) */
.neo-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    color: #e8eefc;
    text-decoration: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--stroke);
    box-shadow: 0 12px 28px rgba(20,184,255,0.18);
    backdrop-filter: blur(10px);
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.neo-button:hover { transform: translateY(-3px); border-color: rgba(20,184,255,0.45); box-shadow: 0 18px 44px rgba(20,184,255,0.28); }
.neo-button::before {
    content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;
    background: conic-gradient(from 0deg, rgba(20,184,255,.6), rgba(37,99,235,.6), rgba(20,184,255,.6));
    filter: blur(12px);
    opacity: .25;
}
.neo-button .icon { width: 18px; height: 18px; display: inline-grid; place-items: center; color: #7dd3fc; text-shadow: 0 0 10px rgba(125,211,252,.5); }

.boton-elegante::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: scale(0);
  transition: transform 0.5s ease;
}

.boton-elegante:hover::after { transform: scale(4); }

.boton-elegante:hover {
  border-color: #666666;
  background: #292929;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Animated grid overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(transparent 95%, rgba(20,184,255,0.08) 96%),
        linear-gradient(90deg, transparent 95%, rgba(20,184,255,0.08) 96%);
    background-size: 40px 40px, 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.6), rgba(0,0,0,1));
}

.container { max-width: 1200px; margin: 0 auto; padding: 24px; }

/* Header */
.header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text-0); font-weight: 800; letter-spacing: 0.2px; }
.logo i { color: var(--primary); text-shadow: 0 0 16px rgba(20,184,255,0.6); }

/* Search */
.search-container {
    display: flex; align-items: center;
    background: transparent; border: none; padding: 0;
}
.search-input { display:none; }
.search-btn { display:none; }

/* Uiverse style select wrapper */
.search-uiverse {
    position: relative; width: 260px; border-radius: 12px; overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--stroke);
}
.search-decor {
    position: absolute; right: 0; top: 2px; width: 32px; height: 32px; transform: rotate(-45deg);
    stroke: #f9a8d4; fill: none;
}
.search-input-uiverse {
    width: 100%;
    background: transparent; color: #f472b6;
    border: none; outline: none;
    padding: 10px 12px; font-weight: 800; font-size: 14px;
}
.search-input-uiverse::placeholder { color: #a855f7; opacity: .85; }

/* Hero */
.hero { position: relative; width: 100%; min-height: 86vh; display: grid; place-items: center; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 1; width: min(1200px, 92%); margin-inline: auto; }
.hero-nav {
    height: 56px; border-radius: 999px; padding: 0 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--stroke);
    display: flex; align-items: center; justify-content: space-between; backdrop-filter: blur(10px);
}
.hero-brand { display: flex; align-items: center; gap: 10px; color: var(--text-0); font-weight: 700; }
.brand-mark { filter: drop-shadow(0 2px 12px rgba(20,184,255,.6)); }
.brand-text { opacity: .95; }
.hero-links { display: flex; gap: 16px; }
.hero-link { color: var(--text-0); opacity: .85; text-decoration: none; }
.hero-link:hover { opacity: 1; }

.hero-announcement { margin-top: 18px; margin-bottom: 8px; display: none; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--stroke); border-radius: 16px; padding: 10px 12px; color: var(--text-0); }
.hero-announcement-content { display: flex; align-items: center; gap: 10px; }
.hero-announcement-badge { background: var(--primary-2); color:#fff; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.hero-announcement-text { opacity: .92; font-size: 14px; }
.hero-announcement-actions { display: flex; gap: 8px; }

.hero-center { text-align: center; margin-top: clamp(40px, 8vw, 96px); }
.hero-badge { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--stroke); color: var(--text-0); font-size: 14px; margin-bottom: 18px; }
.hero-title { font-size: clamp(28px, 6vw, 56px); font-weight: 800; line-height: 1.15; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 16px 48px rgba(20, 184, 255, .20); margin: 10px auto 28px; }
.hero-actions { display: inline-flex; gap: 14px; }
.hero-btn { height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--stroke); background: rgba(255,255,255,.06); color: var(--text-0); font-weight: 700; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.hero-btn.ghost:hover { background: rgba(255,255,255,.12); }

/* Uiverse animated button */
.animated-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.animated-button .text { font-weight: 800; letter-spacing: .3px; }
.animated-button .circle {
    position: absolute;
    inset: 0;
    background: radial-gradient(200px 120px at var(--x,50%) var(--y,50%), rgba(255,255,255,0.18), transparent 60%);
    opacity: 0;
    transition: opacity .2s ease;
}
.animated-button:hover .circle { opacity: 1; }

.animated-button svg { width: 20px; height: 20px; fill: currentColor; }
.animated-button .arr-1 { transform: translateX(-6px); opacity: .0; transition: transform .25s ease, opacity .25s ease; }
.animated-button .arr-2 { transform: translateX(0); opacity: 1; transition: transform .25s ease, opacity .25s ease; }
.animated-button:hover .arr-1 { transform: translateX(0); opacity: 1; }
.animated-button:hover .arr-2 { transform: translateX(6px); opacity: .0; }

/* From Uiverse.io by SelfMadeSystem */
.button-container {
  position: relative;
  margin: 0 2em;
}

.button-border {
  padding: 3px;
  inset: 0;
  background: #0005;
  border-radius: inherit;
  clip-path: path(
    "M 90 0 C 121 0 126 5 126 33 C 126 61 121 66 90 66 L 33 66 C 5 66 0 61 0 33 C 0 5 5 0 33 0 Z"
  );
}

.button {
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 0.875em;
  clip-path: path(
    "M 90 0 C 115 0 120 5 120 30 C 120 55 115 60 90 60 L 30 60 C 5 60 0 55 0 30 C 0 5 5 0 30 0 Z"
  );
  width: 120px;
  height: 60px;
  background: #111215;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
}

.real-button {
  position: absolute;
  width: 120px;
  height: 60px;
  z-index: 1;
  outline: none;
  border: none;
  border-radius: 17px;
  cursor: pointer;
  opacity: 0;
}

.backdrop {
  position: absolute;
  inset: -9900%;
  background: radial-gradient(
    circle at 50% 50%,
    #0000 0,
    #0000 20%,
    #111111aa 50%
  );
  background-size: 3px 3px;
  z-index: -1;
}

.spin {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.5;
  overflow: hidden;
  transition: 0.3s;
}

.real-button:active ~ div .spin {
  opacity: 1;
}

.spin-blur {
  filter: blur(2em) url(#unopaq);
}

.spin-intense {
  inset: -0.125em;
  filter: blur(0.25em) url(#unopaq2);
  border-radius: 0.75em;
}

.spin-inside {
  inset: -2px;
  border-radius: inherit;
  filter: blur(2px) url(#unopaq3);
  z-index: 0;
}

.spin::before {
  content: "";
  position: absolute;
  inset: -150%;
  animation:
    speen 8s cubic-bezier(0.56, 0.15, 0.28, 0.86) infinite,
    woah 4s infinite;
  animation-play-state: paused;
}

.real-button:hover ~ div .spin::before {
  animation-play-state: running;
}

.spin-blur::before {
  background: linear-gradient(90deg, #f50 30%, #0000 50%, #05f 70%);
}

.spin-intense::before {
  background: linear-gradient(90deg, #f95 20%, #0000 45% 55%, #59f 80%);
}

.spin-inside::before {
  background: linear-gradient(90deg, #fc9 30%, #0000 45% 55%, #9cf 70%);
}

@keyframes speen {
  0% {
    rotate: 10deg;
  }
  50% {
    rotate: 190deg;
  }
  to {
    rotate: 370deg;
  }
}

@keyframes woah {
  0%. to {
    scale: 1;
  }
  50% {
    scale: 0.75;
  }
}

#mainContainer { position: relative; z-index: 2; margin-top: 40px; }

/* Sections */
.main-content { display: flex; flex-direction: column; gap: 28px; }
.personal-intro, .quick-access, .category {
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    padding: 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.intro-content { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.intro-avatar { position: relative; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(20,184,255,0.35); box-shadow: 0 10px 30px rgba(20,184,255,0.25); }
.avatar-image { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(600px 400px at 50% 50%, rgba(20,184,255,0.18), transparent 60%), linear-gradient(135deg, #0ea5e9, #2563eb); color: #fff; font-size: 48px; }
.intro-text h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; background: linear-gradient(135deg, #7dd3fc, #38bdf8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.intro-subtitle { color: #7dd3fc; font-weight: 700; margin: 4px 0 10px; }
.intro-description { color: var(--text-1); }
.intro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.stat-item { text-align: center; background: rgba(255,255,255,0.03); border: 1px solid var(--stroke); border-radius: 12px; padding: 12px; }
.stat-number { font-size: 20px; font-weight: 800; color: #7dd3fc; }
.stat-label { color: var(--text-1); font-size: 12px; }

.quick-access h2, .category h3 { display: flex; align-items: center; gap: 10px; color: var(--text-0); margin: 0 0 16px; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.quick-link { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #0ea5e9, #2563eb); padding: 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.12); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .2s ease; }
.quick-link:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,184,255,.30); }

.categories { display: flex; flex-direction: column; gap: 24px; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.link-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; text-decoration: none; color: var(--text-0); background: rgba(255,255,255,0.02); border: 1px solid var(--stroke); border-radius: 14px; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.link-item:hover { transform: translateY(-3px); border-color: rgba(20,184,255,0.45); box-shadow: 0 12px 28px rgba(20,184,255,0.18); }
.link-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #0ea5e9, #2563eb); color: #fff; box-shadow: var(--shadow); }
.link-name { font-weight: 800; }
.link-desc { font-size: 13px; color: var(--text-1); }

/* Floating Add button */
.add-site-btn { position: fixed; right: 26px; bottom: 26px; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2563eb, #14b8ff); color: #fff; box-shadow: 0 20px 40px rgba(20,184,255,.35); cursor: pointer; border: 1px solid rgba(255,255,255,0.14); z-index: 1000; }
.add-site-btn:hover { transform: translateY(-4px) scale(1.03); }

/* Modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); z-index: 2000; }
.modal-content { background: var(--bg-2); color: var(--text-0); border: 1px solid var(--stroke); border-radius: 16px; width: min(520px, 92%); margin: 6% auto; box-shadow: 0 30px 80px rgba(0,0,0,0.45); overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--stroke); }
.modal-header h3 { margin: 0; }
.close { cursor: pointer; color: var(--text-1); }
#addSiteForm { padding: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-0); font-weight: 700; }
.form-group input, .form-group select { width: 100%; padding: 12px 12px; background: rgba(255,255,255,0.03); color: var(--text-0); border: 1px solid var(--stroke); border-radius: 10px; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: rgba(20,184,255,0.55); box-shadow: 0 0 0 3px rgba(20,184,255,0.15); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-cancel { background: rgba(255,255,255,0.06); color: var(--text-0); border: 1px solid var(--stroke); border-radius: 10px; padding: 10px 16px; cursor: pointer; }
.btn-submit { background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: #fff; border: none; border-radius: 10px; padding: 10px 16px; box-shadow: var(--shadow); cursor: pointer; }

/* Responsive */
@media (max-width: 768px) {
    .search-input { min-width: 0; width: 52vw; }
    .intro-content { flex-direction: column; text-align: center; }
    .intro-stats { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; width: min(340px, 92%); margin-inline: auto; }
    .hero-btn { width: 100%; }
}
