/*
Theme Name: Ronny Zahavi
Theme URI: https://ronnyzahavi.com
Author: Ronny Zahavi
Author URI: https://www.linkedin.com/in/ronny-zahavi/
Description: Personal portfolio theme for Ronny Zahavi, Principal Technical Program Manager.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ronny-zahavi
*/

  :root {
    --navy:   #07111f;
    --blue:   #0f2a52;
    --mid:    #1a4080;
    --accent: #2563eb;
    --bright: #60a5fa;
    --pale:   #e0ebff;
    --silver: #f0f5ff;
    --white:  #ffffff;
    --text:   #1e293b;
    --muted:  #5a7294;
    --border: #d0e0f8;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Outfit', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; line-height: 1.65; }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 6%;
    background: rgba(7,17,31,0.93);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(96,165,250,0.15);
  }
  .logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; font-weight: 700; color: #fff;
    letter-spacing: 0.04em;
  }
  .logo span { color: var(--bright); }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    text-decoration: none; color: rgba(255,255,255,0.68);
    font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--bright); }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    background: linear-gradient(145deg, var(--navy) 0%, #0b1d3a 50%, #0f2a5a 100%);
    display: flex; align-items: center;
    padding: 120px 6% 80px;
    position: relative; overflow: hidden;
  }
  .hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
      linear-gradient(rgba(96,165,250,0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(96,165,250,0.07) 1px, transparent 1px);
    background-size: 64px 64px;
  }
  .hero-glow {
    position: absolute; right: -10%; top: 10%;
    width: 650px; height: 650px; border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 65%);
    pointer-events: none;
  }
  .hero-inner {
    position: relative; max-width: 1100px; width: 100%;
    display: flex; align-items: center; gap: 4rem;
    animation: fadeUp 0.85s cubic-bezier(0.22,1,0.36,1) both;
  }
  .hero-text { flex: 1; }
  .hero-photo {
    flex-shrink: 0; width: 260px; height: 260px;
    border-radius: 50%; overflow: hidden;
    border: 4px solid rgba(96,165,250,0.4);
    box-shadow: 0 0 60px rgba(37,99,235,0.35);
  }
  .hero-photo img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center 20% !important; transform: scale(1.5) translateY(-5%) !important; transform-origin: center top !important; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(37,99,235,0.18);
    border: 1px solid rgba(96,165,250,0.35);
    border-radius: 100px; padding: 0.38rem 1.1rem;
    font-size: 0.73rem; font-weight: 600;
    color: var(--bright); letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 1.6rem;
  }
  .hero-badge::before { content: ''; }
  .hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 600; line-height: 1.08;
    color: #fff; letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
  }
  .hero h1 em { font-style: normal; color: var(--bright); }
  .hero-title {
    font-size: 1.05rem; font-weight: 400;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.06em; text-transform: uppercase;
    margin-bottom: 1.8rem;
  }
  .hero-bio {
    font-size: 1.05rem; color: rgba(255,255,255,0.72);
    max-width: 640px; line-height: 1.8;
    margin-bottom: 2.5rem;
  }
  .hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
  .hero-icon-link {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1.5px solid rgba(96,165,250,0.45);
    color: rgba(255,255,255,0.75);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  }
  .hero-icon-link:hover {
    background: rgba(37,99,235,0.25);
    border-color: var(--bright);
    color: #fff;
    transform: translateY(-2px);
  }
  .btn-primary {
    background: var(--accent); color: #fff;
    padding: 0.82rem 2rem; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 20px rgba(37,99,235,0.45);
    transition: background 0.2s, transform 0.2s;
  }
  .btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); }
  .btn-ghost {
    border: 1.5px solid rgba(96,165,250,0.4); color: var(--bright);
    padding: 0.82rem 2rem; border-radius: 8px;
    text-decoration: none; font-weight: 500; font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
  }
  .btn-ghost:hover { border-color: var(--bright); background: rgba(96,165,250,0.08); }
  .hero-stats {
    display: flex; gap: 2.5rem; flex-wrap: wrap;
    margin-top: 2.5rem;
    animation: fadeUp 1s 0.3s cubic-bezier(0.22,1,0.36,1) both;
  }
  .stat-item { text-align: center; }
  .stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem; font-weight: 700; color: var(--bright);
    line-height: 1;
  }
  .stat-label {
    font-size: 0.72rem; color: rgba(255,255,255,0.45);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-top: 0.3rem;
  }

  /* ── SECTION BASE ── */
  section { padding: 100px 6%; }
  .section-label {
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 0.7rem;
  }
  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600; color: var(--navy);
    line-height: 1.15; margin-bottom: 1rem;
  }
  .section-sub { font-size: 1rem; color: var(--muted); max-width: 580px; }
  .divider {
    width: 48px; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--bright));
    border-radius: 4px; margin: 1.2rem 0 2.8rem;
  }

  /* ── HIGHLIGHTS (signature achievements) ── */
  .highlights { background: var(--silver); }
  .highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-top: 0;
  }
  .highlight-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px; padding: 0;
    position: relative; overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
  }
  .highlight-img {
    width: 100%; height: 110px; object-fit: cover;
    display: block; border-radius: 14px 14px 0 0;
  }
  .highlight-body { padding: 1.5rem 1.8rem 1.8rem; }
  .highlight-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--bright));
  }
  .highlight-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(37,99,235,0.12); }

  .highlight-card h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
  .highlight-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

  /* ── EXPERIENCE ── */
  .experience { background: var(--white); }
  .exp-timeline { position: relative; padding-left: 2rem; }
  .exp-timeline::before {
    content: '';
    position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--pale));
    border-radius: 2px;
  }
  .exp-item {
    position: relative; padding-bottom: 3rem;
    animation: fadeUp 0.5s ease both;
  }
  .exp-item::before {
    content: '';
    position: absolute; left: -2rem; top: 5px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
    transform: translateX(-5px);
  }
  .exp-header { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; align-items: center; margin-bottom: 0.3rem; }
  .exp-logo {
    width: 32px; height: 32px; border-radius: 7px;
    object-fit: contain; background: #fff;
    padding: 3px; flex-shrink: 0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.12);
  }
  .exp-company { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
  .exp-role { font-size: 0.85rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
  .exp-meta { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
  .exp-sub { font-size: 0.78rem; color: var(--muted); font-style: italic; font-weight: 400; width: 100%; margin-top: -0.2rem; }
  .exp-bullets { margin-top: 0.8rem; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
  .exp-bullets li {
    font-size: 0.9rem; color: var(--text);
    padding-left: 1.2rem; position: relative; line-height: 1.6;
  }
  .exp-bullets li::before {
    content: '→'; position: absolute; left: 0;
    color: var(--accent); font-size: 0.8rem;
  }
  .exp-tag {
    display: inline-block; margin-top: 0.8rem;
    background: var(--pale); color: var(--accent);
    border-radius: 100px; padding: 0.25rem 0.9rem;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  }

  /* ── SKILLS ── */
  .skills { background: var(--silver); }
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }
  .skill-group {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.8rem;
    transition: box-shadow 0.25s;
  }
  .skill-group:hover { box-shadow: 0 8px 30px rgba(37,99,235,0.1); }
  .skill-group-title {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
  }
  .skill-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .pill {
    background: var(--silver); border: 1px solid var(--border);
    color: var(--text); border-radius: 100px;
    padding: 0.3rem 0.85rem; font-size: 0.8rem; font-weight: 400;
    transition: background 0.2s, color 0.2s;
  }
  .pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

  /* ── TOOLS ── */
  .tools-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
  .tool-chip {
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 8px; padding: 0.45rem 1.1rem;
    font-size: 0.82rem; font-weight: 500; color: var(--text);
    transition: all 0.2s;
  }
  .tool-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--pale); }

  /* ── EDUCATION ── */
  .education { background: var(--white); }
  .edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
  .edu-card {
    border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem;
    position: relative; overflow: hidden;
    transition: transform 0.25s;
  }
  .edu-card:hover { transform: translateY(-3px); }
  .edu-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--bright));
  }
  .edu-degree { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
  .edu-school { font-size: 0.88rem; color: var(--accent); font-weight: 500; }
  .edu-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; box-shadow: 0 1px 6px rgba(0,0,0,0.12); margin-bottom: 1rem; }

  /* ── CONTACT ── */
  .contact {
    background: linear-gradient(145deg, var(--navy), #0f2a5a);
    color: #fff; text-align: center; padding: 100px 6%;
    position: relative; overflow: hidden;
  }
  .contact::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(96,165,250,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(96,165,250,0.06) 1px, transparent 1px);
    background-size: 64px 64px;
  }
  .contact-inner { position: relative; max-width: 600px; margin: 0 auto; }
  .contact .section-label { color: var(--bright); }
  .contact .section-title { color: #fff; }
  .contact .section-sub { color: rgba(255,255,255,0.6); margin: 0 auto 2.5rem; }
  .contact-links { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
  .contact-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px; padding: 0.8rem 1.6rem;
    color: #fff; text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
  }
  .contact-link:hover { background: rgba(37,99,235,0.35); border-color: var(--bright); }
  .contact-link svg { width: 17px; height: 17px; }

  /* ── FOOTER ── */
  footer {
    background: var(--navy); color: rgba(255,255,255,0.4);
    text-align: center; padding: 1.5rem;
    font-size: 0.78rem; letter-spacing: 0.04em;
  }

  /* ── RESPONSIVE ── */

  /* Large tablet / small laptop (1024px) */
  @media (max-width: 1024px) {
    .hero-inner { gap: 2.5rem; }
    .hero-photo { width: 210px; height: 210px; }
    .hero-bio { font-size: 0.98rem; }
    .highlights-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-stats { right: 4%; gap: 2rem; }
  }

  /* iPad / tablet portrait & landscape (768px - 1024px) */
  @media (max-width: 900px) {
    nav { padding: 0.9rem 5%; }
    .nav-links { gap: 1.2rem; }
    .nav-links a { font-size: 0.72rem; }

    .hero { padding: 110px 5% 70px; }
    .hero-inner { gap: 2rem; }
    .hero-photo { width: 180px; height: 180px; }
    .hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
    .hero-bio { font-size: 0.95rem; max-width: 100%; }
    .hero-stats { justify-content: flex-start; gap: 2rem; }

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

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

    section { padding: 80px 5%; }
  }

  /* iPad mini / portrait tablet (768px) */
  @media (max-width: 768px) {
    .hero-inner { flex-direction: column-reverse; align-items: center; text-align: center; gap: 1.8rem; }
    .hero-text { width: 100%; }
    .hero-photo { width: 160px; height: 160px; }
    .hero-ctas { justify-content: center; }
    .hero-stats { justify-content: center; gap: 1.8rem; }
    .hero-bio { max-width: 100%; margin-left: auto; margin-right: auto; }

    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .exp-header { gap: 0.4rem 0.8rem; }
  }

  /* Mobile (max 680px) */
  @media (max-width: 680px) {

    /* Nav */
    nav { padding: 0.9rem 5%; }
    .nav-links { display: none; }

    /* Hero */
    .hero { padding: 100px 5% 60px; }
    .hero-inner { flex-direction: column-reverse; align-items: center; gap: 2rem; text-align: center; }
    .hero-text { width: 100%; }
    .hero-photo { width: 140px; height: 140px; }
    .hero h1 { font-size: 2.4rem; }
    .hero-title { font-size: 0.8rem; }
    .hero-bio { font-size: 0.92rem; max-width: 100%; }
    .hero-ctas { justify-content: center; }
    .hero-stats { justify-content: center; gap: 1.2rem; margin-top: 2rem; }
    .stat-num { font-size: 1.7rem; }

    /* Sections */
    section { padding: 60px 5%; }
    .section-title { font-size: 1.7rem; }

    /* Highlights */
    .highlights-grid { grid-template-columns: 1fr; }
    .highlight-img { height: 85px; }
    .highlight-body { padding: 1.2rem 1.4rem 1.4rem; }

    /* Experience */
    .exp-timeline { padding-left: 1.2rem; }
    .exp-item::before { left: -1.2rem; }
    .exp-header { gap: 0.4rem 0.8rem; }
    .exp-company { font-size: 1rem; }
    .exp-role { font-size: 0.73rem; }
    .exp-meta { font-size: 0.73rem; }
    .exp-bullets li { font-size: 0.84rem; }

    /* Skills */
    .skills-grid { grid-template-columns: 1fr; }

    /* Education */
    .edu-grid { grid-template-columns: 1fr; }

    /* Contact */
    .contact { padding: 70px 5%; }
    .contact-links { flex-direction: column; align-items: center; }
    .contact-link { width: 100%; justify-content: center; }
  }
