/**
 * Typography & Text styles
 */

/* html is set to 62.5% so that all the REM measurements are based on 10px sizing. So basically 1.5rem = 15px */
html {
  font-size: 62.5%;
}
body {
  font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
  line-height: 1.6;
  font-weight: 400;
  font-family: "Roboto", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #FFFFFF;
}

/**
 * Links
 */
a {
  font-weight: normal;
  text-decoration: none; 
  color:#EF6D3D;
}
a:focus {
  outline: thin dotted;
}

small {
  font-size: 75%;
}

/**
 * Headings
 */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1;
  text-rendering: optimizeLegibility; /*  voodoo to enable ligatures and kerning | https://developer.mozilla.org/en-US/docs/CSS/text-rendering */
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 300;
}
h1 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
h2 { font-size: 3.0rem; line-height: 1.3;  letter-spacing: -.1rem; }
h3 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
h4 { font-size: 1.8rem; line-height: 1.5;  letter-spacing: -.05rem; }
h5 { font-size: 1.5rem; line-height: 1.6;  letter-spacing: 0; }
h6 { font-size: 1.4rem; line-height: 1.6;  letter-spacing: 0; }

/**
 * Paragraphs
 */
p {
  margin: 0 auto 1.5em auto; /* bottom margin for paragraphs */
}
p + p {

}

/**
 * Quotes & Blockquotes
 */
q {
  quotes: '\00201C' '\00201D';
}
q:before {
  content: open-quote;
}
q:after {
  content: close-quote;
}

blockquote {
  /*background-color: #F8F8F8;*/
  border-left: 2px solid #AFC0D2;
  margin: 1.6em 10%;
  padding: .75em 1em;
  font-size:1.8rem;
}
blockquote p:last-child {
  margin-bottom: 0;  
}

/**
 * Layout styles
 */

/* Full size background image */
html, #container, .inner { background-color:transparent;}
html {
  background:url(background.jpg) center center no-repeat fixed;
  background-size:cover;
}
body {
  max-width:800px;
  margin:25px auto;
}
header, #content, footer { 
  background: rgba(0,0,0,.8); 
  padding:25px;
  color:#FFFFFF; 
}
iframe {
  max-width:100%;
}

/* === MENU LINKS (yenilendi) === */
ul.main-menu{
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;                /* öğeler arası boşluk */
  list-style: none;
}

ul.main-menu li{ display: inline-flex; }

ul.main-menu li a{
  position: relative;
  font-size: 2.0rem;
  color: #cfd2da;           /* pasif renk */
  padding-bottom: 4px;      /* alt çizgiye yer */
  text-decoration: none;
}

/* yazı rengi hover’da beyaza döner */
ul.main-menu li a:hover{ color: #fff; }

/* turuncu alt-çizgi animasyonu */
ul.main-menu li a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: #EF6D3D;      /* turuncu */
  transition: width .25s ease;
}

/* hover veya aktifken çizgi tam olur, yazı beyaz */
ul.main-menu li a:hover::after,
ul.main-menu li a.active::after{ width: 100%; }

