/* style.css */
:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #94a3b8;
  --accent: #06b6d4;
  --text: #e6eef6;
  --border: #1e293b;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f8fb;
  --card: #ffffff;
  --muted: #54607a;
  --accent: #0ea5a4;
  --text: #0f172a;
  --border: #e2e8f0;
  color-scheme: light;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 32px;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
}

.brand h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

/* Card Styles */
.card {
  background: var(--card);
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 30px;
}

/* About Section */
#about {
  margin-bottom: 40px;
}

#about h3 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: var(--accent);
}

#about p {
  margin-bottom: 24px;
  text-align: justify;
  line-height: 1.7;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.detail-item h4 {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 1.2rem;
}

.contact-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.contact-links a {
  color: var(--accent);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  transition: all 0.3s;
}

.contact-links a:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Skills Section */
.sidebar {
  margin-bottom: 40px;
}

.sidebar h3 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: var(--accent);
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar li {
  margin-bottom: 16px;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.sidebar li:before {
  content: "▸";
  color: var(--accent);
  position: absolute;
  left: 0;
}

.sidebar strong {
  color: var(--accent);
}

/*Skills bolmesi */

#Skills {
  margin-bottom: 60px;
}

#Skills h3 {
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: var(--accent);
}


/* Projects Section */
#projects {
  margin-bottom: 60px;
}

#projects h3 {
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.proj {
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.proj:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.8);
}

.proj h4 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--accent);
}

.proj p {
  margin-bottom: 16px;
  flex-grow: 1;
}

.tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-tag {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    margin-top: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .sidebar li {
    font-size: 0.9rem;
  }

  #about p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .brand h1 {
    font-size: 1.3rem;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-links {
    flex-direction: column;
    gap: 10px;
  }

  .contact-links a {
    text-align: center;
  }
}