/* =========================
   Fonts
   ========================= */

@font-face {
  font-family: 'Neon';
  src: url('./fonts/neon.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Modern, clean sans-serif */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');


/* =========================
   Global reset & base
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  color: #e5e7eb;
  background: radial-gradient(circle at top, #141827 0%, #050715 55%, #02010b 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  padding-bottom: 100px; /* hely a lebegő gomboknak */
}


/* =========================
   Layout
   ========================= */

main {
  width: 100%;
  max-width: 960px;
  padding: 96px 20px 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}


/* =========================
   Header
   ========================= */

header {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 960px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 21, 0.92),
    rgba(5, 7, 21, 0.75),
    transparent
  );
}

header h1 {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

header p {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 300;
  color: #9ca3af;
}

/* bracketed name */

.bracketed-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bracket {
  font-size: 2.4rem;
  color: #3b82f6;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    color 200ms ease-out,
    opacity 200ms ease-out;
  opacity: 0.7;
}

.name {
  color: #e5e7eb;
  transition: color 200ms ease-out, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bracketed-text:hover .bracket {
  color: #60a5fa;
  opacity: 1;
  transform: translateY(-2px);
}

.bracketed-text:hover .name {
  color: #f9fafb;
  transform: translateY(-1px);
}


/* =========================
   Sections
   ========================= */

section {
  background: rgba(15, 23, 42, 0.88);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 24px 24px 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
}

section h2 {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

section p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #e5e7eb;
}


/* =========================
   Projects
   ========================= */

#projects {
  padding-top: 22px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.project {
  position: relative;
  border-radius: 14px;
  padding: 16px 16px 15px;
  background: radial-gradient(circle at top left, #111827 0%, #020617 70%);
  border: 1px solid rgba(55, 65, 81, 0.7);
  cursor: pointer;
  overflow: hidden;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 180ms ease-out;
  pointer-events: none;
}

.project a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 1.02rem;
  font-weight: 400;
}

.project a::after {
  content: "↗";
  font-size: 0.9rem;
  opacity: 0.55;
}

.project:hover::before {
  opacity: 1;
}

.project:hover a {
  color: #f9fafb;
}


/* =========================
   Biography page tweaks
   (rolam.html)
   ========================= */

#biography {
  max-width: 800px;
}

#biography p {
  text-align: justify;
  text-justify: inter-word;
  color: #e5e7eb;
}


/* =========================
   Floating buttons
   ========================= */

.linkedin-btn {
  position: fixed;
  left: 24px;
  bottom: 84px;
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.55);
  text-decoration: none;
  z-index: 60;
  backdrop-filter: blur(16px);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 160ms ease-out,
    border-color 160ms ease-out,
    background 160ms ease-out;
}

.linkedin-btn svg {
  width: 22px;
  height: 22px;
}

.linkedin-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
  border-color: #3b82f6;
  background: rgba(15, 23, 42, 0.98);
}

/* Lebegő "Rólam" / About gomb */

.about-floating-btn-rolam {
  position: fixed;
  right: 24px;
  bottom: 84px;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 400;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.7);
  z-index: 60;
  backdrop-filter: blur(16px);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 160ms ease-out,
    border-color 160ms ease-out,
    background 160ms ease-out,
    color 160ms ease-out;
}

.about-floating-btn-rolam:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.9);
  border-color: #3b82f6;
  background: rgba(15, 23, 42, 0.98);
  color: #f9fafb;
}


/* =========================
   Footer
   ========================= */

footer {
  width: 100%;
  max-width: 960px;
  padding: 18px 20px 24px;
  margin-top: auto;
  text-align: center;
  font-size: 0.78rem;
  color: #6b7280;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 768px) {
  header {
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  header h1 {
    font-size: 2.1rem;
  }

  .bracket {
    font-size: 2rem;
  }

  main {
    padding-top: 80px;
    gap: 32px;
  }

  section {
    padding: 20px 18px 18px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .linkedin-btn {
    left: 16px;
    bottom: 78px;
    width: 40px;
    height: 40px;
  }

  .about-floating-btn-rolam {
    right: 16px;
    bottom: 78px;
    padding-inline: 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }

  section h2 {
    font-size: 1.08rem;
  }

  section p {
    font-size: 0.94rem;
  }
}