@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
html {
  background: #78d9f9;
}
a {
  color: white;
  text-decoration: none;
}
.navbar {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding: 25px 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;  z-index: 100;
  visibility: hidden;
  opacity: 0;
  animation: show-content 0.648s linear forwards;
  animation-delay: 0.504s;
}
@keyframes show-content {
  100% {
    visibility: visible;
    opacity: 1;
  }
}

.navbar .logo {
  font-size: 30px;
  font-weight: 700;
}
.navbar ul {
  display: flex;
}
.navbar ul li {
  list-style: none;
  margin-left: 35px;
}
.navbar ul li a {
  font-size: 20px;
  font-weight: 500;
  transition: 0.3s;
}
.navbar ul li:hover a,
.navbar ul li.active a {
  color: #78d9f9;
}
.home {
  display: flex;
  align-items: center;
  gap: 50px;
  height: 100vh;
  padding: 0 9%;
  color: white;  
  visibility: hidden;
  opacity: 0;
  animation: show-content 0.648s linear forwards;
  animation-delay: 0.72s;
}
.home-info h1 {
  font-size: 55px;
}
.home-info h2 {
  display: inline-block;
  font-size: 32px;
  margin-top: -10px;
}
.home-info h2 span {
  position: relative;
  display: inline-block;
  color: transparent;
  /* -webkit-text-stroke: .7px #78d9f9; */
  animation: display-text 16s linear infinite;
  animation-delay: calc(-4s * var(--i));
}

/* Anasayfa: 3 dönen unvan — boşluksuz 12s döngü, üst üste hizalı */
.home-info h2.home-roles {
  position: relative;
  display: block;
  min-height: 1.35em;
}
.home-info h2.home-roles span {
  position: absolute;
  left: 0;
  top: 0;
  animation: display-text-home 12s linear infinite;
  animation-delay: calc(-4s * var(--i));
}
.home-info p span {
  position: relative;
  display: inline-block;
  color: transparent;
  /* -webkit-text-stroke: .1px #78d9f9; */
  /* animation: display-text 1s linear infinite; */
  /* animation-delay: calc(-4s * var(--i)); */

}
.home-info p span::before {
  content: attr(data-text);
  position: absolute;
  width: 0%;
  color: #78d9f9;
  white-space: nowrap;
  overflow: hidden;
  animation: fill-text 1s linear infinite;
}

.cardicerik p span {
  position: relative;
  display: inline-block;
  color: #fff;
  animation: mellon-display 16s linear infinite;
  animation-delay: calc(-4s * var(--i));
}

.cardicerik p span::before {
  content: attr(data-text);
  position: absolute;
  width: 0%;
  color: #78d9f9;
  white-space: nowrap;
  overflow: hidden;
  animation: mellon-fill 4s linear infinite;
  left: 0;
  top: 0;
}

@keyframes fill-text-card {
  0%, 10% {
    width: 0;
    border-right-color: #78d9f9;
  }
  50%, 60% {
    width: 100%;
    border-right-color: transparent;
  }
  100% {
    width: 0;
    border-right-color: transparent;
  }
}

@keyframes display-text {
  25%,
  100% {
    display: none;
  }
}

/* Anasayfa 3 unvan: 12s döngü, her biri ~4s (%33.33), 16s/4 slotta kalan boşluk giderilir */
@keyframes display-text-home {
  0%,
  33.32% {
    opacity: 1;
    visibility: visible;
  }
  33.33%,
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.home-info h2 span::before
 {
  content: attr(data-text);
  position: absolute;
  width: 0%;
  color: #78d9f9;
  white-space: nowrap;
  overflow: hidden;
  animation: fill-text 4s linear infinite;
}
@keyframes fill-text {
  10%, 100% {
    width: 0;
  }
  70%, 90% {
    width: 100%;
  }
}

.home-info p {
  font-size: 16px;
  margin: 10px 0 25px;
}
.home-info .btn-sci {
  display: flex;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 10px 30px;
  background: #78d9f9;
  border: 2px solid #78d9f9;
  border-radius: 40px;
  box-shadow: 0 0 10px #78d9f9;
  font-size: 16px;
  color: #1f242d;
  font-weight: 600;
}
.btn:hover {
  background: transparent;
  color: #78d9f9;
  box-shadow: none;
}
.home-info .btn-sci .sci {
  margin-left: 20px;
}
.home-info .btn-sci .sci a {
  display: inline-flex;
  padding: 8px;
  border: 2px solid #78d9f9;
  border-radius: 50%;
  font-size: 20px;
  color: #78d9f9;
  margin: 0 8px;
}
.home-info .btn-sci .sci a:hover {
  background: #78d9f9;
  color: #1f242d;
  box-shadow: 0 0 10px #78d9f9;
}
.home-img .img-box  {
  position: relative;
  width: 33vw;
  height: 33vw;
  border-radius: 50%;
  padding: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: conic-gradient(transparent, transparent, transparent, #78d9f9);
  transform: rotate(0deg);
  animation: rotate-border 10s linear infinite;
}

.home-img .img-box::after {
  animation-delay: -5s;
}
@keyframes rotate-border {
  100% {
    transform: rotate(360deg);
  }
}

.home-img .img-box .img-item {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1f242d;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}
.home-img .img-box .img-item img {
  position: absolute;
  display: block;
  top: 30px;
  left: 8vw;
  width: 80%;
  object-fit: cover;
  mix-blend-mode: lighten;
}

.bars-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  z-index: -1;
}

.bars-animation .bar {
  width: 100%;
  height: 100vh;
  background: #1f242d;
  transform: translateY(-100%);
  animation: show-bars 0.216s ease-in-out forwards;
  animation-delay: calc(.0432s * var(--i));
}
@keyframes show-bars {
  100% {
    transform: translateY(0%);
  }
}
.home-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 20px;  margin-top: 30px;
  align-items: flex-start;
}

