:root {
  /* Core theme tokens: component colors should use these instead of fixed black/white values. */
  --bg: #07090d;
  --surface: rgba(13, 16, 22, 0.74);
  --surface-strong: #0d1118;
  --line: rgba(255,255,255,.09);
  --text: #f1f4f7;
  --muted: #9aa5b3;
  --accent: #61f3a6;
  --accent-2: #7c8cff;
  --shadow: 0 30px 90px rgba(0,0,0,.45);

  --text-strong: #f1f4f7;
  --text-secondary: #aeb7c2;
  --text-soft: #83909f;
  --text-subtle: #677281;
  --text-faint: rgba(255,255,255,.45);
  --text-on-accent: #06100a;
  --outline-stroke: rgba(241,244,247,.65);

  --header-background: linear-gradient(to bottom, rgba(7,9,13,.88), rgba(7,9,13,.40));
  --header-border: rgba(255,255,255,.06);
  --brand-mark-background: rgba(255,255,255,.035);
  --surface-glass: rgba(255,255,255,.035);
  --surface-hover: rgba(255,255,255,.06);
  --surface-card: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  --surface-panel: rgba(10,10,10,.85);
  --surface-chip: rgba(7,9,13,.78);
  --surface-nav: rgba(12,15,21,.84);
  --surface-footer: rgba(5,10,8,.88);
  --surface-input: rgba(255,255,255,.04);
  --surface-input-focus: rgba(255,255,255,.07);
  --surface-input-placeholder: rgba(255,255,255,.35);
  --surface-image: #0b0e12;
  --surface-preloader: #07090d;
  --surface-track: #1a1a1a;
  --surface-modal: #111816;
  --border-soft: rgba(255,255,255,.10);
  --border-control: rgba(255,255,255,.15);
  --border-strong: rgba(255,255,255,.22);
  --control-text: #ffffff;
  --button-neutral-background: #ffffff;
  --button-neutral-text: #000000;
  --button-active-text: #07100b;
  --nav-link-text: #83909f;
  --nav-link-hover-background: rgba(255,255,255,.04);
  --footer-text: rgba(255,255,255,.65);
  --footer-muted: rgba(255,255,255,.45);
  --footer-line: rgba(255,255,255,.15);
  --card-topbar-dot: rgba(255,255,255,.13);
  --card-topbar-text: #7e8997;
  --input-border: rgba(255,255,255,.12);
  --input-focus-border: rgba(255,255,255,.4);
  --input-text: #ffffff;
  --auth-button-background: #ffffff;
  --auth-button-text: #000000;
  --scroll-track: #1a1a1a;
  --scroll-thumb: #39ff14;
  --scroll-thumb-hover: #2eff34;
  --code-panel-text: #c8d0da;
  --chip-text: #dde5ec;
  --about-lead: #e2e8ef;
  --eyebrow-text: #98a3b1;
  --meta-label-text: #687382;
  --image-caption-text: #677281;
  --error: #ff6b6b;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 10%, rgba(124,140,255,.08), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(97,243,166,.05), transparent 30%),
    var(--bg);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

#code-rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  opacity: .42;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.grid-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 85%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 22px 4.5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(7,9,13,.78), rgba(7,9,13,0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: var(--accent);
  font-size: 14px;
}
.brand-text span { color: var(--accent); }

.header-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #aeb7c2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(97,243,166,.85);
}

.section-shell {
  width: min(1180px, 90vw);
  margin-inline: auto;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: clamp(20px, 5vw, 80px);
  padding: 120px 0 100px;
}

.hero-copy { max-width: 680px; }
.eyebrow {
  margin: 0 0 20px;
  color: #98a3b1;
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 700;
}
.eyebrow span { color: var(--accent); }

h1, h2 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  line-height: .98;
  letter-spacing: -.045em;
}
h1 { font-size: clamp(54px, 7vw, 92px); }
h2 { font-size: clamp(44px, 6vw, 78px); }

.accent { color: var(--accent); }
.outline {
  -webkit-text-stroke: 1px rgba(241,244,247,.65);
  color: transparent;
}

