/* =========================================================
   Berra Söyler — Personal CV Site
   Dark "berry / deep plum" theme
   ========================================================= */

:root{
  --bg: #130a16;
  --bg-alt: #1a0e20;
  --surface: #20122a;
  --surface-2: #2a1836;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(220,170,220,0.18);

  --berry-900: #3a0f3e;
  --berry-700: #5c1a5e;
  --berry-500: #8c2a82;
  --berry-400: #ab3d96;
  --berry-300: #c968b4;
  --berry-200: #e6a8d6;

  --accent: #c968b4;
  --accent-soft: rgba(201,104,180,0.15);
  --gold: #d8b36a;

  --text: #f3ecf4;
  --text-dim: #cbb9d1;
  --text-mute: #8f7c99;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 60px -20px rgba(140,42,130,0.35), 0 8px 24px -8px rgba(0,0,0,0.5);
  --shadow-sm: 0 8px 24px -12px rgba(0,0,0,0.5);

  --maxw: 1140px;
  color-scheme: dark;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(140,42,130,0.25), transparent 60%), var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4{
  font-family:"Sora", "Inter", sans-serif;
  margin: 0 0 .5em;
  line-height:1.2;
  letter-spacing: -0.01em;
}

a{color:var(--accent); text-decoration:none;}
img{max-width:100%; display:block;}

.container{
  width:100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- language toggling ---------- */
html[lang="tr"] .lang-en{display:none !important;}
html[lang="en"] .lang-tr{display:none !important;}

/* ---------- utility ---------- */
.section{
  padding: 110px 0 60px;
  position:relative;
}
.section-head{
  text-align:center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.eyebrow{
  display:inline-block;
  font-size:.75rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color: var(--berry-300);
  background: var(--accent-soft);
  border:1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-weight:600;
}
.section-head h2{
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}
.section-head p{
  color: var(--text-dim);
  font-size: 1.02rem;
  margin:0;
}

.reveal{
  opacity:0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{
  opacity:1;
  transform:none;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight:600;
  font-size:.95rem;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space:nowrap;
}
.btn svg{width:18px; height:18px; flex:none;}
.btn-primary{
  background: linear-gradient(135deg, var(--berry-500), var(--berry-700));
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(171,61,150,0.55);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(171,61,150,0.7);}
.btn-outline{
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover{
  border-color: var(--berry-300);
  color: var(--berry-200);
  transform: translateY(-2px);
}
.btn-sm{ padding: 9px 18px; font-size:.85rem; }

/* ---------- navbar ---------- */
.navbar{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 1000;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(19,10,22,0.6);
  border-bottom: 1px solid var(--border);
  transition: background .3s ease;
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
}
.brand{
  font-family:"Sora", sans-serif;
  font-weight:700;
  font-size:1.1rem;
  color: var(--text);
  display:flex;
  align-items:center;
  gap:10px;
  letter-spacing:-.01em;
}
.brand .dot{
  width:10px;height:10px;border-radius:50%;
  background: linear-gradient(135deg, var(--berry-300), var(--berry-600, var(--berry-700)));
  box-shadow: 0 0 14px var(--berry-400);
}
.nav-links{
  display:flex;
  align-items:center;
  gap: 30px;
  list-style:none;
  margin:0; padding:0;
}
.nav-links a{
  color: var(--text-dim);
  font-size:.92rem;
  font-weight:500;
  position:relative;
  padding: 6px 2px;
}
.nav-links a:hover, .nav-links a.active{ color: var(--text); }
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-6px;
  height:2px;
  background: linear-gradient(90deg, var(--berry-300), var(--berry-500));
  border-radius: 2px;
}
.nav-actions{
  display:flex;
  align-items:center;
  gap: 12px;
}
.lang-switch{
  display:flex;
  background: var(--surface);
  border:1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  gap:2px;
}
.lang-switch button{
  border:none;
  background:transparent;
  color: var(--text-mute);
  font-weight:700;
  font-size:.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  cursor:pointer;
  transition: all .25s ease;
}
.lang-switch button.active{
  background: linear-gradient(135deg, var(--berry-500), var(--berry-700));
  color:#fff;
}
.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
}
.nav-toggle span{
  width:22px; height:2px; background: var(--text); border-radius:2px;
  transition: all .25s ease;
}

/* ---------- hero ---------- */
.hero{
  min-height: 100vh;
  display:flex;
  align-items:center;
  position:relative;
  padding-top: 100px;
  overflow:hidden;
}
.hero::before, .hero::after{
  content:"";
  position:absolute;
  border-radius:50%;
  filter: blur(80px);
  z-index:0;
  opacity:.55;
}
.hero::before{
  width:480px; height:480px;
  background: radial-gradient(circle, var(--berry-500), transparent 70%);
  top:-120px; right:-120px;
}
.hero::after{
  width:420px; height:420px;
  background: radial-gradient(circle, var(--berry-700), transparent 70%);
  bottom:-160px; left:-140px;
}
.hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items:center;
}
.hero-kicker{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--berry-200);
  font-weight:600;
  font-size:.85rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom: 18px;
}
.hero-kicker .pulse{
  width:9px;height:9px;border-radius:50%;
  background: #6fe3a1;
  box-shadow: 0 0 0 0 rgba(111,227,161,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(111,227,161,.5);}
  70%{box-shadow:0 0 0 8px rgba(111,227,161,0);}
  100%{box-shadow:0 0 0 0 rgba(111,227,161,0);}
}
.hero h1{
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  margin-bottom: 14px;
}
.hero h1 .accent-text{
  background: linear-gradient(120deg, var(--berry-200), var(--berry-400) 55%, var(--gold));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero .role{
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-dim);
  font-weight:500;
  margin-bottom: 18px;
}
.hero .role strong{ color: var(--berry-200); font-weight:600;}
.hero p.lede{
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 30px;
  font-size: 1.02rem;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap: 18px 28px;
}
.hero-meta-item{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:.88rem;
  color: var(--text-mute);
}
.hero-meta-item svg{ width:16px; height:16px; color: var(--berry-300); flex:none;}
.hero-meta-item a{ color: var(--text-dim); }
.hero-meta-item a:hover{ color: var(--berry-200); }

