:root {
  --bg-primary: #070b14;
  --bg-secondary: #0b1220;
  --bg-card: rgba(17, 24, 39, 0.72);
  --bg-card-solid: #111827;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-color: rgba(148, 163, 184, 0.14);
  --border-hover: rgba(59, 130, 246, 0.4);

  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-dark: #2563eb;

  --success: #22c55e;

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 15px 40px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 25px 70px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 15px 45px rgba(59, 130, 246, 0.16);

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;

  --transition-fast: 180ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 600ms ease;

  --navbar-height: 76px;
}

/* =========================================================
   LIGHT THEME
========================================================= */

html:not(.dark) {
  --bg-primary: #f8fafc;
  --bg-secondary: #eef2f7;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-solid: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border-color: rgba(15, 23, 42, 0.09);
  --border-hover: rgba(37, 99, 235, 0.3);

  --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 15px 40px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 25px 70px rgba(15, 23, 42, 0.14);
  --shadow-accent: 0 15px 45px rgba(37, 99, 235, 0.1);
}

/* =========================================================
   GLOBAL
========================================================= */

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(59, 130, 246, 0.05),
      transparent 30%
    ),
    var(--bg-primary);

  color: var(--text-primary);

  transition:
    background-color var(--transition-normal),
    color var(--transition-normal);
}

body,
button,
input,
textarea {
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}

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

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

button {
  border: 0;
}

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* =========================================================
   PAGE LOADER
========================================================= */

#page-loader {
  background: var(--bg-primary);

  opacity: 1;
  visibility: visible;

  transition:
    opacity 500ms ease,
    visibility 500ms ease;
}

#page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  width: 42px;
  height: 42px;

  border: 3px solid rgba(59, 130, 246, 0.15);
  border-top-color: var(--accent);

  border-radius: 50%;

  animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   NAVBAR
========================================================= */

#navbar {
  transition:
    background-color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

#navbar.scrolled {
  background: color-mix(in srgb, var(--bg-primary) 82%, transparent);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

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

  box-shadow: var(--shadow-sm);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;

  font-family: "Poppins", sans-serif;
  font-weight: 600;

  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.85;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;

  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.18),
    rgba(59, 130, 246, 0.04)
  );

  color: var(--accent-hover);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 600;

  box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.05);
}

.logo-name {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.nav-link {
  position: relative;

  color: var(--text-secondary);

  font-size: 0.875rem;
  font-weight: 500;

  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -8px;

  width: 0;
  height: 2px;

  border-radius: 999px;

  background: var(--accent);

  transform: translateX(-50%);

  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 18px;
}

.navbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid var(--border-color);
  border-radius: 10px;

  background: var(--bg-card);

  color: var(--text-secondary);

  cursor: pointer;

  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.navbar-action:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);

  transform: translateY(-1px);
}

#language-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
}

.mobile-navigation {
  border-top: 1px solid var(--border-color);

  background: color-mix(in srgb, var(--bg-primary) 95%, transparent);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-nav-link {
  display: block;

  padding: 0.9rem 0;

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

  color: var(--text-secondary);

  font-size: 0.9rem;
  font-weight: 500;

  transition:
    color var(--transition-fast),
    padding var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-hover);
  padding-inline-start: 0.5rem;
}

/* =========================================================
   HERO
========================================================= */

.hero-section {
  position: relative;
  min-height: 100vh;

  display: flex;
  align-items: center;

  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 75% 45%,
      rgba(59, 130, 246, 0.12),
      transparent 25%
    ),
    radial-gradient(circle at 10% 75%, rgba(37, 99, 235, 0.06), transparent 25%);
}

.hero-background::before {
  content: "";

  position: absolute;
  inset: 0;

  opacity: 0.25;

  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);

  background-size: 50px 50px;

  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;

  margin-bottom: 1.5rem;
  padding: 0.5rem 0.8rem;

  border: 1px solid var(--border-color);
  border-radius: 999px;

  background: var(--bg-card);

  color: var(--text-secondary);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;

  backdrop-filter: blur(10px);
}