.hero-description {
  max-width: 580px;
  color: var(--muted);
  margin: 28px 0;
  line-height: 1.8;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid var(--line);
  transition: .28s ease;
}
.btn-primary {
  color: #06100a;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(97,243,166,.15);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(97,243,166,.24); }
.btn-ghost { background: rgba(255,255,255,.03); }
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,.06); }

.mini-stats {
  margin-top: 48px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.mini-stats div { display: grid; gap: 5px; }
.mini-stats strong { font-family: "Space Grotesk"; font-size: 20px; }
.mini-stats span { color: var(--muted); font-size: 11px; }

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}
.visual-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.orbit-one { width: 470px; height: 660px; }
.orbit-two { width: 560px; height: 360px; transform: rotate(35deg); border-color: rgba(97,243,166,.1); }

.visual-card {
  position: relative;
  width: min(430px, 74vw);
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: rotate(2.5deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-12px); }
}

.card-topbar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}
.card-topbar span {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.13);
}
.card-topbar small {
  margin-left: auto;
  color: #7e8997;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.15;
  border-radius: 18px;
  background: #0b0e12;
}
.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(.8) contrast(1.05);
}
.image-glow {
  position: absolute;
  inset: auto -12% -22% -12%;
  height: 45%;
  background: radial-gradient(circle, rgba(97,243,166,.28), transparent 65%);
  mix-blend-mode: screen;
}
.image-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(97,243,166,.08) 50%, transparent 100%);
  transform: translateY(-100%);
  animation: scan 4s linear infinite;
}
@keyframes scan { to { transform: translateY(100%); } }

