/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;700&display=swap');

:root {
  --black: #111217;
  --accent: #fdc064;
  --accent-dark: #53c4a1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Comfortaa', cursive;
  text-decoration: none;
  border: none;
  outline: none;
}

body {
  background: linear-gradient(to bottom, #010a13 20%, #bd2d09 100%);
  color: white;
  overflow-x: hidden;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: transparent;
}

.logo {
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

nav a {
  font-size: 1.6rem;
  color: white;
  margin-left: 3rem;
  transition: 0.3s;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

section.home {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10rem 8%;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.home-content {
  max-width: 600px;
}

.home-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

span {
  color: var(--accent);
}

.typing-text {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.typing-text span::before {
  content: "oyun geliştiriciyim";
  animation: typing 12s steps(30) infinite;
  color: var(--accent);
}

@keyframes typing {
  0%, 20%   { content: "oyunlar geliştiriyorum"; }
  21%, 40%  { content: "çizim yapıyorum"; }
  41%, 60%  { content: "hayal ettiklerimi kodluyorum"; }
  61%, 80%  { content: "dijital tasarım yapıyorum"; }
  81%, 100% { content: "sanatla yazılımı buluşturuyorum"; }
}

.social-icons {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.2rem;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--accent);
  transition: 0.3s ease;
}

.social-icons a:hover {
  background: var(--accent);
  color: black;
  transform: scale(1.2) translateY(-5px);
}

.btn {
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  border: 2px solid var(--accent);
  border-radius: 30px;
  background: transparent;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  color: black;
  box-shadow: 0 0 10px var(--accent);
}

.projects {
  padding: 8rem 8%;
  color: white;
}

.project-container {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.project-container h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.project-container p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.project-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.project-images img {
  max-width: 300px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  transition: 0.3s ease;
}

.project-images img:hover {
  transform: scale(1.05);
}

.mountain-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to top, #010a13, transparent);
  clip-path: polygon(
    0% 100%, 15% 75%, 30% 85%, 45% 70%,
    60% 80%, 75% 75%, 90% 85%, 100% 70%, 100% 100%
  );
  z-index: -1;
  pointer-events: none;
}

.img-modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.img-modal .modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80vh;
  border-radius: 10px;
  border: 3px solid var(--accent);
}

.img-modal .close {
  position: absolute;
  top: 30px;
  right: 60px;
  color: var(--accent);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.project-logo {
  text-align: center;
  margin-bottom: 1rem;
}
.project-logo img {
  max-width: 120px;
  border-radius: 8px;
  transition: 0.3s ease;
}
.project-logo img:hover {
  transform: scale(1.1);
}
