@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

* {
  font-family: 'Ubuntu', sans-serif;
  margin: 0;
  padding: 0;
  text-decoration: none !important;
  box-sizing: border-box;
}

:root{
  --primary: #ff8000;
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-main: #f8fafc;
}

html[data-theme="dark"]{
  --bg: var(--bg-color);
  --text: var(--text-main);
  --card: var(--card-bg);
}

body {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 25%, #0f172a 75%, #1e293b 100%);
}

nav, footer, .info-card, .about, .section-card{
  background-color: var(--card);
  color: var(--text);
}

a{
  color: var(--text-main);
}

button{
  background-color: var(--bg);
  color: var(--text);
}

/*======MAIN ALANI======*/

main{
  min-height: 100dvh;
}

.container{
  width: 75%;
  min-height: 100dvh;
  margin: auto;
  padding: 30px 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.area{
  display: flex;
}

.info-card{
  width: 35%;
  height: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  border-radius: 30px;
  margin: 0 30px 30px 0;
  border: 1px solid #ffffff1a;
  transition: all 0.3s ease;
  text-align: center;
}

.info-card:hover{
  border-color: #ff80004d;
  background: #ffffff0d;
}

.info-card img{
  max-width: 85%;
  height: auto;
  border-radius: 100%;
  border: 3px solid var(--primary);
  display: block; 
}

.info-card h1{
  margin: 20px 0 10px;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.info-card p{
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card a{
  background-color: var(--primary);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 18px;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.info-card a:hover{
  transform: translateY(-3px);
  box-shadow: 0 6px 20px #ff800080;
}

.info-card i{
  margin-right: 5px;
}

.about{
  width: 65%;
  height: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  border-radius: 30px;
  padding: 40px;
  margin-bottom: 30px;
  border: 1px solid #ffffff1a;
  transition: all 0.3s ease;
}

.about:hover{
  border-color: #ff80004d;
  background: #ffffff0d;
}

.about h2{
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary);
}

.about p{
  font-size: 20px;
}

.about h3{
  margin: 40px 0;
  font-size: 30px;
}

.about ul{
  font-size: 22px;
  list-style-type: circle;
  list-style-position: inside;
}

.sections {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section-card {
  width: 100%;
  padding: 40px;
  border-radius: 30px;
  border: 1px solid #ffffff1a;
  transition: all 0.3s ease;
}

.section-card:hover {
  border-color: #ff80004d;
  background: #ffffff0d;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 0 0 2rem;
}

.section-title span {
    color: var(--primary);
}

.skills-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    border: 1px solid #ffffff1a;
}

.skill-card:hover {
    border-color: #ff80004d;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 128, 0, 0.1);
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-card p {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.tech-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tech-tags span {
    background-color: #ff66001a;
    color: var(--primary); 
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #ff66004d;
    transition: all 0.3s ease;
}

.tech-tags span:hover {
    background-color: var(--primary);
    color: var(--text-main);
    transform: translateY(-2px);
}

.skill-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projeler Bölümü */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
}

.project-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #ffffff1a;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  min-height: 450px;
}

.project-card.empty {
  justify-content: center;
  align-items: center;
  position: relative;
}

.project-card.empty::after {
  content: "Yakında...";
  color: #ffffff33;
  font-size: 1.2rem;
  font-weight: 500;
  border: 1px dashed #ffffff1a;
  padding: 1.5rem 3rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.project-card.empty:hover::after {
  color: var(--primary);
  border-color: #ff80004d;
  background-color: #ff80000a;
}

.project-card:hover {
  transform: scale(1.03);
  border-color: #ff80004d;
  background: #ffffff0d;
  box-shadow: 0 12px 32px rgba(255, 128, 0, 0.15);
}

.project-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 55%, #36c6ff26 100%);
  border: 1px solid #ffffff14;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-thumb {
  border-color: #36c6ff40;
  box-shadow:
    0 12px 28px rgba(54, 198, 255, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.project-thumb img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 12px;
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  filter: drop-shadow(0 4px 10px rgba(54, 198, 255, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 14px rgba(54, 198, 255, 0.45));
}

.project-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  color: var(--text-main);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.project-tags span {
  background-color: #ff66001a;
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #ff66004d;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background-color: var(--primary);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #ff800080;
}

/* Timeline Genel Yapısı */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Dikey Çizgi (Ortadaki iz) */
.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #ffffff1a; /* Saydam beyaz sınır rengin */
  top: 0;
  bottom: 0;
  left: 20px; /* Çizgiyi sola hizalıyoruz */
}

/* Her Bir Eleman */
.timeline-item {
  position: relative;
  padding-left: 60px; /* Çizgi ve nokta için boşluk */
  margin-bottom: 40px;
}

/* Son elemanın alt boşluğunu sıfırlama */
.timeline-item:last-child {
  margin-bottom: 0;
}

/* Turuncu Noktalar */
.timeline-dot {
  position: absolute;
  left: 14px; /* Çizginin tam üstüne oturtma */
  top: 0;
  width: 14px;
  height: 14px;
  background-color: var(--primary); /* Turuncu */
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

/* İçerik Kartı */
.timeline-content {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #ffffff1a;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: #ff80004d;
  background: #ffffff0d;
  transform: translateX(5px); /* Üzerine gelince sağa hafif kayma efekti */
}

/* Tarih, Başlık ve Şirket/Okul Metinleri */
.timeline-date {
  display: inline-block;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: var(--text-main);
}

.timeline-company {
  font-size: 1rem;
  color: #94a3b8; /* --text-muted rengin */
  margin-bottom: 15px;
  font-style: italic;
}

.timeline-content p {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* NAV KODLARI */

nav{
  width: 100%;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav h1{
  font-size: 3rem;
}

.shortcut i{
  font-size: 2.3rem;
  padding: .6rem;
  transition: all 0.3s ease;
}

.shortcut i:hover{
  color: var(--primary);
  transform: translateY(-3px);
}

/* FOOTER KODLARI */

footer{
  width: 100%;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 30px;
  font-size: 13px;
  text-align: center;
}

span{
  color: var(--primary);
}

/*====== RESPONSIVE DÜZENLEMESİ ======*/

@media (max-width: 1279px) {
  .container {
    width: 90%;
  }

  .area {
    flex-direction: column;
  }

  .info-card, .about {
    width: 100%;
    margin: 0 0 30px 0;
  }
  
  .skills-grid {
    grid-auto-flow: row; /* Yan yana değil, alt alta dizilmesini sağlar */
    grid-template-columns: 1fr; /* Tek sütun yapısına geçer */
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    width: 92%;
    padding: 20px 0;
  }

  .section-card, .about {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .section-title {
    font-size: 2rem;
    margin: 0 0 1.5rem;
  }

  .info-card {
    padding: 25px 20px;
    border-radius: 24px;
  }

  .info-card h1 {
    font-size: 2rem;
  }

  .info-card img {
    max-width: 150px;
  }

  .about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .about p {
    font-size: 1rem;
  }

  .skill-card {
    padding: 1.8rem 1.2rem;
  }

  .skill-card h3 {
    font-size: 1.3rem;
  }

  .project-card {
    padding: 1.5rem;
    min-height: auto;
  }

  .project-card.empty::after {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Timeline mobile adjustments */
  .timeline::after {
    left: 10px;
  }

  .timeline-item {
    padding-left: 35px;
    margin-bottom: 30px;
  }

  .timeline-dot {
    left: 4px;
    width: 12px;
    height: 12px;
  }

  .timeline-content {
    padding: 15px;
  }

  .timeline-content h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 630px) {
  nav {
    padding: 20px 15px;
    height: auto;
    min-height: 5rem;
  }

  .shortcut a span, .profil span {
    display: none;
  }
    
  .shortcut a i, .profil i {
    margin: 0;
  }
}

@media (max-width: 435px) {
  nav h1 {
    font-size: 2rem;
  }
}

/* 1280px ve üzeri (Laptop/Masaüstü) */
@media (min-width: 1280px) {
  .area {
    flex-direction: row;
  }
  .info-card { width: 35%; }
  .about { width: 65%; }
  
  /* Masaüstünde grid'i orijinal haline döndür */
  .skills-grid {
    grid-auto-flow: column;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}