.floating-chip {
  position: absolute;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(7,9,13,.72);
  backdrop-filter: blur(12px);
  color: #dde5ec;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow: 0 15px 35px rgba(0,0,0,.3);
}
.chip-one { left: -34px; top: 20%; animation: chipFloat 5s ease-in-out infinite; }
.chip-two { right: -22px; top: 49%; animation: chipFloat 4.5s .5s ease-in-out infinite; }
.chip-three { left: 14%; bottom: -16px; animation: chipFloat 5.5s 1s ease-in-out infinite; }
@keyframes chipFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.code-panel {
  position: absolute;
  right: -7%;
  bottom: 8%;
  width: 230px;
  padding: 15px 17px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  background: rgba(7,9,13,.78);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow);
  font-family: "Space Grotesk", monospace;
  font-size: 11px;
  line-height: 1.8;
  color: #c8d0da;
  transform: rotate(-5deg);
}
.c-purple { color: #c38cff; }
.c-blue { color: #7ea6ff; }
.c-green { color: var(--accent); }
.c-orange { color: #f2a768; }

.about { padding: 120px 0 80px; }
.section-heading { margin-bottom: 52px; }
.section-heading h2 span, .contact h2 span { color: var(--accent); }

.about-grid {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.about-image-area { position: relative; }
.about-frame {
  position: relative;
  width: min(460px, 100%);
  margin: auto;
}
.about-frame img {
  width: 100%;
  display: block;
  aspect-ratio: .9 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  filter: grayscale(.08) contrast(1.06);
  box-shadow: 0 35px 90px rgba(0,0,0,.42);
}
.corner {
  position: absolute;
  width: 35px;
  height: 35px;
  z-index: 2;
  border-color: var(--accent);
}
.corner-tl { top: -11px; left: -11px; border-top: 1px solid; border-left: 1px solid; }
.corner-tr { top: -11px; right: -11px; border-top: 1px solid; border-right: 1px solid; }
.corner-bl { bottom: -11px; left: -11px; border-bottom: 1px solid; border-left: 1px solid; }
.corner-br { bottom: -11px; right: -11px; border-bottom: 1px solid; border-right: 1px solid; }
.portrait-shadow {
  position: absolute;
  inset: auto 5% -11% 5%;
  height: 30%;
  background: radial-gradient(circle, rgba(97,243,166,.14), transparent 70%);
  filter: blur(25px);
}
.image-caption {
  width: min(460px, 100%);
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  color: #677281;
  font-size: 9px;
  letter-spacing: .18em;
}

.about-content { max-width: 630px; }
.about-content p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
  margin: 0 0 18px;
}
.about-content .lead {
  color: #e2e8ef;
  font-size: 20px;
  line-height: 1.7;
}
.about-meta {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-meta > div {
  padding: 20px 14px 20px 0;
  display: grid;
  gap: 7px;
}
.meta-label {
  color: #687382;
  font-size: 9px;
  letter-spacing: .16em;
}
.about-meta strong {
  font-family: "Space Grotesk";
  font-size: 12px;
  line-height: 1.4;
}

.contact { padding: 100px 0 180px; }
.contact-card {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}
.contact h2 { font-size: clamp(38px, 5.2vw, 72px); }

.floating-nav {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(12,15,21,.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 13px;
  color: #83909f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  transition: .25s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-link.active {
  color: #07100b;
  background: var(--accent);
  box-shadow: 0 7px 20px rgba(97,243,166,.18);
}
.nav-icon { font-size: 13px; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal-delay { transition-delay: .18s; }
.reveal.show { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { padding-inline: 5vw; }
  .hero { grid-template-columns: 1fr; padding-top: 145px; }
  .hero-copy { max-width: 780px; }
  .hero-visual { min-height: 560px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-content { max-width: 760px; }
  .about-meta { max-width: 620px; }
}

@media (max-width: 640px) {
  .site-header { padding: 15px 18px; }
  .brand-text { font-size: 12px; }
  .header-status { display: none; }
  .section-shell { width: min(92vw, 1180px); }
  h1 { font-size: clamp(47px, 15vw, 72px); }
  .hero { padding-top: 115px; padding-bottom: 60px; }
  .hero-description { font-size: 14px; }
  .hero-visual { min-height: 490px; margin-top: 12px; }
  .visual-card { width: min(360px, 78vw); }
  .orbit-one { width: 360px; height: 510px; }
  .orbit-two { width: 410px; height: 290px; }
  .code-panel { right: 0; bottom: 6%; width: 195px; }
  .chip-one { left: -10px; }
  .chip-two { right: -5px; }
  .about { padding-top: 70px; }
  .about-content .lead { font-size: 17px; }
  .about-meta { grid-template-columns: 1fr; }
  .about-meta > div { border-bottom: 1px solid var(--line); }
  .about-meta > div:last-child { border-bottom: 0; }
  .contact { padding-bottom: 140px; }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .floating-nav { bottom: 14px; width: max-content; max-width: 92vw; }
  .nav-link { padding: 10px 12px; }
  .nav-link span:last-child { display: none; }
  .nav-icon { font-size: 16px; }
}

.site-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 35px 20px 120px;
    margin-top: 60px;
    background: rgba(5, 10, 8, 0.75);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.65);
    font-size: 20px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.03);

    transition: all 0.3s ease;
}

.social-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);

    transform: translateY(-6px);

    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.25),
        0 0 25px rgba(255, 255, 255, 0.1);
}

.footer-line {
    width: 80px;
    height: 1px;
    margin: 25px auto 15px;

    background: rgba(255, 255, 255, 0.15);
}

.copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
}


/* تنظیمات برای کل صفحه */
html {
    /* برای مرورگر فایرفاکس */
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #1a1a1a; /* رنگ دسته و رنگ پس‌زمینه */
}

/* برای مرورگرهای کروم، اج و سافاری */
::-webkit-scrollbar {
    width: 12px; /* ضخامت اسکرول‌بار */
}

::-webkit-scrollbar-track {
    background: #1a1a1a; /* پس‌زمینه تیره برای اینکه سبز نعونی بهتر دیده شود */
}

::-webkit-scrollbar-thumb {
    background: #39FF14; /* رنگ سبز نعونی */
    border-radius: 20px; /* گرد کردن گوشه‌ها */
    border: 3px solid #1a1a1a; /* ایجاد فاصله کوچک بین دسته و ترک */
    box-shadow: 0 0 10px #39FF14; /* افکت درخشش نعونی */
}

::-webkit-scrollbar-thumb:hover {
    background: #2eff34; /* کمی تغییر رنگ هنگام رفتن موس روی آن */
    box-shadow: 0 0 15px #39FF14; /* درخشش بیشتر هنگام هاور */
}
/* =========================
   PRELOADER
========================= */

