:root {
  --bg-color: #1e1e1e;
  --text-color: #e1e1e1;
  --accent-color: #1f7a8c;
  --secondary-color: #bfdbf7;
  --card-bg: #1e1e1e;
  --subtle-color: #ebd9d1;
}

[data-theme="light"] {
  --bg-color: #f7f4ea;
  --text-color: #2a2a2a;
  --card-bg: #ffffff;
  --accent-color: #1f7a8c;
  --secondary-color: #a8bba3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Fira Code", monospace;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'  width='30' height='38' viewport='0 0 100 100' style='fill:black;font-size:24px;'><text y='50%'>🗡️</text></svg>")
      14 0,
    auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  padding: 4rem 0;
  text-align: center;
}

.terminal-text {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.typing-effect {
  border-right: 2px solid var(--accent-color);
  animation: blink 0.75s step-end infinite;
}
.logo {
  height: 40px;
}
h1 {
  font-size: 2.5rem !important;
  margin-bottom: 1rem !important;
  color: var(--secondary-color) !important;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.project-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s ease;
  border: 1px solid #333;
  color: var(--text-color);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.project-card p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.demo-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--text-color);
  color: var(--bg-color);
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s ease;
}
.demo-link-extra {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-bottom: 5px;
  /* background: var(--text-color); */
  color: var(--text-color);
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s ease;
}
.demo-link-extra::after {
  content: attr(title); /* use the title attribute as text */
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s ease-in-out;
}

.demo-link-extra:hover::after {
  opacity: 1;
}
.demo-link-extra:hover {
  /* background: var(--secondary-color); */
  transform: scale(1.05);
}

.tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tag {
  background: #333;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid #333;
}

@keyframes blink {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent-color);
  }
}

.contact-section {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 8px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
}

.truncate-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.project-description {
  position: relative;
  transition: all 0.3s ease;
}
.project-description p {
  margin: 0;
}

.see-more-btn {
  color: var(--accent-color);
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.see-more-btn:hover {
  text-decoration: underline;
}
.owner-section {
  background: var(--bg-color);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.owner-section a {
  color: var(--secondary-color);
}

.owner-container {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.owner-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
}

.owner-info {
  flex: 1;
  min-width: 300px;
}

.owner-name {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.owner-title {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.owner-bio {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.owner-social {
  display: flex;
  gap: 1rem;
}

.owner-social a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--text-color);
  border-radius: 2rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.owner-social a:hover {
  background: var(--text-color);
  color: var(--bg-color);
}
