/* == fonts == */

/* arabic */
@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  /* https://fonts.gstatic.com/s/notokufiarabic/v27/CSRk4ydQnPyaDxEXLFF6LZVLKrodrOYFFlKp.woff2 */
  src: url('./assets/fonts/notokufiarabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

/* arabic */
@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  /* https://fonts.gstatic.com/s/notokufiarabic/v27/CSRk4ydQnPyaDxEXLFF6LZVLKrodrOYFFlKp.woff2 */
  src: url('./assets/fonts/notokufiarabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

/* latin */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  /* https://fonts.gstatic.com/s/orbitron/v35/yMJRMIlzdpvBhQQL_Qq7dy0.woff2 */
  src: url('./assets/fonts/orbitron.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  /* https://fonts.gstatic.com/s/orbitron/v35/yMJRMIlzdpvBhQQL_Qq7dy0.woff2 */
  src: url('./assets/fonts/orbitron.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* == end fonts == */

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

:root {
  --bg: #0a0a0f;
  --border: #fff1;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --primary: linear-gradient(135deg, #6333cc, #393393);
  --color-primary: #6333cc;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font: 1.6rem/1.6 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at top, #3c13dc19, transparent 75%),
    repeating-linear-gradient(0deg, #3c13dc19 0, transparent 1px, transparent 100px),
    repeating-linear-gradient(90deg, #3c13dc19 0, transparent 1px, transparent 100px);
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 7rem;
  background: #0a0a0fe6;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font: 700 2rem 'Orbitron', 'Noto Kufi Arabic', sans-serif;
  color: var(--text);
  transition: 0.3s;
}

.brand:hover {
  text-shadow: 0 0 30px rgba(60, 20, 220, 0.4);
}


.brand img {
  width: 4rem;
}

.brand span {
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 24px #fff6;
}

.lang-button {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  background: rgba(60, 20, 220, 0.1);
  padding: 0.8rem 1.6rem;
  border-radius: 0.8rem;
}

.lang-button:hover {
  background: rgba(60, 20, 220, 0.3);
}

.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2.4rem;
}

section {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2.4rem, 3vw, 5.6rem);
  padding-top: 7rem;
  padding-bottom: 4rem;
}

h1 {
  font: 900 clamp(3.2rem, 6vw, 6.4rem)/1.1 'Orbitron', 'Noto Kufi Arabic', monospace;
  margin-bottom: 2.4rem;
}

.highlight {
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.8rem;
  color: var(--muted);
  margin-bottom: 3.2rem;
}

.btn-group {
  display: flex;
  gap: 1.6rem;
  margin-bottom: 3.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.6rem 3.2rem;
  border-radius: 1.2rem;
  font: 600 1.4rem 'Inter', sans-serif;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: #060609;
  box-shadow: 0 4px 15px rgba(60, 20, 220, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(60, 20, 220, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-icon {
  width: 1.8rem;
  height: 1.8rem;
}

.socials {
  display: flex;
  gap: 1.6rem;
}

.socials a {
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  transition: 0.3s;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.socials svg {
  width: 2.4rem;
  height: 2.4rem;
  fill: currentColor;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wrap img {
  width: clamp(18rem, 22vw + 4rem, 32rem);
  max-width: 85vw;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(-10px);
  }

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

.section-header {
  text-align: center;
  margin-bottom: 6.4rem;
}

h2 {
  font: 700 clamp(2.8rem, 5vw, 4.8rem)/1.2 'Orbitron', 'Noto Kufi Arabic', monospace;
  margin-bottom: 1.6rem;
}

.icon {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
}

.icon svg {
  width: 3rem;
  height: 3rem;
  stroke: #000;
}

h3 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.projects {
  background: #111;
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50rem 12rem at 50% -5%, rgba(60, 20, 220, 0.1), transparent);
}

.projects .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: clip;
}


.projects .container::before,
.projects .container::after {
  content: '';
  position: absolute;
  width: 8rem;
  height: 8rem;
  border-radius: 1rem;
  pointer-events: none;
  z-index: 0;
}

.projects .container::before {
  top: -4rem;
  left: -4rem;
  box-shadow: 0 0 0 1px rgba(100, 120, 200, 0.35) inset, 0 0 28px rgba(100, 120, 200, 0.18);
  transform: rotate(45deg);
}

.projects .container::after {
  bottom: -4rem;
  right: -4rem;
  box-shadow: 0 0 0 1px rgba(80, 60, 180, 0.35) inset, 0 0 28px rgba(80, 60, 180, 0.18);
  transform: rotate(45deg);
}

.projects .section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
}

.projects .section-title::after {
  content: '';
  position: absolute;
  width: 180%;
  height: 2px;
  background: var(--primary);
  bottom: -10px;
  left: -40%;
  border-radius: 1px;
  filter: drop-shadow(0 0 8px var(--color-primary));
}

.projects .section-header {
  position: relative;
  z-index: 2;
  margin-bottom: 4rem;
}

.project {
  position: relative;
  background: rgba(16, 18, 26, 0.85);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  overflow: hidden;
  max-width: 45rem;
  margin: 0 auto;
  transition: 0.4s;
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 32px rgba(20, 20, 40, 0.35);
}

.project-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.status {
  background: rgba(0, 0, 0, 0.7);
  color: #22c55e;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 1rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.project-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.7s;
}

.project:hover .project-img img {
  transform: scale(1.05);
}

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

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  background: rgba(30, 35, 50, 0.5);
  color: rgba(160, 180, 220, 0.9);
  padding: 0.3rem 0.7rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  border: 1px solid rgba(100, 120, 200, 0.25);
}

.project-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.project-platforms {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  font-family: monospace;
  margin-bottom: 1.5rem;
}

.project-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(100, 120, 200, 0.2), rgba(80, 60, 180, 0.2), rgba(100, 120, 200, 0.2));
  margin: 1rem 0 1.5rem;
}

.link {
  color: rgba(100, 140, 220, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: 0.3s;
}

.link:hover {
  color: rgba(100, 140, 220, 1);
}

.link span {
  margin-left: 0.6rem;
}

#connect {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  gap: 3.2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 1.6rem;
}

.social-card {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.6rem;
  text-decoration: none;
  transition: 0.3s;
}

.social-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.social-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon.x {
  background: linear-gradient(135deg, #000, #333);
}

.social-icon.discord {
  background: linear-gradient(135deg, #5865f2, #4752c4);
}

.social-icon.github {
  background: linear-gradient(135deg, #24292e, #1a1e22);
}

.social-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.social-info {
  flex: 1;
}

.platform {
  display: block;
  font-weight: 500;
  font-size: 1.4rem;
}

.handle {
  display: block;
  color: var(--muted);
  font-size: 1.3rem;
}

.primary-contact {
  background: linear-gradient(135deg, rgba(60, 20, 220, 0.08), rgba(128, 0, 255, 0.05));
  border: 1px solid rgba(60, 20, 220, 0.4);
  border-radius: 1.6rem;
  padding: 3.2rem;
}

.contact-title {
  font-size: 2.4rem;
  margin-bottom: 2.4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(46, 35, 224, 0.2);
}

.contact-box {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  height: 6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(60, 20, 220, 0.25);
  border-radius: 1.2rem;
  padding: 1.6rem;
  margin-bottom: 1.5rem;
  transition: 0.3s;
}

.contact-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(60, 20, 220, 0.6);
}

.contact-text {
  color: var(--text);
  text-decoration: none;
  flex: 1;
  font: bold 1.6rem 'Orbitron', monospace;
}

.contact-icon {
  color: var(--text);
  background: rgba(60, 20, 220, 0.1);
  border: 1px solid rgba(60, 20, 220, 0.3);
  border-radius: 0.8rem;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 2rem;
  height: 2rem;
}

@media (max-width: 448px) {
  .primary-contact {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .contact-icon {
    display: none;
  }
}

.response-time {
  font-size: 1.4rem;
  color: var(--muted);
  font-style: italic;
}

footer {
  background: linear-gradient(135deg, #111 0%, rgba(12, 15, 20, 0.98) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  width: 8rem;
}

.footer-info h3 {
  font: 700 2rem 'Orbitron', 'Noto Kufi Arabic', monospace;
  letter-spacing: 0.05em;
}

.tagline {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
  }

  .btn-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .socials {
    justify-content: center;
  }

  .logo-wrap img {
    width: 20rem;
  }

  .features,
  .social-grid {
    grid-template-columns: 1fr;
  }

}
