:root {

  --bg: #0f172a;

  --card: #020617;

  --text: #e5e7eb;

  --muted: #94a3b8;

  --accent: #38bdf8;

}


[data-theme="light"] {

  --bg: #f8fafc;

  --card: #ffffff;

  --text: #0f172a;

  --muted: #475569;

  --accent: #0284c7;

}


* {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

  font-family: system-ui, sans-serif;

}


body {

  background: var(--bg);

  color: var(--text);

  line-height: 1.6;

}


.hero {

  position: relative;

  text-align: center;

  padding: 3rem 1rem;

  background: linear-gradient(135deg, var(--card), var(--bg));

}


.profile-pic {

  width: 140px;

  height: 140px;

  border-radius: 50%;

  border: 4px solid var(--accent);

  margin-bottom: 1rem;

}


.contact a {

  margin: 0 0.5rem;

  color: var(--accent);

  text-decoration: none;

}


.container {

  max-width: 900px;

  margin: auto;

  padding: 2rem;

}


details {

  background: var(--card);

  border-radius: 8px;

  padding: 1rem;

  margin-bottom: 1rem;

}


summary {

  font-size: 1.2rem;

  font-weight: 600;

  cursor: pointer;

  color: var(--accent);

}


ul {

  margin-left: 1.5rem;
  margin-bottom: 20px

}

ul li {
  margin-bottom: 12px
}

ul li:last-child {
  margin-bottom: 12px
}


.theme-toggle {

  position: absolute;

  top: 20px;

  right: 20px;

  border: 2px solid var(--accent);

  background: none;

  color: var(--accent);

  padding: 6px 10px;

  cursor: pointer;

  border-radius: 6px;

}


footer {

  text-align: center;

  padding: 2rem;

  color: var(--muted);

}

/* ===============================
   Blog Section (New)
   =============================== */

.blogs-section {
  margin-top: 2.5rem;
  text-align: center;
}

.blogs-section h3 {
  margin-bottom: 1.4rem;
  font-size: 1.5rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blogs-title-icon {
  font-size: 1.6rem;
}

.blog-tiles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.6rem;
  min-width: 300px;
  background: linear-gradient(
    135deg,
    var(--card),
    rgba(56, 189, 248, 0.08)
  );
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

/* Glow layer */
.blog-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(56, 189, 248, 0.25),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-tile:hover::before {
  opacity: 1;
}

.blog-tile:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.35);
}

.blog-icon {
  font-size: 1.8rem;
  animation: float 3s ease-in-out infinite;
}

.blog-text {
  flex: 1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.blog-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-arrow {
  margin-left: auto;
  font-size: 1.3rem;
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.blog-tile:hover .blog-arrow {
  transform: translateX(6px);
  opacity: 1;
}

/* Icon float animation */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, var(--card), var(--bg));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.blog-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  color: var(--accent);
}

.resume-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #1e90ff; /* bright blue for dark theme */
    color: white;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.resume-btn:hover {
    background-color: #0d6efd;
}
