/* GENEL STİLLER VE RESET */
:root {
    --primary-color: #007BFF; /* Ana Renk (Mavi) */
    --secondary-color: #f4f4f4; /* Arka Plan Rengi */
    --text-color: #333;
    --dark-bg: #2c3e50;
    --light-text: #ecf0f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Sayfa içi linklere yumuşak kaydırma */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 4rem 2rem;
    overflow: hidden;
    
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* HEADER VE NAVİGASYON */
header {
    background-color: #000000;
    padding: 0rem 0rem;
    position: fixed;    
    width: 100%;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    margin: auto;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* HERO (ANA KARŞILAMA) BÖLÜMÜ */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--secondary-color);
    padding: 0 1rem;
}

#hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.0rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: #007BFF; /* Parlak mavi */
    color: #fff;                /* Yazı beyaz */
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}



.btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}


/* PROJELER BÖLÜMÜ */
.proje-galerisi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    color: #090909;
    
}

.proje-karti {
    background: #e7e5e5;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proje-karti:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(159, 132, 132, 0.15);
}

.proje-karti img {
    width: 100%;
    display: block;
}

.proje-karti h3 {
    padding: 1rem 1.5rem 0.5rem;
}

.proje-karti p {
    padding: 0 1.5rem 1rem;
    font-size: 0.9rem;
}

.btn-proje {
    display: block;
    width: fit-content;
    margin: 0 1.5rem 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-proje:hover {
    background-color: #cecccc;
}

/* İLETİŞİM BÖLÜMÜ */
#iletisim {
    font-family: sans-serif;
    text-align: center;
    background-color: var(--dark-bg);
    color: var(--light-text);
}

#iletisim .section-title {
    color: #fff;
}