#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #07090d;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    width: min(320px, 80%);
    text-align: center;
}

.loader-logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #7affb7;

    margin-bottom: 12px;

    animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-text {
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #ffffff;

    margin-bottom: 28px;
}

.loader-text span {
    color: #7affb7;
}

.loader-bar {
    width: 100%;
    height: 2px;

    background: rgba(255, 255, 255, 0.1);

    overflow: hidden;
}

.loader-progress {
    width: 0;
    height: 100%;

    background: #7affb7;

    animation: loading 2s ease forwards;
}

.loader-status {
    margin-top: 12px;

    font-family: monospace;
    font-size: 11px;
    letter-spacing: 2px;

    color: rgba(255, 255, 255, 0.45);
}

@keyframes loading {
    0% {
        width: 0;
    }

    70% {
        width: 80%;
    }

    100% {
        width: 100%;
    }
}

@keyframes loaderPulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.register-link:hover{
  color: #61f3a6;
  transition: all 0.3s;
}

.login-link:hover{
  color: #61f3a6;
  transition: all 0.3s;
}

/* =========================
   AUTH PAGES
========================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 100px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 40px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
}

.auth-header h1 {
    margin-bottom: 8px;
    font-size: 28px;
}

.auth-header p {
    margin: 0;
    opacity: 0.55;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.form-group input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.07);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-button {
    width: 100%;
    padding: 14px;
    margin-top: 5px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.auth-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    opacity: 0.7;
}

.auth-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.form-error {
    display: block;
    margin-top: 6px;
    color: #ff6b6b;
    font-size: 13px;
}
/* =========================
   PROFILE PAGE
========================= */

.profile-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 100px;
}

.profile-card {
    width: 100%;
    max-width: 500px;
    padding: 45px;
    text-align: center;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 40px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    margin-bottom: 8px;
    font-size: 30px;
}

.profile-info p {
    opacity: 0.55;
    margin-bottom: 30px;
}

.logout-button {
    padding: 12px 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.logout-button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.profile-upload {
    margin-bottom: 25px;
}

.profile-upload input[type="file"] {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
}

.profile-upload button {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.profile-upload button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.messages-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #98ffcc;
    border-radius: 8px;
    background: transparent;
    color: #98ffcc;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s ease;
    margin-top: 1rem;
}

.messages-button:hover {
    background: #98ffcc;
    color: #0b0f0e;
    text-decoration: none;
}

.swal2-popup {
    background: #111816 !important;
    color: #ffffff !important;
    border: 1px solid #1d3029 !important;
    border-radius: 12px !important;
}

.swal2-title {
    color: #98ffcc !important;
}

.swal2-html-container {
    color: #aab7b2 !important;
}

.swal2-confirm {
    background: #98ffcc !important;
    color: #0b0f0e !important;
    border-radius: 8px !important;
}



/* =========================
   SKILLS
========================= */

.skills {
    padding-top: 120px;
    padding-bottom: 120px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 55px;
}

.skills-box {
    position: relative;
    padding: 35px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: 0.35s ease;
}

.skills-box::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -80px;
    top: -80px;
    background: rgba(120, 255, 180, 0.08);
    border-radius: 50%;
    filter: blur(40px);
}

.skills-box:hover {
    transform: translateY(-6px);
    border-color: rgba(120, 255, 180, 0.35);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
}

.skills-box-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.skills-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(120, 255, 180, 0.35);
    border-radius: 12px;

    color: #78ffb4;
    font-size: 22px;

    background: rgba(120, 255, 180, 0.05);
}

.skills-label {
    display: block;
    margin-bottom: 5px;

    color: #78ffb4;
    font-size: 11px;
    letter-spacing: 2px;
}

.skills-box h3 {
    margin: 0;
    color: #fff;
    font-size: 23px;
}

.skills-list {
    display: flex;
    flex-direction: column;
}

.skill-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;

    padding: 18px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.skill-number {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
}

.skill-name {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.skill-level {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}



/* =========================
   TECH STACK
========================= */

.tech-stack {
    margin-top: 35px;
    padding: 30px 35px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.02);
}

.tech-title {
    margin-bottom: 20px;

    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    letter-spacing: 2px;
}