.hero-status-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--success);

  box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);

  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-greeting {
  margin: 0 0 0.5rem;

  color: var(--accent-hover);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-title {
  margin: 0;

  color: var(--text-primary);

  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;

  margin-top: 1.25rem;

  color: var(--text-secondary);

  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 500;
}

.hero-typing {
  color: var(--accent-hover);

  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
}

.typing-cursor {
  color: var(--accent);

  font-family: "JetBrains Mono", monospace;

  animation: cursor-blink 0.8s step-end infinite;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

.hero-description {
  max-width: 620px;

  margin-top: 1.5rem;

  color: var(--text-secondary);

  font-size: 1rem;
  line-height: 1.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  min-height: 48px;

  padding: 0.75rem 1.25rem;

  border-radius: 0.75rem;

  font-size: 0.875rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-normal),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;

  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);

  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.28);
}

.btn-secondary {
  border: 1px solid var(--border-color);

  background: var(--bg-card);

  color: var(--text-primary);

  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.hero-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;

  margin-top: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  color: var(--text-muted);

  font-size: 0.8rem;
  font-weight: 500;

  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.social-link svg {
  width: 17px;
  height: 17px;
}

.social-link:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.hero-image-wrapper {
  position: relative;

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

  min-height: 520px;
}

.hero-image-glow {
  position: absolute;

  width: min(75vw, 460px);
  aspect-ratio: 1;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.24),
    rgba(59, 130, 246, 0.04) 45%,
    transparent 70%
  );

  filter: blur(12px);

  animation: image-glow 5s ease-in-out infinite;
}

@keyframes image-glow {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.hero-image-frame {
  position: relative;
  z-index: 2;

  width: min(80vw, 420px);

  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 2rem;

  overflow: hidden;

  background: var(--bg-card);

  box-shadow: var(--shadow-lg), var(--shadow-accent);

  transform: rotate(2deg);

  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-normal);
}

.hero-image-frame:hover {
  transform: rotate(0deg) translateY(-6px);

  box-shadow:
    var(--shadow-lg),
    0 20px 60px rgba(59, 130, 246, 0.2);
}

.hero-image {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 4 / 5;

  object-fit: cover;

  filter: saturate(0.92) contrast(1.02);
}

.hero-image-decoration {
  position: absolute;

  z-index: 1;

  border: 1px solid rgba(59, 130, 246, 0.22);

  pointer-events: none;
}

.decoration-one {
  width: 90px;
  height: 90px;

  top: 8%;
  right: 8%;

  border-radius: 1.25rem;

  transform: rotate(18deg);
}

.decoration-two {
  width: 55px;
  height: 55px;

  bottom: 12%;
  left: 8%;

  border-radius: 50%;

  background: rgba(59, 130, 246, 0.04);
}