.email-link {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.email-link:hover {
    opacity: 0.8;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 0.5rem;
    background-color: #000000;
    color: #fff;
}

/* ANİMASYON STİLLERİ */
/* Başlangıçta gizli */
.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

/* Görünür hale geldiğinde */
.show {
  opacity: 1;
  transform: translateY(0);
}


/* Farklı elemanlara farklı animasyonlar için varyasyonlar */
.proje-karti.hidden {
    transform: translateY(50%);
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

/* MOBİL UYUMLULUK (RESPONSIVE) */
@media(max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.2rem;
    }

    nav ul {
        display: none; /* Basitlik için mobil menüyü gizliyoruz */
    }

    .section-title {
        font-size: 2rem;
    }
    
}
/* Menü */
.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu li {
  position: relative;
}

/* Dropdown link */
.menu a {
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: #333;
  padding: 10px 15px;
  display: block;
}

/* Dropdown kutusu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: #f9f9f9;
  padding: 20px;
  width: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  text-align: center;
}

/* Menü */
.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu li {
  position: relative;
}

/* Menü linkleri */
.menu a {
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: #333;
  padding: 10px 15px;
  display: block;
  cursor: pointer;
}

/* Dropdown kutusu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: #f9f9f9;
  padding: 20px;
  width: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  text-align: center;
  transition: all 0.3s ease;
}

/* Açıldığında aktif */
.dropdown-content.active {
  display: block;
}

/* Hakkımda başlık */
.section-title {
  font-family: 'Great Vibes', cursive;
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}

/* Hakkımda yazı */
.section-text {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}
.bio {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 30px auto;
  max-width: 900px;
  padding: 20px;
}

.bio-img {
  width: 200px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.bio p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.gallery {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  flex-wrap: wrap;
  max-width: 900px;
}

.gallery div {
  text-align: center;
}

.gallery-img {
  width: 250px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url("images/1.jpg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-content {
  background: rgba(11, 11, 11, 0.5); /* biraz daha koyu yap */
  padding: 10px 30px; 
  border-radius: 12px;
  min-width: 200px;
  min-height: 10px;
  box-sizing: border-box;
}

@media(max-width: 768px) {
  .hero-content {
    padding: 30px 20px;
    max-width: 90%;
  }
}

@media(max-width: 480px) {
  .hero-content {
    padding: 20px 15px;
  }
}

.social-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}
.social-links a {
    text-decoration: none; /* alt çizgi kaldır */
    color: inherit;         /* renk bozulmasın */
}


.social-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 80%;
  font-size: 30px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  background: none; /* arka plan yok */
}

.social-btn i {
  color: inherit; /* ikon kendi renginde */
}

/* Küçük sürekli animasyon (hafif yukarı aşağı hareket) */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.social-btn {
  animation: floatIcon 3s ease-in-out infinite;
}

/* Hover efekti: hafif yukarı zıplama ve parlaklık */
.social-btn:hover {
  transform: translateY(-5px);
  filter: brightness(1.2);
}

/* Orijinal ikon renkleri */
.social-btn.instagram i { color: #E1306C; }
.social-btn.facebook i { color: #1877F2; }
.social-btn.linkedin i { color: #0A66C2; }




.teknoloji-galerisi {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 25px;
  justify-items: center;
}

.teknoloji-karti {
  background: #16df040d; 
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.teknoloji-karti img {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.teknoloji-karti h3 {
  font-size: 16px;
  margin: 0;
  color: #fff;
}

.teknoloji-karti:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.teknoloji-karti:hover img {
  transform: scale(1.15);
}

/* Navbar genel */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  background: #000; /* tamamen siyah */
  color: #fff;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Sol taraf: küçük logo + müzik */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-logo {
  height: 60px;
}

/* Ortadaki ana logo */
.navbar-center {
  flex: 1;
  text-align: center;
}




/* Sağ taraf: nav linkleri ve login */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: space-evenly;
}
.navbar-right:hover {
  
  color: #ba0707;
}

.nav-links {
  display: flex;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
  border: 3px solid #f0efef;
}

.nav-links li a:hover {
  background: #00ffea;
  color: #050505;
  border: 3px solid #f6f4f4;
}

/* Login butonu */
#login-btn {
  pointer-events: auto; /* tıklanabilir yapar */
  position: relative;
  z-index: 1000;       /* diğer elementlerin üstünde görünmesini sağlar */
  background: linear-gradient(90deg, #00ffea, #009688);
  color: #000;
  padding: 10px 22px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
}
#login-btn:hover {
  background: linear-gradient(90deg, #00e0cc, #00796b);
  transform: scale(1.05);
}


/* Müzik görsel çubuğu */
.music-visual {
  width: 120px;
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.music-visual span {
  flex: 1;
  background: linear-gradient(180deg, #ff0057, #ff7b00, #00ffea, #ff00f7);
  background-size: 400% 400%;
  animation: colorShift 3s infinite, bounce 1s infinite ease-in-out;
  border-radius: 3px;
}

.music-visual span:nth-child(odd) { animation-delay: 0.2s; }
.music-visual span:nth-child(even) { animation-delay: 0.4s; }

@keyframes colorShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes bounce {
  0%,100% { height: 10px; }
  50% { height: 40px; }
}

/* Profil alanı */
#profile-container {
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  padding: 30px 25px;
  background: #1a1a1a;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(0, 255, 234, 0.5);
  color: #fff;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.profile-card p {
  margin: 12px 0;
  font-size: 16px;
  word-break: break-word;
}

#logout-btn {
  margin-top: 20px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #00ffea;
  color: #000;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#logout-btn:hover {
  background: #00d4c1;
  transform: translateY(-2px);
}

/* Giriş yapmamış kullanıcı uyarısı */
#profile-container p a {
  color: #00ffea;
  font-weight: bold;
  text-decoration: none;
}

#profile-container p a:hover {
  text-decoration: underline;
}

#profile-container {
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  padding: 30px 25px;
  background: #1a1a1a;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(0, 255, 234, 0.5);
  color: #fff;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Responsive */
@media screen and (max-width: 480px) {
  #profile-container {
    padding: 25px 15px;
  }

  .profile-card p {
    font-size: 14px;
  }

  #logout-btn {
    font-size: 14px;
    padding: 10px 15px;
  }
}
/* Profil Dropdown */
.profile-dropdown {
  position: relative;
}

#dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 40px;
  background: #1a1a1a;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 100;
}

#dropdown-content a {
  display: block;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

#dropdown-content a:hover {
  background: #00ffea;
  color: #000;
  border-radius: 5px;
}
/* Auth durumuna göre görünürlük */
body[data-auth="guest"] #profile-dropdown { display: none !important; }
body[data-auth="user"]  #login-btn        { display: none !important; }

/* Dropdown görünürlüğü */
#dropdown-content { display: none; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
#dropdown-content.active { display: block; opacity: 1; transform: translateY(0); }

/* Olası tıklanamazlık sorunlarına karşı */
#login-btn, #profile-btn { pointer-events: auto; }

