/* Genel Stiller */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Header ve Navigasyon */
header {
  background-color: transparent;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000; /* Z-index'i artır */
  padding: 1rem 0;
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(51, 51, 51, 0.85);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  height: 40px;
  font-size: 0;
  color: transparent;
}

.logo img {
  height: 100%;
  width: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
  border-radius: 3px;
}

header.scrolled .hamburger span {
  background-color: #fff;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001; /* Z-index'i header'dan büyük olsun */
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 5px;
  cursor: pointer; /* Ekle */
  position: relative;
  z-index: 1002; /* En üstte olsun */
  pointer-events: auto !important; /* Tıklanabilirliği zorla */
}

/* Aktif link stili */
.nav-links a.active,
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #007bff;
}

.nav-links .active a {
  background: #007bff;
  color: #fff;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }
}

/* Animasyon Stilleri */
.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translateY(20px);
    -ms-transform: translateY(20px);
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }
}

.fadeInUp {
  -webkit-animation-name: fadeInUp;
  animation-name: fadeInUp;
}

/* Hero Bölümü */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("bg.webp") no-repeat center center;
  background-size: cover;
  overflow: hidden;
  z-index: 1; /* Hero section'ı navigation'ın altında olsun */
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  cursor: pointer;
  pointer-events: none; /* Particle'ların tıklamayı engellemesini önle */
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  pointer-events: all; /* pointer-events: none yerine all kullanıyoruz */
}

/* Sadece text içeren elementlere pointer-events: none ekleyelim */
.hero-content h1,
.hero-content .subtitle {
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("bg.webp");
  background-size: cover;
  background-position: center;
  z-index: 1; /* z-index değerini en düşük yapalım */
}

.hero-content {
  position: relative;
  max-width: 800px;
  padding: 0 2rem;
  z-index: 5;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out;
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  min-height: 2em;
}

.social-links-hero {
  position: relative;
  z-index: 5;
}

.social-links-hero a {
  color: #fff;
  font-size: 1.3rem;
  transition: transform 0.3s ease, color 0.3s ease;
  margin: 0 0.5rem;
}

.social-links-hero a:hover {
  color: #007bff;
  transform: translateY(-3px);
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 3;
}

.scroll-down a {
  color: #fff;
  font-size: 2rem;
  transition: color 0.3s ease;
}

.scroll-down a:hover {
  color: #007bff;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

/* Hakkımda Bölümü */
.about {
  padding: 5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: #ffffff;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
}

.about::before {
  display: none;
}

.about h2 {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  font-size: 2.5rem;
}

.about h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #007bff;
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  padding: 0 2rem;
}

.about-content img {
  width: 400px;
  height: 400px;
  border-radius: 10px;
  object-fit: cover;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #007bff;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #007bff;
  border: 2px solid #007bff;
}

.btn-secondary:hover {
  background-color: #007bff;
  color: #fff;
  transform: translateY(-2px);
}

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

  .about-content img {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto;
  }
}

/* Yetenekler Bölümü */
.skills {
  padding: 8rem 1rem;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.skills::before {
  display: none;
}

.skills h2 {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.8rem;
  position: relative;
  color: #1a1a1a;
}

.skills h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #00d2ff);
  border-radius: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.skill-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.1) 0%,
    rgba(0, 210, 255, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 123, 255, 0.2);
}

.skill-item:hover::before {
  opacity: 1;
}

.skill-item i {
  font-size: 3rem;
  background: linear-gradient(135deg, #007bff, #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  display: inline-block;
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-item:hover i {
  transform: scale(1.1) rotate(5deg);
}

.skill-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 600;
  position: relative;
}

.skill-item p {
  color: #4a4a4a;
  line-height: 1.8;
  font-size: 1.05rem;
  position: relative;
}

@media (max-width: 768px) {
  .skills {
    padding: 6rem 1rem;
  }

  .skills h2 {
    font-size: 2.2rem;
  }

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

  .skill-item {
    padding: 2rem;
  }
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  z-index: 1000;
  position: relative;
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  padding: 0.3rem;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: #007bff;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

/* Blog Sayfası Stilleri */
.blog-main {
  padding: 8rem 0 5rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.blog-header {
  margin-bottom: 3rem;
  text-align: center;
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
  position: relative;
}

.blog-header h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #00d2ff);
  border-radius: 2px;
}

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  padding: 1rem;
}

.category-btn {
  padding: 0.8rem 1.5rem;
  border: 1px solid #e4e6e9;
  border-radius: 25px;
  background: transparent;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-btn:hover {
  background: rgba(0, 123, 255, 0.1);
  border-color: #007bff;
  color: #007bff;
  transform: translateY(-2px);
}

.category-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 2rem;
}

.blog-item {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  cursor: pointer;
}

.blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.blog-item-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-item:hover .blog-item-image img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #007bff;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.blog-item-content {
  padding: 1.5rem;
}

.blog-item-content h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #333;
  line-height: 1.3;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
  color: #666;
  font-size: 0.8rem;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-meta i {
  color: #007bff;
}

.blog-item-content p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: gap 0.3s ease;
}

