* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f6f0f5;
  color: #111;
  overflow-x: hidden;
}

.rightlogo{
  float: left;
}
.rightlogo img{
  height: 60px;
  width: 60px;
}

.top-navBar{
  background-color: rgb(254, 253, 253);
  display: flex;                 
  justify-content: center;       
  align-items: center;          
  overflow: hidden;
  padding: 10px 0; 
}
.top-navBar a{
  float: left;
  color: rgb(128, 25, 232);
  display: flex;
  text-align: center;
  padding: 16px 18px;
  text-decoration: none;
  font-size: larger;
  font-weight: bold;
}
.top-navBar a:hover{
  color: white;
  text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
}
.top-navBar a :active{
  background-color:  rgb(70, 68, 68);
  color: rgb(251, 251, 251);
}


/* HERO SECTION -------------------------------------------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 5%;
  background: linear-gradient(to right, #ec79e4, #6802b7);
  width: 100%;
}

.hero-content {
  max-width: 50%;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* Typing Animation ----------------------------------------- */
.typing-name {
  color: #473951;
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid #5d4fcc;
  white-space: nowrap;
  width: 20ch;
  animation: typing 3s steps(20), blink 0.6s step-end infinite alternate;
}

@keyframes typing {
  from { width: 0; }
  to { width: 20ch; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Paragraph -------------------------------------------------- */
.hero-content p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Contact Button -------------------------------------------- */
.contact-btn {
  padding: 12px 25px;
  font-size: 1.3rem;
  font-weight: bold;
  background-color: #b13af1;
  border: none;
  color: white;
  border-radius: 8px;
  transition: 0.3s;
}

.contact-btn:hover {
  background: white;
  color: #b73af1;
  cursor: pointer;
}

/* Hero Image ------------------------------------------------- */
.hero-image img {
  width: 400px;
  border-radius: 20px;
}

/* Fade Animation -------------------------------------------- */
.fadeUp {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpAnim 1s ease forwards;
}

.delay1 { animation-delay: 0.4s; }
.delay2 { animation-delay: 0.8s; }
.delay3 { animation-delay: 1.2s; }

@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ABOUT SECTION ----------------------------------------------- */
.about {
  padding: 5rem 7%;
  background:linear-gradient(to right, #ec79e4, #6802b7);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.about-text {
  max-width: 55%;
}

.about-text h2 {
  font-size: 3rem;
  color: #510555;
  margin-bottom: 1rem;
  font-weight: 800;
}

.about-text p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.about-image img {
  width: 380px;
  border-radius: 20px;
  box-shadow: 0px 10px 25px rgba(0,0,0,0.1);
  transition: 0.4s ease;
  background-color: aliceblue;
}

.about-image img:hover {
  transform: scale(1.04);
}

/* Fade Animation ----------------------------------------------- */
.fadeUp {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpAnim 1s ease forwards;
}

.delay1 { animation-delay: 0.5s; }

@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE ---------------------------------------------------- */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .about-text {
    max-width: 100%;
  }

  .about-image img {
    width: 300px;
  }
}

/* PROJECTS SECTION ----------------------------------------- */
.projects {
  padding: 5rem 7%;
  background:linear-gradient(to right, #ec79e4, #6802b7);
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  color: #510555;
  text-align: center;
  margin-bottom: 3rem;
}

/* Project Cards Grid */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.15);
}

/* Project Image */
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-card:hover img {
  transform: scale(1.05);
}

/* Project Info */
.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: #5d4fcc;
}

.project-info p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.project-link {
  font-weight: bold;
  color: #4f3af1;
  text-decoration: none;
  transition: 0.3s;
}

.project-link:hover {
  color: #b418f2;
}

/* Fade Up Animation */
.fadeUp {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpAnim 1s ease forwards;
}

.delay1 { animation-delay: 0.3s; }
.delay2 { animation-delay: 0.6s; }
.delay3 { animation-delay: 0.9s; }

