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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

:root {
  --text: #F0F0F2;
  --muted: #A0A0AB;
  --border: rgba(255, 255, 255, 0.08);
  --surface: #16161D;
  --accent: #6366F1;
  --accent-2: #AC94FA;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: 
    radial-gradient(1200px 600px at 20% 10%, rgba(99, 102, 241, 0.15), transparent 55%),
    radial-gradient(900px 500px at 80% 30%, rgba(172, 148, 250, 0.12), transparent 60%),
    linear-gradient(180deg, #0B0B10 0%, #12121A 40%, #0F0F14 100%);
  line-height: 1.6;
}

/* ---------------- NAVBAR ---------------- */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background 0.3s ease;
}

.top-bar.scrolled nav {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.top-bar nav {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  background: rgba(15, 15, 20, 0.75);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.top-bar nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}
.top-bar nav ul li a {
  text-decoration: none;
  padding: 10px 30px;
  color: inherit;

  transition: all 0.8s ease;

  
  
}

.top-bar nav ul li a:hover {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 90px;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  transform: translateY(-10px);
  
}


/* ---------------- HERO ---------------- */
#name-topbar::after {
  content: "|";
  animation: blink 0.7s step-end infinite;
}

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

.hero-content {
  display: flex;
  height: 400px;
  max-height: 400px;
  justify-content: center;
}

.hero-left-text {
  display: grid;
  margin: 10px;
  max-width: 1000px;
}

#hello-topbar, #name-topbar {
  font-size: clamp(50px, 5vw, 80px);
  text-decoration: underline;
  font-weight: 900;
  letter-spacing: 0.25ch;
  margin: 70px;
  text-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

.hero-left-text #name-topbar {
  margin: 60px 90px 0 200px;
}

/* ---------------- MAIN LAYOUT ---------------- */
.content-wrapper {
  max-width: 1400px;
  margin: 40px auto;
  padding-inline: 20px;
  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(300px, 1fr));
  gap: 100px;
}

/* ---------------- ABOUT ---------------- */
#about {

  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1400px;

  
}

.about-text-content {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.4rem);
  hyphens: auto;
 max-width: 800px;
  text-align: center;
  

}

/* ---------------- SKILLS ---------------- */
.skills-layout{
  display: block;
  width: 100%;
  place-items: grid;
  height: 681.8px;
  
  
}

.skills{
    display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
 
  

}
.skills ul{
  list-style: none;
  font-size: 1.2rem;
  color: white;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 55px;
}
.skills ul li i {
  font-size: 1.5rem;
  margin-right: 12px;
}

