/* =========================    Global Styles & Animation    ========================= */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Times New Roman', Arial, sans-serif;
  margin: 0;
  background: radial-gradient(circle at top left, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  position: relative;
  padding-bottom: 50px;
  animation: pulseBG 20s ease-in-out infinite;
}

@keyframes pulseBG {
  0% {
    background: radial-gradient(circle at top left, #0f2027, #203a43, #2c5364);
  }
  50% {
    background: radial-gradient(circle at top right, #2c3e50, #4ca1af, #000428);
  }
  100% {
    background: radial-gradient(circle at top left, #0f2027, #203a43, #2c5364);
  }
}

body::before,
body::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 8s infinite ease-in-out alternate;
  z-index: 0;
}

body::before {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -150px;
}

body::after {
  width: 400px;
  height: 400px;
  bottom: -200px;
  right: -200px;
}

@media (max-width: 768px) {
  body::before {
    width: 150px;
    height: 150px;
    left: -50px;
  }

  body::after {
    width: 200px;
    height: 200px;
    right: -50px;
    bottom: -100px;
  }
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(30px); }
}

/* =========================    Header    ========================= */
header {
  background: linear-gradient(135deg, #141e30, #243b55, #0f9b8e);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
  color: #fff;
  padding: 50px 0 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-bottom: 3px solid #fff;
  position: relative;
  z-index: 1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.name-title {
  font-size: 3rem;
  font-weight: 900;
  margin: 0;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tagline {
  font-size: 1.3rem;
  font-weight: 600;
  color: #f0f0f0;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav {
  margin-top: 20px;
}

nav a {
  color: #fff;
  background: rgba(0, 111, 255, 0.2);
  padding: 10px 18px;
  margin: 0 10px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(0, 223, 216, 0.3);
  transition: all 0.3s ease-in-out;
}

nav a:hover {
  background: rgba(0, 223, 216, 0.8);
  color: #000;
  transform: scale(1.1);
}

/* =========================    Containers & Titles    ========================= */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #fff;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #00dfd8;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* =========================    Skills & Progress    ========================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
}

.skill-card {
  text-align: center;
  background-color: #000;
  border-radius: 10px;
  padding: 15px;
  width: 150px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.skill-card:hover {
  transform: scale(1.05);
}

.skill-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.skill-card p {
  margin: 10px 0;
  color: #fff;
  font-weight: bold;
}



/* =========================    Timeline & Education    ========================= */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.timeline li {
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #007cf0;
  border-radius: 50%;
}

.education-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.education-list li {
  background-color: #032a46;
  padding: 20px 25px;
  margin-bottom: 25px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 223, 216, 0.1);
}

/* Stylish gradient left border */
.education-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #00dfd8, #007cf0);
  border-radius: 6px 0 0 6px;
  box-shadow: 0 0 10px rgba(0, 223, 216, 0.5);
}

/* On hover: glow and lift */
.education-list li:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 223, 216, 0.3);
}

.education-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.education-list h3 {
  color: #ffd700;
  margin-bottom: 8px;
  font-size: 18px;
}

.education-list h3 span {
  font-weight: bold;
  color: #fff;
}

.education-list p {
  margin: 4px 0;
  color: #ccc;
}

.education-list .year {
  font-style: italic;
  color: #00dfd8;
}

/* =========================    Flip Cards    ========================= */
.flip-card {
  background-color: transparent;
  width: 250px;
  height: 150px;
  perspective: 1000px;
  margin-bottom: 20px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  text-align: center;
  padding: 8px;
}

.flip-card-front {
  background-color: rgba(245, 241, 241, 0.88);
  color: #000;
}

.flip-card-back {
  background-color: #00dfd8;
  color: #000;
  transform: rotateY(180deg);
}

.flip-card-back a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
}

.flip-card-back a:hover {
  text-decoration: underline;
  color: #007cf0;
}

.skillrack-logo, .Deloitte-logo {
  width: 150px;
  height: auto;
  margin: 10px 0;
}

/* =========================    About    ========================= */
.about-card {
  border: 2px solid #007cf0;
  border-radius: 10px;
  padding: 30px 20px;
  margin: 40px auto;
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 15px rgba(0,124,240,0.2);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-text {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.8;
  margin-top: 20px;
}

/* =========================    Footer & Contact    ========================= */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #111;
  color: #aaa;
  text-align: center;
  font-size: 1rem;
  padding: 8px 0;
  z-index: 999;
  border-top: 1px solid #222;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.4);
}

#contact ul img {
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}

#contact ul img:hover {
  animation: shake 0.4s ease-in-out;
}

#contact ul img:active {
  transform: translateY(-12px);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
}

/* =========================    Others    ========================= */
.section {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.section.fade-in {
  display: block;
  opacity: 1;
}

a {
  color: #000fdf;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #ffd700;
}

.certificate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  list-style: none;
  padding: 0;
  justify-content: center;
}

#projects,
#contact {
  border: 2px solid #007cf0;
  border-radius: 10px;
  padding: 30px 20px;
  margin: 40px auto;
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 15px rgba(0,223,216,0.2);
}