@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .project-card img {
    height: 180px;
  }
}


/* SKILLS SECTION --------------------------------------------- */
.skills {
  padding: 5rem 7%;
  background: linear-gradient(to right, #ec79e4, #6802b7);
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  color: #510555;
  text-align: center;
  margin-bottom: 3rem;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.skill-card {
  background: #f5f5ff;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.skill-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

.skill-card h3 {
  font-size: 1.2rem;
  color: #5d4fcc;
}

/* Fade Up Animation */
.fadeUp {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpAnim 1s ease forwards;
}

.delay1 { animation-delay: 0.3s; }
.delay2 { animation-delay: 0.5s; }
.delay3 { animation-delay: 0.7s; }
.delay4 { animation-delay: 0.9s; }
.delay5 { animation-delay: 1.1s; }
.delay6 { animation-delay: 1.3s; }

@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ACHIEVEMENTS SECTION WITH PHOTOS --------------------------- */
.achievements {
  padding: 5rem 7%;
  background:linear-gradient(to right, #ec79e4, #6802b7);
}

.achievements-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  color: #510555;
  text-align: center;
  margin-bottom: 3rem;
}

/* Achievements Grid */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.achievement-card {
  background: #f5f5ff;
  padding: 2rem 1.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.achievement-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #4f3af1;
  transition: transform 0.3s;
}

.achievement-card:hover .achievement-photo {
  transform: scale(1.1);
}

.achievement-card h3 {
  font-size: 1.3rem;
  color: #5d4fcc;
  margin-bottom: 0.8rem;
}

.achievement-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Fade Up Animation */
.fadeUp {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpAnim 1s ease forwards;
}

.delay1 { animation-delay: 0.3s; }
.delay2 { animation-delay: 0.6s; }
.delay3 { animation-delay: 0.9s; }
.delay4 { animation-delay: 1.2s; }

@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .achievement-card {
    padding: 1.5rem 1rem;
  }
  .achievement-photo {
    width: 70px;
    height: 70px;
  }
}


/* CONTACT SECTION --------------------------------------------- */
.contact {
  padding: 5rem 7%;
  background:linear-gradient(to right, #ec79e4, #6802b7);
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  color: #510555;
  text-align: center;
  margin-bottom: 3rem;
}

/* Contact Content Layout */
.contact-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Contact Form */
.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #250e31;
}

.contact-button {
  background: #602077;
  color: #fff;
  font-size: 1.1rem;
  padding: 0.8rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-button:hover {
  background: #803d8c;
}

/* Contact Info */
.contact-info {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  font-size: 1rem;
  color: #555;
}

.info-item a {
  color: #d8cbea;
  text-decoration: none;
  transition: color 0.3s;
}

.info-item a:hover {
  color: #3a1c3f;
}

.social-links a {
  margin-right: 1rem;
}

/* Fade Up Animation */
.fadeUp {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpAnim 1s ease forwards;
}

.delay1 { animation-delay: 0.3s; }
.delay2 { animation-delay: 0.6s; }

@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .contact-content {
    flex-direction: column;
  }
}


/* FOOTER SECTION --------------------------------------------- */
.footer {
  background-color: #ffffff;
  color: #ef88f3;
  padding: 2rem 7%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Left Section */
.footer-left p {
  font-size: 1rem;
}

/* Center Section: Links */
.footer-right a {
  color: #a23af1;
  text-decoration: none;
  margin-left: 1rem;
  transition: color 0.3s;
  font-size: 1rem;
}

.footer-right a:hover {
  color: #2f0432;
}

/* Right Section: Social Icons */
.footer-social a {
  color: #421459;
  font-size: 1.5rem;
  margin-left: 1rem;
  transition: color 0.3s, transform 0.3s;
}

.footer-social a:hover {
  color: #49174f;
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right a,
  .footer-social a {
    margin: 0.3rem;
  }
}