.hero-card-wrap{
  position:relative;
  display:flex;
  justify-content:center;
}
.hero-card{
  position:relative;
  width:100%;
  max-width: 360px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  padding: 34px 28px;
  text-align:center;
}
.avatar-ring{
  width:132px; height:132px;
  margin: 0 auto 20px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--berry-300), var(--berry-700));
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4px;
}
.avatar-ring .avatar-inner{
  width:100%; height:100%;
  border-radius:50%;
  background: var(--bg-alt);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:"Sora",sans-serif;
  font-weight:700;
  font-size:2.6rem;
  color: var(--berry-200);
}
.hero-card h3{ font-size:1.2rem; margin-bottom:4px;}
.hero-card .tag{
  color: var(--text-mute);
  font-size:.88rem;
  margin-bottom: 20px;
}
.hero-stats{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 6px;
}
.hero-stat{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 6px;
}
.hero-stat strong{
  display:block;
  font-family:"Sora",sans-serif;
  font-size: 1.3rem;
  color: var(--berry-200);
}
.hero-stat span{
  font-size:.72rem;
  color: var(--text-mute);
  text-transform:uppercase;
  letter-spacing:.04em;
}
.scroll-cue{
  position:absolute;
  bottom: 28px;
  left:50%;
  transform: translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  color: var(--text-mute);
  font-size:.72rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  z-index:1;
}
.scroll-cue .line{
  width:1px; height:34px;
  background: linear-gradient(to bottom, var(--berry-300), transparent);
  animation: scrolldown 1.8s infinite;
}
@keyframes scrolldown{
  0%{opacity:0; transform:scaleY(.3); transform-origin:top;}
  40%{opacity:1; transform:scaleY(1); transform-origin:top;}
  100%{opacity:0; transform:scaleY(1); transform-origin:bottom;}
}

