/* ============================================================
   AMRAYU.IO — Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600&display=swap');

/* ---- Variables ---- */
:root {
  --cyan:    #00ffff;
  --green:   #00ff41;
  --pink:    #ff006e;
  --purple:  #8b00ff;
  --gold:    #ffd700;
  --bg:      #0a0a0f;
  --navy:    #0d1117;
  --surface: rgba(13,17,23,0.85);
  --border:  rgba(0,255,255,0.25);
  --text:    #e2e8f0;
  --muted:   #64748b;
  --radius:  4px;
  --glow-cyan:   0 0 10px rgba(0,255,255,0.5), 0 0 40px rgba(0,255,255,0.15);
  --glow-pink:   0 0 10px rgba(255,0,110,0.5), 0 0 40px rgba(255,0,110,0.15);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

h1,h2,h3,h4 { font-family: 'Orbitron', monospace; font-weight: 700; line-height: 1.2; }

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

img { max-width: 100%; display: block; }

/* ---- Matrix Canvas ---- */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
}

/* ---- Scan Line ---- */
.scan-line {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scan 6s linear infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes scan {
  0%   { top: 0; opacity: 1; }
  90%  { opacity: 0.3; }
  100% { top: 100vh; opacity: 0; }
}

/* ---- Layout ---- */
.container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(0,255,255,0.08); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text);
  transition: color 0.2s;
  cursor: pointer;
}
.nav-links a:hover { color: var(--cyan); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cyan);
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: rgba(10,10,15,0.97);
}
.mobile-menu a {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0,255,255,0.08);
  cursor: pointer;
  color: var(--text);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--cyan); background: rgba(0,255,255,0.04); }
.mobile-menu.open { display: flex; }

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

/* ---- Glows & Text ---- */
.glow-cyan  { color: var(--cyan);   text-shadow: var(--glow-cyan); }
.glow-pink  { color: var(--pink);   text-shadow: var(--glow-pink); }
.glow-green { color: var(--green);  text-shadow: 0 0 10px rgba(0,255,65,0.5); }

.hologram-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--pink) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0,255,255,0.3));
}

/* ---- Cyber Border Panel ---- */
.cyber-panel {
  position: relative;
  border: 1px solid var(--border);
  background: rgba(13,17,23,0.6);
  padding: 1.5rem;
  border-radius: var(--radius);
}
.cyber-panel::before,
.cyber-panel::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--cyan);
  border-style: solid;
}
.cyber-panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.cyber-panel::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ---- Cyber Button ---- */
.cyber-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  text-decoration: none;
}
.cyber-btn:hover {
  background: rgba(0,255,255,0.08);
  box-shadow: 0 0 20px rgba(0,255,255,0.2);
}
.cyber-btn.active {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(0,255,255,0.3);
}

/* ---- Section Headings ---- */
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--muted);
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ---- Progress Bar ---- */
.progress-wrap { margin-bottom: 1rem; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ======================================================
   HERO SECTION
   ====================================================== */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-panel { margin-bottom: 2rem; }

.hero-tagline {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  margin-bottom: 0.75rem;
}

.hero-bio { color: var(--muted); margin-bottom: 0.75rem; }

.hero-img-wrap {
  position: relative;
  justify-self: end;
}

.hero-img-frame {
  width: 320px;
  height: 400px;
  overflow: hidden;
  clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
  transform: perspective(1000px) rotateY(-5deg);
}

.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,255,255,0.12), rgba(255,0,110,0.12));
  pointer-events: none;
}

.milestones { margin-top: 2rem; }

.milestones-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.milestones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img-wrap { justify-self: center; order: -1; }
  .hero-img-frame { width: 240px; height: 300px; }
  .milestones-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   PROJECTS SECTION
   ====================================================== */
#projects { background: rgba(13,17,23,0.4); }

.filter-bar {
  display: flex;
  gap: 0.5rem;
  background: rgba(13,17,23,0.7);
  padding: 0.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: rgba(13,17,23,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.project-card:hover {
  border-color: rgba(0,255,255,0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,255,255,0.08);
}

.project-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(0,255,255,0.05), rgba(139,0,255,0.05));
  position: relative;
  overflow: hidden;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.project-card:hover .project-img img { transform: scale(1.06); }

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,255,255,0.08);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-img-overlay { opacity: 1; }

