body {
  background: #1a1a1a;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 48px 0 48px;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 32px;
  font-size: 1.2rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #00bfff;
}

main {
  padding: 32px 48px;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: 2px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.portfolio-item {
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.project-title {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 191, 255, 0.9);
  color: #1a1a1a;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
}

.portfolio-item img {
  width: 100%;
  display: block;
  height: 220px;
  object-fit: cover;
  background: #333;
  min-height: 220px;
}

.play-btn {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}

.play-btn:hover {
  background: #00bfff;
  color: #222;
}

.play-btn.disabled {
  background: #555;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.play-btn.disabled:hover {
  background: #555;
  color: #999;
  transform: none;
}

.play-icon {
  font-size: 1.3rem;
  margin-right: 8px;
}

.portfolio-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  position: absolute;
  left: 16px;
  bottom: 16px;
}

.webgl-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: none;
  margin-left: 0;
  z-index: 2;
}
.webgl-btn:hover {
  background: #00bfff;
  color: #222;
}
.webgl-icon {
  font-size: 1.3rem;
  margin-right: 8px;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  main {
    padding: 24px 8px;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 8px 0 8px;
  }
  nav a {
    margin-left: 16px;
    font-size: 1rem;
  }
  h1 {
    font-size: 2.2rem;
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(10,16,32,0.85);
  backdrop-filter: blur(6px) saturate(120%);
  justify-content: center;
  align-items: center;
  animation: modal-fade-in 0.4s;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal.show {
  display: flex;
}
.modal-content {
  background: linear-gradient(135deg, #232942 80%, #1a1a1a 100%);
  padding: 0;
  border-radius: 22px;
  position: relative;
  max-width: 70vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 48px 0 rgba(0,0,0,0.85);
  border: 2.5px solid #00bfff;
  animation: modal-zoom-in 0.4s;
  overflow: hidden;
}
@keyframes modal-zoom-in {
  from { transform: scale(0.85); }
  to   { transform: scale(1); }
}
.modal-header {
  width: 100%;
  background: rgba(0,191,255,0.12);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 18px 32px 8px 32px;
  box-sizing: border-box;
  text-align: center;
  letter-spacing: 1px;
}

.modal-desc {
  width: 100%;
  color: #ccefff;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 32px 32px 32px 32px;
  box-sizing: border-box;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  opacity: 0.85;
  line-height: 1.5;
  max-width: 60vw;
}
@media (max-width: 700px) {
  .modal-header, .modal-desc {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 0.95rem;
  }
  .modal-desc {
    padding-bottom: 10px;
  }
}
.close-btn {
  position: absolute;
  top: 18px; right: 28px;
  width: 44px; height: 44px;
  background: rgba(0,191,255,0.18);
  border-radius: 50%;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-shadow: 0 2px 8px #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.close-btn:hover {
  background: #00bfff;
  color: #232942;
  transform: scale(1.15) rotate(10deg);
}
#portfolio-video {
  max-width: 60vw;
  max-height: 68vh;
  border-radius: 16px;
  background: #000;
  margin: 56px 32px 32px 32px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.7);
  border: 2px solid #00bfff;
  outline: 0.5px solid #fff2;
  transition: box-shadow 0.2s, border 0.2s;
}
#portfolio-video:focus {
  box-shadow: 0 0 0 3px #00bfff99;
  border: 2.5px solid #00bfff;
}
@media (max-width: 700px) {
  .modal-content {
    max-width: 99vw;
    max-height: 99vh;
    border-radius: 10px;
    padding: 0;
  }
  #portfolio-video {
    max-width: 97vw;
    max-height: 48vh;
    margin: 36px 4px 12px 4px;
  }
  .close-btn {
    top: 6px; right: 8px;
    width: 36px; height: 36px;
    font-size: 1.5rem;
  }
  .modal-header {
    font-size: 1rem;
    padding: 10px 16px 8px 16px;
  }
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 48px 0 32px 0;
  padding: 24px 0;
  background: linear-gradient(135deg, #232942 60%, #1a1a1a 100%);
  border-radius: 24px;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.18);
}

.profile-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  border: 6px solid #00bfff;
  box-shadow: 0 10px 36px rgba(0,0,0,0.25);
  margin-bottom: 28px;
  transition: transform 0.25s, box-shadow 0.25s, border 0.25s;
}
.profile-img:hover {
  transform: scale(1.06) rotate(-1deg);
  box-shadow: 0 16px 56px rgba(0,191,255,0.18);
  border: 6px solid #fff;
}

