/* ============================================
   YosefiTechPng — Global Styles
   Modern tech aesthetic | Blue + Dark theme
============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b1220;
  --bg-alt: #0f172a;
  --surface: #111c33;
  --surface-2: #16223d;
  --border: #1f2c4a;
  --text: #e6edf7;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary-2: #60a5fa;
  --accent: #22d3ee;
  --gradient: linear-gradient(135deg, #3b82f6, #22d3ee);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

html { 
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { 
  width: 92%; max-width: 1180px; margin: 0 auto; 
}

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner { 
  display: flex;
  align-items: center; 
  justify-content: space-between; 
  padding: 14px 0; 
}

.logo {
  font-weight: 800; font-size: 1.25rem; letter-spacing: 0.3px;
  color: var(--text); 
  text-decoration: none;
}

.logo span { 
  background: var(--gradient); -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
}

.nav-links { 
  display: flex; 
  gap: 22px; 
}

.nav-links a {
  color: var(--muted); 
  text-decoration: none; 
  font-size: 0.95rem; 
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover { 
  color: var(--primary-2); 
}

.nav-toggle {
  display: none; 
  background: transparent; 
  border: 1px solid var(--border); 
  color: var(--text);
  padding: 6px 12px; 
  border-radius: 8px; 
  font-size: 1.1rem; 
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 90px 0 70px;
  background: radial-gradient(1000px 500px at 20% 0%, 
  rgba(59,130,246,0.18), 
  transparent 60%),
  radial-gradient(800px 500px at 80% 10%, 
  rgba(34,211,238,0.12), 
  transparent 60%);
}

.hero-inner { 
  text-align: center; 
  max-width: 820px; 
  margin: 0 auto; 
}

.eyebrow {
  display: inline-block; 
  padding: 6px 14px; 
  border-radius: 999px;
  background: rgba(59,130,246,0.12); 
  color: var(--primary-2);
  font-size: 0.8rem; 
  font-weight: 600; 
  letter-spacing: 0.5px; 
  margin-bottom: 18px;
}

.hero h1 { 
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; 
  line-height: 1.15; 
  margin-bottom: 14px; 
}

.grad { 
  background: var(--gradient); -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
}

.subtitle { 
  color: var(--primary-2); 
  font-weight: 600; 
  margin-bottom: 14px; 
}

.intro { 
  color: var(--muted); 
  max-width: 640px; 
  margin: 0 auto 28px; 
}

.hero-cta { 
  display: flex; 
  gap: 12px; 
  justify-content: center; 
  flex-wrap: wrap; 
}

/* Buttons */
.btn {
  display: inline-block; 
  padding: 12px 22px; 
  border-radius: 10px;
  font-weight: 600; 
  text-decoration: none; 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.95rem;
}

.btn-primary { 
  background: var(--gradient); 
  color: #fff; 
  box-shadow: 0 8px 20px rgba(59,130,246,0.35); 
}

.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 12px 26px rgba(59,130,246,0.45); 
}

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

.btn-ghost:hover { 
  border-color: var(--primary-2); 
  color: var(--primary-2); 
}

/* Sections */
.section { 
  padding: 80px 0; 
}

.section.alt { 
  background: var(--bg-alt); 
}

.section-title { 
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 8px; 
}

.section-sub { 
  color: var(--muted); 
  margin-bottom: 40px; 
}

.sub-title { 
  margin: 50px 0 20px; 
  font-size: 1.25rem; 
  font-weight: 700; 
}

/* Grid */
.grid { 
  display: grid; 
  gap: 22px; 
}

.grid-2 { 
  grid-template-columns: repeat(2, 1fr); 
}

.grid-3 { 
  grid-template-columns: repeat(3, 1fr); 
}