@media screen and (max-width: 768px) {
  .home-cards {
    margin-top: 10px;
    gap: 20px;
  }
}

.card-box {
  width: 300px;
  background-color: #1f242d;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 2px solid rgba(120, 217, 249, 0.1);
}

.card-box:hover {
  transform: translateY(-5px);
  border-color: #78d9f9;
  box-shadow: 0 0 25px rgba(120, 217, 249, 0.3);
}

.cards {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1f242d;
}

.cards a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1f242d;
}

.card-content {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 38vh;
  background: #1f242d;
  z-index: 2;
}

.card-content img {
  width: 100%;
  height: 20vh;
  display: block;
  object-fit: cover;
  margin-bottom: 0;
}

.cardicerik {
  margin-top: 0;
  padding: 15px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #fff;
  background: #1f242d;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cards a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.home-cards .card-box .card-item {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1f242d;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.rotating-border {
  position: relative;
  width: 100%;
  padding: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  overflow: hidden;
}

.rotating-border::before,
.rotating-border::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: conic-gradient(transparent, transparent, transparent, #78d9f9);
  transform: rotate(0deg);
  animation: rotate-border 10s linear infinite;
}

.rotating-border::after {
  animation-delay: -5s;
}

.card-content {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1f242d;
  z-index: 2;  
   
}

.card-content img {
  width: 100%;
  height: 20vh;
  display: block;
  object-fit: cover;
  margin-bottom: 0;
}

.card-content {
  height: 38vh;
}

/* Contact Page Styles */
.contact-container {
  width: 100%;
  max-width: 800px;
  margin: -30px auto 0;
}

.contact-box {
  background: rgba(31, 36, 45, 0.9);
  border-radius: 20px;
  padding: 30px;
  border: 2px solid rgba(120, 217, 249, 0.1);
  transition: all 0.3s ease;
}

.contact-box:hover {
  border-color: #78d9f9;
  box-shadow: 0 0 25px rgba(120, 217, 249, 0.3);
}

.contact-box h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.form-group {
  position: relative;
  margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(120, 217, 249, 0.3);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Otomatik doldurma stilleri */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0px 1000px transparent inset;
  transition: background-color 5000s ease-in-out 0s;
  background-color: transparent !important;
}

.form-group textarea {
  height: 100px;
  resize: none;
}

.form-group label {
  position: absolute;
  left: 0;
  top: 10px;
  color: #fff;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #78d9f9;
  outline: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
  transform: translateY(-20px);
  font-size: 0.8rem;
  color: #78d9f9;
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
  .navbar {
    padding: 20px 5%;
  }

  .home {
    padding: 0 5%;
  }

  .home-img .img-box {
    width: 40vw;
    height: 40vw;
  }

  .portfolio-home {
    padding: 80px 5% 40px;
  }
}

@media screen and (max-width: 991px) {
  .home {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }

  .home-info {
    margin-bottom: 50px;
  }

  .home-info .btn-sci {
    justify-content: center;
  }

  .home-img .img-box {
    width: 50vw;
    height: 50vw;
  }

  .home-img .img-box .img-item img {
    left: 50%;
    transform: translateX(-50%);
  }

  .portfolio-home {
    padding-top: 100px;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    padding: 15px 5%;
  }

  .navbar .logo {
    font-size: 24px;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    display: none;
  }

  .navbar ul.active {
    transform: translateY(0);
    opacity: 1;
  }

  .navbar ul li {
    margin: 0;
  }

  .navbar ul li a {
    font-size: 18px;
  }

  .home-info h1 {
    font-size: 40px;
  }

  .home-info h2 {
    font-size: 24px;
  }

  .home-img .img-box {
    width: 70vw;
    height: 70vw;
  }

  .contact-box {
    padding: 20px;
  }

  .contact-box h2 {
    font-size: 24px;
  }

  .portfolio-home {
    padding-top: 80px;
  }
}