/* ---------- about ---------- */
.about-grid{
  display:grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items:start;
}
.about-card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.about-card h4{
  font-size:.95rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color: var(--berry-300);
  margin-bottom: 16px;
}
.focus-list{
  list-style:none;
  margin:0; padding:0;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.focus-list li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:.92rem;
  color: var(--text-dim);
}
.focus-list svg{
  width:16px;height:16px;
  color: var(--berry-300);
  margin-top:3px;
  flex:none;
}
.about-text p{
  color: var(--text-dim);
  font-size: 1.04rem;
  margin: 0 0 18px;
}
.about-text p:first-of-type{
  color: var(--text);
  font-size: 1.12rem;
}
.lang-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 22px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: var(--accent-soft);
  border:1px solid var(--border-strong);
  color: var(--berry-200);
  padding: 8px 16px;
  border-radius: 999px;
  font-size:.85rem;
  font-weight:600;
}
.pill .bar{
  width:48px; height:5px; border-radius:3px;
  background: rgba(255,255,255,0.12);
  overflow:hidden;
  position:relative;
}
.pill .bar i{
  position:absolute; left:0; top:0; bottom:0;
  background: linear-gradient(90deg, var(--berry-300), var(--berry-500));
  border-radius:3px;
}

/* ---------- timeline (experience / education) ---------- */
.timeline{
  position:relative;
  margin-left: 10px;
  padding-left: 34px;
  border-left: 2px solid var(--border-strong);
}
.timeline-item{
  position:relative;
  padding-bottom: 40px;
}
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:"";
  position:absolute;
  left: -43px;
  top: 4px;
  width:16px; height:16px;
  border-radius:50%;
  background: var(--bg);
  border: 3px solid var(--berry-400);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.timeline-card:hover{
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.timeline-top{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.timeline-top h3{ font-size: 1.1rem; margin:0; }
.timeline-date{
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.04em;
  color: var(--berry-300);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  white-space:nowrap;
}
.timeline-org{
  color: var(--text-mute);
  font-size:.9rem;
  margin-bottom: 14px;
  font-weight:500;
}
.timeline-card ul{
  margin: 0;
  padding-left: 18px;
  color: var(--text-dim);
  font-size:.93rem;
  display:flex;
  flex-direction:column;
  gap: 7px;
}
.timeline-card ul li::marker{ color: var(--berry-400); }

.edu-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.edu-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.edu-card .edu-icon{
  width:46px; height:46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--berry-500), var(--berry-700));
  display:flex;align-items:center;justify-content:center;
  margin-bottom: 16px;
}
.edu-card .edu-icon svg{ width:22px;height:22px; color:#fff; }
.edu-card h3{ font-size:1.05rem; margin-bottom:4px;}
.edu-card .edu-sub{ color:var(--text-dim); font-size:.9rem; margin-bottom:8px;}
.edu-card .edu-date{ color: var(--text-mute); font-size:.8rem; font-weight:600; }

/* trainings */
.training-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.training-item{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size:.88rem;
  color: var(--text-dim);
}
.training-item svg{
  width:16px;height:16px; color:var(--gold); margin-top:3px; flex:none;
}

/* ---------- skills ---------- */
.skills-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.skill-card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.skill-card h4{
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.05em;
  color: var(--berry-300);
  margin-bottom: 14px;
}
.tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.tag{
  background: rgba(255,255,255,0.04);
  border:1px solid var(--border-strong);
  color: var(--text-dim);
  font-size:.8rem;
  font-weight:500;
  padding: 6px 12px;
  border-radius: 999px;
  transition: all .2s ease;
}
.tag:hover{
  border-color: var(--berry-400);
  color: var(--berry-200);
  background: var(--accent-soft);
}

/* ---------- projects ---------- */
.projects-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card{
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position:relative;
  overflow:hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.project-card:hover{
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.project-card .proj-icon{
  width:42px; height:42px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 16px;
}
.project-card .proj-icon svg{ width:20px;height:20px;color:var(--berry-200);}
.project-card h3{ font-size:1.02rem; margin-bottom:8px;}
.project-card p{
  color: var(--text-dim);
  font-size:.88rem;
  margin:0;
}
.project-card .proj-status{
  display:inline-block;
  margin-top:14px;
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#6fe3a1;
}

/* ---------- contact ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items:start;
}
.contact-info-card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-info-card h3{ font-size:1.15rem; margin-bottom:10px;}
.contact-info-card p{ color:var(--text-dim); font-size:.92rem; margin-bottom:24px;}
.contact-list{
  list-style:none;
  margin:0; padding:0;
  display:flex;
  flex-direction:column;
  gap: 16px;
}
.contact-list a, .contact-list span{
  display:flex;
  align-items:center;
  gap:14px;
  color: var(--text-dim);
  font-size:.93rem;
}
.contact-list a:hover{ color: var(--berry-200); }
.contact-list .icon-box{
  width:38px;height:38px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  display:flex;align-items:center;justify-content:center;
  flex:none;
}
.contact-list .icon-box svg{ width:17px;height:17px; color: var(--berry-300);}

.contact-form{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display:flex;
  flex-direction:column;
  gap: 18px;
}
.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.field label{
  font-size:.8rem;
  color: var(--text-mute);
  font-weight:600;
}
.field input, .field textarea{
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size:.92rem;
  outline:none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus{
  border-color: var(--berry-400);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea{ resize:vertical; min-height:120px; }
.hidden{ display:none !important; }
.form-note{
  font-size:.78rem;
  color: var(--text-mute);
}

/* ---------- footer ---------- */
footer{
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  margin-top: 40px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap: 16px;
}
.footer-inner p{
  color: var(--text-mute);
  font-size:.82rem;
  margin:0;
}
.social-row{
  display:flex;
  gap: 10px;
}
.social-row a{
  width:38px;height:38px;
  border-radius:50%;
  background: var(--surface);
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color: var(--text-dim);
  transition: all .2s ease;
}
.social-row a:hover{
  border-color: var(--berry-400);
  color: var(--berry-200);
  transform: translateY(-2px);
}
.social-row svg{ width:17px; height:17px; }

.back-to-top{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width:46px;height:46px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--berry-500), var(--berry-700));
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow: 0 10px 30px -8px rgba(171,61,150,0.6);
  opacity:0;
  pointer-events:none;
  transform: translateY(12px);
  transition: all .3s ease;
  z-index: 900;
  border:none;
  cursor:pointer;
}
.back-to-top.show{
  opacity:1;
  pointer-events:auto;
  transform:none;
}
.back-to-top svg{ width:18px;height:18px; }

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-card-wrap{ order:-1; max-width:320px; margin:0 auto 10px; }
  .about-grid{ grid-template-columns: 1fr; }
  .skills-grid{ grid-template-columns: repeat(2, 1fr); }
  .projects-grid{ grid-template-columns: repeat(2, 1fr); }
  .edu-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .training-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .nav-links{
    position:fixed;
    top:72px; left:0; right:0;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    background: rgba(19,10,22,0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 22px;
    transform: translateY(-110%);
    opacity:0;
    transition: all .3s ease;
    pointer-events:none;
  }
  .nav-links.open{
    transform:none;
    opacity:1;
    pointer-events:auto;
  }
  .nav-links a{ padding:10px 0; width:100%; }
  .nav-toggle{ display:flex; }
  .nav-actions{ gap:8px; }
  #cvDownloadBtn{ padding:9px 11px; }
  #cvDownloadBtn span{ display:none !important; }
  .hero-grid{ grid-template-columns: minmax(0,1fr); }
  .skills-grid{ grid-template-columns: 1fr; }
  .projects-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .section{ padding: 90px 0 40px; }
  .hero{ padding-top:120px; }
}
