*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.15);
  --bg: #04080f;
  --card: rgba(14,26,48,0.6);
  --border: rgba(59,130,246,0.1);
  --text: #94a3b8;
  --muted: #334155;
  --white: #f1f5f9;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
}

/* ── PROJECTS WIDGET ── */
.projects-widget {
  position: fixed;
  top: 1.8rem;
  right: 2rem;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: right;
}

.widget-label {
  font-size: 0.55rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.2rem;
}

.widget-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.widget-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.widget-dot.active {
  background: var(--blue);
  box-shadow: 0 0 5px rgba(59,130,246,0.8);
  animation: blink 2s ease-in-out infinite;
}

.widget-dot.soon { background: var(--muted); }

.widget-name {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 400;
}

.widget-tag {
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.widget-tag.coming { color: rgba(59,130,246,0.45); }

.widget-link {
  font-size: 0.62rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.widget-link:hover { color: var(--blue); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  overflow: hidden;
  padding: 0 6rem;
}

.blur-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.orb1 {
  width: 600px; height: 600px;
  background: rgba(59,130,246,0.09);
  top: 50%; left: 70%;
  transform: translate(-50%, -50%);
  animation: breathe 7s ease-in-out infinite;
}

.orb2 {
  width: 250px; height: 250px;
  background: rgba(59,130,246,0.05);
  bottom: 15%; right: 5%;
  animation: breathe 9s ease-in-out infinite reverse;
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

.hero-left {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-left h1 {
  font-size: clamp(7rem, 16vw, 14rem);
  font-weight: 900;
  letter-spacing: -6px;
  line-height: 0.88;
}

.split-a {
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: splitLeft 1s cubic-bezier(0.16,1,0.3,1) both;
}

.split-b {
  display: inline-block;
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: splitRight 1s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}

@keyframes splitLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes splitRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes splitRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-bg-text {
  position: absolute;
  font-size: clamp(12rem, 30vw, 26rem);
  font-weight: 900;
  letter-spacing: -10px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(59,130,246,0.07);
  user-select: none;
  pointer-events: none;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  animation: bgDrift 12s ease-in-out infinite;
}

@keyframes bgDrift {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -52%) scale(1.03); }
}
.dot { color: var(--blue); -webkit-text-fill-color: var(--blue); }

.hero-right {
  flex: 1;
  position: relative;
  z-index: 1;
  padding-left: 4rem;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  animation: fadeUp 1.1s ease both;
}

.hero-role {
  font-size: 0.65rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--blue);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  font-weight: 300;
  max-width: 320px;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.hero-links a {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}

.hero-links a:hover { color: var(--blue); }

.hero-links span {
  color: var(--muted);
  font-size: 0.6rem;
  opacity: 0.4;
}

/* ── SECTIONS ── */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 7rem 2rem;
}

.label {
  font-size: 0.65rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 3rem;
}

/* ── ABOUT ── */
.about-wrap p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.9;
  max-width: 580px;
  font-weight: 300;
  margin-bottom: 1.2rem;
}

.about-wrap p:last-child {
  margin-bottom: 0;
  color: var(--blue);
  letter-spacing: 1px;
}

.about-wrap em {
  color: var(--white);
  font-style: normal;
}

.anim-line {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-line.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── SKILLS ── */
.skills-row {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s, filter 0.3s;
  cursor: default;
}

.skill-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.skill-anim.visible {
  opacity: 0.5;
  transform: translateY(0);
}

.skill svg { width: 38px; height: 38px; }

.skill span {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.skill:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.skill:hover svg {
  filter: drop-shadow(0 0 10px rgba(59,130,246,0.6)) drop-shadow(0 0 24px rgba(59,130,246,0.3));
}

.skill:hover span {
  color: var(--text);
}

/* ── TIMELINE ── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}

.tl-center-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(59,130,246,0.12) 8%, rgba(59,130,246,0.12) 92%, transparent);
  transform: translateX(-50%);
}

.tl-item {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  padding: 3.5rem 0;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.tl-item.tl-left  { transform: translateX(-24px); }
.tl-item.tl-right { transform: translateX(24px); }

.tl-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* left item: text in col 1, circle in col 2, col 3 empty */
.tl-item.tl-left .tl-content  { grid-column: 1; text-align: right; padding-right: 2.5rem; }
.tl-item.tl-left .tl-circle   { grid-column: 2; }
.tl-item.tl-left .tl-spacer   { grid-column: 3; }

/* right item: col 1 empty, circle in col 2, text in col 3 */
.tl-item.tl-right .tl-spacer  { grid-column: 1; }
.tl-item.tl-right .tl-circle  { grid-column: 2; }
.tl-item.tl-right .tl-content { grid-column: 3; text-align: left; padding-left: 2.5rem; }

/* circle */
.tl-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(4,8,15,0.8);
  border: 1px solid rgba(59,130,246,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.tl-circle span {
  font-size: 0.58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.tl-circle.tl-active {
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 0 28px rgba(59,130,246,0.25), 0 0 60px rgba(59,130,246,0.08);
}

.tl-circle.tl-active span { color: var(--blue); }

.tl-item.visible .tl-circle {
  animation: circlePop 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes circlePop {
  0%   { transform: translateX(-50%) scale(0.7); opacity: 0; }
  60%  { transform: translateX(-50%) scale(1.1); }
  100% { transform: translateX(-50%) scale(1);   opacity: 1; }
}

.tl-item:hover .tl-circle {
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 0 20px rgba(59,130,246,0.15);
}
.tl-content h3 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tl-content p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 240px;
}

.tl-item.tl-left .tl-content p { margin-left: auto; }

/* ── CONTACT ── */
.contact-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-status {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: var(--white);
  font-weight: 300;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(59,130,246,0.8);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.contact-text {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.7;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.6rem;
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 2px;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
  width: fit-content;
}

.discord-btn svg {
  width: 18px;
  height: 18px;
  color: #5865F2;
}

.discord-btn:hover {
  border-color: #5865F2;
  color: var(--white);
  box-shadow: 0 0 20px rgba(88,101,242,0.2);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 3px;
  border-top: 1px solid var(--border);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 4rem 2rem; gap: 3rem; text-align: center; }
  .hero-right { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 2rem; align-items: center; }
  .hero-desc { max-width: 100%; }
  .hero-links { justify-content: center; flex-wrap: wrap; }

  nav { padding: 1rem 1.5rem; }
  nav ul { gap: 1.5rem; }

  .tl-center-line { left: 38px; }

  .tl-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 2rem 0 2rem 90px;
  }

  .tl-item.tl-left,
  .tl-item.tl-right {
    padding-left: 90px;
    padding-right: 0;
  }

  .tl-item.tl-left .tl-content,
  .tl-item.tl-right .tl-content {
    grid-column: unset;
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }

  .tl-spacer { display: none; }

  .tl-circle {
    position: absolute;
    left: 0;
    width: 56px;
    height: 56px;
  }

  .tl-item.tl-left  { transform: translateX(-16px); }
  .tl-item.tl-right { transform: translateX(-16px); }
}
