:root {
  --bg: #0f172a;
  --surface: #111827;
  --accent: #8b5cf6;
  --accent-muted: #350899;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  transition: background 0.4s linear;
  margin: 0;
  padding: 0;
}

h2 {
  font-size: 1.9rem;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 40px;
}

.section-hidden {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(3px);
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

section {
  transition: 
    opacity 1s ease,
    transform 1s ease,
    filter 1s ease;
}



a.resumeButton{
  text-decoration: none;
  padding: 10px 10px;
  background-color: var(--accent);
  color: var(--text);
  border-radius: 10px;
}

a.resumeButton:hover {background-color: var(--accent-muted)}

.socials{
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 2rem;
  margin-top: 20px;
}

.fa{
  color: var(--text-muted);
}
.fa:hover{
  color: var(--text);
}

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

.highlight:hover{
  color: var(--text);
  background-color: var(--accent)
}

.helloworld {
  margin-top: 10%;
  color: var(--text);
  font-size: 2.8rem;
  font-family: "IBM Plex Mono", monospace;
  text-shadow: 0 0 20px rgba(139,92,246,0.25);
  text-align: center;
  min-height: 1.2em; 
}

@keyframes float {
  0%   { transform: translateY(-10px); }
  50%  { transform: translateY(10px); }
  100% { transform: translateY(-10px); }
}

.about {
  min-height: 100vh;
  max-width: 750px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  position: relative;
}

.about.section-hidden {
  opacity: 0;
  transform: translateY(-60px);
}

.about::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.18), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}

.portfolio-section {
  width: 80%;
  margin: 80px auto;
  padding: 20px;
  background: var(--surface);
  border: 2px solid #1f2937;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.portfolio-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portfolio-card {
  opacity: 0;
  transform: translateX(0);
  transition: 
    transform 2s cubic-bezier(.2,.65,.3,1),
    opacity 2.5s ease;
  will-change: transform, opacity;
}

.fly-left {
  transform: translateX(-150px);
}

.fly-right {
  transform: translateX(150px);
}

.portfolio-card.show {
  opacity: 1;
  transform: translateX(0);
}

.portfolio-card img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.portfolio-card iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 8px;
}

.youtube-lite {
  position: relative;
  cursor: pointer;
  background-color: #000;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  overflow: hidden;
}

.youtube-lite::before {
  content: '';
  display: block;
  padding-bottom: 56.25%;
}

.youtube-lite::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>') no-repeat;
  transition: opacity 0.3s;
}

.youtube-lite:hover::after {
  opacity: 0.8;
}

.youtube-lite iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .helloworld {
    font-size: 2rem;
  }

  .about {
    font-size: 1rem;
    padding: 0 15px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .portfolio-section {
    width: 90%;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .helloworld {
    font-size: 1.6rem;
  }

  .socials {
    font-size: 1.5rem;
  }
}

.timeline {
  position: relative;
  width: 80%;
  margin: 0 auto;
  padding-bottom: 5vh;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px; 
  top: 0;
  bottom: 0;
  width: 2px;
  background: #2a2f45;
}

.timeline-item {
  opacity: 0.25;
  filter: blur(2px);
  transform: scale(0.98);
  transition: all 0.5s ease;
}

.timeline-item.active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.timeline-item.active .timeline-content {
  border-color: rgba(139, 92, 246, 0.5);
}

.timeline-item.active .even {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.timeline ul {
  margin: 0;
  padding-left: 34px;
  list-style-position: outside;
  list-style-type: disc;
  border-radius: 15px;
}

.timeline li::marker {
  color: #8b5cf6;
  font-size: 2rem;
}

.timeline-content {
  background: #111827;
  border: 2px solid #1f2937;
  padding: 16px 18px;
  border-radius: 10px;
  transition: border 0.2s ease, transform 0.15s ease;
  font-family: "Noto Kufi Arabic", sans-serif;
}

.even {
  border-color: #8b5cf6;
}

.timeline-content time {
  display: block;
  font-size: 1.05rem;
  color: #9ca3af;
  margin-bottom: 6px;
  font-family: "Zalando Sans", sans-serif;
}

.quote {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--text);
}

.quote-author {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.quote-author span {
  color: var(--accent);
}

@media (max-width: 768px) {
  .timeline {
    width: 90%;
  }

  .timeline ul {
    padding-left: 24px;
  }

  .timeline-content {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}

.site-footer {
  margin-top: 120px;
  padding: 60px 20px 40px;
  background: var(--surface);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  text-align: center;
}

.footer-quote {
  max-width: 700px;
  margin: 0 auto 30px;
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
}

.footer-quote .quote-text {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-quote .quote-author-footer {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: normal;
}

.footer-signature {
   font-family: "Homemade Apple", cursive;
  font-size: 1.5rem;
  color: var(--accent);
  margin: 30px 0 20px;
  opacity: 0.9;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 40px 15px 30px;
  }

  .footer-quote {
    font-size: 1rem;
  }

  .footer-signature {
    font-size: 1.8rem;
  }
}