* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #000;
  color: #f87171;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  border-bottom: 1px solid #7f1d1d;
  padding: 1.5rem 0;
}

header h1 {
  color: #fca5a5;
  font-size: 1.3rem;
}

header p {
  color: #ef4444;
  font-size: 0.85rem;
}

nav a {
  color: #f87171;
  margin-left: 1rem;
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover {
  color: #fca5a5;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  align-items: center;
  padding: 4rem 0;
}

.hero h2 {
  font-size: 2.2rem;
  color: #fca5a5;
}

.hero p {
  margin: 1rem 0;
  color: #f87171;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #b91c1c;
}

/* Avatar */
.avatar {
  width: 240px;
  height: 240px;
  border-radius: 20px;
  background: linear-gradient(135deg, #7f1d1d, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px #7f1d1d;
}

.avatar-text {
  text-align: center;
}

.avatar-name {
  font-size: 2rem;
  color: #fca5a5;
  font-weight: bold;
}

.avatar-sub {
  font-size: 0.9rem;
  color: #ef4444;
}

/* About */
#about {
  padding: 3rem 0;
  border-top: 1px solid #7f1d1d;
}

#about h3 {
  color: #fca5a5;
  margin-bottom: 1rem;
}

/* Projects */
#projects {
  padding: 3rem 0;
}

#projects h3 {
  color: #fca5a5;
  margin-bottom: 1.5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #111;
  border: 1px solid #7f1d1d;
  border-radius: 15px;
  padding: 1rem;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 0 12px #ef4444;
}

.preview {
  height: 120px;
  background: #1f1f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  border-radius: 10px;
}

.tags span {
  background: #7f1d1d;
  color: #fca5a5;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.75rem;
  margin-right: 5px;
}

/* Contact */
#contact {
  padding: 4rem 0;
  border-top: 1px solid #7f1d1d;
}

#contact h3 {
  color: #fca5a5;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

#contact h4 {
  color: #fca5a5;
  margin-bottom: 0.8rem;
}

#contact a {
  color: #f87171;
  text-decoration: none;
}

#contact a:hover {
  color: #fca5a5;
}

.newsletter {
  display: flex;
  border-bottom: 1px solid #7f1d1d;
  align-items: center;
  padding-bottom: 5px;
}

.newsletter input {
  background: transparent;
  border: none;
  color: #fca5a5;
  flex: 1;
  outline: none;
}

.newsletter button {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  font-size: 1.1rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #ef4444;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #7f1d1d;
  color: #b91c1c;
  font-size: 0.85rem;
}

.projects {
  padding: 60px 0;
}

.projects h3 {
  color: #f44;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  display: block;
  background: #111;
  border: 1px solid #700;
  border-radius: 16px;
  padding: 20px;
  color: #f55;
  text-decoration: none;
  transition: all 0.3s;
}

.project-card:hover {
  border-color: #f00;
  transform: translateY(-5px);
  box-shadow: 0 0 15px #400;
}

.preview {
  height: 140px;
  background: #222;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

.project-detail {
  padding: 60px 0;
  color: #f66;
}

.project-hero {
  text-align: center;
  margin-bottom: 40px;
}

.project-hero h2 {
  color: #f44;
  font-size: 2rem;
  margin-bottom: 10px;
}

.project-hero .subtitle {
  color: #f88;
  font-size: 1rem;
}

.project-content {
  max-width: 800px;
  margin: 0 auto;
}

.project-image {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #600;
  margin-bottom: 20px;
}

.project-content h3 {
  color: #f44;
  margin-top: 30px;
}

.project-content ul {
  list-style: square;
  padding-left: 20px;
}

.project-content li {
  margin-bottom: 5px;
  color: #f88;
}

.project-content p {
  color: #faa;
  line-height: 1.6;
}

.graybox img {
    width: 100%;
}

.graybox {
    width: 29% !important;
    margin: 1% !important;
}

.project-detail {
  padding: 60px 0;
  color: #f66;
}

.project-hero {
  text-align: center;
  margin-bottom: 40px;
}

.project-hero h2 {
  color: #f44;
  font-size: 2rem;
  margin-bottom: 10px;
}

.project-hero .subtitle {
  color: #f88;
  font-size: 1rem;
  margin-bottom: 20px;
}

.back-btn {
  display: inline-block;
  background: none;
  border: 1px solid #700;
  color: #f55;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.back-btn:hover {
  background: #f00;
  color: white;
}

.project-content {
  max-width: 900px;
  margin: 0 auto;
}

.project-content h3 {
  color: #f44;
  margin-top: 40px;
  margin-bottom: 10px;
}

.project-content p {
  color: #faa;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* --- Image Gallery --- */
.project-gallery {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.project-gallery img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px #400;
}

/* --- Buttons --- */
.btn {
  background: #f00;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
}

.btn:hover {
  background: #c00;
}