.status-badge {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  padding: 0.2rem 0.6rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 2px;
}
.status-live   { background: var(--green);  color: var(--bg); }
.status-beta   { background: var(--pink);   color: var(--bg); }
.status-alpha  { background: var(--gold);   color: var(--bg); }
.status-dev    { background: var(--purple); color: #fff; }

.prototype-badge {
  position: absolute;
  top: 0.6rem; left: 0.6rem;
  padding: 0.2rem 0.6rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 2px;
  background: rgba(100,116,139,0.85);
  color: #fff;
}

.project-card--prototype {
  opacity: 0.55;
  filter: grayscale(0.6);
  transition: opacity 0.3s, filter 0.3s, border-color 0.3s, transform 0.3s;
}
.project-card--prototype:hover {
  opacity: 0.8;
  filter: grayscale(0.2);
}
.project-card--prototype .project-title {
  color: var(--muted);
}

.prototype-note {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.5rem;
  border-left: 2px solid rgba(100,116,139,0.4);
  padding-left: 0.5rem;
}

.project-body { padding: 1.25rem; }

.project-title {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tech-tag {
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  background: rgba(139,0,255,0.12);
  color: #c084fc;
  border-radius: 2px;
  border: 1px solid rgba(139,0,255,0.2);
}

.project-links {
  display: flex;
  gap: 1rem;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--cyan);
  transition: color 0.2s;
}
.project-link:hover { color: var(--pink); }
.project-link.disabled { color: var(--muted); cursor: not-allowed; pointer-events: none; }

/* ======================================================
   ABOUT SECTION
   ====================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }

.about-text { color: var(--muted); margin-bottom: 1rem; line-height: 1.8; }

.skills-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin: 1.5rem 0 1rem;
}

.about-img {
  width: 100%;
  max-width: 420px;
  height: 460px;
  object-fit: cover;
  object-position: 50% 10%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.about-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-img-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,255,255,0.1), rgba(255,0,110,0.1));
  pointer-events: none;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img  { max-width: 100%; height: 300px; }
}

/* ======================================================
   BLOG SECTION
   ====================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.post-card {
  background: rgba(13,17,23,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.post-card:hover {
  border-color: rgba(0,255,255,0.5);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,255,255,0.07);
}

.post-date {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.post-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.95rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.post-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.post-tag {
  padding: 0.1rem 0.5rem;
  font-size: 0.65rem;
  background: rgba(0,255,255,0.06);
  color: rgba(0,255,255,0.7);
  border: 1px solid rgba(0,255,255,0.15);
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.blog-all-link {
  text-align: center;
  margin-top: 1rem;
}

/* ---- Blog Page (blog.html) ---- */
.blog-page-header {
  padding: 8rem 0 3rem;
  text-align: center;
}

/* ---- Post Page (post.html) ---- */
.post-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
}

.post-page-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s;
  margin-bottom: 2rem;
}
.post-back:hover { color: var(--cyan); }

/* Markdown content styles */
.post-content { line-height: 1.8; }
.post-content h1 { font-size: 1.8rem; color: var(--cyan); margin: 2rem 0 1rem; text-shadow: var(--glow-cyan); }
.post-content h2 { font-size: 1.35rem; color: var(--cyan); margin: 1.75rem 0 0.75rem; }
.post-content h3 { font-size: 1.1rem; color: var(--text); margin: 1.5rem 0 0.5rem; }
.post-content p  { margin-bottom: 1rem; color: var(--muted); }
.post-content ul,
.post-content ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--muted); }
.post-content li { margin-bottom: 0.3rem; }
.post-content strong { color: var(--text); font-weight: 600; }
.post-content em    { color: var(--pink); font-style: italic; }
.post-content code  {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: rgba(0,255,255,0.06);
  color: var(--cyan);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  border: 1px solid rgba(0,255,255,0.15);
}
.post-content pre {
  background: rgba(13,17,23,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
}
.post-content blockquote {
  border-left: 3px solid var(--cyan);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--muted);
  font-style: italic;
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.post-content a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(0,255,255,0.3); }
.post-content a:hover { color: var(--pink); }

/* ======================================================
   CONTACT SECTION
   ====================================================== */
#contact { text-align: center; }

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.2s;
}
.contact-item:hover { color: var(--cyan); }

.contact-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(13,17,23,0.8);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.contact-item:hover .contact-icon {
  background: rgba(0,255,255,0.08);
  border-color: rgba(0,255,255,0.4);
  box-shadow: 0 0 16px rgba(0,255,255,0.15);
}

.contact-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}
.contact-value { font-size: 0.8rem; color: var(--muted); }

.contact-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ======================================================
   FOOTER
   ====================================================== */
footer {
  position: relative;
  padding: 2rem 0 3.5rem;
  border-top: 1px solid rgba(0,255,255,0.12);
  text-align: center;
  overflow: hidden;
  z-index: 2;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.footer-heart { color: var(--pink); }

/* Bullet train */
.train-track {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  height: 2px;
  background: rgba(0,255,255,0.12);
}

.bullet-train {
  position: absolute;
  bottom: 8px;
  left: -120px;
  width: 100px;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--cyan), rgba(0,255,255,0.4));
  border-radius: 4px;
  animation: train 8s linear infinite;
  box-shadow: 0 0 12px rgba(0,255,255,0.4);
}
@keyframes train {
  0%   { left: -120px; }
  100% { left: 110%; }
}

/* ======================================================
   UTILITIES / ANIMATIONS
   ====================================================== */
.text-center { text-align: center; }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.float { animation: float 4s ease-in-out infinite; }

/* Hexagons */
.hex {
  width: 60px; height: 60px;
  background: rgba(0,255,255,0.04);
  border: 1px solid rgba(0,255,255,0.12);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  position: absolute;
  pointer-events: none;
}
.hex-1 { top: 25%; left: 3%; animation: float 5s ease-in-out infinite; }
.hex-2 { top: 40%; right: 5%; animation: float 6s ease-in-out infinite 1s; }
.hex-3 { bottom: 20%; left: 15%; animation: float 7s ease-in-out infinite 2s; }

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

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}

/* Scroll-linked nav highlight */
.nav-links a.active { color: var(--cyan); }