.tech-title span {
    color: #78ffb4;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tags span {
    padding: 10px 17px;

    border: 1px solid;
    border-radius: 30px;

    font-size: 13px;
    font-weight: 500;

    background: rgba(255, 255, 255, 0.02);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}


/* PHP */

.tech-tags span:nth-child(1) {
    color: #777bb4;
    border-color: rgba(119, 123, 180, 0.45);
}

.tech-tags span:nth-child(1):hover {
    color: #fff;
    background: rgba(119, 123, 180, 0.15);
    box-shadow: 0 0 22px rgba(119, 123, 180, 0.35);
    transform: translateY(-4px);
}


/* JavaScript */

.tech-tags span:nth-child(2) {
    color: #f7df1e;
    border-color: rgba(247, 223, 30, 0.45);
}

.tech-tags span:nth-child(2):hover {
    color: #fff;
    background: rgba(247, 223, 30, 0.12);
    box-shadow: 0 0 22px rgba(247, 223, 30, 0.35);
    transform: translateY(-4px);
}


/* HTML5 */

.tech-tags span:nth-child(3) {
    color: #e34f26;
    border-color: rgba(227, 79, 38, 0.45);
}

.tech-tags span:nth-child(3):hover {
    color: #fff;
    background: rgba(227, 79, 38, 0.12);
    box-shadow: 0 0 22px rgba(227, 79, 38, 0.35);
    transform: translateY(-4px);
}


/* CSS3 */

.tech-tags span:nth-child(4) {
    color: #1572b6;
    border-color: rgba(21, 114, 182, 0.45);
}

.tech-tags span:nth-child(4):hover {
    color: #fff;
    background: rgba(21, 114, 182, 0.12);
    box-shadow: 0 0 22px rgba(21, 114, 182, 0.35);
    transform: translateY(-4px);
}


/* Laravel */

.tech-tags span:nth-child(5) {
    color: #ff2d20;
    border-color: rgba(255, 45, 32, 0.45);
}

.tech-tags span:nth-child(5):hover {
    color: #fff;
    background: rgba(255, 45, 32, 0.12);
    box-shadow: 0 0 22px rgba(255, 45, 32, 0.4);
    transform: translateY(-4px);
}


/* Bootstrap */

.tech-tags span:nth-child(6) {
    color: #7952b3;
    border-color: rgba(121, 82, 179, 0.45);
}

.tech-tags span:nth-child(6):hover {
    color: #fff;
    background: rgba(121, 82, 179, 0.12);
    box-shadow: 0 0 22px rgba(121, 82, 179, 0.4);
    transform: translateY(-4px);
}


/* Sass */

.tech-tags span:nth-child(7) {
    color: #cc6699;
    border-color: rgba(204, 102, 153, 0.45);
}

.tech-tags span:nth-child(7):hover {
    color: #fff;
    background: rgba(204, 102, 153, 0.12);
    box-shadow: 0 0 22px rgba(204, 102, 153, 0.4);
    transform: translateY(-4px);
}



/* RESPONSIVE */

@media (max-width: 768px) {

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-box {
        padding: 25px;
    }

    .tech-stack {
        padding: 25px;
    }

}

/* change in btn efect */
.contact-link {
  color: rgb(156, 155, 155);
}

/* =========================================================
   THEME SYSTEM
   Keep content wording unchanged. Component colors are token-driven so
   the same elements remain readable in both dark and light themes.
========================================================= */
html {
    color-scheme: dark;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--scroll-track);
}

