/* ============================================================
   style.css — Tulu Bekele Portfolio
   Edit colours in :root to reskin the whole site instantly.
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --bg:          #1e2a3a;
  --surface:     #273449;
  --surface2:    #30405a;
  --border:      rgba(255, 255, 255, 0.13);
  --accent:      #4f9cf9;
  --accent2:     #7bb8fc;
  --accent-glow: rgba(79, 156, 249, 0.28);
  --text:        #eaf0fa;
  --text-muted:  #c0cfe8;
  --text-dim:    #8da0bc;
  --heading:     #ffffff;
  --tag-bg:      rgba(79, 156, 249, 0.16);
  --tag-border:  rgba(79, 156, 249, 0.38);
  --radius:      12px;
  --radius-lg:   20px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-weight: 400;
  font-size: 16px;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; color: var(--heading); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
p { color: var(--text-muted); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ══════════════════════════════
   NAVIGATION
══════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.85rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 42, 58, 0.93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--heading); }
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em; transition: color 0.2s; }
.nav-links a:hover { color: var(--heading); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.35rem !important;
  border-radius: 99px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  font-size: 0.88rem !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--accent2) !important; transform: translateY(-1px); }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 99px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 20px var(--accent-glow); }
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid rgba(255, 255, 255, 0.28); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); transform: translateY(-2px); }

/* ══════════════════════════════
   SECTION SHARED
══════════════════════════════ */
section { padding: 5.5rem 2.5rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}
.section-label::before { content: ''; width: 22px; height: 2px; background: var(--accent2); border-radius: 2px; }

h2.section-title { font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin-bottom: 3rem; line-height: 1.7; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Keyframes */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse  { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5.5rem 2.5rem 3.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e2a3a 0%, #22304a 55%, #1e2d46 100%);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 70% 40%, rgba(79, 156, 249, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 5%  85%, rgba(123, 184, 252, 0.08) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 40%, black 10%, transparent 70%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--tag-bg); border: 1px solid var(--tag-border); border-radius: 99px;
  padding: 0.4rem 1rem; font-size: 0.8rem; color: var(--accent2);
  letter-spacing: 0.07em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 1.25rem; animation: fadeUp 0.6s ease both;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; animation: pulse 2s infinite;
}

/* Name / title / tagline */
h1.hero-name {
  font-size: clamp(2.8rem, 5.5vw, 5rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.02; color: #fff;
  margin-bottom: 0.6rem; animation: fadeUp 0.6s 0.1s ease both;
}
h1.hero-name .accent { color: var(--accent2); }

.hero-title {
  font-family: 'Syne', sans-serif; font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600; color: #ccdcf5; margin-bottom: 1rem;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-tagline {
  font-size: 1.05rem; color: #b5cae8; font-weight: 400;
  max-width: 480px; margin-bottom: 2rem; line-height: 1.75;
  animation: fadeUp 0.6s 0.3s ease both;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.6s 0.4s ease both; }

/* Right panel */
.hero-panel {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  animation: fadeUp 0.8s 0.25s ease both; width: 290px;
}

/* Profile photo circle */
.profile-photo-wrap {
  width: 190px; height: 190px; border-radius: 50%;
  background: var(--surface2);
  border: 3px solid var(--accent);
  box-shadow: 0 0 32px var(--accent-glow);
  overflow: hidden; position: relative; flex-shrink: 0; cursor: pointer;
}
.profile-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface), var(--surface2)); gap: 0.5rem;
}
.profile-placeholder svg  { opacity: 0.5; }
.profile-placeholder span { font-size: 0.72rem; color: var(--text-dim); text-align: center; line-height: 1.4; }
.photo-hint {
  font-size: 0.76rem; color: var(--accent2); text-align: center;
  background: var(--tag-bg); border: 1px dashed var(--tag-border); border-radius: 8px;
  padding: 0.45rem 1rem; cursor: pointer; transition: background 0.2s; display: block;
}
.photo-hint:hover { background: rgba(79, 156, 249, 0.22); }
#photoInput { display: none; }

/* Stats card */
.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; width: 100%;
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 0.85rem; }
.stat { padding: 0.9rem 1rem; background: var(--surface2); border-radius: var(--radius); border: 1px solid var(--border); text-align: center; }
.stat-num  { font-family: 'Syne', sans-serif; font-size: 1.65rem; font-weight: 800; color: var(--accent2); line-height: 1; margin-bottom: 0.2rem; }
.stat-label{ font-size: 0.77rem; color: var(--text-muted); font-weight: 500; }
.hero-location {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.87rem; color: var(--text-muted); font-weight: 500;
  padding: 0.7rem 1rem; background: var(--surface2);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.hero-location svg { color: var(--accent); flex-shrink: 0; }

/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
#about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

.about-text p { color: var(--text-muted); margin-bottom: 1.1rem; font-size: 1rem; line-height: 1.8; }
.about-text p:first-of-type { color: var(--text); font-size: 1.05rem; }

.about-highlights { display: flex; flex-direction: column; gap: 0.9rem; }
.highlight-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 1.25rem; background: var(--bg);
  border-radius: var(--radius); border: 1px solid var(--border); transition: border-color 0.2s;
}
.highlight-item:hover { border-color: var(--accent); }
.highlight-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--tag-bg); border: 1px solid var(--tag-border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}
.highlight-text h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.2rem; color: var(--heading); }
.highlight-text p  { font-size: 0.84rem; color: var(--text-muted); margin: 0; }