.read-more:hover {
  gap: 0.8rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #f0f2f5;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: #e4e6e9;
  transform: translateY(-2px);
}

.pagination-btn.active {
  background: #007bff;
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Blog Yazısı Stilleri */
.blog-post-main {
  padding: 8rem 0 5rem;
  max-width: 800px;
  margin: 0 auto;
}

.blog-post {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 3rem;
}

.blog-post-header {
  padding: 2rem 2rem 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.blog-post-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.5rem;
}

.blog-post-title {
  font-size: 2.5rem;
  line-height: 1.3;
  color: #333;
  margin: 0;
  flex: 1;
}

.blog-post-category {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 1rem;
}

.blog-post-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  color: #666;
  font-size: 0.95rem;
}

.blog-post-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-post-meta i {
  color: #007bff;
}

.blog-post-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-content {
  padding: 0 2rem 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.blog-post-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: #333;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content blockquote {
  border-left: 4px solid #007bff;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
}

.blog-post-footer {
  padding: 2rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-post-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.tag {
  background: #f0f2f5;
  color: #666;
  padding: 0.4rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #e4e6e9;
  transform: translateY(-2px);
}

.blog-post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.blog-post-share span {
  color: #666;
  font-size: 0.95rem;
}

.blog-post-share a {
  color: #666;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.blog-post-share a:hover {
  transform: translateY(-2px);
}

.blog-post-share .twitter-share:hover {
  color: #1da1f2;
}

.blog-post-share .linkedin-share:hover {
  color: #0077b5;
}

.blog-post-share .facebook-share:hover {
  color: #1877f2;
}

.blog-post-comments {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.blog-post-comments h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #333;
}

.comment {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.comment-header strong {
  color: #333;
  font-size: 1.1rem;
}

.comment-header span {
  color: #666;
  font-size: 0.9rem;
}

.comment-content p {
  color: #444;
  line-height: 1.6;
  margin: 0;
}

.comment-form {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 3rem;
}

.comment-form h3 {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.5rem;
}

.comment-form .form-group {
  margin-bottom: 1.5rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.comment-form textarea {
  resize: vertical;
  min-height: 120px;
}

.comment-form .submit-btn {
  background: #007bff;
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.comment-form .submit-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .comment-form {
    padding: 1.5rem;
  }

  .comment {
    padding: 1rem;
  }
}

/* İletişim Sayfası Stilleri */
.contact-main {
  padding: 8rem 1rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-main h1 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.contact-info {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
  margin-bottom: 2rem;
  color: #333;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: #007bff;
}

.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  background: #007bff;
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Particles.js Stilleri */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  cursor: pointer;
}

.typed-cursor {
  opacity: 1;
  animation: blink 0.7s infinite;
  color: #fff;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Portfolyo Sayfası Stilleri */
.portfolio-main {
  padding: 8rem 1rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 100px);
}

.portfolio-main h1 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
}

.portfolio-main h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #007bff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.portfolio-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.portfolio-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.portfolio-content p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex: 1;
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.portfolio-tech span {
  background-color: #f0f0f0;
  color: #333;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.9rem;
}

.portfolio-links {
  display: flex;
  gap: 1rem;
}

.portfolio-links .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
}

.portfolio-links .btn i {
  font-size: 1.1rem;
}

.portfolio-demo {
  margin-top: 1rem;
  text-align: center;
}

.portfolio-demo .btn-secondary {
  background-color: #4a90e2;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.portfolio-demo .btn-secondary:hover {
  background-color: #357abd;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Deneyimler Bölümü */
.experience {
  padding: 8rem 1rem;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.experience::before {
  display: none;
}

.experience .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.experience h2 {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.8rem;
  position: relative;
  color: #1a1a1a;
}

.experience h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #00d2ff);
  border-radius: 2px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.experience-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.experience-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 123, 255, 0.2);
}

.experience-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #007bff, #00d2ff);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transform: rotate(-10deg);
  transition: transform 0.3s ease;
}

.experience-item:hover .experience-icon {
  transform: rotate(0deg);
}

.experience-icon i {
  font-size: 2rem;
  color: #fff;
}

.experience-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: #1a1a1a;
  font-weight: 600;
}

.experience-item p {
  color: #4a4a4a;
  line-height: 1.8;
  font-size: 1.05rem;
}