html[data-theme="light"] {
    color-scheme: light;

    --bg: #f4f7fb;
    --surface: rgba(255,255,255,.86);
    --surface-strong: #ffffff;
    --line: rgba(23,35,50,.14);
    --text: #17212f;
    --muted: #526173;
    --accent: #087f5b;
    --accent-2: #5367d9;
    --shadow: 0 24px 70px rgba(35,50,70,.14);

    --text-strong: #17212f;
    --text-secondary: #465568;
    --text-soft: #5f6b7a;
    --text-subtle: #596777;
    --text-faint: rgba(23,35,50,.62);
    --text-on-accent: #ffffff;
    --outline-stroke: rgba(23,33,47,.58);

    --header-background: linear-gradient(to bottom, rgba(244,247,251,.98), rgba(244,247,251,.92));
    --header-border: rgba(23,35,50,.10);
    --brand-mark-background: rgba(255,255,255,.92);
    --surface-glass: rgba(255,255,255,.72);
    --surface-hover: rgba(23,35,50,.07);
    --surface-card: linear-gradient(145deg, rgba(255,255,255,.97), rgba(255,255,255,.78));
    --surface-panel: rgba(255,255,255,.94);
    --surface-chip: rgba(255,255,255,.94);
    --surface-nav: rgba(255,255,255,.94);
    --surface-footer: rgba(232,238,245,.96);
    --surface-input: rgba(245,248,252,.98);
    --surface-input-focus: #ffffff;
    --surface-input-placeholder: rgba(23,35,50,.48);
    --surface-image: #e8eef5;
    --surface-preloader: #f4f7fb;
    --surface-track: #e7edf4;
    --surface-modal: #ffffff;
    --border-soft: rgba(23,35,50,.12);
    --border-control: rgba(23,35,50,.16);
    --border-strong: rgba(23,35,50,.24);
    --control-text: #17212f;
    --button-neutral-background: #17212f;
    --button-neutral-text: #ffffff;
    --button-active-text: #ffffff;
    --nav-link-text: #596777;
    --nav-link-hover-background: rgba(23,35,50,.06);
    --footer-text: rgba(23,35,50,.72);
    --footer-muted: rgba(23,35,50,.62);
    --footer-line: rgba(23,35,50,.18);
    --card-topbar-dot: rgba(23,35,50,.18);
    --card-topbar-text: #647184;
    --input-border: rgba(23,35,50,.16);
    --input-focus-border: rgba(8,127,91,.55);
    --input-text: #17212f;
    --auth-button-background: #17212f;
    --auth-button-text: #ffffff;
    --scroll-track: #e7edf4;
    --scroll-thumb: #0b9a6d;
    --scroll-thumb-hover: #087f5b;
    --code-panel-text: #344256;
    --chip-text: #243244;
    --about-lead: #263447;
    --eyebrow-text: #596777;
    --meta-label-text: #647184;
    --image-caption-text: #647184;
}

html, body {
    background-color: var(--bg);
    color: var(--text);
}

body {
    background:
        radial-gradient(circle at 75% 10%, rgba(124,140,255,.08), transparent 28%),
        radial-gradient(circle at 18% 78%, rgba(97,243,166,.05), transparent 30%),
        var(--bg);
    transition: background-color .25s ease, color .25s ease;
}

html[data-theme="light"] body {
    background:
        radial-gradient(circle at 75% 10%, rgba(83,103,217,.075), transparent 30%),
        radial-gradient(circle at 18% 78%, rgba(8,127,91,.065), transparent 32%),
        var(--bg);
}

/* Header */
.site-header {
    gap: 24px;
    background: var(--header-background);
    border-bottom: 1px solid var(--header-border);
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.brand { color: var(--text-strong); flex-shrink: 0; }
.brand-mark {
    background: var(--brand-mark-background);
    border-color: var(--line);
}
.brand-text { color: var(--text-strong); }
.brand-text span { color: var(--accent); }
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
}
.header-status { color: var(--text-secondary); }
.header-status .status-dot { flex: 0 0 auto; }
.auth-links { display: flex; align-items: center; gap: 12px; }
.header-actions .login-link,
.header-actions .register-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.header-actions .login-link:hover,
.header-actions .register-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--surface-hover);
    transform: translateY(-1px);
}

/* Shared readable text and outlined heading */
.eyebrow { color: var(--eyebrow-text); }
.outline { -webkit-text-stroke-color: var(--outline-stroke); }
.hero-description,
.mini-stats span,
.about-content p,
.about-meta .meta-label,
.image-caption,
.card-topbar small,
.contact-link,
.skill-number,
.skill-level,
.tech-title,
.auth-header p,
.auth-footer,
.profile-info p { color: var(--muted); }
.about-content .lead { color: var(--about-lead); }
.meta-label { color: var(--meta-label-text); }

