:root {
  --primary-green: #008000;
  --dark-bg: #333;
  --darker-bg: #222;
  --light-bg: #f0f0f0;
  --input-dark: #444;
  --input-light: #fff;
}

body {
  background-color: black;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
  background-color: var(--light-bg);
  color: #000;
}

body.light-mode .header,
body.light-mode .projects,
body.light-mode .contact,
body.light-mode .login-form,
body.light-mode .register-form {
  background-color: #ddd;
  color: #000;
}

body.light-mode .login-form input,
body.light-mode .register-form input {
  background-color: #eee;
  color: #000;
  border: 1px solid #ccc;
}

body.light-mode nav {
  background-color: #ccc;
}

body.light-mode .photo {
  border-color: #000;
}

.header {
  text-align: center;
  padding: 20px;
  background-color: var(--dark-bg);
  border-radius: 5px;
}

.header h1 {
  margin: 0;
  font-size: 2em;
  animation: typing 3s steps(30, end);
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid white;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

.header p {
  margin: 10px 0;
}

.content {
  max-width: 800px;
  margin: 20px auto;
}

.gallery {
  text-align: center;
}

.photo {
  display: inline-block;
  margin: 10px;
  border: 2px solid white;
  max-width: 200px;
  height: auto;
  transition: transform 0.3s;
  will-change: transform;
}

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

.login-form, .register-form {
  margin: 20px 0;
  padding: 20px;
  background-color: #666;
  border-radius: 5px;
}

.login-form h2, .register-form h2 {
  margin: 0 0 15px;
  font-size: 1.5em;
}

.login-form form, .register-form form {
  display: flex;
  flex-direction: column;
}

.login-form input, .register-form input {
  width: 100%;
  margin: 5px 0;
  padding: 8px;
  background-color: var(--input-dark);
  color: white;
  border: none;
  border-radius: 3px;
  box-sizing: border-box;
}

.login-form button, .register-form button {
  margin-top: 10px;
  padding: 8px 15px;
  background-color: var(--primary-green);
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1em;
}

.login-form button:hover, .register-form button:hover {
  background-color: #006600;
}

nav {
  background-color: var(--darker-bg);
  margin-bottom: 20px;
  border-radius: 5px;
}

nav ul {
  list-style: none;
  padding: 10px 0;
  text-align: center;
  margin: 0;
}

nav ul li {
  display: inline;
  margin: 0 15px;
}

nav ul li a {
  color: var(--primary-green);
  text-decoration: none;
  font-size: 1.1em;
}

nav ul li a:hover {
  text-decoration: underline;
}

.projects {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: var(--dark-bg);
  border-radius: 5px;
}

.projects ul {
  list-style: none;
  padding: 0;
}

.projects li {
  padding: 10px;
  background: #444;
  margin: 5px 0;
  border-radius: 3px;
}

.contact {
  margin: 20px 0;
  padding: 15px;
  background-color: var(--dark-bg);
  border-radius: 5px;
  text-align: center;
}

.contact a {
  color: var(--primary-green);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.dark-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  z-index: 1000;
}

#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
}

/* Mobil Uyumluluk */
@media (max-width: 600px) {
  .content {
    padding: 10px;
  }
  .photo {
    max-width: 100%;
    margin: 5px auto;
    display: block;
  }
  .login-form, .register-form {
    padding: 10px;
  }
  .header h1 {
    font-size: 1.5em;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  nav ul li {
    margin: 10px 0;
  }
  .projects {
    padding: 10px;
  }
}