.experience-item strong {
  background: linear-gradient(90deg, #007bff, #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

@media (max-width: 768px) {
  .experience {
    padding: 6rem 1rem;
  }

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

  .experience-item {
    padding: 2rem;
  }

  .experience h2 {
    font-size: 2.2rem;
  }
}

/* İletişim Bölümü */
.contact {
  padding: 8rem 1rem;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.contact::before {
  display: none;
}

.contact .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact h2 {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.8rem;
  position: relative;
  color: #1a1a1a;
}

.contact h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #00d2ff);
  border-radius: 2px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.contact-info {
  background: rgba(255, 255, 255, 0.9);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item i {
  font-size: 1.8rem;
  color: #007bff;
  background: linear-gradient(135deg, #007bff, #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.info-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.info-item p {
  color: #4a4a4a;
}

.social-links-contact {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links-contact a {
  color: #007bff;
  font-size: 1.3rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links-contact a:hover {
  color: #3195ff;
  transform: translateY(-3px);
}

.contact-form {
  background: rgba(255, 255, 255, 0.9);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: #1a1a1a;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.submit-btn {
  background: linear-gradient(135deg, #007bff, #00d2ff);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

@media (max-width: 768px) {
  .contact {
    padding: 6rem 1rem;
  }

  .contact h2 {
    font-size: 2.2rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info,
  .contact-form {
    padding: 2rem;
  }
}

/* Scroll Animasyonları */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

.fade-in-left {
  transform: translateX(-30px);
}

.fade-in-right {
  transform: translateX(30px);
}

.fade-in-up {
  transform: translateY(30px);
}

.fade-in-down {
  transform: translateY(-30px);
}

.scale-up {
  transform: scale(0.9);
}

.rotate-in {
  transform: rotate(-10deg);
}

/* Canlı Sohbet Stilleri */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.chat-widget.minimized {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transform: none;
  cursor: pointer;
  background: linear-gradient(135deg, #007bff, #00d2ff);
}

.chat-widget.minimized .chat-header {
  height: 100%;
  padding: 0;
  justify-content: center;
}

.chat-widget.minimized .chat-avatar,
.chat-widget.minimized .chat-title,
.chat-widget.minimized .chat-toggle,
.chat-widget.minimized .chat-body {
  display: none;
}

.chat-widget.minimized::after {
  content: "\f075";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.chat-widget.minimized:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background: linear-gradient(135deg, #007bff, #00d2ff);
  color: #fff;
  cursor: pointer;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-title {
  flex: 1;
}

.chat-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chat-title p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.8;
}

.chat-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s ease;
}

.chat-widget.minimized .chat-toggle {
  transform: rotate(180deg);
}

.chat-body {
  height: 400px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

.message {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.message.sent {
  align-items: flex-end;
}

.message.received {
  align-items: flex-start;
}

.message-content {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  background: #f0f2f5;
  position: relative;
}

.message.sent .message-content {
  background: #007bff;
  color: #fff;
}

.message-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.message-content small {
  display: block;
  font-size: 0.8em;
  margin-top: 5px;
  opacity: 0.7;
}

/* Admin mesajlar sayfası için özel stiller */
.messages-page .chat-messages {
  max-height: none;
  height: calc(100vh - 200px);
}

.messages-page .message.sent {
  align-items: flex-end;
}

.messages-page .message.sent .message-content {
  background: #007bff;
  color: white;
}

.messages-page .message.received {
  align-items: flex-start;
}

.messages-page .message.received .message-content {
  background: #f0f2f5;
  color: #333;
}

.chat-input {
  display: flex;
  align-items: center;
  padding: 15px;
  border-top: 1px solid #eee;
  background: #fff;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  margin-right: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.chat-input input:focus {
  border-color: #007bff;
}

.chat-input button {
  background: #007bff;
  color: #fff;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.chat-input button:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .chat-widget {
    width: 100%;
    bottom: 0;
    right: 0;
    border-radius: 15px 15px 0 0;
  }
}

/* Admin Panel Stilleri */
.admin-panel {
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  padding: 10px;
}

.chat-list {
  max-height: 200px;
  overflow-y: auto;
}

.chat-item {
  padding: 8px 12px;
  margin: 4px 0;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.chat-item:hover {
  background: #e9ecef;
}

.chat-item.active {
  background: #007bff;
  color: #fff;
}

/* Mesaj zaman damgası */
.message-content small {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
}

/* Admin badge */
.message.received .message-content::before {
  content: "Admin";
  position: absolute;
  top: -18px;
  left: 0;
  font-size: 11px;
  color: #007bff;
  font-weight: 600;
}

/* Mesajlar Sayfası Stilleri */
.messages-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.messages-container {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 20px;
}

.messages-container h2 {
  color: #333;
  margin-bottom: 30px;
  font-size: 24px;
}

.chats-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-preview {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.chat-info {
  flex: 1;
}

.chat-info h3 {
  color: #333;
  margin-bottom: 5px;
  font-size: 18px;
}

.chat-info p {
  color: #666;
  margin-bottom: 5px;
  font-size: 14px;
}

.chat-info small {
  color: #999;
  font-size: 12px;
}

.view-chat-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.view-chat-btn:hover {
  background-color: #0056b3;
}

/* Admin menü öğesi için stil */
.admin-only {
  background-color: #dc3545;
  border-radius: 5px;
}

.admin-only a {
  color: white !important;
}

.blog-item .blog-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  height: 100%;
}

.contact-info .map-container {
  width: 100%;
  height: 250px;
  margin: 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info .map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.back-button {
  position: fixed;
  top: 2rem;
  left: 2rem;
  background: transparent;
  color: #333;
  border: none;
  padding: 0.8rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  z-index: 1000;
  pointer-events: all;
}

.back-button i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.back-button span {
  pointer-events: none;
}

.back-button:hover {
  color: #007bff;
}

.back-button:hover i {
  transform: translateX(-5px);
}

@media (max-width: 768px) {
  .back-button {
    top: 1rem;
    left: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}
