* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Estedad", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

a,
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus,
a:focus {
  outline: none;
}

/* Header */

.header {
  height: 80px;

  position: sticky;
  top: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 2rem;

  background: var(--header-bg);

  backdrop-filter: blur(20px);

  border-bottom: 1px solid var(--border);

  z-index: 1000;
}

.logo {
  position: absolute;

  font-size: 1.2rem;
  font-weight: 800;

  color: var(--text);
}

.controls {
  position: absolute;

  display: flex;
  align-items: center;
  gap: 0.75rem;
}

html[dir="rtl"] .logo {
  right: 2rem;
}

html[dir="rtl"] .controls {
  left: 2rem;
}

html[dir="ltr"] .logo {
  left: 2rem;
}

html[dir="ltr"] .controls {
  right: 2rem;
}

/* Menu */

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

html[dir="rtl"] .nav {
  direction: rtl;
}

html[dir="ltr"] .nav {
  direction: ltr;
}

.nav a {
  color: var(--text);
  transition: 0.2s;
}

.nav a:hover {
  opacity: 0.6;
}

/* Controls */

#language-btn,
#theme-btn {
  border: 1px solid var(--border);

  color: var(--text);

  background: transparent;

  padding: 8px 14px;

  border-radius: 999px;

  transition: 0.25s;
}

#language-btn:hover,
#theme-btn:hover {
  background: var(--hover-bg);
  color: var(--hover-text);
}

/* Hero */

.hero {
  min-height: calc(100vh - 80px);

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 2rem;

  position: relative;

  overflow: hidden;
}

.hero-bg {
  position: absolute;

  width: 700px;
  height: 700px;

  background: radial-gradient(circle, var(--accent-glow), transparent 70%);

  filter: blur(60px);

  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }

  100% {
    transform: translateY(0);
  }
}

.hero-content {
  max-width: 1100px;
  width: 100%;

  text-align: center;

  z-index: 2;
}

/* Title */

.hero-title {
  font-size: clamp(4.5rem, 7vw, 6rem);

  font-weight: 900;

  line-height: 1.1;

  margin-bottom: 1rem;

  background: linear-gradient(90deg, var(--text), var(--accent));

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Tags */

.hero-tags {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 0.75rem;

  margin-bottom: 2rem;

  color: var(--secondary);

  font-weight: 500;
}

.hero-tags span:nth-child(even) {
  color: var(--accent);
}

/* About Card */

.about-card {
  max-width: 760px;

  margin: 0 auto 2rem;

  border: 1px solid var(--border);

  background: var(--card);

  backdrop-filter: blur(20px);

  border-radius: 24px;

  padding: 1.5rem;

  text-align: start;
}

/* Description */

.hero-description {
  color: var(--secondary);

  line-height: 2.2;

  font-size: 1.05rem;

  max-height: 120px;

  overflow: hidden;

  position: relative;
}

.hero-description::after {
  content: "";

  position: absolute;

  inset-inline: 0;
  bottom: 0;

  height: 50px;

  background: linear-gradient(transparent, var(--card));
}

.hero-description.expanded {
  max-height: 260px;
  overflow-y: auto;
}

.hero-description.expanded::after {
  display: none;
}

.highlight {
  color: var(--accent);
  font-weight: 700;
}

.read-more-btn {
  margin-top: 1rem;

  color: var(--accent);

  font-weight: 700;
}

/* Social */

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 1rem;
}

.socials a {
  border: 1px solid var(--border);

  padding: 12px 20px;

  border-radius: 999px;

  transition: 0.25s;
}

.socials a:hover {
  background: var(--hover-bg);

  color: var(--hover-text);

  transform: translateY(-3px);
}

/* Scrollbars */

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

* {
  scrollbar-width: none;
}

/* Mobile */

@media (max-width: 768px) {
  .header {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1rem;
  }

  .nav {
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 2.8rem;
    line-height: 1.15;
  }

  .hero-tags {
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .about-card {
    padding: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .socials a {
    width: 100%;
  }
}