
:root {
  --bg: #1a1e23;
  --card: #23272f;
  --text: #f5f5f5;
  --accent: #ff6b4a;
  --accent-hover: #ff3e1d;
  --tag: #2f353c;
}

body.light {
  --bg: #ffffff;
  --card: #f2f2f2;
  --text: #111111;
  --accent: #ff6b4a;
  --accent-hover: #e85326;
  --tag: #dddddd;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.4s, color 0.4s;
}

.theme-toggle {
  position: fixed;
  top: 15px;
  right: 20px;
  font-size: 1.2rem;
  background: transparent;
  color: var(--accent);
  border: none;
  cursor: pointer;
}

header.hero {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--card);
}

.hero h1 {
  font-size: 2.8rem;
}

.hero h2 {
  color: var(--accent);
}

.hero .highlight {
  color: var(--accent);
}

.hero-buttons .btn {
  margin: 1rem 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn.primary {
  background-color: var(--accent);
  color: #ffffff;
  border: none;
}


.btn.secondary {
  border: 2px solid var(--tag);
  color: var(--tag);
  background: transparent;
}

.btn:hover {
  background-color: var(--accent-hover);
  color: #fff;
}

.skills, .about, .projects, .contact {
  padding: 3rem 2rem;
  text-align: center;
}

.tech-tags span, .tags span {
  background-color: var(--tag);
  margin: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  display: inline-block;
  font-size: 0.9rem;
}

.project-card {
  background-color: var(--card);
  margin: 1.5rem auto;
  padding: 1.5rem;
  max-width: 750px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  text-align: left;
}

.btn {
  margin: 1rem 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn.primary {
  background-color: var(--accent);
  color: #ffffff;
  border: none;
}

.btn:hover {
  background-color: var(--accent-hover);
  color: #fff;
}


form input, form textarea {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 1rem auto;
  padding: 1rem;
  border: none;
  border-radius: 5px;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--card);
}

.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}


.about, .projects, .contact {
  padding: 3rem 2rem;
  text-align: center;
}

.about p, .projects p {
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

.project-card {
  background-color: var(--card);
  margin: 1.5rem auto;
  padding: 1.5rem;
  max-width: 750px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  text-align: left;
}

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

.project-card .tags {
  margin-top: 1rem;
}

.project-card .tags span {
  background-color: var(--tag);
  margin: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  font-size: 0.85rem;
}

.nav {
  background-color: var(--card);
  padding: 1rem;
  text-align: center;
}

.nav a {
  color: var(--accent);
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}

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

.project-card > div[data-share-badge-id] {
  margin-top: 1rem;
  /* centers the badge iframe inside the card */
  display: flex;
  justify-content: center;
}

.btn.secondary {
  border: none;  
  color: #bbb;
  background: transparent;
  cursor: pointer;
}

.btn.secondary:hover {
  color: var(--accent);  /* accent color on hover */
}

.about-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  justify-content: flex-start;
  flex-wrap: wrap; /* Allows stacking on small screens */
}

.about-image img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex: 0 0 300px;
}

.bio {
  flex: 1;
  max-width: 600px;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  margin-top: 0;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio {
    max-width: 100%;
  }
}

.github-link {
  color: white
}







.cert-badge {
  width: 180px;
  height: auto;
  margin-top: 0.5rem;
  border-radius: 8px;
}

.figma-embed {
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.figma-embed iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 10px;
}

/* Section below for the skills and other content */
.about-details {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 0 2rem;
  text-align: left;
}

.tech-tags span {
  margin: 0.4rem 0.5rem 0.4rem 0;
}

a, a:visited {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.btn:visited {
  color: inherit;
}

.btn, .project-btn {
  background-color: #f97316; /* Orange tone (Tailwind orange-500) */
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover, .project-btn:hover {
  background-color: #ea580c; /* Slightly darker orange */
}
