* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #61b6f3, #f75bea);
  animation: grandient-change s infinite;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

@keyframes gradient-change{
  0%{
    background: linear-gradient(to right, #61b6f3, white)
  }
  50%{
     background: linear-gradient(to right, white, rgb(216, 131, 242))
  }
  100%{
     background: linear-gradient(to right, rgb(216, 131, 242), #f75bea)
  }
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0d1b2a;
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.logo span {
  color: #e0bbE4;
}
.menu {
  display: flex;
  align-items: center;
}
.menu-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.menu-links li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}
.menu-links li a:hover {
  color: #e0bbE4;
}
.btn-cv {
  background-color: #bbc0e4;
  color: #0d1b2a;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: white;
  margin-left: 1rem;
}

/* Hero/Home Section */
.hero {
  height: 90vh;
  background: linear-gradient(to right, #0d1b2a, #1b263b);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.hero h1 {
  font-size: 2.5rem;
  animation: fadeInDown 1s ease-out forwards;
}
.hero p {
  font-size: 1.2rem;
  margin-top: 1rem;
  animation: fadeInUp 1s ease-out forwards;
}
.social-icons {
  margin-top: 1rem;
}
.social-icons a {
  margin: 0 0.5rem;
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s;
}
.social-icons a:hover {
  transform: scale(1.2);
}

/* Sections */
.section {
  padding: 4rem 2rem;
  max-width: 1000px;;
  margin: auto;
}
.section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #0d1b2a;
}
.container {
  display: flex;
}
.picture{
  width: 250px; 
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px reba(0, 0, 0, 0.2);
  align-items: center;
}


/* About */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
  max-width: 1100px;;
  margin: auto;
}
.section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #0d1b2a;
}
.container {
  display: flex;
}
.picture{
  width: 250px; 
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px reba(0, 0, 0, 0.2);
  align-items: center;
}


/* Skills */

/* Define animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation only when tab is active or hovered */
.tab.active ~ .tabcontent.active .skill-card,
.tabs .tab:hover ~ .tabcontent.active .skill-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 1;
}

/* Optional: Delay each card so they animate one after another */
.tabcontent.active .skill-card:nth-child(1) {
  animation-delay: 1s;
}
.tabcontent.active .skill-card:nth-child(2) {
  animation-delay: 2s;
}
.tabcontent.active .skill-card:nth-child(3) {
  animation-delay: 3s;
}
.tabcontent.active .skill-card:nth-child(4) {
  animation-delay: 1s;
}

#skills-container{
  display: none;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 10px reba (0 ,0, 0, 0.1);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.skill-item .skill-name {
  font-weight: bold;
}
.progress-bar {
  height: 50px;
  background: #ddd;
  border-radius: 5px;
  overflow: hidden;
}
.progress-bar div {
  height: 100%;
  background: #3127b8;
  border-radius: 5px;
  transition: width 1s ease;
}


.container1 {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tabs {
    display: flex;
    justify-content: space-start;
    margin-bottom: 30px;
}

.tab {
    background-color: #f0f0f0;
    border: none;
    padding: 0px 10px;
    font-size: 11px;
    cursor: pointer;
}

.tab.active {
    background-color: #6e9ed1;
    color: #fff;
}

.tabcontent {
    display: none;
    padding: 5px;
}


.tabcontent.active {
    display: block;
}

.skill-card {
    display: inline-block;
    margin: 2px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.skill-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}



/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.project-card:hover {
  transform: translateY(-5px);
}
.project-card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #e260f1;
  text-decoration: none;
}


/* Blogs */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.blog-card a {
  color: #e0bbE4;
  text-decoration: none;
}



/* Contact */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}
.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.contact-form button {
  background-color: #e0bbE4;
  color: #0d1b2a;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-form button:hover {
  background-color: #c7a9dd;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem;
  background-color: #0d1b2a;
  color: white;
}

/* Responsive Menu */
@media (max-width: 768px) {
  .menu-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #0d1b2a;
    flex-direction: column;
    display: none;
  }
  .menu-links.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}