.fa-html5    { color: #E34F26; }
.fa-css3-alt { color: #1572B6; }
.fa-js       { color: #F7DF1E; }
.fa-php      { color: #777BB4; }

.skills ul li{
width: auto;
   padding: 0 20px;
   width: 300px;
  height: 100px;
   background: #111;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease ;
}

.skills ul li::before{
  content: "";
  position: absolute;
  top: 0%;
  left: 0%;
 width: 300px;
  height: 500px;
  background: linear-gradient(
    0deg, 
    transparent, 
    transparent 0px, 
    rgba(0,255,255,0.3)
  );
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
}
.skills ul li:hover{
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0,255,255,0.5);
}
.skills ul li:hover::before {
  opacity: 1;
 transform: rotate(180deg);

}

.skills-content h1{
    color: aliceblue;
  font-size: 3rem;
  position: relative;
  z-index: 2;
  margin: 2px 0 40px 0;

}
.skills-content{
 text-align: center;

 
 
}

/* ---------------- PROJECTS ---------------- */
.hidden{
  opacity: 0;

   transform: translateY(90px);
   transition: opacity  3s  ease,transform 3s ease;

}
.show{
  opacity: 1;
  transform: translateY(0);
}

.project-card:nth-child(1) { transition-delay: 0s; }
.project-card:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(3) { transition-delay: 0.4s; }
#projects { 
  display: block; 
  width: 100%;
 
}

.projects-grid {
  display: grid;
  
  max-width: 1240px; 
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-content: center; 
  place-items: center; 
  padding: 40px;
}
.project-card {
  display: grid;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
  min-height: 450px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03); 
  border-radius: 20px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.project-card:hover{
  
  border: solid 4px rgba(253, 33, 9, 0.818);
  
}
/*
.project-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
*/
.project-card h3 { font-size: 1.8rem; margin: 15px 10px; color: #FFFFFF; }

.project-card p { 
  font-size: 1.1rem; ;
  font-weight: 800;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-style: oblique;
  
}
.project-card a{
  text-decoration: none;
   color: rgb(220, 20, 60);
   font-weight: 900;
   word-spacing: 2px;
   line-height: 2px;
   cursor: pointer;

}


/* ---------------- CONTACT & SOCIAL ---------------- */
#contact { padding: 40px 20px; }

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  box-shadow: 0px 0px 15px 9px rgba(253, 35, 2, 0.492);
  transition: all 0.3s ease;
  display: grid;
  gap: 20px;
  border-radius: 10px;
    
}

.contact-form:hover {
  box-shadow: 0px 0px 25px 15px rgba(253, 35, 2, 0.692);
  

  
}

.contact-form form { display: grid; gap: 30px; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}








/*--------------Floating Label-------------------*/


.input-group {
  position: relative;
  margin-top: 20px;
  width: 100%;
  max-width: 400px;



}

.input-group label{
  position: absolute;
  top: -10px;
  left: 15px;
  background-color: black;
  color: white;
  padding: 0 5px;
  font-size: 13px;
  font-size: 1em;
  pointer-events: none;

}



.input-group input,
.input-group textarea{
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 3px solid rgb(83, 113, 35);
  background: transparent;

  color: white;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s;



}

.input-group input:focus ,textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.submit-btn{
  position: relative;
  padding: 10px;
  font-size: 16px;
  color: #fff;
  background-color: var(--accent);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  top: 40px;
  transition: background-color 0.3s;
  
  
}

.social-contacts ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 60px 0;
  list-style: none;
}

.social-contacts a {
  position: relative;
  z-index: 1;
  font-size: 1.88rem;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  display: inline-block;
  transition: 0.4s ease-in-out;
}

/* Social Media Hover adn Animation */
.social-contacts a:hover {
  font-size: 2.4rem;
  color: #E4405F;
  animation: bounce 0.5s ease;
}

.social-contacts a::after {
  content: "";
  position: absolute; 
  top: 0; left: 0; right: 0; bottom: 0;
  border: solid 2px currentColor; /* Renk a:hover'dan gelir */
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
}

.social-contacts a:hover::after {
  opacity: 1;
  animation: rondje 0.8s ease-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes rondje {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------------- BACK TO TOP ---------------- */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-4px);
  background: var(--accent-2);
}

/* ---------------- RESPONSIVE (MEDIA QUERIES) ---------------- */
@media (max-width: 768px) {
  /* Navbar */
  .top-bar nav { height: auto; padding: 12px 0; }
  .top-bar nav ul { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .top-bar nav ul li a { padding: 8px 14px; font-size: 0.8rem; }

  /* Hero */
  .hero-content { height: auto; padding: 30px 16px; }
  .hero-left-text { margin: 0; }
  #hello-topbar, #name-topbar {
    font-size: clamp(36px, 10vw, 60px);
    text-align: center;
    margin: 10px 16px;
  }
  .hero-left-text #name-topbar { margin: 6px 16px; }

  /* About */
  #about { grid-template-columns: 1fr; text-align: center; }

  /* Skills */
  .skills ul { gap: 20px; }
  .skills ul li { width: 100%; max-width: 320px; height: 70px; }
  .skills ul li::before { width: 100%; }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 20px 12px;
  }

  /* Contact form */
  .contact-form { padding: 24px 16px; }
  .input-group { max-width: 100%; }
  .input-group input,
  .input-group textarea { font-size: 16px; /* iOS zoom önleme */ }
  .input-group textarea { min-height: 120px; }
  .submit-btn { top: 20px; width: 100%; }
}