.scroll-indicator {
  position: absolute;

  left: 50%;
  bottom: 2rem;

  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  color: var(--text-muted);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;

  transform: translateX(-50%);

  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.scroll-indicator:hover {
  color: var(--accent-hover);

  transform: translateX(-50%) translateY(-2px);
}

.scroll-indicator svg {
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

/* =========================================================
   SECTIONS
========================================================= */

.section {
  position: relative;

  padding: 7rem 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-heading {
  max-width: 720px;

  margin: 0 auto 4rem;

  text-align: center;
}

.section-eyebrow {
  display: inline-block;

  margin-bottom: 0.8rem;

  color: var(--accent);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;

  color: var(--text-primary);

  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-subtitle {
  max-width: 620px;

  margin: 1rem auto 0;

  color: var(--text-secondary);

  font-size: 0.95rem;
  line-height: 1.8;
}

/* =========================================================
   ABOUT
========================================================= */

.about-content {
  max-width: 720px;
}

.about-text {
  margin: 0 0 1.25rem;

  color: var(--text-secondary);

  font-size: 1rem;
  line-height: 1.95;
}

.about-text:last-child {
  margin-bottom: 0;
}

.stat-card {
  position: relative;

  padding: 1.5rem;

  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);

  background: var(--bg-card);

  box-shadow: var(--shadow-sm);

  overflow: hidden;

  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.stat-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 2px;

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

  opacity: 0.7;
}

.stat-card:hover {
  transform: translateY(-4px);

  border-color: var(--border-hover);

  box-shadow: var(--shadow-accent);
}

.stat-value {
  color: var(--text-primary);

  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  margin-top: 0.25rem;

  color: var(--text-muted);

  font-size: 0.75rem;
  line-height: 1.5;
}

/* =========================================================
   SKILLS
========================================================= */

.skill-category {
  padding: 1.75rem;

  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);

  background: var(--bg-card);

  box-shadow: var(--shadow-sm);

  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.skill-category:hover {
  transform: translateY(-4px);

  border-color: var(--border-hover);

  box-shadow: var(--shadow-accent);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;

  margin-bottom: 1.4rem;
}

.skill-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.75rem;

  background: rgba(59, 130, 246, 0.08);

  color: var(--accent-hover);
}

.skill-category-icon svg {
  width: 20px;
  height: 20px;
}

.skill-category-title {
  color: var(--text-primary);

  font-size: 1rem;
  font-weight: 600;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skill-item {
  display: inline-flex;
  align-items: center;

  padding: 0.5rem 0.7rem;

  border: 1px solid var(--border-color);
  border-radius: 0.6rem;

  background: rgba(59, 130, 246, 0.035);

  color: var(--text-secondary);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;

  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.skill-item:hover {
  border-color: var(--border-hover);

  background: rgba(59, 130, 246, 0.08);

  color: var(--text-primary);
}

/* =========================================================
   PROJECTS
========================================================= */

.project-card {
  position: relative;

  display: flex;
  flex-direction: column;

  height: 100%;

  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);

  background: var(--bg-card);

  box-shadow: var(--shadow-sm);

  overflow: hidden;

  cursor: pointer;

  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-7px);

  border-color: var(--border-hover);

  box-shadow: var(--shadow-accent);
}

.project-card-image-wrapper {
  position: relative;

  overflow: hidden;

  aspect-ratio: 16 / 9;

  background: var(--bg-secondary);
}

.project-card-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 600ms ease;
}

.project-card:hover .project-card-image {
  transform: scale(1.04);
}

.project-card-image-overlay {
  position: absolute;
  inset: 0;

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

  background: rgba(7, 11, 20, 0.45);

  opacity: 0;

  transition: opacity var(--transition-normal);
}

.project-card:hover .project-card-image-overlay {
  opacity: 1;
}

.project-view-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.65rem 0.9rem;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.7rem;

  background: rgba(7, 11, 20, 0.65);

  color: #ffffff;

  font-size: 0.72rem;
  font-weight: 600;

  backdrop-filter: blur(10px);
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 1.4rem;
}

.project-card-title {
  color: var(--text-primary);

  font-size: 1.1rem;
  font-weight: 600;
}

.project-card-description {
  margin-top: 0.65rem;

  color: var(--text-secondary);

  font-size: 0.8rem;
  line-height: 1.75;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;

  margin-top: auto;
  padding-top: 1.25rem;
}

.project-tag {
  padding: 0.35rem 0.55rem;

  border-radius: 0.45rem;

  background: rgba(59, 130, 246, 0.08);

  color: var(--accent-hover);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
}

/* =========================================================
   EMPTY STATES
========================================================= */

.empty-state {
  padding: 3.5rem 2rem;

  border: 1px dashed var(--border-color);
  border-radius: var(--radius-xl);

  background: linear-gradient(135deg, rgba(59, 130, 246, 0.035), transparent);
}

.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 64px;
  height: 64px;

  margin-bottom: 1.25rem;

  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 50%;

  background: rgba(59, 130, 246, 0.06);

  color: var(--accent);
}

.empty-state-icon svg {
  width: 27px;
  height: 27px;
}

.empty-state-title {
  margin: 0;

  color: var(--text-primary);

  font-size: 1.1rem;
  font-weight: 600;
}

.empty-state-text {
  max-width: 550px;

  margin: 0.75rem auto 0;

  color: var(--text-secondary);

  font-size: 0.85rem;
  line-height: 1.8;
}

