
/* Modern Geliştirilmiş Stil Dosyası */

/* Temel Ayarlar */
html, body {
  margin: 0;
  padding: 0;
  border: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}
* {
  box-sizing: inherit;
}
body {
  font-family: 'Quicksand', sans-serif;
  background: linear-gradient(135deg, #0b0c2a, #1e2a45);
  color: #f4f4f4;
  scroll-behavior: smooth;
  transition: background 0.4s, color 0.4s;
}

/* === HEADER GENEL === */
header {
  background: #0f1a40;
  color: white;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 110px;
  box-shadow: none;
  border: none;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

nav .logo img {
  height: 200px;
  width: auto;
  display: block;
  margin-right: 40px;
}

/* Menü */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background-color: #6fc3df;
  transition: width 0.3s;
}

nav ul li a:hover {
  color: #6fc3df;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Bayraklar */
.language-selector {
  position: absolute;
  top: 30px;
  right: 0px;
}

.flags {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.flag {
  width: 30px;
  height: 20px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.flag:hover {
  opacity: 0.7;
}

/* === HAMBURGER BUTONU === */
.hamburger {
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 201;
}

@media (max-width: 768px) {
  #skills,
  #contact {
    display: block;
    width: 100%;
    margin: 1rem 0;
  }
}

/* === MOBİL DÜZENLEME === */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav .logo img {
    height: 100px;
    margin-right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-end !important; /* SATIR 1: Sağ hizalama */
    text-align: right !important;     /* SATIR 2: Metni sağa hizalama */
    background: #0f1a40;
    width: 100%;
    padding: 1rem;
    display: none;
    margin: 0;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
    text-align: right !important;  /* SATIR 3: Link metni sağda */
  }

  .hamburger {
    display: block;
  }

  .language-selector {
    position: absolute;
    top: 10px;
    right: 60px;
    z-index: 202;
  }
}

/* Hero */
#hero {
  position: relative;
  overflow: hidden;
  background-color: #0b0c2a;
  min-height: 100vh;
  color: white;
  padding: 100px 20px;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}



  .hero-text {
    flex: 1;
    max-width: 500px;
    text-align: left;
  }

lottie-player {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #6fc3df;
  color: #0b0c2a;
  border-radius: 25px;
  margin-top: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}
.btn:hover {
  background: #0b0c2a;
  color: white;
}
.cv-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

/* Hakkımda */
.about-section {
  margin-top: 3rem;
  padding: 2rem 1rem;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.about-text {
  flex: 1 1 500px;
  max-width: 600px;
  padding: 0 1rem;
}

.about-text h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-text i {
  font-size: 1rem;
  color: #00bcd4;
}

.about-image {
  flex: 1 1 80px;
  text-align: center;
}

.about-image img {
  max-width: 30%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  padding: 1rem;
  justify-items: center;
}

.project-card {
  max-width: 220px;
  background: #1e2a45;
  border-radius: 12px;
  padding: 1rem;
  color: white;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .project-card {
    max-width: 420px;
  }
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 188, 212, 0.4);
  transition: all 0.3s ease;
  filter: brightness(1.05);
}


.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.project-card p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.btn-small {
  font-size: 0.8rem;
  padding: 10px 18px;
  border-radius: 25px;
  background: #00bcd4;
  color: white;
  text-decoration: none;
  margin: 10px auto;
  display: inline-block;
  min-width: 120px;
  text-align: center;
  transition: background 0.3s;
}


.btn-small:hover {
  background: #0288d1;
}

@media (max-width: 600px) {
  .project-card .btn-small {
    display: block;
    width: 100%;
    margin: 8px 0;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .project-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .project-grid::-webkit-scrollbar {
    display: none;
  }

  .project-card {
    flex: 0 0 240px;
    min-width: 240px;
  }
}







.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: background 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.contact-form button {
  background: linear-gradient(45deg, #00bcd4, #2196f3);
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: linear-gradient(45deg, #0288d1, #1976d2);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background-color: #101526;
  text-align: center;
  padding: 2rem 1rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer p {
  color: #ccc;
  font-size: 0.9rem;
}

/* Back to Top */
#toTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #00bcd4;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 14px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}
#toTop:hover {
  background: #0097a7;
  transform: scale(1.1);
}

/* Animasyon */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.glass-card, .project-card {
  animation: fadeInUp 0.6s ease both;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);

  padding: 1.5rem 1rem; /* 🔧 Burayı ekledik */
}


/* Hamburger görünümü varsayılan olarak gizli */
.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 0px;
  z-index: 200;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  background: #0f1a40;
  width: 100%;
  padding: 1rem;
  display: none;
  margin: 0;
}

  nav ul.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .logo img {
    height: 100px;
    margin-right: 0;
  }
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
}
.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  font-size: 1.8rem;
  justify-content: flex-start; /* sola hizalı */
}

@media (max-width: 768px) {
  .social-icons {
    justify-content: center;
  }
}

.social-icons a {
  color: #00bcd4;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: white;
  transform: scale(1.2);
}
.hero-social-and-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.social-icons,
.cv-buttons {
  display: flex;
  gap: 40px;
  flex-wrap: nowrap;
  justify-content: center;
}

.social-icons a {
  font-size: 1.8rem;
  color: #00bcd4;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: white;
  transform: scale(1.2);
}

.cv-buttons a.btn {
  padding: 0.75rem 2rem;          /* Sağ/sol padding biraz arttırıldı */
  min-width: 180px;               /* Minimum genişlik genişletildi */
  max-width: 220px;               /* Fazla genişlememesi için sınır */
  text-align: center;
  white-space: nowrap;           /* Yazıyı alt satıra atma */
  font-size: 1rem;
  line-height: 1.4;
}