/* ══════════════════════════════
   SKILLS
══════════════════════════════ */
#skills { background: var(--bg); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem; transition: all 0.3s;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.skill-card-icon { font-size: 1.75rem; margin-bottom: 0.85rem; }
.skill-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; color: var(--accent2); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.79rem; padding: 0.3rem 0.82rem; border-radius: 99px;
  background: var(--tag-bg); border: 1px solid var(--tag-border);
  color: var(--text-muted); font-weight: 500;
}

/* ══════════════════════════════
   PROJECTS
══════════════════════════════ */
#projects { background: var(--surface); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

.project-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: all 0.3s;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.35); }

/* Image slot — real image src set in HTML */
.project-image {
  width: 100%; height: 200px;
  overflow: hidden; position: relative;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.project-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.project-card:hover .project-image img { transform: scale(1.04); }

/* Shown when no real image is set (img src is empty) */
.project-image-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--surface2);
}
.project-image-placeholder svg   { opacity: 0.35; }
.project-image-placeholder span  { font-size: 0.76rem; color: var(--text-dim); font-weight: 500; }

.project-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.project-num  { font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 800; color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; }
.project-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--heading); }
.project-card p  { font-size: 0.9rem; color: var(--text-muted); flex: 1; line-height: 1.65; }
.project-footer  { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tech {
  font-size: 0.73rem; padding: 0.22rem 0.65rem; border-radius: 4px;
  background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); font-weight: 500;
}
.project-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; color: var(--accent2); font-weight: 600;
  margin-top: 0.25rem; transition: color 0.2s;
}
.project-link:hover { color: var(--accent); }
.project-link svg { flex-shrink: 0; }

/* ══════════════════════════════
   EXPERIENCE
══════════════════════════════ */
#experience { background: var(--bg); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--accent), rgba(79,156,249,0.1)); border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 2.75rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -2.45rem; top: 0.25rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); border: 2.5px solid var(--bg); box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-role  { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--heading); margin-bottom: 0.3rem; }
.timeline-meta  { font-size: 0.87rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.85rem; font-weight: 500; }
.timeline-current {
  background: rgba(74,222,128,0.15); color: #4ade80;
  padding: 0.15rem 0.65rem; border-radius: 99px; font-size: 0.72rem; font-weight: 700;
  border: 1px solid rgba(74,222,128,0.35); letter-spacing: 0.06em; text-transform: uppercase;
}
.timeline-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem 1.5rem; }
.timeline-body ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.timeline-body ul li { font-size: 0.93rem; color: var(--text-muted); padding-left: 1.1rem; position: relative; line-height: 1.65; }
.timeline-body ul li::before { content: '›'; position: absolute; left: 0; color: var(--accent); font-weight: 700; font-size: 1rem; }

/* ══════════════════════════════
   EDUCATION
══════════════════════════════ */
#education { background: var(--surface); }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.edu-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; transition: border-color 0.2s;
}
.edu-card:hover { border-color: var(--accent); }
.edu-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.edu-card h3   { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; }
.edu-card .school  { font-size: 0.9rem; color: var(--accent2); margin-bottom: 0.4rem; font-weight: 600; }
.edu-card .detail  { font-size: 0.88rem; color: var(--text-muted); }
.cert-list { margin-top: 0.85rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cert-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.cert-item::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
#contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h3 { font-size: 1.15rem; margin-bottom: 1.25rem; }
.contact-items { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.93rem; color: var(--text-muted); font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.contact-item:hover { border-color: var(--accent); color: var(--text); }
.contact-item-icon {
  width: 38px; height: 38px; background: var(--tag-bg); border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.form-group input,
.form-group textarea {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1rem;
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  outline: none; transition: border-color 0.2s; resize: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  padding: 2.25rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  background: var(--surface);
}
.foot-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; color: var(--heading); }
.foot-logo span { color: var(--accent); }
footer p { font-size: 0.85rem; color: var(--text-dim); }
.foot-links { display: flex; gap: 1.5rem; }
.foot-links a { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; transition: color 0.2s; }
.foot-links a:hover { color: var(--accent2); }

/* Theme toggle button */
.theme-toggle {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; z-index: 50; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.theme-toggle:hover { border-color: var(--accent); transform: scale(1.08); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { width: 100%; flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: 1.5rem; }
  .profile-photo-wrap { width: 140px; height: 140px; }
  .hero-card { flex: 1; min-width: 240px; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(30, 42, 58, 0.98);
    padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); gap: 1rem;
  }
}
@media (max-width: 640px) {
  section { padding: 4rem 1.25rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-panel { flex-direction: column; align-items: center; }
  .profile-photo-wrap { width: 160px; height: 160px; }
  .hero-card { width: 100%; }
}