/* Buttons */
.btn-primary {
    color: var(--text-on-accent);
    background: var(--accent);
    border-color: var(--accent);
}
.btn-primary:hover { color: var(--text-on-accent); }
.btn-ghost {
    color: var(--text);
    background: var(--surface-glass);
}
.btn-ghost:hover {
    color: var(--text-strong);
    background: var(--surface-hover);
}

/* Cards, chips and code panel */
.visual-card {
    border-color: var(--border-soft);
    background: var(--surface-card);
    box-shadow: var(--shadow);
}
.card-topbar span { background: var(--card-topbar-dot); }
.card-topbar small { color: var(--card-topbar-text); }
.image-wrap { background: var(--surface-image); }
.floating-chip {
    background: var(--surface-chip);
    border-color: var(--border-soft);
    color: var(--chip-text);
    box-shadow: var(--shadow);
}
.code-panel {
    background: var(--surface-panel);
    border-color: var(--border-soft);
    color: var(--code-panel-text);
    box-shadow: var(--shadow);
}
.visual-orbit { border-color: var(--border-soft); }
.orbit-two { border-color: color-mix(in srgb, var(--accent) 22%, transparent); }

/* Navigation and footer */
.floating-nav {
    background: var(--surface-nav);
    border-color: var(--border-soft);
    box-shadow: var(--shadow);
}
.nav-link { color: var(--nav-link-text); }
.nav-link:hover {
    color: var(--text-strong);
    background: var(--nav-link-hover-background);
}
.nav-link.active {
    color: var(--button-active-text);
    background: var(--accent);
}
.site-footer {
    background: var(--surface-footer);
    border-top-color: var(--border-soft);
    color: var(--text);
}
.social-link {
    color: var(--footer-text);
    border-color: var(--border-control);
    background: var(--surface-glass);
}
.social-link:hover {
    color: var(--text-strong);
    border-color: var(--border-strong);
    background: var(--surface-hover);
}
.footer-line { background: var(--footer-line); }
.copyright { color: var(--footer-muted); }

/* Form and account pages */
.auth-card,
.profile-card {
    background: var(--surface-panel);
    color: var(--text);
    border-color: var(--border-soft);
    box-shadow: var(--shadow);
}
.auth-header h1,
.profile-info h1,
.skills-box h3,
.skill-name { color: var(--text-strong); }
.auth-header p,
.auth-footer { color: var(--muted); }
.form-group label { color: var(--text-secondary); }
.form-group input,
.profile-upload input[type="file"] {
    background: var(--surface-input);
    border-color: var(--input-border);
    color: var(--input-text);
}
.form-group input:focus {
    background: var(--surface-input-focus);
    border-color: var(--input-focus-border);
}
.form-group input::placeholder { color: var(--surface-input-placeholder); }
.auth-button {
    background: var(--auth-button-background);
    color: var(--auth-button-text);
}
.auth-footer a { color: var(--accent); }
.logout-button,
.profile-upload button {
    color: var(--text);
    border-color: var(--border-control);
    background: var(--surface-glass);
}
.logout-button:hover,
.profile-upload button:hover { background: var(--surface-hover); }
.profile-image {
    background: var(--surface-glass);
    border-color: var(--border-control);
    color: var(--text);
}
.messages-button {
    color: var(--accent);
    border-color: var(--accent);
}
.messages-button:hover {
    background: var(--accent);
    color: var(--text-on-accent);
}
.form-error { color: var(--error); }

/* Skills and technology cards */
.skills-box,
.tech-stack {
    background: var(--surface-glass);
    border-color: var(--border-soft);
    color: var(--text);
}
.skills-box:hover,
.tech-stack:hover { border-color: var(--border-strong); }
.skills-box h3,
.skill-name { color: var(--text-strong); }
.skills-label,
.tech-title span { color: var(--accent); }
.skill-item { border-top-color: var(--border-soft); }
.skill-number,
.skill-level { color: var(--text-subtle); }
.tech-tags span { background: var(--surface-glass); }
.skills-icon {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 32%, transparent);
    background: color-mix(in srgb, var(--accent) 7%, transparent);
}