ul.main-menu li a.active{ color: #fff; }


/* Utility classes */
.hide {
  display:none;
}
.show {
  display:block;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.contact-list li {
  margin: 8px 0;
}

.contact-list a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: 0.2s;
}

.contact-list a:hover {
  color: #ffb347; /* turuncu ton, istersen başka renk yapabilirim */
  border-bottom-color: #ffb347;
}

/* CV formatting */
#cv h2 { margin-top: 0.5rem; }
#cv h3 { margin-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 0.8rem; }
#cv .cv-block { margin: 0.8rem 0 1.2rem; }
#cv .cv-row { display: flex; justify-content: space-between; gap: 1rem; }
#cv .cv-right { opacity: 0.85; white-space: nowrap; }
#cv p, #cv li { line-height: 1.5; }

/* Responsive, alt yazısız düzgün kırpılmış galeri */
.gallery-2x2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-2x2 figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  aspect-ratio: 4 / 3; /* hepsi aynı oranda olur */
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-2x2 img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* taşan alanı kırpar, orantıyı korur */
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-2x2 img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.gallery-2x2 figcaption {
  display: none !important; /* tamamen kaldır */
}

/* Kırpılmasın istediğin görüntüler için */
.gallery-2x2 img.fit-all {
  object-fit: contain;           /* tamamı görünsün */
  background: rgba(0,0,0,0.25);  /* yan/üst bantlar şık dursun */
}

.project-body p { line-height: 1.6; margin: 0 0 10px; }
.project-body h3 { margin-bottom: 10px; }

/* 1) Kartlar arasına dikey boşluk */
.projects {
  display: flex;              /* kartları dikey sırala */
  flex-direction: column;
  gap: 36px;                  /* kartlar arası mesafe */
}

/* 2) Kart içi nefes */
.project {
  padding: 18px 18px 22px;    /* iç boşluğu biraz artır */
}

/* 3) Başlık ve paragraflar arası */
.project-body h3 { 
  margin: 0 0 12px;
}
.project-body p {
  line-height: 1.7;
  margin: 0 0 12px;           /* paragraflar arası */
}

/* 4) Galeriden sonra altta boşluk bırak */
.gallery-2x2 { 
  margin-top: 20px;
  margin-bottom: 12px;        /* eklenen satır: altta boşluk */
}

html { scroll-behavior: smooth; }

.project {
  scroll-margin-top: 90px; /* header varsa kayarken tepeye yapışmasın */
}

/* === Portfolio quick list: tek sütun, alt alta === */
.portfolio-links{ margin:16px 0; }

.portfolio-links ul{
  list-style: disc;
  padding-left: 1.25rem;   /* bullet için girinti */
  margin: 0;
}

.portfolio-links li{
  display: list-item !important;  /* inline/block kalıntılarını bastır */
  float: none !important;
  margin: 6px 0;
  line-height: 1.5;
}

/* Temanın koyduğu nokta/ayraçları tamamen kapat */
.portfolio-links li::after{
  content: none !important;
  display: none !important;
}

/* Link görünümü: turuncu, altı çizili */
.portfolio-links a{
  display: inline;
  color: #ff8a50;
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
}
.portfolio-links a:hover{
  opacity: .85;
  text-decoration: underline;
}

.cv-block a {
  color: inherit;              /* metinle aynı renk */
  text-decoration: underline;  /* sadece altı çizili */
  font-weight: 500;
}
.cv-block a:hover {
  color: #ddd;                 /* hover’da çok hafif açılır */
  text-decoration-thickness: 2px;
}

header img {
  width: 200px;          /* dilediğin boyut — örn. 150-200 arası gayet iyi */
  height: auto;          /* oranı korur */
  display: block;
  margin: 0 auto 15px;   /* ortala ve altta biraz boşluk bırak */
}
/* === CV Quick Navigation === */
.cv-links {
  margin: 20px 0 30px;
}

.cv-links ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0;
}

.cv-links li {
  margin: 6px 0;
  line-height: 1.5;
}

.cv-links a {
  color: #ff8a50;
  text-decoration: underline;
  background: none;
  border: 0;
  transition: 0.2s;
}

.cv-links a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Coursera certificates list */
.cv-certs {
  margin: 0.5rem 0 1.2rem;
  padding-left: 1.25rem;   /* bullet için girinti */
}
.cv-certs li { margin: 6px 0; line-height: 1.5; }
.cv-certs a {
  color: inherit;                 /* metinle aynı (beyaz) */
  text-decoration: underline;     /* link olduğu belli olsun */
  transition: color .15s ease;
}
.cv-certs a:hover {
  color: #bfbfbf;                 /* hover’da grimsi */
}

/* başlıklara kaydırırken header'a yapışmasın */
#cv h3 { scroll-margin-top: 90px; }

/* CV indirme butonu */
.cv-links .cv-download{
  display:inline-block;
  margin-top:12px;
  padding:8px 14px;
  font-size:1.5rem;
  color:#fff;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.22);
  border-radius:10px;
  text-decoration:none;
  transition:background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.cv-links .cv-download:hover{
  background:#EF6D3D;
  border-color:#EF6D3D;
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(239,109,61,0.25);
}

.cv-links .cv-download:focus-visible{
  outline:2px dashed #EF6D3D;
  outline-offset:3px;
}

.github-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 28px auto 0;
  text-decoration: none;
  color: #fff;
  font-size: 1.50rem;
  font-weight: 500;
  width: fit-content;
  min-width: 260px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.github-btn img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
  transition: all 0.25s ease;
}

.github-btn:hover {
  background: #EF6D3D;
  border-color: #EF6D3D;
  color: #fff;
  box-shadow: 0 8px 18px rgba(239,109,61,0.4);
  transform: translateY(-2px);
}

.github-btn:hover img {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.6));
}
