/* =======================
   1. IMPORTS & GLOBAL RESET
   ======================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fdfdfd;
  color: #333;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
}

.container {
  padding-left: 0;
  padding-right: 0;
}

/* =======================
   2. NAVBAR
   ======================= */
.navbar {
  background: linear-gradient(90deg, #0d6efd, #00b4d8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.navbar-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.nav-link {
  color: white !important;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #ffe600 !important;
}
#searchBox {
  border-radius: 20px;
}
#searchBtn {
  border-radius: 20px;
  font-weight: 500;
}

.active{
  box-shadow: 0 0 2px;
  border-radius: 5px;
}

/* =======================
   3. HERO SECTION
   ======================= */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 15px;
  background: linear-gradient(-45deg, #0d6efd, #00b4d8, #48cae4, #90e0ef);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  color: white;
  border-radius: 0 0 12px 12px;
  position: relative;
}
.hero-section h1 {
  font-size: 2.5rem;
}
.hero-section h1 span {
  color: #ffe600;
}
.hero-section .knowledge {
  font-size: 1.3rem;
  font-weight: 500;
}
.hero-section .knowledge span {
  color: #ffe600;
}
.main-image img {
  width: 280px;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  animation: floatImage 4s ease-in-out infinite;
}
.scroll-down {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  animation: bounce 1.5s infinite;
  color: white;
}

/* =======================
   4. ABOUT SECTION
   ======================= */
.about-section {
  background: linear-gradient(135deg, #f8f9fa, #e9f2ff);
  padding: 50px 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.about-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}
.about-row div:first-child {
  flex: 1;
}
.about-row div:last-child {
  flex: 1;
  text-align: center;
}
.about-row img {
  max-width: 260px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-row img:hover {
  transform: rotate(3deg) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.about-section strong {
  color: #0d6efd;
}
.about-section h4 {
  margin-bottom: 15px;
}
.about-section h5 {
  margin-top: 25px;
}
.about-section a.btn-success {
  background: linear-gradient(90deg, #0d6efd, #00b4d8);
  border: none;
  font-weight: 600;
  padding: 10px 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-section a.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* =======================
   5. SKILLS SECTION
   ======================= */
.skills-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.programming {
  align-items: center;
  padding: 15px 0;
}
.programming h5 {
  font-weight: 600;
  color: #0d6efd;
}
.programming i, 
.programming img {
  font-size: 48px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.programming i:hover, 
.programming img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.2));
}
.skill-tooltip {
  position: relative;
}
.skill-tooltip::after {
  content: attr(data-skill);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #0d6efd;
  color: white;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 4px;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.skill-tooltip:hover::after {
  opacity: 1;
}



/* =======================
   6. PROJECTS SECTION
   ======================= */
.project-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-section .card-img-top {
  height: 200px;
  object-fit: top;
}
.project-section .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =======================
   7. CONTACT SECTION
   ======================= */
.contact-section {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 10px;
}
.contact-section .form-control {
  border-radius: 8px;
}
.form-s-button {
  border-radius: 8px;
  font-weight: 600;
}

/* =======================
   8. FOOTER
   ======================= */
footer {
  background: linear-gradient(90deg, #0d6efd, #00b4d8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px 8px 0 0;
}
footer p {
  font-size: 14px;
}
.footer-link a i {
  color: white;
  margin-left: 10px;
  font-size: 18px;
  transition: font-size 0.5s ease;
}
.footer-link a i:hover {
  transform: scale(1.3);
}

/* =======================
   9. ANIMATIONS
   ======================= */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes floatImage {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}
@keyframes growSkill {
  to { width: var(--skill-level); }
}

/* =======================
   10. RESPONSIVE
   ======================= */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  .about-row {
    flex-direction: column-reverse;
    text-align: center;
  }
  footer {
    flex-direction: column;
    gap: 10px;
  }
}