/* Preloader and scroll bar */
#preloader { background: var(--surface-preloader); }
.loader-logo { color: var(--accent); }
.loader-text { color: var(--text-strong); }
.loader-text span { color: var(--accent); }
.loader-status { color: var(--text-faint); }
.loader-bar { background: var(--border-soft); }
.loader-progress { background: var(--accent); }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border-color: var(--scroll-track);
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 40%, transparent);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--scroll-thumb-hover);
    box-shadow: 0 0 15px color-mix(in srgb, var(--accent) 50%, transparent);
}

/* SweetAlert */
.swal2-popup {
    background: var(--surface-modal) !important;
    color: var(--text-strong) !important;
    border: 1px solid var(--border-soft) !important;
}
.swal2-title { color: var(--accent) !important; }
.swal2-html-container { color: var(--muted) !important; }
.swal2-confirm {
    background: var(--accent) !important;
    color: var(--text-on-accent) !important;
}

/* Theme switch: the button stays in the header flow, not as a floating overlay. */
.theme-toggle {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 8px 22px rgba(0,0,0,.10);
    backdrop-filter: blur(14px);
    font: 600 12px/1 Inter, system-ui, sans-serif;
    cursor: pointer;
    margin: 0;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.theme-toggle i { color: var(--accent); font-size: 15px; }
.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: var(--surface-hover);
}
.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Smoothly transition only properties that change with the theme. */
body,
.site-header,
.site-footer,
.floating-nav,
.visual-card,
.code-panel,
.floating-chip,
.contact-card,
.skills-box,
.tech-stack,
.auth-card,
.profile-card,
.theme-toggle,
.brand-mark,
.auth-card input,
.profile-card input,
.social-link {
    transition-property: background-color, color, border-color, box-shadow;
    transition-duration: .25s;
    transition-timing-function: ease;
}

@media (max-width: 900px) {
    .site-header { padding-inline: 5vw; }
    .header-actions { gap: 10px; }
}

@media (max-width: 640px) {
    .site-header {
        padding: 14px 18px;
        gap: 10px;
    }
    .brand { gap: 7px; }
    .brand-mark { width: 32px; height: 32px; }
    .brand-text { font-size: 12px; letter-spacing: .04em; }
    .header-status { display: none; }
    .header-actions { gap: 7px; }
    .header-actions .auth-links { gap: 6px; }
    .header-actions .login-link,
    .header-actions .register-link { min-height: 35px; padding-inline: 8px; font-size: 11px; }
    .theme-toggle { min-height: 36px; padding-inline: 9px; gap: 6px; font-size: 10px; }
    .theme-toggle i { font-size: 13px; }
}

@media (max-width: 390px) {
    .brand-text { font-size: 10px; }
    .brand-mark { width: 29px; height: 29px; }
    .header-actions { gap: 5px; }
    .header-actions .login-link,
    .header-actions .register-link { padding-inline: 6px; font-size: 10px; }
    .theme-toggle { padding-inline: 7px; }
}


/* Final readability fixes: surfaces and foreground colors follow theme tokens. */
.contact-card {
    background: var(--surface-card);
    border-color: var(--border-soft);
    color: var(--text);
}

.contact-card h2 { color: var(--text-strong); }
.contact-card h2 span { color: var(--accent); }

/* Brand tag colors remain intact, but hover text changes with the active theme. */
.tech-tags span:hover {
    color: var(--text-strong);
}

html[data-theme="light"] .tech-tags span:hover {
    color: var(--text-strong);
    border-color: var(--border-strong);
    box-shadow: 0 8px 24px rgba(35, 50, 70, .10);
}

/* Ensure secondary controls and text remain readable in light mode. */
html[data-theme="light"] .header-status,
html[data-theme="light"] .auth-links a,
html[data-theme="light"] .about-meta strong,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .profile-info,
html[data-theme="light"] .auth-logo {
    color: var(--text-strong);
}

html[data-theme="light"] .auth-card,
html[data-theme="light"] .profile-card {
    background: var(--surface-panel);
    color: var(--text);
    border-color: var(--border-soft);
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .profile-upload input[type="file"] {
    background: var(--surface-input);
    color: var(--input-text);
    border-color: var(--input-border);
}

html[data-theme="light"] .form-group input::placeholder {
    color: var(--surface-input-placeholder);
}
