/* -------------------- General Reset -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -------------------- Body with Professional Background -------------------- */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  background-attachment: fixed;
  color: #fff;
  line-height: 1.6;
}

/* -------------------- Achievements Section -------------------- */
.achievements {
  background: rgba(255, 255, 255, 0.08);
  border-left: 6px solid #ffd369;
  border-right: 6px solid #ffd369;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
}
.achievements:hover {
  border-top: 10px solid #2ca02c;
  border-bottom: 10px solid #2ca02c;
  transition: border 0.5s ease;
}

.achievements ul {
  list-style: none;
}

.achievements li {
  margin: 0.8rem 0;
  font-size: 1.1rem;
}

/* -------------------- Education Section -------------------- */
.education {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
}

/* -------------------- Resume Button -------------------- */
.resume-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 12px 20px;
  background: #ffd369;
  color: #333;
  font-weight: bold;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}

.resume-btn:hover {
  background: #333;
  color: #ffd369;
}

/* -------------------- Gradient Background Animation -------------------- */
@keyframes gradientBG {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* -------------------- Hero Section -------------------- */
.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.hero .profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 30%;
  border: 4px solid #fff;
  margin-bottom: 1rem;
  object-fit: cover;
  transition: 0.3s;
}

.hero .profile-pic:hover {
  transform: scale(1.3);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
}

.hero .tagline {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* -------------------- Typing Animation -------------------- */
.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typing 5s steps(70) forwards;
}

.cursor {
  display: inline-block;
  color: #ffd369;
  margin-left: 2px;
  animation: blink 0.7s step-end infinite, hideCursor 5s forwards;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes hideCursor {
  0%, 99% { opacity: 1; }
  100% { opacity: 0; }
}

/* -------------------- Section Base Styling -------------------- */
section {
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #fff;
  margin: 0.5rem auto;
  border-radius: 2px;
}

/* -------------------- Journey Section -------------------- */
.journey {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: justify;
  line-height: 1.8;
}

/* -------------------- Profile Cards -------------------- */
.profile-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.8rem;
  width: 280px;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card a {
  display: inline-block;
  margin-top: 1rem;
  padding: 8px 15px;
  border-radius: 20px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card a:hover {
  background: #333;
  color: #fff;
}

/* -------------------- LeetCode Styling -------------------- */
.card.leetcode {
  background: green;
  color: #333;
  border: 2px solid #ffa116;
  box-shadow: 0 8px 20px rgba(255, 161, 22, 0.4);
}

.card.leetcode h3 {
  color: #ffa116;
}

.card.leetcode:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 161, 22, 0.7);
}

/* -------------------- Codeforces Styling -------------------- */
.card.codeforces {
  background: linear-gradient(135deg, #1f77b4, #2ca02c, #d62728, #9467bd);
  background-size: 300% 300%;
  color: #fff;
}

.card.codeforces:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* -------------------- Skills Section -------------------- */
.skill-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.badge {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.cpp    { background: linear-gradient(135deg, #007acc, #005f99); }
.python { background: linear-gradient(135deg, #ffd43b, #306998); }
.html   { background: linear-gradient(135deg, #e44d26, #f16529); }
.css    { background: linear-gradient(135deg, #264de4, #2965f1); }

/* -------------------- Contact -------------------- */
.social-links a {
  margin: 0 10px;
  font-size: 1.8rem;
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-5px);
  color: #ffd369;
}

.phone {
  margin-top: 1rem;
  font-size: 1.1rem;
}
