@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Allura&family=Anta&family=Bruno+Ace&family=Orbitron:wght@400..900&family=Oxanium:wght@200..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  background: #0a0615;
  color: white;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(180, 80, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(142, 45, 226, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

header {
  background: rgba(10, 6, 21, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(180, 80, 255, 0.2);
  padding: 25px 50px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  pointer-events: auto;
}

header.scrolled {
  padding: 15px 50px;
  background: rgba(10, 6, 21, 0.95);
  box-shadow: 0 10px 40px rgba(180, 80, 255, 0.2);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 60px;
  align-items: center;
}

nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 0;
  font-family: 'Orbitron', sans-serif;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #b450ff, #e100ff, #b450ff);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(180, 80, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(180, 80, 255, 0.8);
}

nav a:hover::before {
  width: 100%;
}

nav a:hover::after {
  opacity: 1;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

nav a.active {
  color: #b450ff;
  text-shadow: 0 0 15px rgba(180, 80, 255, 0.8);
}

nav a.active::before {
  width: 100%;
}

main {
  margin-top: 90px;
  position: relative;
  z-index: 2;
}

.section {
  min-height: 100vh;
  padding: 100px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.glow-text {
  background: linear-gradient(135deg, #ffffff 0%, #b450ff 50%, #e100ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(180, 80, 255, 0.5));
  animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(180, 80, 255, 0.5)); }
  50% { filter: drop-shadow(0 0 50px rgba(225, 0, 255, 0.8)); }
}

#home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#home::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(180, 80, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-30%, -30%) scale(1.2); }
}

#home h1 {
  font-size: 72px;
  font-weight: 900;
  margin-bottom: 30px;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

#home p {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 50px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.explore-btn {
  position: relative;
  margin-top: 30px;
  padding: 20px 60px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  background: transparent;
  border: 2px solid rgba(180, 80, 255, 0.5);
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Orbitron', sans-serif;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.9s forwards;
}

.explore-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(180, 80, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.explore-btn:hover::before {
  left: 100%;
}

.explore-btn:hover {
  border-color: rgba(180, 80, 255, 1);
  box-shadow: 0 0 30px rgba(180, 80, 255, 0.6), 0 0 60px rgba(180, 80, 255, 0.4), inset 0 0 20px rgba(180, 80, 255, 0.2);
  transform: translateY(-5px);
}

.explore-btn:active {
  transform: translateY(-2px);
}

#about {
  padding: 120px 50px;
}

.about-container {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  max-width: 1400px;
  width: 100%;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(45deg, #b450ff, #e100ff, #8e2de2, #b450ff);
  background-size: 400% 400%;
  border-radius: 30px;
  animation: gradientRotate 6s ease infinite;
  opacity: 0.4;
  filter: blur(20px);
  z-index: 0;
}

@keyframes gradientRotate {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.profile-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  border: 3px solid rgba(180, 80, 255, 0.5);
  z-index: 1;
  transition: all 0.5s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.profile-image:hover {
  transform: scale(1.05) translateY(-10px);
  border-color: rgba(180, 80, 255, 1);
  box-shadow: 0 30px 80px rgba(180, 80, 255, 0.4);
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(180, 80, 255, 0.3), transparent 70%);
  filter: blur(50px);
  animation: pulse 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.about-title {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 20px;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

.intro-text {
  font-size: 22px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.highlight {
  color: #b450ff;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(180, 80, 255, 0.6);
  position: relative;
}

.closing-text {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  border-left: 3px solid rgba(180, 80, 255, 0.5);
  padding-left: 20px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.skill-badge {
  background: rgba(180, 80, 255, 0.1);
  border: 2px solid rgba(180, 80, 255, 0.3);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #b450ff;
  transition: all 0.3s ease;
  cursor: default;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Orbitron', sans-serif;
  position: relative;
  overflow: hidden;
}

.skill-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(180, 80, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.skill-badge:hover::before {
  left: 100%;
}

.skill-badge:hover {
  background: rgba(180, 80, 255, 0.2);
  border-color: rgba(180, 80, 255, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(180, 80, 255, 0.4);
}

.reveal-from-left, .reveal-from-right, .reveal-fade-up, .reveal-fade-down, .reveal-scale {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-from-left {
  transform: translateX(-80px);
}

.reveal-from-left.reveal-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-from-right {
  transform: translateX(80px);
}

.reveal-from-right.reveal-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-fade-up {
  transform: translateY(60px);
}

.reveal-fade-up.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade-down {
  transform: translateY(-60px);
}

.reveal-fade-down.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  transform: scale(0.85);
}

.reveal-scale.reveal-visible {
  opacity: 1;
  transform: scale(1);
}

#projects {
  padding: 120px 50px;
}

#projects h2 {
  text-align: center;
  margin-bottom: 60px;
  font-size: 56px;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
}

.project-filters {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.project-filters button {
  background: rgba(180, 80, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(180, 80, 255, 0.3);
  padding: 12px 30px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'Orbitron', sans-serif;
  position: relative;
  overflow: hidden;
}

.project-filters button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(180, 80, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.project-filters button:hover::before {
  left: 100%;
}

.project-filters button:hover {
  border-color: rgba(180, 80, 255, 0.8);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(180, 80, 255, 0.3);
}

.project-filters button.active {
  background: linear-gradient(135deg, rgba(180, 80, 255, 0.3), rgba(142, 45, 226, 0.3));
  border-color: rgba(180, 80, 255, 1);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(180, 80, 255, 0.5);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  background: rgba(20, 15, 35, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(180, 80, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: block;
  text-decoration: none;
}

.project-view-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: rgba(10, 6, 21, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(180, 80, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  opacity: 1;
}

.project-view-icon svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

/* Hover Effects */
.project-card:hover .project-view-icon {
  background: linear-gradient(135deg, rgba(180, 80, 255, 0.9), rgba(142, 45, 226, 0.9));
  border-color: rgba(180, 80, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(180, 80, 255, 0.6);
}

.project-card:hover .project-view-icon svg {
  color: white;
  transform: translate(2px, -2px);
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .project-view-icon {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
    border-radius: 10px;
  }
  
  .project-view-icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .project-view-icon {
    width: 38px;
    height: 38px;
    bottom: 12px;
    right: 12px;
  }
  
  .project-view-icon svg {
    width: 16px;
    height: 16px;
  }
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(180, 80, 255, 0.1), rgba(142, 45, 226, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(180, 80, 255, 0.8);
  box-shadow: 0 20px 60px rgba(180, 80, 255, 0.4);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-card h3, .project-card p {
  position: relative;
  z-index: 1;
  padding: 0 25px;
}

.project-card h3 {
  font-size: 22px;
  margin: 20px 0 10px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
}

.project-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 25px;
}

#contact {
  padding: 120px 50px;
}

#contact h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 56px;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
}

.contact-subtitle {
  text-align: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 60px;
  font-weight: 300;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-link {
  text-decoration: none;
  display: block;
}

.contact-card {
  background: rgba(20, 15, 35, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(180, 80, 255, 0.2);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(180, 80, 255, 0.1), rgba(142, 45, 226, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card:hover {
  transform: translateY(-10px);
  border-color: rgba(180, 80, 255, 0.8);
  box-shadow: 0 20px 60px rgba(180, 80, 255, 0.4);
}

.contact-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, rgba(180, 80, 255, 0.3), rgba(142, 45, 226, 0.3));
  border: 2px solid rgba(180, 80, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(360deg);
  border-color: rgba(180, 80, 255, 1);
  box-shadow: 0 0 30px rgba(180, 80, 255, 0.6);
}

.contact-icon svg {
  color: white;
}

.contact-card h3 {
  font-size: 20px;
  margin: 15px 0 10px;
  color: #b450ff;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  position: relative;
  z-index: 1;
}

.contact-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  margin: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.contact-card:hover .contact-text {
  color: #ffffff;
}

.back-button {
  position: fixed;
  top: 30px;
  left: 40px;
  background: rgba(20, 15, 35, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(180, 80, 255, 0.5);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3001;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.back-button:hover {
  background: rgba(180, 80, 255, 0.2);
  border-color: rgba(180, 80, 255, 1);
  transform: translateX(-5px);
  box-shadow: 0 10px 40px rgba(180, 80, 255, 0.4);
}

.back-button svg {
  transition: transform 0.3s ease;
}

.back-button:hover svg {
  transform: translateX(-5px);
}

.site-footer {
  position: relative;
  padding: 80px 50px 0;
  text-align: center;
  margin-top: 100px;
  /* border-top: 2px solid rgba(180, 80, 255, 0.2); */  /* BU SATIRI SİLİN VEYA YORUM YAPIN */
  background: transparent;
  overflow: visible;
}

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&display=swap');

.signature-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 600px;
  width: 100%;
  padding: 0 20px;
  margin: 0;
}

.signature-line {
  width: 100%;
  height: 100px;
  margin-bottom: 25px;
  opacity: 0;
  animation: drawSignature 2s ease-out forwards;
  filter: drop-shadow(0 0 25px rgba(180, 80, 255, 1))
          drop-shadow(0 0 50px rgba(180, 80, 255, 0.8));
}
.signature-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 2s ease-out forwards;
  filter: drop-shadow(0 0 15px rgba(180, 80, 255, 0.8));
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawSignature {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

.signature-text {
  font-family: 'Allura', cursive;
  font-weight: 700;
  font-size: 48px;
  background: linear-gradient(135deg, #ffffff, #b450ff, #e100ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 25px 0 15px;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInSignature 1s ease-out 1.5s forwards;
  position: relative;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(180, 80, 255, 0.9))
          drop-shadow(0 0 60px rgba(180, 80, 255, 0.7));
}

@keyframes fadeInSignature {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-year {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin: 15px 0 0;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInSignature 1s ease-out 2s forwards;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 20px rgba(180, 80, 255, 0.8),
               0 2px 10px rgba(0, 0, 0, 0.9);
  font-weight: 600;
}

.signature-container:hover .signature-text {
  filter: drop-shadow(0 0 30px rgba(180, 80, 255, 0.9));
  transform: scale(1.05);
  transition: all 0.4s ease;
}

.signature-container:hover .signature-path {
  filter: drop-shadow(0 0 25px rgba(180, 80, 255, 1));
  transition: all 0.4s ease;
}

.site-footer {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.site-footer.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

::selection {
  background: rgba(180, 80, 255, 0.4);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(180, 80, 255, 0.4);
  color: #ffffff;
}

img, a {
  -webkit-user-drag: none;
  user-drag: none;
}

input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* ===================================
   SCROLL DÜZELTMELERİ - TEMEL
   =================================== */

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
}

body {
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

body.project-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100vh;
}

.project-page {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

/* ===================================
   MOBİL RESPONSIVE DÜZELTMELERİ
   =================================== */

@media (max-width: 1400px) {
  .about-container {
    grid-template-columns: 350px 1fr;
    gap: 60px;
  }
  .about-image-wrapper {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 1200px) {
  header {
    padding: 20px 30px;
  }
  nav ul {
    gap: 40px;
  }
  .section {
    padding: 80px 30px;
  }
  .about-container {
    grid-template-columns: 1fr;
    gap: 50px;
    justify-items: center;
    text-align: center;
  }
  .about-image-wrapper {
    width: 320px;
    height: 320px;
  }
  .about-content {
    align-items: center;
  }
  .about-text {
    text-align: left;
  }
  .skills-container {
    justify-content: center;
  }
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .project-detail-container {
    padding: 40px 30px;
  }
}

@media (max-width: 992px) {
  #home h1 {
    font-size: 56px;
  }
  #home p {
    font-size: 20px;
  }
  .about-title, #projects h2, #contact h2 {
    font-size: 48px;
  }
  #detail-title {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  nav ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  nav a {
    font-size: 12px;
    letter-spacing: 1px;
    padding: 8px 0;
  }
  .section {
    padding: 60px 20px;
    min-height: auto;
  }
  main {
    margin-top: 70px;
  }
  #home {
    padding: 80px 20px;
    min-height: 100vh;
  }
  #home h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  #home p {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .explore-btn {
    padding: 16px 40px;
    font-size: 14px;
    letter-spacing: 1.5px;
    margin-top: 20px;
  }
  #about {
    padding: 60px 20px;
  }
  .about-container {
    gap: 40px;
  }
  .about-image-wrapper {
    width: 280px;
    height: 280px;
  }
  .about-image-wrapper::before {
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
  }
  .about-title {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .about-text p {
    font-size: 16px;
    line-height: 1.7;
  }
  .intro-text {
    font-size: 18px;
  }
  .skill-badge {
    padding: 10px 20px;
    font-size: 12px;
  }
  #projects {
    padding: 60px 20px;
  }
  #projects h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }
  .project-filters {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
  }
  .project-filters button {
    width: 100%;
    max-width: 280px;
    padding: 14px 30px;
    font-size: 13px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .project-card img {
    height: 200px;
  }
  .project-card h3 {
    font-size: 20px;
  }
  .project-card p {
    font-size: 14px;
  }
  #contact {
    padding: 60px 20px;
  }
  #contact h2 {
    font-size: 36px;
  }
  .contact-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-card {
    padding: 35px 25px;
  }
  .contact-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }
  .contact-icon svg {
    width: 35px;
    height: 35px;
  }
  .contact-card h3 {
    font-size: 18px;
  }
  .contact-text {
    font-size: 14px;
  }
  .project-page {
    padding-top: 0;
    height: 100dvh;
  }
  .back-button {
    position: fixed;
    top: 15px;
    left: 15px;
    padding: 12px 20px;
    font-size: 12px;
    gap: 8px;
    z-index: 3001;
  }
  .back-button svg {
    width: 18px;
    height: 18px;
  }
  .back-button span {
    display: inline;
  }
  .project-detail-container {
    margin: 80px auto 40px;
    padding: 20px 15px;
  }
  #detail-title {
    font-size: 32px;
    margin-bottom: 30px;
    line-height: 1.3;
  }
  #detail-title::after {
    width: 60px;
    height: 3px;
    bottom: -15px;
  }
  .project-media-container {
    margin: 30px 0;
    border-radius: 15px;
    border-width: 2px;
  }
  #detail-media iframe,
  #detail-media img {
    height: 250px;
    border-radius: 15px;
  }
  .project-description {
    padding: 30px 20px;
    margin-top: 30px;
    border-radius: 15px;
  }
  .project-description h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  #detail-description {
    font-size: 15px;
    line-height: 1.8;
  }
  .site-footer {
    padding: 50px 20px 30px;
    margin-top: 60px;
  }
  .signature-line {
    height: 70px;
    margin-bottom: 20px;
  }
  .signature-text {
    font-size: 32px;
    margin: 15px 0 10px;
  }
  .footer-year {
    font-size: 13px;
  }
  body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
  }
  .project-page {
    overscroll-behavior: none;
  }
}

@media (max-width: 480px) {
  nav ul {
    gap: 15px;
  }
  nav a {
    font-size: 11px;
    padding: 6px 0;
  }
  #home h1 {
    font-size: 32px;
  }
  #home p {
    font-size: 14px;
  }
  .explore-btn {
    padding: 14px 35px;
    font-size: 13px;
  }
  .about-image-wrapper {
    width: 240px;
    height: 240px;
  }
  .about-title,
  #projects h2,
  #contact h2 {
    font-size: 28px;
  }
  #detail-title {
    font-size: 26px;
  }
  #detail-media iframe,
  #detail-media img {
    height: 220px;
  }
  .project-card img {
    height: 180px;
  }
  .signature-text {
    font-size: 28px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  #home {
    min-height: auto;
    padding: 60px 20px;
  }
  #home h1 {
    font-size: 36px;
  }
  #home p {
    font-size: 15px;
  }
  .section {
    min-height: auto;
  }
  .about-container {
    grid-template-columns: 280px 1fr;
    gap: 40px;
    text-align: left;
  }
  .about-image-wrapper {
    width: 250px;
    height: 250px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .project-card:hover,
  .contact-card:hover,
  .skill-badge:hover {
    transform: none;
  }
  nav a {
    padding: 12px 8px;
  }
  .project-filters button {
    padding: 16px 30px;
    min-height: 48px;
  }
  .back-button {
    min-width: 48px;
    min-height: 48px;
  }
  .project-page {
    -webkit-overflow-scrolling: touch;
  }
}

