/* ============================================================
   Dinkisa Demeke Worku — Portfolio Stylesheet
   Fonts: Bebas Neue (display) · DM Mono (code/labels) · Syne (body)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg:       #050a0e;
  --surface:  #0b1319;
  --surface2: #101c24;
  --accent:   #00d4ff;
  --accent2:  #00ff9d;
  --accent3:  #ff6b35;
  --text:     #e8f4f8;
  --muted:    #5a7a8a;
  --border:   rgba(0, 212, 255, 0.15);
  --glow:     0 0 40px rgba(0, 212, 255, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ---------- Grid overlay ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Custom Cursor ---------- */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
  mix-blend-mode: screen;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
  mix-blend-mode: screen;
}

/* ---------- Navigation ---------- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(5, 10, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--accent);
  text-decoration: none;
}

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

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(8rem, 20vw, 22rem);
  color: rgba(0, 212, 255, 0.03);
  letter-spacing: 10px;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Animated blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.blob-1 { width: 500px; height: 500px; background: var(--accent);  top: -100px; right: -100px; animation-delay: 0s;  }
.blob-2 { width: 350px; height: 350px; background: var(--accent2); bottom: 0;   left: 10%;    animation-delay: -4s; }
.blob-3 { width: 250px; height: 250px; background: var(--accent3); top: 40%;   right: 30%;   animation-delay: -8s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 30px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-name span { color: var(--accent); }

.hero-title {
  font-family: 'DM Mono', monospace;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--accent2);
  letter-spacing: 2px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(232, 244, 248, 0.7);
  max-width: 600px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
}

/* Buttons */
.btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s;
  cursor: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Hero stats */
.hero-stats {
  position: absolute;
  right: 4rem;
  bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.2s;
  z-index: 1;
}

.stat-item { text-align: right; }

.stat-num {
  font-family: 'Bebas Neue', cursive;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Section Base ---------- */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 4rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 3px;
}

.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 3px;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ---------- Experience ---------- */
#experience { background: var(--surface); }

.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: all 0.3s;
}

.exp-item:last-child { border-bottom: none; }

.exp-item::before {
  content: '';
  position: absolute;
  left: 200px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.exp-item:hover { background: rgba(0, 212, 255, 0.02); }

.exp-meta { padding-right: 2rem; }

.exp-period {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.exp-company {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
}

.exp-loc {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.3rem;
  opacity: 0.7;
}

.exp-body { padding-left: 2rem; }

.exp-role {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.exp-role span { color: var(--accent2); }

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.exp-bullets li {
  font-size: 0.9rem;
  color: rgba(232, 244, 248, 0.7);
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
}

.exp-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 0.25em;
}

/* ---------- Skills ---------- */
#skills { background: var(--bg); }

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

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.skill-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.skill-card:hover::after { transform: scaleX(1); }

.skill-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: block;
}

.skill-cat {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Shared tag style */
.tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 1px;
  padding: 0.3rem 0.7rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 2px;
  color: rgba(232, 244, 248, 0.8);
  transition: all 0.2s;
}

.tag:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Projects ---------- */
#projects { background: var(--surface); }

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

.project-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: var(--glow);
}

.project-card:hover::before { opacity: 1; }

.project-num {
  font-family: 'Bebas Neue', cursive;
  font-size: 4rem;
  color: rgba(0, 212, 255, 0.08);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.project-type {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.88rem;
  color: rgba(232, 244, 248, 0.65);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.project-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.project-link:hover { gap: 0.9rem; }
.project-link::after { content: '→'; }

/* ---------- Certifications ---------- */
#certs { background: var(--bg); }

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

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}

.cert-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.cert-badge {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 157, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.cert-info { flex: 1; }

.cert-issuer {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.cert-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.cert-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
}

/* ---------- Education ---------- */
#education { background: var(--surface); }

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

.edu-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.edu-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent3), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.edu-card:hover { border-color: rgba(0, 212, 255, 0.3); }
.edu-card:hover::after { transform: scaleX(1); }

.edu-period {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.edu-degree {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.edu-field {
  font-size: 0.85rem;
  color: var(--accent2);
  margin-bottom: 0.5rem;
}

.edu-school {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */
#contact { background: var(--bg); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-text h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
}

.contact-text h2 span { color: var(--accent); }

.contact-text p {
  font-size: 1rem;
  color: rgba(232, 244, 248, 0.65);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  padding: 1.2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.3s;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(8px);
}

.contact-link-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-link-text { flex: 1; }

.contact-link-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.contact-link-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-available {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.available-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent2);
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(0, 255, 157, 0); }
}

.available-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.available-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.available-desc {
  font-size: 0.88rem;
  color: rgba(232, 244, 248, 0.65);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.available-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  position: relative;
}

.footer-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.2rem;
  letter-spacing: 3px;
  color: var(--accent);
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav { padding: 1rem 2rem; }
  .nav-links { display: none; }
  #hero { padding: 7rem 2rem 10rem; }
  .hero-stats { right: 2rem; flex-direction: row; bottom: 2rem; gap: 2rem; }
  .section-inner { padding: 4rem 2rem; }
  .exp-item { grid-template-columns: 1fr; }
  .exp-item::before { display: none; }
  .exp-body { padding-left: 0; }
  .edu-grid, .contact-inner { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}