/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0b0c10;
  color: #e8e8ea;
  line-height: 1.6;
  padding: 20px;
}

/* HEADER */
header {
  text-align: center;
  padding: 20px 0;
}
.subtitle {
  color: #9aa0a6;
}

/* INTRO */
.intro {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 18px;
  color: #ccc;
}

/* PROJECTS */
.projects h2, .skills h2 {
  margin-bottom: 16px;
  text-align: center;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  max-width: 1200px;      /* keeps it from stretching too wide */
  margin: 0 auto;         /* centers the whole grid */
  gap: 20px;              /* spacing between cards */
  justify-content: center;
}
.project-card {
  background-color: #111218;
  border: 1px solid #23242b;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: column;
}
.project-card img {
  width: 100%;
  object-fit: cover;
  height: 350px;
}
.project-info {
  padding: 16px;
}
.project-info h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

/* SKILLS */
.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
}
.skill-box {
  background-color: #111218;
  border: 1px solid #23242b;
  border-radius: 12px;
  padding: 16px;
  width: 120px;
  text-align: center;
  flex-shrink: 0;
}
.skill-box img {
  height: 40px;
  margin-bottom: 8px;
}

/* FOOTER */
footer {
  text-align: center;
  margin-top: 60px;
  font-size: 14px;
  color: #9aa0a6;
}

.back-link {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--brand, #6aa9ff);
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
}

.project-detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #23242b;
}

.project-description h2 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 20px;
}

.project-description ul {
  padding-left: 20px;
  color: #ccc;
}
.project-description li {
  margin-bottom: 8px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand, #6aa9ff);
  text-decoration: bold;
}

.hero {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6aa9ff, #8f6aff, #6affa0);
}

.hero-name {
  font-size: 20px;
  font-weight: 600;
  color: #e8e8ea;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero h1 .highlight {
  color: #6aa9ff;
}

.tagline {
  font-size: 18px;
  color: #9aa0a6;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 20px;
  background-color: #14151c;
  color: #e8e8ea;
  border: 1px solid #23242b;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  border-color: #6aa9ff;
  background-color: #1a1c24;
}

.hero-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.intro-left {
  flex: 1 1 500px;
}

.intro-left h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
}

.intro-left .highlight {
  color: #6aa9ff;
}

.tagline {
  font-size: 18px;
  color: #9aa0a6;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.intro-right {
  flex: 1 1 360px;
}

.intro-card {
  background-color: #111218;
  border: 1px solid #23242b;
  border-radius: 20px;
  padding: 24px;
  color: #ccc;
}

.intro-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #e8e8ea;
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.intro-tag {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 14px;
  color: #ddd;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    align-items: stretch;
  }
  .intro-left h1 {
    font-size: 32px;
  }
}

.about-me {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-me h2 {
  font-size: 28px;
  margin-bottom: 24px;
  text-align: center;
}

.about-content p {
  margin-bottom: 16px;
  color: #ccc;
  font-size: 16px;
  line-height: 1.7;
}

.project-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.project-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.project-gallery img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #23242b;
  object-fit: cover;
}

.project-gif {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.project-links {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.project-link-button {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  background-color: #2c3e50;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.project-link-button:hover {
  background-color: #1a242f;
}



