/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #121212;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Reusable */
section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}
h1, h2 {
  margin-bottom: 20px;
  font-weight: 600;
}
.btn {
  padding: 10px 20px;
  border-radius: 0;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
.btn.primary {
  background: #00c896;
  color: #121212;
}
.btn.primary:hover {
  background: #00a97a;
}
.btn.secondary {
  border: 2px solid #00c896;
  color: #00c896;
}
.btn.small {
  display: inline-block;     
  color: #00c896 !important;
  background: transparent;
  border: 1px solid #00c896;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 10px;
  transition: all 0.3s ease;
}

/* Keep consistent color on all link states */
.btn.small:link,
.btn.small:visited,
.btn.small:focus,
.btn.small:active {
  color: #00c896 !important;
  border-color: #00c896;
  text-decoration: none;
}

/* Hover effect */
.btn.small:hover {
  background-color: #00c896;
  color: #121212 !important;
}


/* Hero */
.hero {
  background: #1e1e1e;
  color: white;
  text-align: center;
  padding: 100px 20px;
}
.hero h1 {
  font-size: 2.8rem;
}
.hero p {
  font-size: 1.1rem;
  margin-top: 10px;
  color: #bbb;
}
.hero-buttons {
  margin-top: 30px;
}
.hero-buttons .btn {
  margin: 0 10px;
}

/* About */
.about p {
  max-width: 700px;
  margin-bottom: 20px;
  color: #ccc;
}
.skills {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 15px;
}
.skills li {
  background: #2a2a2a;
  padding: 10px 15px;
  border: 1px solid #333;
  border-radius: 4px;
  color: #00c896;
}

/* Portfolio */
.portfolio .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.card {
  background: #1b1b1b;
  padding: 20px;
  border-radius: 0;
  border: 1px solid #2c2c2c;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px; /* Adjust based on desired height */
  transition: transform 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

/* Optional: Add a consistent max height for text block */
.card h3 {
  margin-bottom: 10px;
  color: #00c896;
  font-size: 1.2rem;
  line-height: 1.4;
  min-height: 48px; /* Enough for 2 lines of title */
}

.card p {
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 20px;
  min-height: 60px; /* Enough for ~3 lines of text */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Keep button at bottom consistently */
.card a.btn.small {
  margin-top: auto;
  align-self: flex-start;
}

/* Hover effect */
.card:hover {
  border-color: #00c896;
  transform: translateY(-5px);
}


/* Contact */
.contact {
  text-align: center;
}
.contact .social-links {
  margin-top: 15px;
}
.contact .social-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #00c896;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #1a1a1a;
  color: #888;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    margin: 10px 0;
    width: 100%;
    max-width: 300px;
  }

  .skills {
    flex-direction: column;
    align-items: center;
  }

  .portfolio .grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  section {
    padding: 40px 15px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.95rem;
  }

  footer {
    font-size: 0.75rem;
    padding: 15px;
  }
}