.profile-desc {
  max-width: 520px;
  color: #eaf6fb;
  font-size: 1.18rem;
  text-align: center;
  line-height: 1.7;
  opacity: 0.96;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0 18px;
}

@media (max-width: 700px) {
  .profile-section {
    margin: 24px 0 18px 0;
    padding: 12px 0;
    border-radius: 12px;
  }
  .profile-img {
    width: 140px;
    height: 140px;
    margin-bottom: 14px;
    border-radius: 8px;
    border-width: 4px;
  }
  .profile-desc {
    font-size: 1rem;
    padding: 0 6px;
  }
}

.site-footer {
  background: #232323;
  color: #e0e0e0;
  padding: 40px 0 18px 0;
  text-align: center;
  margin-top: 48px;
  border-top: 1px solid #333;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px; /* veya 24px, 28px */
  margin-bottom: 18px;
}

.footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #232323;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 6px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  font-size: 1.6rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: none;
  text-decoration: none;
  padding: 0; /* Bunu ekle */
  box-sizing: border-box; /* Bunu ekle */
  overflow: hidden; /* Bunu ekle */
  line-height: 0; /* Eklendi: ikon tam ortalansın */
}
.footer-icon svg {
  width: 28px;   /* Sabit boyut ver */
  height: 28px;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: middle; /* Eklendi: ikon ortalansın */
}
.footer-icon:hover {
  background: #00bfff;
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,191,255,0.15);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
  font-size: 1.08rem;
}
.footer-contact a {
  color: #00bfff;
  text-decoration: none;
  transition: text-decoration 0.2s;
}
.footer-contact a:hover {
  text-decoration: underline;
}

.footer-divider {
  border: none;
  border-top: 1px solid #444;
  margin: 18px 0 12px 0;
  width: 80%;
}

.footer-copy {
  color: #b0b0b0;
  font-size: 1rem;
  margin-top: 0;
}

@media (max-width: 700px) {
  .site-footer {
    padding: 28px 0 10px 0;
  }
  .footer-social {
    gap: 16px;
  }
  .footer-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .footer-icon svg {
    width: 22px;
    height: 22px;
  }
  .footer-contact {
    font-size: 0.98rem;
  }
  .footer-divider {
    width: 95%;
  }
  .footer-copy {
    font-size: 0.92rem;
  }
}

@media (max-width: 700px) {
  .portfolio-buttons {
    flex-direction: column;
    gap: 8px;
    left: 8px;
    bottom: 8px;
    align-items: flex-start;
  }
  .webgl-btn, .play-btn {
    width: 100%;
    justify-content: flex-start;
    font-size: 0.98rem;
    padding: 8px 12px;
  }
}

.home-section { display: block; }
.contact-section { display: none; }
:target.contact-section { display: block; }
:target ~ .home-section { display: none; }

.contact-page-section {
  background: #232942;
  color: #eaf6fb;
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.18);
  margin: 48px auto 32px auto;
  padding: 40px 32px 32px 32px;
  max-width: 480px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-page-section h2 {
  font-size: 2.2rem;
  margin-bottom: 18px;
  color: #00bfff;
}
.contact-page-section p {
  font-size: 1.08rem;
  margin-bottom: 22px;
  color: #eaf6fb;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-bottom: 22px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid #00bfff;
  background: #1a1a1a;
  color: #fff;
  font-size: 1rem;
  resize: none;
  width: 100%;
  box-sizing: border-box;
}
.contact-form textarea {
  min-height: 100px;
  max-width: 100%;
}
.contact-form button {
  background: #00bfff;
  color: #232942;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.contact-form button:hover {
  background: #fff;
  color: #00bfff;
}
.contact-page-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1.08rem;
  color: #eaf6fb;
  margin-top: 10px;
  align-items: center;
}
.contact-page-info a {
  color: #00bfff;
  text-decoration: none;
}
.contact-page-info a:hover {
  text-decoration: underline;
}
@media (max-width: 700px) {
  .contact-page-section {
    padding: 18px 4px 14px 4px;
    border-radius: 10px;
    max-width: 99vw;
  }
  .contact-page-section h2 {
    font-size: 1.3rem;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 0.98rem;
    padding: 8px 8px;
  }
  .contact-form button {
    font-size: 1rem;
    padding: 10px 0;
  }
  .contact-page-info {
    font-size: 0.98rem;
  }
}

.right-align-btn {
  margin-left: auto !important;
}

.portfolio-item {
  position: relative;
}
.play-btn {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
}
.webgl-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
}