#experience {
  padding: 4rem 1rem;
  position: relative;
  background: linear-gradient(135deg, #0d1b2a, #1b263b);
  color: white;
  z-index: 1;
  overflow: hidden;
}

/* Daire şeklinde soft desenler */
#experience::before,
#experience::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,188,212,0.06) 0%, transparent 70%);
  z-index: 0;
}

#experience::before {
  width: 250px;
  height: 250px;
  top: -60px;
  left: -80px;
}

#experience::after {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: -50px;
}


.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: white;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding-left: 20px;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.timeline-left,
.timeline-right {
  flex: 1;
  color: #fff;
}

.timeline-left h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.timeline-left p {
  margin: 0.3rem 0;
}

.timeline a {
  color: #00bcd4;
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: 0.3rem;
  display: inline-block;
  transition: color 0.3s ease;
}

.timeline a:hover {
  color: white;
}

.timeline-middle {
  width: 16px;
  height: 16px;
  background-color: #00bcd4;
  border-radius: 50%;
  margin: 0 20px;
  position: relative;
}

.timeline-middle::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: #00bcd4;
  top: 16px;
  left: 7px;
}

#experience-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none; /* Efekt tıklamaları engellemesin */
}

.timeline,
.section-title {
  position: relative;
  z-index: 1;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .hero-text {
    width: 100%;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }

  .cv-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cv-buttons .btn {
    display: flex; /* ✅ FLEX ile ortalama yapılır */
    justify-content: center; /* ✅ Yatay ortalama */
    align-items: center;     /* ✅ Dikey ortalama */
    
    width: 90%;
    max-width: 320px;
    white-space: normal;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    text-align: center;
  }
}
  lottie-player {
    width: 400px !important;
    height: 400px !important;
    margin-top: 2rem;
  }
  



.feedback-note {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #00bcd4;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.05);
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Masaüstünde yan yana */
@media screen and (min-width: 768px) {
  .contact-wrapper {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .contact-info {
    flex: 1;
    max-width: 40%;
  }

  .contact-form {
    flex: 1;
    max-width: 55%;
  }
}


/* === SKILLS & CONTACT ORTAK KART STİLİ === */
#skills,
#contact {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 0.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  scroll-margin-top: 100px;
  min-height: auto;
}

/* === SIDE BY SIDE YERLEŞİM === */
.side-by-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .side-by-side {
    flex-direction: column;
    align-items: stretch;
  }
}

/* === SKILLS BAŞLIK ve GRUP === */
#skills h2 {
  margin: 0 0 0.5rem 0;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.skill-group {
  margin-bottom: 2rem;
}

.skill-group h3 {
  font-size: 1.1rem;
  color: #00bcd4;
  margin-bottom: 0.8rem;
  border-left: 4px solid #00bcd4;
  padding-left: 10px;
}

/* === SKILLS LİSTE === */
.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media screen and (max-width: 768px) {
  .skills-list {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.skills-list li {
  display: flex;
  flex-direction: column;
}

.skills-list li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #00bcd4;
  font-weight: 500;
  border: 2px solid #00bcd4;
  padding: 8px 14px;
  border-radius: 30px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.03);
}

.skills-list li a:hover {
  background-color: #00bcd4;
  color: #0b0c2a;
  transform: scale(1.03);
  box-shadow: 0 0 10px #00bcd4;
}

/* === SKILL BAR === */
.skill-bar {
  position: relative;
  width: 100%;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin-top: 8px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(to right, #00d4ff, #0099ff);
  border-radius: 20px;
  transition: width 0.5s ease;
  position: relative;
}

.skill-progress span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 5px #000, 0 0 3px #000;
}

/* === CONTACT FORM & FEEDBACK === */
.feedback-note {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #ccc;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 8px;
  background: #1b263b;
  color: white;
  font-size: 0.9rem;
}

.contact-form button {
  width: 100%;
  padding: 0.8rem;
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #019db4;
}

@media screen and (max-width: 768px) {
  .skills-list {
    grid-template-columns: 1fr;
  }

  .skills-list li {
    flex-direction: column;
    align-items: stretch;
  }

  .skills-list li a {
    width: 100%;
    justify-content: flex-start;
  }

  .skill-bar {
    margin-top: 8px;
    height: 12px;
  }

  .skill-progress span {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
  }
}

/* Websites Bölümü */
#websites .project-grid {
  display: flex;
  flex-wrap: nowrap;         /* Satır kaydırma yok */
  overflow-x: auto;          /* Taşarsa yatay scroll */
  gap: 1rem;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;     /* Firefox için scrollbar gizleme */
}
#websites .project-grid::-webkit-scrollbar {
  display: none;             /* Chrome için scrollbar gizleme */
}

/* Kartlar */
#websites .project-card {
  flex: 0 0 280px;           /* Kart genişliği sabit */
  background-color: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  min-width: 260px;          /* Mobilde küçülebilsin ama tamamen daralmasın */
}

/* Hover efekti */
#websites .project-card:hover {
  transform: translateY(-5px);
}

/* Görsel */
#websites .project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

/* Metin */
#websites .project-card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #ffffff;
}
#websites .project-card p {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 1rem;
}

/* Buton */
#websites .btn-small {
  background-color: #00bcd4;
  color: #0b0c2a;
  padding: 0.5rem 1.2rem;
  margin: 0.3rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
#websites .btn-small:hover {
  background-color: #00a2b8;
}
/* Geliştirdiğim Websites kısmı */
#websites .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Mobilde scrollable yan yana kartlar */
@media (max-width: 768px) {
  #websites .project-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #websites .project-grid::-webkit-scrollbar {
    display: none;
  }

  #websites .project-card {
    flex: 0 0 260px; /* Mobilde sabit genişlik */
  }
}


