:root {
  --light-bg: #c9e8e8;
  --light-text: #122d53;
  --light-accent: #c2be96;

  --dark-bg: #0f314c;
  --dark-text: #f3f3f3;
  --dark-accent: #2bcac8;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--light-bg);
  color: var(--light-text);
  transition: background 0.3s, color 0.3s;
  scroll-behavior: smooth;
}

.dark-mode {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: transparent;
  position: fixed;
  width: 100%;
  z-index: 999;
  backdrop-filter: blur(12px);
}

.navbar .logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--light-accent);
}

.dark-mode .navbar .logo {
  color: var(--dark-accent);
}

.nav-right {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav-link{
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.dark-mode .nav-link {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.nav-link:hover {
  text-decoration: underline;
}

select,
button {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: var(--light-accent);
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
}

.dark-mode select,
.dark-mode button {
  background: var(--dark-accent);
  color: black;
}

.dark-mode .hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
  background: linear-gradient(to bottom, #05091e 40%, transparent);
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
  background: linear-gradient(to bottom, #714e88 40%, transparent);
}

.profile-pic {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 16px rgba(0,0,0,0.4);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.hero span {
  color: var(--light-accent);
}

.dark-mode .hero span {
  color: var(--dark-accent);
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.cv-button {
  margin-top: 18px;
  background: var(--light-accent);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.cv-button:hover {
  opacity: 0.85;
}

.social-icons {
  margin-top: 16px;
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: 1.6rem;
}

.social-icons a {
  color: inherit;
  transition: 0.3s;
}

.social-icons a:hover {
  color: var(--light-accent);
}

.dark-mode .social-icons a:hover {
  color: var(--dark-accent);
}

.wave-container {
  width: 100%;
  overflow: hidden;
  position: absolute;
  bottom: 0;
}

.wave {
  height: 120px;
  background: url();
  background-size: cover;
  animation: waveMove 8s ease-in-out infinite alternate;
}

@keyframes waveMove {
  from {
    transform: translateX(0px);
  }
  to {
    transform: translateX(-100px);
  }
}

.section {
  padding: 80px 30px;
  max-width: 980px;
  margin: auto;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}

.dark-mode .project-card {
  background: #2e2e44;
  color: var(--dark-text);
}

.project-card:hover {
  transform: translateY(-4px);
}

.contact-form {
  max-width: 600px;
  margin: auto;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.dark-mode .contact-form {
  background: #2e2e44;
  color: var(--dark-text);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--light-accent);
}

.contact-form button {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  background: var(--light-accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  opacity: 0.9;
}


footer {
  padding: 30px;
  text-align: center;
  background: #c9e8e8;
}

.dark-mode footer {
  background: #0f314c;
  color: #aaa;
}

@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 40px;
  border-radius: 16px;
  max-width: 600px;
  animation: fadeIn 0.4s ease-in-out;
}

.dark-mode .modal-content {
  background-color: #2a2a3d;
  color: #ddd;
}

.close {
  color: #888;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: red;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.blog-link {
  color: inherit;
  text-decoration: none;
}

.small-hero {
  padding: 80px 20px 40px;
  text-align: center;
}
/* Blog yazısı genel alanı */
.blog-post {
  max-width: 780px;
  margin: auto;
  text-align: left;
  line-height: 1.8;
  font-size: 1.06rem;
  color: inherit;
}

/* Başlık düzenleme */
.blog-post h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--light-accent);
  padding-bottom: 4px;
}
.dark-mode .blog-post h2 {
  border-color: var(--dark-accent);
}

/* Paragraflar */
.blog-post p {
  margin-bottom: 18px;
}

/* Liste öğeleri */
.blog-post ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
.blog-post li {
  margin-bottom: 8px;
  list-style-type: disc;
}

/* Kod blokları */
.blog-post pre {
  background: #f0f0f0;
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
  font-family: monospace;
  font-size: 0.95rem;
}
.dark-mode .blog-post pre {
  background: #2b2b3d;
  color: #eee;
}

/* Görseller */
.blog-image {
  max-width: 100%;
  display: block;
  margin: 24px auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Paylaşım alanı */
.social-share {
  margin-top: 40px;
  font-size: 0.95rem;
  text-align: center;
}
.social-share a {
  text-decoration: none;
  color: var(--light-accent);
  margin: 0 8px;
  font-weight: bold;
}
.dark-mode .social-share a {
  color: var(--dark-accent);
}
.mail-link {
  color: var(--light-accent);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}
.dark-mode .mail-link {
  color: var(--dark-accent);
}

.email-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.social-icons a {
  margin: 0 12px;
  color: inherit;
  transition: transform 0.2s;
}
.social-icons a:hover {
  transform: scale(1.2);
  color: var(--light-accent);
}