/* =========================================================
   CONTACT FORM
========================================================= */

.contact-form {
  padding: 2rem;

  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);

  background: var(--bg-card);

  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;

  margin-bottom: 0.55rem;

  color: var(--text-primary);

  font-size: 0.8rem;
  font-weight: 600;
}

.form-input {
  display: block;

  width: 100%;

  padding: 0.85rem 0.95rem;

  border: 1px solid var(--border-color);
  border-radius: 0.7rem;

  outline: none;

  background: rgba(15, 23, 42, 0.35);

  color: var(--text-primary);

  font-size: 0.85rem;

  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

html:not(.dark) .form-input {
  background: rgba(255, 255, 255, 0.65);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent);

  background: var(--bg-card);

  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.input-error {
  border-color: #ef4444;

  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.form-error {
  display: block;

  min-height: 1rem;

  margin-top: 0.35rem;

  color: #f87171;

  font-size: 0.68rem;
}

.form-status {
  margin-top: 1rem;

  color: var(--text-secondary);

  font-size: 0.8rem;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  border-top: 1px solid var(--border-color);

  background: var(--bg-primary);
}

.footer-logo {
  display: inline-block;

  color: var(--text-primary);

  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.footer-description {
  max-width: 360px;

  margin-top: 0.4rem;

  color: var(--text-muted);

  font-size: 0.75rem;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.footer-social-link {
  color: var(--text-muted);

  font-size: 0.75rem;

  transition: color var(--transition-fast);
}

.footer-social-link:hover {
  color: var(--accent-hover);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;

  margin-top: 2.5rem;
  padding-top: 1.5rem;

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

  color: var(--text-muted);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;

  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp-button {
  position: fixed;

  right: 1.25rem;
  bottom: 1.25rem;

  z-index: 100;

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

  width: 54px;
  height: 54px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;

  background: #25d366;

  color: #ffffff;

  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.22);

  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-normal);
}

.whatsapp-button svg {
  width: 27px;
  height: 27px;
}

.whatsapp-button:hover {
  transform: translateY(-4px) scale(1.03);

  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.3);
}

.whatsapp-button::before {
  content: "";

  position: absolute;
  inset: -5px;

  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 50%;

  animation: whatsapp-ring 2.5s ease-out infinite;
}

@keyframes whatsapp-ring {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.2);
    opacity: 0;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* =========================================================
   PROJECT MODAL
========================================================= */

.project-modal {
  position: fixed;
  inset: 0;

  z-index: 200;

  overflow-y: auto;

  padding: 2rem 1rem;
}

.project-modal.hidden {
  display: none;
}

.project-modal-backdrop {
  position: fixed;
  inset: 0;

  background: rgba(2, 6, 23, 0.8);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-modal-container {
  position: relative;
  z-index: 2;

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

  min-height: 100%;
}

.project-modal-content {
  position: relative;

  width: min(100%, 1050px);

  margin: auto;

  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);

  background: var(--bg-primary);

  box-shadow: var(--shadow-lg);

  overflow: hidden;

  animation: modal-enter 300ms ease;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-modal-close {
  position: absolute;

  top: 1rem;
  right: 1rem;

  z-index: 5;

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

  width: 42px;
  height: 42px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;

  background: rgba(7, 11, 20, 0.65);

  color: #ffffff;

  cursor: pointer;

  backdrop-filter: blur(10px);

  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.project-modal-close:hover {
  background: rgba(59, 130, 246, 0.8);

  transform: rotate(5deg);
}

.modal-project-image {
  width: 100%;

  max-height: 520px;

  object-fit: cover;
}

.modal-project-body {
  padding: 2rem;
}

.modal-project-title {
  margin: 0;

  color: var(--text-primary);

  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.modal-project-description {
  max-width: 850px;

  margin-top: 1rem;

  color: var(--text-secondary);

  font-size: 0.9rem;
  line-height: 1.9;
}

.modal-project-section {
  margin-top: 2rem;
}

.modal-project-section-title {
  margin-bottom: 0.8rem;

  color: var(--text-primary);

  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.modal-project-features {
  display: grid;

  gap: 0.65rem;
}

.modal-project-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;

  color: var(--text-secondary);

  font-size: 0.8rem;
  line-height: 1.7;
}

.modal-project-feature::before {
  content: "✓";

  flex-shrink: 0;

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

.modal-project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.modal-tech-item {
  padding: 0.5rem 0.7rem;

  border: 1px solid var(--border-color);
  border-radius: 0.55rem;

  background: rgba(59, 130, 246, 0.05);

  color: var(--text-secondary);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
}

.modal-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;

  margin-top: 2rem;
}

.modal-project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.7rem 1rem;

  border: 1px solid var(--border-color);
  border-radius: 0.65rem;

  background: var(--bg-card);

  color: var(--text-primary);

  font-size: 0.75rem;
  font-weight: 600;

  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.modal-project-link:hover {
  border-color: var(--border-hover);

  background: rgba(59, 130, 246, 0.08);

  transform: translateY(-2px);
}

/* =========================================================
   REVEAL ANIMATIONS
========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(25px);

  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.revealed {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================================
   RTL SUPPORT
========================================================= */

html[dir="rtl"] body {
  font-family: "Inter", "Tahoma", sans-serif;
}

html[dir="rtl"] .hero-description,
html[dir="rtl"] .about-text,
html[dir="rtl"] .project-card-description,
html[dir="rtl"] .empty-state-text,
html[dir="rtl"] .modal-project-description {
  line-height: 2;
}

html[dir="rtl"] .hero-role {
  flex-direction: row;
}

html[dir="rtl"] .hero-socials {
  flex-direction: row;
}

html[dir="rtl"] .hero-image-frame {
  transform: rotate(-2deg);
}

html[dir="rtl"] .hero-image-frame:hover {
  transform: rotate(0deg) translateY(-6px);
}

html[dir="rtl"] .decoration-one {
  right: auto;
  left: 8%;
}

html[dir="rtl"] .decoration-two {
  left: auto;
  right: 8%;
}

html[dir="rtl"] .project-modal-close {
  right: auto;
  left: 1rem;
}

html[dir="rtl"] .modal-project-feature {
  flex-direction: row;
}

html[dir="rtl"] .mobile-nav-link:hover,
html[dir="rtl"] .mobile-nav-link.active {
  padding-inline-start: 0;
  padding-inline-end: 0.5rem;
}

html[dir="rtl"] .whatsapp-button {
  right: auto;
  left: 1.25rem;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1023px) {
  .hero-section {
    min-height: auto;
  }

  .hero-image-wrapper {
    min-height: 430px;
  }

  .hero-description {
    max-width: 700px;
  }

  .section {
    padding: 6rem 0;
  }
}

@media (max-width: 767px) {
  :root {
    --navbar-height: 68px;
  }

  .logo-name {
    display: none;
  }

  .hero-section {
    padding-top: 4rem;
  }

  .hero-image-wrapper {
    min-height: 370px;
  }

  .hero-image-frame {
    width: min(78vw, 350px);

    border-radius: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.85;
  }

  .hero-socials {
    gap: 1rem;
  }

  .section {
    padding: 5rem 0;
  }

  .section-heading {
    margin-bottom: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .project-modal {
    padding: 1rem 0.65rem;
  }

  .modal-project-body {
    padding: 1.35rem;
  }

  .whatsapp-button {
    right: 1rem;
    bottom: 1rem;

    width: 50px;
    height: 50px;
  }

  html[dir="rtl"] .whatsapp-button {
    right: auto;
    left: 1rem;
  }
}

@media (max-width: 420px) {
  .hero-image-wrapper {
    min-height: 320px;
  }

  .hero-image-frame {
    width: 82vw;
  }

  .hero-status {
    font-size: 0.62rem;
  }

  .btn {
    width: 100%;
  }

  .hero-socials {
    justify-content: center;
  }

  .stat-card {
    padding: 1.2rem;
  }

  .stat-value {
    font-size: 1.65rem;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
