@font-face {
  font-family: 'ITC Handel Gothic Arabic Regular';
  src: url('/fonts/ITC Handel Gothic Arabic Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ITC Handel Gothic Arabic Bold';
  src: url('/fonts/ITC Handel Gothic Arabic Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand Colors */
  --color-primary: #0074ff;
  --color-secondary: #3333bc;
  --color-light: #ffffff;
  --color-dark: #1d1d51;

  /* Extended Palette */
  --color-bg-space: #0b0b2f;
  --color-bg-gradient: linear-gradient(135deg, var(--color-dark) 0%, var(--color-bg-space) 100%);
  --color-text: var(--color-light);
  --color-text-secondary: #b8c5d6;
  --color-text-muted: #8892b0;

  /* Accent Colors */
  --color-accent-blue: #4a9eff;

  /* Planet Colors */
  --planet-design: #f9ca24;
  --planet-programming: #4caf50;
  --planet-art: #f44336;
  --planet-audio: #ff9800;

  /* Fonts */
  --font-family: 'ITC Handel Gothic Arabic Regular', sans-serif;
  --font-family-bold: 'ITC Handel Gothic Arabic Bold', sans-serif;
  --font-size: 1.6rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;

  /* Layout */
  --container-max-width: 1200px;
  --border-radius: 12px;
  --border-radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 116, 255, 0.1);
  --shadow-md: 0 8px 32px rgba(0, 116, 255, 0.15);
  --shadow-lg: 0 16px 64px rgba(0, 116, 255, 0.2);
  --shadow-glow: 0 0 30px rgba(0, 116, 255, 0.3);

  /* Legacy variables for compatibility */
  --grid-gutter: 2rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 62.5%;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

*,
:after,
:before {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

body {
  background: var(--color-bg-gradient);
  line-height: 1.7;
  font-size: var(--font-size);
  color: var(--color-text);
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h3,
h5,
h6 {
  font-family: var(--font-family-bold);
  font-weight: 600;
  margin: 0.35em 0 0.8em;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 2.2em;
  color: var(--color-primary);
  margin-bottom: 0.5em;
}

h5 {
  font-size: 1.1em;
  color: var(--color-text-secondary);
}

h6 {
  font-size: 0.9em;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover:not(.button) {
  color: var(--color-accent-blue, var(--color-primary));
  text-decoration: underline;
}

p {
  margin-top: 0;
  margin-bottom: 1.2em;
  opacity: 0.9;
  font-size: 1.1em;
}

img {
  max-width: 100%;
  filter: drop-shadow(var(--shadow-sm));
  transition: var(--transition);
}

img:hover {
  transform: scale(1.05);
  filter: drop-shadow(var(--shadow-md));
}

.container {
  max-width: 720px;
  margin: var(--space-lg) auto 0;
  width: 96%;
  padding: 0 calc(var(--grid-gutter) / 2);
  position: relative;
}

.row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  margin-left: calc(var(--grid-gutter) / -2);
  margin-right: calc(var(--grid-gutter) / -2);
}

.col {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  margin: 0 calc(var(--grid-gutter) / 2) calc(var(--grid-gutter) / 1.5);
  min-width: 0;
}

.button {
  padding: 1.6rem 2.8rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: var(--font-size);
  line-height: 1.3;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  transform: translateY(0);
  display: inline-block;
  cursor: pointer;
  font-family: var(--font-family-bold);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.button.secondary {
  background: rgba(0, 116, 255, 0.1);
  color: var(--color-text);
  border-color: rgba(0, 116, 255, 0.3);
  box-shadow: var(--shadow-md);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  border-color: var(--color-primary);
  background: rgba(0, 116, 255, 0.15);
}

.button.secondary:hover {
  box-shadow: var(--shadow-glow, var(--shadow-md));
  border-color: var(--color-primary);
}

.button.outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.button.outline.secondary {
  border-color: rgba(0, 116, 255, 0.25);
  color: var(--color-text);
  background: rgba(0, 116, 255, 0.08);
}

.button.outline.secondary:hover {
  background: rgba(0, 116, 255, 0.18);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.button:active:not(:disabled),
[type='button']:active:not(:disabled),
[type='reset']:active:not(:disabled),
[type='submit']:active:not(:disabled),
button:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

::-webkit-input-placeholder {
  color: #bdbfc4;
}

::-moz-placeholder {
  color: #bdbfc4;
}

:-ms-input-placeholder {
  color: #bdbfc4;
}

::-ms-input-placeholder {
  color: #bdbfc4;
}

.nav {
  min-height: 6rem;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  margin-bottom: var(--space-lg);
  background: rgba(0, 116, 255, 0.05);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 116, 255, 0.2);
}

.nav,
.nav .brand,
.nav a,
.nav-center {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.nav-center {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
}

.nav .brand,
.nav a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  color: var(--color-text-secondary);
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  width: auto;
  height: auto;
}

.nav .brand:hover,
.nav a:hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Social media icons specific styling */
.nav a .iconify-inline {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.nav .brand {
  font-family: var(--font-family-bold);
  font-size: 2em;
  padding: 1rem 1.5rem;
  font-weight: 600;
}

.tag {
  display: inline-block;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  text-transform: uppercase;
  color: white;
  padding: 0.6rem 1rem;
  margin-right: 0.5em;
  line-height: 1;
  letter-spacing: 0.8px;
  border-radius: 20px;
  font-family: var(--font-family-bold);
  font-weight: 600;
  font-size: 0.75em;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tag:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.tag.is-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8em;
}

.text-grey {
  color: var(--color-text-secondary) !important;
}

.text-center {
  text-align: center;
}

.is-full-screen {
  width: 100%;
  min-height: 100vh;
}

.is-center,
.is-vertical-align {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.is-center {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.iconify-inline {
  margin: 0;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Icon spacing in buttons */
.button .iconify-inline {
  margin-right: 0.8rem;
  margin-left: 0.8rem;
}

/* Profile Element Styles */
.profileElementLink {
  position: relative;
  overflow: hidden;
}

.profileElementContent {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  padding: 0.4rem 0;
}

.profileElementIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.profileElementIcon .iconify-inline {
  width: 24px;
  height: 24px;
  color: white;
  margin: 0;
}

.profileElementSVG {
  width: 75%;
  height: 75%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light);
}

.profileElementSVG svg {
  width: 75%;
  height: 75%;
  max-width: 32px;
  max-height: 32px;
}

.profileElementSVG svg path {
  fill: currentColor;
}

.profileElementContent h2 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--color-text);
  flex-grow: 1;
  text-align: right;
  font-family: var(--font-family-bold);
}

.profileElementContent .tag {
  margin-left: auto;
  margin-right: 0;
}

/* Enhanced hover effects for profile elements */
.profileElementLink:hover .profileElementIcon {
  transform: scale(1.05);
  background: var(--color-accent-blue);
  box-shadow: var(--shadow-glow);
}

.profileElementLink:hover .profileElementSVG svg {
  transform: scale(1.1);
}

.profileElementLink:hover .profileElementContent h2 {
  color: var(--color-primary);
}

/* Smooth transitions */
.profileElementIcon,
.profileElementSVG svg,
.profileElementContent h2 {
  transition: var(--transition);
}

/* Button focus states */
.button:focus,
.profileElementLink:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.top {
  flex-direction: column;
  padding: 2rem 0;
}

/* Central Spaceship */
.spaceship {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(0, 116, 255, 0.8));
  object-fit: cover;
  border: 3px solid rgba(0, 116, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 116, 255, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

section {
  margin: 0.8em 0 1.5rem;
  padding: 1rem;
}

/* Section header styling */
section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  font-size: 1.4em;
}

.col.link {
  position: relative;
}

/* Nested section styling */
section section {
  padding-right: 2rem;
  margin-left: 1rem;
  border-radius: 0;
}

section section section {
  padding-right: 3rem;
  margin-left: 2rem;
}

/* Page load animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.container>* {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.container>*:nth-child(1) {
  animation-delay: 0.1s;
}

.container>*:nth-child(2) {
  animation-delay: 0.2s;
}

.container>*:nth-child(3) {
  animation-delay: 0.3s;
}

.container>*:nth-child(4) {
  animation-delay: 0.4s;
}

/* Subtle pulse animation for primary elements */
@keyframes pulse {

  0%,
  100% {
    box-shadow: var(--shadow-sm);
  }

  50% {
    box-shadow: var(--shadow-glow, var(--shadow-md));
  }
}

footer {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: rgba(0, 116, 255, 0.05);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 116, 255, 0.2);
}

footer a {
  color: var(--color-primary);
  font-weight: 500;
  transition: var(--transition);
}

footer a:hover {
  color: var(--color-accent-blue, var(--color-primary));
  text-decoration: underline;
}

@media screen and (max-width: 599px) {
  .container {
    width: 100%;
  }

  .col {
    -webkit-box-flex: 0;
    -ms-flex: 0 1 100%;
    flex: 0 1 100%;
    max-width: 100%;
  }

  .profileElementContent {
    gap: 1rem;
  }

  .profileElementIcon {
    width: 36px;
    height: 36px;
  }

  .profileElementIcon .iconify-inline {
    width: 20px;
    height: 20px;
  }

  .profileElementContent h2 {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .nav {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .nav-center {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
}

/* ===== ANIMATED BACKGROUND ===== */
.stars,
.twinkling {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
}

.stars {
  background: #000 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><defs><radialGradient id="star" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:white;stop-opacity:1" /><stop offset="100%" style="stop-color:white;stop-opacity:0" /></radialGradient></defs><circle cx="50" cy="50" r="1" fill="url(%23star)"/><circle cx="150" cy="100" r="0.8" fill="url(%23star)"/><circle cx="250" cy="150" r="1.2" fill="url(%23star)"/><circle cx="100" cy="200" r="0.6" fill="url(%23star)"/><circle cx="200" cy="250" r="1" fill="url(%23star)"/></svg>') repeat;
  animation: move-twink-back 200s linear infinite;
}

.twinkling {
  background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><circle cx="20" cy="20" r="1" fill="white" opacity="0.8"><animate attributeName="opacity" values="0.8;0.2;0.8" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="50" r="0.8" fill="white" opacity="0.6"><animate attributeName="opacity" values="0.6;0.1;0.6" dur="4s" repeatCount="indefinite"/></circle><circle cx="150" cy="80" r="1.2" fill="white" opacity="0.7"><animate attributeName="opacity" values="0.7;0.3;0.7" dur="2.5s" repeatCount="indefinite"/></circle></svg>') repeat;
  animation: move-twink-back 100s linear infinite;
}

@keyframes move-twink-back {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -10000px 5000px;
  }
}