/* ----------------------------------------------------
   Aleksandar Mironov — Portfolio Landing Page
   Dark, modern, glassmorphism theme
---------------------------------------------------- */

:root {
  --bg: #0b0e14;
  --bg-alt: #0d1119;
  --text: #eef1f8;
  --text-muted: #a3aabb;
  --text-faint: #6b7280;

  --accent-blue: #4f7cff;
  --accent-violet: #8b5cf6;
  --accent-teal: #22d3c9;
  --accent-red: #f2545b;

  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-border-hover: rgba(255, 255, 255, 0.22);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Background ambience ---------- */

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.bg-glow--one {
  width: 620px;
  height: 620px;
  top: -220px;
  left: -160px;
  background: radial-gradient(circle at center, var(--accent-blue), transparent 70%);
}

.bg-glow--two {
  width: 560px;
  height: 560px;
  top: 20%;
  right: -220px;
  background: radial-gradient(circle at center, var(--accent-violet), transparent 70%);
}

.bg-glow--three {
  width: 520px;
  height: 520px;
  bottom: -240px;
  left: 30%;
  background: radial-gradient(circle at center, var(--accent-teal), transparent 70%);
  opacity: 0.25;
}

/* ---------- Layout helpers ---------- */

header,
main,
footer {
  position: relative;
  z-index: 1;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.section-heading p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3rem;
}

.hero__inner {
  width: 100%;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__inner > * {
  max-width: 100%;
}

.hero__eyebrow,
.hero__name,
.hero__role,
.hero__greeting {
  width: 100%;
}

.hero__avatar {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(79, 124, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  margin-bottom: 1.75rem;
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 1.08;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  background: linear-gradient(120deg, #ffffff 20%, var(--accent-blue) 55%, var(--accent-violet) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__role {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 500;
  color: var(--accent-teal);
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
}

.hero__greeting {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 540px;
  margin: 0 0 2.25rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent-blue), var(--accent-violet));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 12px 30px rgba(79, 124, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(139, 92, 246, 0.4);
}

.hero__cta svg {
  transition: transform 0.25s ease;
}

.hero__cta:hover svg {
  transform: translateX(3px);
}

/* ---------- Apps section ---------- */

.apps {
  padding: 2rem 1.5rem 6rem;
  max-width: 1180px;
  margin: 0 auto;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.app-card__glow {
  position: absolute;
  inset: -40% -40% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.35s ease;
}

.app-card:hover .app-card__glow {
  opacity: 0.45;
}

.app-card--radio .app-card__glow { background: var(--accent-teal); }
.app-card--namedays .app-card__glow { background: var(--accent-blue); }
.app-card--evrolev .app-card__glow { background: #f4c744; }
.app-card--cooking .app-card__glow { background: var(--accent-red); }

.app-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.app-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.app-card__badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.app-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.005em;
}

.app-card__desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.app-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.app-card__link svg {
  transition: transform 0.25s ease;
}

.app-card:hover .app-card__link svg {
  transform: translateX(4px);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.site-footer__inner {
  max-width: 480px;
  margin: 0 auto;
}

.site-footer__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}

.site-footer__text {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.site-footer__email {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-teal);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(34, 211, 201, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__email:hover {
  color: #fff;
  border-color: #fff;
}

.site-footer__copy {
  margin: 2.5rem 0 0;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 480px) {
  .hero {
    min-height: unset;
    padding: 4.5rem 1.25rem 3rem;
  }

  .app-card {
    padding: 1.5rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .app-card,
  .hero__cta,
  .hero__cta svg,
  .app-card__link svg {
    transition: none;
  }
}
