body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background: #fff;
}
header {
  border-bottom: 1px solid #eee;
  background: #fff;
}
nav {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background-color: #f0f0f0;
  position: relative;
}

/* Move menu items to the right */
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 10px;
  margin-left: auto; /* pushes the menu to the right */
}

nav ul li {
  margin-left: 20px; /* space between items */
}

nav ul li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
}
/* Logo container for overlapping effect */
.logo-container {
    position: absolute;
    top: 100%;             /* position it at bottom of header */
    left: 20px;            /* adjust as needed */
    transform: translateY(-20%); /* move up by half its height */
    z-index: 10;
   /* overflow: hidden;*/
  perspective: 1000px;
}

/* Circular logo */
.logo-img {
    width: 250px;           /* adjust size */
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff; /* white border for effect */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
   opacity: 0;
  transform: rotate(0deg) scale(0);
  animation: swirlIn 2.5s ease-out forwards;
}

/* Hero section padding so it doesn’t hide behind logo */
.hero {
    padding-top: 80px; /* adjust according to logo size */
    text-align: center;
    color: #f26b6b;
}
.cursor {
  color: #f26b6b;
  animation: blink 0.8s infinite;
}

/* --- Container --- */
    .about-section {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 50px;
      width: 85%;
      max-width: 1100px;
      margin: 5rem auto;
      animation: fadeIn 1s ease forwards;
    }

    /* --- Left Text --- */
    .about-text {
      flex: 1.2;
      color: #2b2b2b;
    }

    .about-text h1 {
      font-size: 2.5rem;
      font-weight: 800;
      color: #111;
    }

    .about-text h1 span {
      color: #f26b6b;
    }

    .about-text p {
      font-size: 1rem;
      line-height: 1.7;
      color: #444;
      margin: 1rem 0;
    }

    .about-text a.button {
      display: inline-block;
      margin-top: 1.5rem;
      padding: 0.8rem 1.5rem;
      background: #f26b6b;
      color: #fff;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      transition: background 0.3s ease;
    }

    .about-text a.button:hover {
      background: #e25b5b;
    }

    /* --- Right Card --- */
    .about-card {
      flex: 1;
      background: linear-gradient(145deg, #fff6f6, #ffecec);
      border: 1px solid #fbdcdc;
      border-radius: 12px;
      padding: 2.5rem 1rem;
      text-align: center;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
      animation: slideInRight 1.2s ease forwards;
    }

    .about-card .emoji {
      font-size: 3rem;
    }

    .about-card h3 {
      margin-top: 1rem;
      color: #222;
      font-size: 1.3rem;
    }

    .about-card p {
      color: #555;
      font-size: 0.95rem;
    }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav ul li a {
  text-decoration: none;
  color: #444;
}
nav ul li a.active,
nav ul li a:hover {
  color: #f26b6b;
}
section h1 {
  margin-bottom: 1rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1rem;
}
.project-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  transition: box-shadow 0.2s ease;
}
.project-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.tags span {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  margin-right: 0.3rem;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto;
}

.contact-container {
    min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  max-width: 1100px;
  margin: 2rem auto;
  gap: 50px;
  opacity: 0;
  animation: fadeInContainer 1s ease-in-out forwards;
}

h1.contact-heading {
  font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: #f26b6b;
    text-align: center;
}
/* --- Left Info Section --- */
.contact-info {
    flex: 1;
    animation: slideInLeft 1.2s ease forwards;
}



.contact-info p {
    color: #555;
    margin-bottom: 20px;
}

.icon-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    color: #444;
}

/* --- Right Form Section --- */
.contact-form {
    flex: 1;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideInRight 1.2s ease forwards;
}

label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #333;
}



input:focus,
textarea:focus {
    border-color: #4e7cff;
}

input, textarea {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}
button {
  padding: 0.7rem;
  background: #f26b6b;
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}
button:hover {
  background: #e55a5a;
}
.success { color: green; text-align: center; margin-bottom: 1rem; }
.error { color: red; text-align: center; margin-bottom: 1rem; }

  h1.skills-heading{
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: #f26b6b;
    text-align: center;
  }
  p.skills-intro {
    margin-bottom: 2rem;
    color: #555;
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

.cards-container {
    display: inline-flex;
    flex-wrap: wrap; /* allow wrapping */
    gap: 2rem;
    justify-content: center;
  }
  .card {
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.07);
    padding: 1.5rem 2rem;
    width: 300px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }
  .card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
  }
  .card h2 {
    color: #f26b6b;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f26b6b;
    padding-bottom: 0.3rem;
  }
  .skills-list {
  display: flex;
    flex-wrap: wrap; /* allows cards to wrap */
    gap: 0.6rem; /* smaller gap to fit more cards */
    justify-content: flex-start;
  }
  .skill-card {
    flex: 1 1 1px; /* min width 100px, flexible width */
    max-width: 150px; /* optional: prevents cards from being too wide */
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0.4rem 0.6rem; /* smaller padding to save space */
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: auto;
  }
  .skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  }
  .skill-card i {
    font-size: 1.5rem;
    color: #f26b6b;
    width: 25px;
    text-align: center;
  }
  .skill-logo {
    width: 25px;
    height: 25px;
    object-fit: contain;
  }
  .skill-name {
    font-weight: 600;
    color: #444;
  }
  

.certifications {
  text-align: center;
  padding: 4rem 1rem;
}
 h1.certification-heading{
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: #f26b6b;
    text-align: center;
  }
.certifications-container {
  display: flex;
  justify-content: center; /* Center the cards */
  flex-wrap: wrap;
  gap: 2rem; /* Space between cards */
  margin-top: 2rem;
}

.cert-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  width: 300px;       /* Make cards bigger */
  padding: 1rem;
  text-decoration: none;
  color: #222;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cert-card img {
  width: 100%;
  border-radius: 10px;
}

.cert-title {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* --- Projects Section --- */
.projects-section {
  text-align: center;
  padding: 5rem 2rem;
  background: #fffdfd;
}

.projects-heading {
  font-size: 2.4rem;
  color: #f26b6b;
  margin-bottom: 1rem;
}

.projects-intro {
  color: #555;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 1rem;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #f1f1f1;
}

.project-card h3 {
  color: #222;
  font-size: 1.3rem;
  margin: 1rem;
}

.project-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 0 1rem 1rem;
  line-height: 1.5;
}

.tags span {
  display: inline-block;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  color: #444;
  margin: 0 0.3rem 0.3rem;
}

.tags {
  margin-top: 0.5rem;
}

/* --- View Project Button --- */
.view-btn {
  display: inline-block;
  margin: 1rem auto 0;
  padding: 0.6rem 1.2rem;
  background: #f26b6b;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.view-btn:hover {
  background: #e25b5b;
  transform: translateY(-2px);
}

@keyframes fadeInContainer {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}


    /* --- Responsive --- */
    @media (max-width: 900px) {
      .about-section {
        flex-direction: column;
        text-align: center;
      }
      .about-card {
        margin-top: 2rem;
      }
    }

    /* Keyframes for swirl animation */
@keyframes swirlIn {
  0% {
    opacity: 0;
    transform: rotate(-720deg) scale(0);
  }
  60% {
    opacity: 1;
    transform: rotate(30deg) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* The magic: swirl inward like a jalebi */
@keyframes jalebiSwirl {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0);
    filter: blur(10px);
  }
  30% {
    opacity: 1;
    transform: rotate(720deg) scale(0.6);
  }
  70% {
    transform: rotate(1440deg) scale(1.2);
    filter: blur(0);
  }
  100% {
    transform: rotate(1800deg) scale(1);
    filter: blur(0);
  }
}