/* Olası üstte kaplayan layer varsa menüyü üste al */
#dropdown-content { position: absolute; z-index: 1000; }

#rainbow-text {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

#rainbow-text span {
  display: inline-block;
  transition: all 0.4s ease;
  position: relative;
  color: #333; /* normal hali */
}

/* Hover olduğunda harflerin rengi gradient oluyor */
#rainbow-text:hover span {
  background: linear-gradient(90deg, #ff0080, #ff8c00, #40e0d0, #8a2be2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: draw 0.6s forwards;
}

/* Her harfe ufak bir gecikme (çizgi gibi sırayla çıkar) */
#rainbow-text:hover span:nth-child(1) { animation-delay: 0s; }
#rainbow-text:hover span:nth-child(2) { animation-delay: 0.05s; }
#rainbow-text:hover span:nth-child(3) { animation-delay: 0.1s; }
#rainbow-text:hover span:nth-child(4) { animation-delay: 0.15s; }
#rainbow-text:hover span:nth-child(5) { animation-delay: 0.2s; }
/* uzun yazıysa bunu JS ile otomatik de yapabiliriz */

@keyframes draw {
  0%   { transform: translateY(100%); opacity: 0; }
  60%  { transform: translateY(-5%); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

.child-animation {
  position: fixed;
  bottom: 10px;
  left: -150px;  /* video genişliğine göre ayarla */
  width: 100px;
  height: auto;
  z-index: 999;
  pointer-events: auto; /* Buton artık tıklanabilir olacak */
  animation: moveChild 5s linear infinite;
}

.child-animation video {
  width: 100%;
  height: auto;
}

@keyframes moveChild {
  0% { left: -150px; }
  100% { left: 100vw; }
}


.register-btn {
  display: inline-block;
  padding: 8px 18px;
  background: #00ffea;
  color: #000;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}
.register-btn:hover {
  background: #00d4c1;
  transform: scale(1.05);
}

/* style.css */
body.login-page {
  background-color: #000;
  padding-top: 100px;
}
/* style.css */
body.register-page {
  background-color: #000;
}

body.register-page main {
  padding-top: 150px;
}



/* Hover efekti: renk değişimi ve hafif yukarı kayma */
nav.navbar .logo:hover {
  color: #08e7d4;
  transform: translateY(-3px);
  text-shadow: 0 0 8px #00ffea, 0 0 12px #08e7d4;
}

/* Logo efekti */
nav.navbar .logo-img {
  height: 65px;
  transition: all 0.4s ease;
}

/* Hover efekti: büyüme + gölge */
nav.navbar .logo-img:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 20px #00ffea;
}

/* Küçük sürekli animasyon (opsiyonel) */
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
nav.navbar .logo-img {
  animation: floatLogo 3s ease-in-out infinite;
}

.register-page nav.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  padding: 10px 20px;
  height: 80px; 
  box-sizing: border-box;
}

/* Slide + Elastic + Staggered efekt */
.slide-elastic {
  opacity: 0;
  transform: translateX(-80px) scale(0.8);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  font: poppins,sans-serif;
}

.slide-elastic.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}
/* Slide + Elastic + Neon + Gradient efekt */
.slide-neon {
  opacity: 0;
  transform: translateX(-80px) scale(0.8);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  background: linear-gradient(90deg, #ffffff, #f4f4f4, #e6e8e7, #f0eef1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 4px #000000) drop-shadow(0 0 6px hsl(0, 46%, 5%));
}

.slide-neon.show {
  opacity: 1;
  transform: translateX(0) scale(1);
  animation: neonGlow 1.5s ease-in-out infinite alternate;
}

/* Başlangıçta gizli ve sola kaymış */

/* Show Projects butonu görünür ve kontrastlı olsun */
.show-project-btn {
    display: inline-block;
    background-color: #575656; /* Parlak mavi */
    color: #fff;                /* Yazı beyaz */
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

/* Hover animasyonu */
.show-project-btn:hover {
    background-color: #0056b3; /* Hover rengi */
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-center {
  flex: 1;
  text-align: center;
}

.ekg {
  width: 700px;   /* boyut */
  height: 40px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-center {
  flex: 1; /* Ortadaki EKG çizgisini sol ve sağ arasında esnetir */
  display: flex;
  align-items: center;
}

.ekg {
  width: 100%;
  height: 40px; /* Yüksekliği ayarlayabilirsin */
}

.navbar-right ul {
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-right a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}
