/* ===== VARIABLES ===== */
:root {
  /* Dark Mode Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #131c31;
  --bg-card: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #8095f3;
  --accent-secondary: #10b981;
  --border-color: #334155;
  --code-bg: #1e293b;
  --code-text: #e2e8f0;
  --code-comment: #64748b;
  --code-keyword: #93c5fd;
  --code-function: #c4b5fd;
  --code-string: #86efac;

  /* Fonts */
  --font-primary: "Inter", sans-serif;
  --font-code: "Fira Code", monospace;

  /* Sizes */
  --container-width: 100%;
  --header-height: 80px;
  --section-padding: 100px 0;
  --border-radius: 8px;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ===== MODERN SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgb(12, 97, 153);
}

::-webkit-scrollbar-thumb {
  background: rgb(12, 97, 153);
  border-radius: 10px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(20, 63, 92);
}

/* Firefox için scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgb(20, 63, 92) rgba(15, 23, 42, 0.6);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle at 25px 25px,
    rgba(255, 255, 255, 0.05) 2px,
    transparent 0
  );
  background-size: 30px 30px;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-primary);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font-family: var(--font-primary);
  font-size: 1rem;
  outline: none;
  border: none;
}

/* ===== UTILITY CLASSES ===== */
.accent-text {
  color: rgba(162, 248, 91, 0.9);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.primary-btn {
  background-color: var(--accent-primary);
  color: white;
}

.primary-btn:hover {
  background-color: #2563eb;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.outline-btn {
  background-color: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
}

.outline-btn:hover {
  background-color: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Modern Button Styles */
.modern-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-width: 180px;
}

.modern-btn i {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.modern-btn:hover i {
  transform: translateY(-2px);
}

.modern-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transition: all 0.5s ease;
}

.modern-btn:hover::before {
  width: 100%;
}

.primary-btn.modern-btn {
  background: linear-gradient(135deg, #8095f3, #2563eb);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
  border: none;
}

.primary-btn.modern-btn:hover {
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
}

.outline-btn.modern-btn {
  background: transparent;
  border: 2px solid #8095f3;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.outline-btn.modern-btn:hover {
  background: linear-gradient(135deg, rgba(128, 149, 243, 0.1), rgba(37, 99, 235, 0.1));
  border-color: #2563eb;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
  transform: translateY(-3px);
}

/* Container */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

.delay-4 {
  transition-delay: 0.8s;
}

/* Section Styles */
section {
  padding: var(--section-padding);
  position: relative;
  width: 100%;
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle at 25px 25px,
    rgba(255, 255, 255, 0.03) 2px,
    transparent 0
  );
  background-size: 30px 30px;
  z-index: -1;
  opacity: 0.8;
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.section-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== CODE BLOCK STYLES ===== */
.code-block {
  background-color: var(--code-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--accent-primary);
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: var(--font-code);
  font-size: 0.9rem;
  line-height: 1.5;
}

.code-block code {
  color: var(--code-text);
}

.code-comment {
  color: var(--code-comment);
}

.code-keyword {
  color: var(--code-keyword);
}

.code-function {
  color: var(--code-function);
}

.code-string {
  color: var(--code-string);
}

.code-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(59, 130, 246, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: -1;
  opacity: 0.3;
  right: 0;
  top: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: transparent;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  z-index: 1000;
  transition: var(--transition-fast);
}

.navbar.scrolled {
  height: 70px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-code);
}

.logo span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  position: relative;
  font-weight: 200;
  letter-spacing: 1px;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.theme-toggle,
.mobile-menu {
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-toggle:hover,
.mobile-menu:hover {
  color: var(--accent-primary);
}

.mobile-menu {
  display: none;
}

/* Dil değiştirme butonu */
.language-switch {
  display: flex;
  gap: 30px;
  justify-content: flex-end;
  align-items: center;
  margin-left: 15px;
  margin-right: 15px;
}

.lang-link {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.lang-link:hover {
  background-color: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

@media (max-width: 768px) {
  .language-switch {
    margin-right: 10px;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  width: 100%;
  margin: 0 auto;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 30% 50%,
      rgba(59, 130, 246, 0.08),
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(16, 185, 129, 0.08),
      transparent 60%
    );
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: flex-start;
  max-width: 800px;
  z-index: 1;
  padding: 0 20px;
  text-align: center;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 30px;
  gap: 30px;
}

.hero-top h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  text-align: left;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.social-link:hover {
  background-color: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img-container {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(28, 164, 255, 0.2);
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .modern-btn {
    width: 100%;
  }
}