@media screen and (max-width: 480px) {
  .navbar {
    padding: 10px 5%;
  }

  .home {
    padding-top: 100px;
  }

  .home-info h1 {
    font-size: 32px;
  }

  .home-info h2 {
    font-size: 20px;
  }

  .home-info p {
    font-size: 14px;
  }

  .btn {
    padding: 8px 20px;
    font-size: 14px;
  }

  .home-img .img-box {
    width: 85vw;
    height: 85vw;
  }

  .home-info .btn-sci .sci a {
    padding: 6px;
    font-size: 16px;
  }

  .portfolio-home {
    padding-top: 60px;
  }

  .portfolio-cards {
    padding: 10px;
  }
}

.nav-container {
  display: flex;
  align-items: center;
}

.nav-container ul {
  display: flex;
  list-style: none;
}

.nav-container ul li {
  margin-left: 35px;
}

.nav-container ul li a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  transition: 0.3s;
}

.nav-container ul li:hover a,
.nav-container ul li.active a {
  color: #78d9f9;
}

@media screen and (max-width: 768px) {
  .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(31, 36, 45, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99;
  }

  .nav-container.active {
    display: flex;
  }

  .nav-container ul {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .nav-container ul li {
    margin: 0;
  }

  .nav-container ul li a {
    font-size: 24px;
  }
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 100;
}

.menu-btn span {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: .3s ease;
}

.menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media screen and (max-width: 768px) {
  .menu-btn {
    display: flex;
  }
}

.portfolio-home {
  display: flex;
  flex-direction: column;
  padding: 80px 9% 40px;
  min-height: 100vh;
  color: white;
  visibility: hidden;
  opacity: 0;
  animation: show-content 0.648s linear forwards;
  animation-delay: 0.72s;
}

.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px);
  width: 100%;
  max-width: min(1380px, 100%);
  margin: 28px auto 0;
  padding: clamp(16px, 2.5vw, 28px);
  align-items: stretch;
  box-sizing: border-box;
}

.portfolio-cards .card-box {
  width: 100%;
  min-width: 0;
}

/* Portföy kartları: daha geniş görsel ve metin alanı */
.portfolio-cards .card-content {
  height: min(54vh, 560px);
}

.portfolio-cards .card-content img {
  height: min(32vh, 320px);
}

@media screen and (max-width: 1200px) {
  .portfolio-home {
    padding: 80px 5% 40px;
  }
}

@media screen and (max-width: 991px) {
  .portfolio-home {
    padding-top: 100px;
  }

  .portfolio-cards {
    gap: clamp(24px, 3vw, 36px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: min(1020px, 100%);
  }
}

@media screen and (max-width: 768px) {
  .portfolio-home {
    padding-top: 80px;
  }

  .portfolio-cards {
    gap: 22px;
    grid-template-columns: 1fr;
    max-width: min(580px, 100%);
  }
}

@media screen and (max-width: 480px) {
  .portfolio-home {
    padding-top: 60px;
  }

  .portfolio-cards {
    padding: 10px;
  }
}

@keyframes mellon-display {
  0%, 100% {
    color: #fff;
  }
}

@keyframes mellon-fill {
  0%, 10% {
    width: 0;
  }
  40%, 60% {
    width: 100%;
  }
  90%, 100% {
    width: 0;
  }
}

/* Portföy — canlı site önizleme penceresi */
.project-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.project-preview-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.project-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.project-preview-window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 90vw;
  height: 90vh;
  max-width: 90vw;
  max-height: 90vh;
  background: #1f242d;
  border-radius: 12px;
  border: 2px solid rgba(120, 217, 249, 0.35);
  box-shadow: 0 0 40px rgba(120, 217, 249, 0.15);
  overflow: hidden;
}

.project-preview-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px 14px;
  background: rgba(31, 36, 45, 0.98);
  border-bottom: 1px solid rgba(120, 217, 249, 0.2);
}

.project-preview-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

.project-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-preview-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(120, 217, 249, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.project-preview-close:hover {
  background: rgba(120, 217, 249, 0.28);
  color: #78d9f9;
}

.project-preview-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: none;
  background: #fff;
}

@media screen and (max-width: 480px) {
  .project-preview-heading {
    font-size: 0.88rem;
  }
}