@supports (-webkit-touch-callout: none) {
  body {
    -webkit-text-size-adjust: 100%;
  }
  .project-page {
    position: fixed;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    height: -webkit-fill-available;
  }
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===================================
   CUSTOM CURSOR - STATIC VERSION
   =================================== */
body {
  cursor: none;
}

a, button, .project-card, .contact-card, .skill-badge, 
.explore-btn, .back-button, nav a {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: #b450ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  box-shadow: 0 0 20px rgba(180, 80, 255, 0.8);
  will-change: transform;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 35px;
  height: 35px;
  border: 2px solid rgba(180, 80, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

/* Hover state - sadece boyut değişimi */
body.cursor-active .custom-cursor {
  width: 16px;
  height: 16px;
  background: rgba(180, 80, 255, 0.9);
  transition: width 0.2s ease, height 0.2s ease;
}

body.cursor-active .cursor-glow {
  width: 50px;
  height: 50px;
  border-color: rgba(180, 80, 255, 0.9);
  transition: width 0.2s ease, height 0.2s ease;
}

/* Mobilde gizle */
@media (max-width: 768px) {
  .custom-cursor,
  .cursor-glow {
    display: none;
  }
  
  body, a, button {
    cursor: auto !important;
  }
}

/* İframe üzerinde normal cursor */
.project-media-container {
  position: relative;
}

.project-media-container iframe {
  cursor: auto !important;
}

/* İframe üzerinde custom cursor'u gizle */
body.over-iframe .custom-cursor,
body.over-iframe .cursor-glow {
  opacity: 0;
  pointer-events: none;
}

/* ===================================
   LIGHTBOX İÇİN CURSOR FİX
   ================================== */

/* Lightbox açıkken normal cursor göster */
.lightbox {
  cursor: default !important;
}

.lightbox.show {
  cursor: default !important;
}

.lightbox-content {
  cursor: default !important;
}

.lightbox-content img {
  cursor: zoom-out !important;
}

.lightbox-close {
  cursor: pointer !important;
}

/* Lightbox açıkken custom cursor gizle */
body:has(.lightbox.show) .custom-cursor,
body:has(.lightbox.show) .cursor-glow {
  display: none !important;
}

/* Alternatif yöntem - JavaScript olmadan */
.lightbox.show ~ .custom-cursor,
.lightbox.show ~ .cursor-glow {
  display: none !important;
}

/* ===================================
   FOOTER BANNER - TAM GENİŞLİK
   =================================== */

.footer-banner-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  animation: fadeInBanner 1.2s ease-out 0.8s forwards;
}

@keyframes fadeInBanner {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   FOOTER BANNER - YUKARIDAN AŞAĞIYA FADE
   =================================== */

.footer-banner-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  overflow: hidden;
}

.footer-banner-full {
  position: relative;
  opacity: 0;
  animation: fadeInBanner 1.2s ease-out 0.8s forwards;
}

@keyframes fadeInBanner {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Banner'ın kendisine mask uygula - yukarıdan aşağıya saydam->opak */
.footer-banner-full img {
  width: 100%;
  display: block;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.15) 12%,
    rgba(255,255,255,0.35) 22%,
    rgba(255,255,255,0.6) 32%,
    rgba(255,255,255,0.85) 42%,
    white 55%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.15) 12%,
    rgba(255,255,255,0.35) 22%,
    rgba(255,255,255,0.6) 32%,
    rgba(255,255,255,0.85) 42%,
    white 55%
  );
}


/* Mor overlay efekti - opsiyonel ama önerilen */
.footer-banner-full::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 0;
  right: 0;
  height: 45%;

  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(180, 80, 255, 0.35) 0%,
    rgba(142, 45, 226, 0.22) 30%,
    rgba(180, 80, 255, 0.12) 50%,
    transparent 75%
  );

  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen; /* 🔥 fark burada */
}


/* Mobil */
@media (max-width: 768px) {
  .footer-banner-full img {
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 10%,
      rgba(0, 0, 0, 0.5) 20%,
      rgba(0, 0, 0, 0.75) 30%,
      rgba(0, 0, 0, 1) 45%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 10%,
      rgba(0, 0, 0, 0.5) 20%,
      rgba(0, 0, 0, 0.75) 30%,
      rgba(0, 0, 0, 1) 45%
    );
  }
}

/* Banner'ın üstüne mor glow ekle */
.footer-banner-full::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(10, 6, 21, 0.8) 0%,
    rgba(180, 80, 255, 0.15) 20%,
    rgba(142, 45, 226, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 2;
}