.grid-4 { 
  grid-template-columns: repeat(4, 1fr); 
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover { 
  transform: translateY(-4px); 
  border-color: var(--primary); 
}

.card h3 { 
  margin-bottom: 8px; font-size: 1.15rem; 
}

.card p { 
  color: var(--muted); 
  font-size: 0.95rem; 
}

.tag {
  display: inline-block; 
  font-size: 0.72rem; 
  font-weight: 700; 
  text-transform: uppercase;
  letter-spacing: 0.5px; 
  color: var(--accent);
  background: rgba(34,211,238,0.1); 
  padding: 4px 10px; 
  border-radius: 999px; 
  margin-bottom: 10px;
}

/* Timeline */
.timeline { 
  position: relative; 
  padding-left: 30px; 
}

.timeline::before {
  content: ''; 
  position: absolute; 
  left: 10px; 
  top: 6px; 
  bottom: 6px;
  width: 2px; 
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.t-item { 
  position: relative; 
  margin-bottom: 24px; 
}

.t-dot {
  position: absolute; 
  left: -28px; 
  top: 22px; 
  width: 16px; 
  height: 16px;
  background: var(--gradient); 
  border-radius: 50%; 
  box-shadow: 0 0 0 4px var(--bg);
}

/* Two column */
.two-col { 
  display: grid; 
  grid-template-columns: 1.2fr 1fr; 
  gap: 40px; 
  align-items: center; 
}

.science-stats { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 16px; 
}

.stat-card {
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: var(--radius);
  padding: 26px; 
  text-align: center;
}

.stat-card h3 { 
  font-size: 2rem; 
  margin-bottom: 6px; 
}

.stat-card p { 
  color: var(--muted); 
  font-size: 0.9rem; 
}

/* Image placeholder cards */
.image-card {
  background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  min-height: 180px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: var(--muted); 
  font-size: 0.9rem; 
  text-align: center; 
  padding: 16px;
  cursor: pointer; 
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease; 
  overflow: hidden;
}

.image-card img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.image-card:hover { 
  border-color: var(--primary-2); 
  color: var(--primary-2); 
  transform: translateY(-3px); 
}

.image-card.small { 
  min-height: 140px; 
  margin-top: 0px;
}

.image-card.small img { 
  min-height: 100%;         
  margin-top: 0px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Awards */
.award-card { 
  display: flex; 
  flex-direction: column; 
}

/* Tools grid */
.tool-card {
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: var(--radius);
  padding: 22px; 
  text-align: center; 
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.tool-card:hover { 
  transform: translateY(-4px); 
  border-color: var(--primary); 
}

.tool-icon { 
  font-size: 2rem; 
  margin-bottom: 10px; 
}

.tool-card h4 { 
  margin-bottom: 4px; 
}

.tool-card p { 
  color: var(--muted); 
  font-size: 0.85rem; 
}

/* Steps */
.steps { 
  display: grid; 
  grid-template-columns: repeat(5, 1fr); 
  gap: 18px; 
}

.step {
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: var(--radius);
  padding: 22px; 
  text-align: center; 
  position: relative;
}

.step-num {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  width: 38px; 
  height: 38px; 
  border-radius: 50%;
  background: var(--gradient); 
  color: #fff; 
  font-weight: 700; 
  margin-bottom: 10px;
}

.step h4 { 
  margin-bottom: 6px; 
}

.step p { 
  color: var(--muted); 
  font-size: 0.88rem; 
}

/* Project */
.project-card .image-card { 
  min-height: 160px; 
  margin-bottom: 14px; 
}

/* Contact */
.contact-wrap { 
  display: grid; 
  grid-template-columns: 1.2fr 1fr; 
  gap: 40px; 
  align-items: center; 
}

.contact-list { 
  list-style: none; 
  margin: 18px 0 24px; 
}

.contact-list li { 
  padding: 8px 0; 
  color: var(--muted); 
}

.contact-card {
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: var(--radius);
  padding: 26px;
}

.contact-card h3 { 
  margin-bottom: 14px; 
}

.contact-card ul { 
  list-style: none; 
}

.contact-card li { 
  padding: 6px 0; 
  color: var(--muted); 
}

/* Footer */
.footer {
  padding: 28px 0; 
  border-top: 1px solid var(--border);
  text-align: center; 
  color: var(--muted); 
  font-size: 0.9rem;
  background: var(--bg-alt);
}

/* Reveal animation */
.reveal { 
  opacity: 0; 
  transform: translateY(20px); 
  transition: opacity 0.7s ease, transform 0.7s ease; 
}

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

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-4 { 
    grid-template-columns: repeat(2, 1fr); 
  }

  .steps { 
    grid-template-columns: repeat(2, 1fr); 
  }

  .two-col, .contact-wrap { grid-template-columns: 1fr; 
  }
}

@media (max-width: 640px) {
  .nav-toggle { 
    display: inline-block; 
  }

  .nav-links {
    display: none; 
    position: absolute; 
    top: 60px; 
    left: 0; 
    right: 0;
    flex-direction: column; 
    gap: 0; 
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border); padding: 10px 20px;
  }

  .nav-links.open { 
    display: flex; 
  }

  .nav-links a { 
    padding: 12px 0; 
    border-bottom: 1px solid var(--border); 
  }

  .nav-links a:last-child { 
    border-bottom: none; 
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; 
  }

  .steps { 
    grid-template-columns: 1fr; 
  }

  .section { 
    padding: 60px 0; 
  }

  .hero { 
    padding: 60px 0 50px; 
  }
}

.circlePhoto {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  margin-top: auto;

}

.circlePhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}