html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  color: #f8f9fa;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-top: 20px;
  width: 100%;
  height: 50px;
  background-color: black;
  color: white;
  justify-content: space-between;
  align-items: center;
  display: flex;
}
.navbar img{
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}
.navbar li {
  display: inline-block;
}
.navbar a {
  text-decoration: none;
  color: white;
  padding: 20px;
  font-size: 15px;
}
.navbar a:hover {
  color: purple;
  transition: background ease 0.3s;
}
.navbar h1 {
  font-size: 40px;
  font-weight: bold;
  margin-left: 30px;
  justify-content: left;
}
.navbar h1 span {
  color: purple;
}
.hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 50px;
    flex-wrap: wrap;
    margin-top: -70px;
}

.hero-text {
    max-width: 600px;
    animation: fadeIn 1.2s ease-in-out;
    margin-left: 30px;
}

.hero-text h1 {
    font-size: 48px;
    margin: 10px 0;
    color: #e67e22;
    margin-left: 10px;
}

.hero-text h1 span {
    color: purple;
}
.hero .hero-text{
    margin-left: 10px;
}

.hero-text h2 {
    font-size: 28px;
    color: white;
    margin-left: 10px;
}

.hero-text h3 {
    font-size: 20px;
    color: #f8f9fa;
    margin-bottom: 20px;
    margin-left: 10px;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
    margin-left: 10px;
}

.hero-buttons button {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background: linear-gradient(145deg, #9b59b6, #e67e22);
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-left: 10px;
}

.hero-buttons button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.5);
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 5px solid purple;
    transition: transform 0.4s;
    margin-left: 120px;
}

.hero-image img:hover {
    transform: scale(1.1);
}


.icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.icons img {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    border: 2px solid purple;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    margin-left: 10px;
}

.icons img:hover {
    
    background-color: rgba(155, 89, 182, 0.2);
}


@keyframes fadeIn {
    0% {opacity: 0; transform: translateY(20px);}
    100% {opacity: 1; transform: translateY(0);}
}


@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        padding: 50px 20px;
    }
    .hero-image img {
        width: 250px;
        height: 250px;
        margin-bottom: 30px;
    }
    .hero-text h1 {
        font-size: 36px;
    }
    .hero-text h2 {
        font-size: 24px;
    }
}

#about {
  max-width: 800px;
  margin: 80px auto;
  padding: 20px;
  margin-top: -40px;
}
#about h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #9b59b6;
  text-align: center;
}
#about ul {
  list-style-type: disc;
  padding-left: 25px;
  line-height: 2;
  font-size: 18px;
}
#about ul li {
  margin-bottom: 12px;
}
#about ul li strong {
  color: #e67e22;
}
@media (max-width: 600px) {
  #about h2 {
    font-size: 28px;
  }
  #about ul {
    font-size: 16px;
  }
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
    margin-left: 30px;
}

.project-card {
    background: linear-gradient(145deg, #1a1a1a, #111);
    border-radius: 15px;
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s, box-shadow 0.4s;
    border: 2px solid purple;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(155, 89, 182, 0.2);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.project-card:hover::before {
    top: -10%;
    left: -10%;
    width: 220%;
    height: 220%;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.4);
}

.project-card h3 {
    margin-top: 15px;
    color: #e67e22;
    font-size: 22px;
}

.project-card p {
    color: #f8f9fa;
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.6;
}


.card-icon {
    font-size: 50px;
    display: inline-block;
    background: rgba(155, 89, 182, 0.2);
    padding: 15px;
    border-radius: 50%;
    transition: transform 0.4s, background 0.4s;
}

.project-card:hover .card-icon {
    transform: rotate(20deg) scale(1.2);
    background: rgba(155, 89, 182, 0.4);
}


@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-card h3 {
        font-size: 20px;
    }
    .card-icon {
        font-size: 40px;
    }
}

#contact h2 {
    font-size: 36px;
    color: #9b59b6;
    text-align: center;
    margin-bottom: 15px;
    margin-top: -40px;
}

.contact-text {
    text-align: center;
    margin-bottom: 40px;
    font-size: 16px;
    color: #f8f9fa;
}


.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 15px 15px 15px;
    background: #111;
    border: 2px solid purple;
    border-radius: 10px;
    color: #f8f9fa;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #e67e22;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: purple;
    background-color: black;
    padding: 0 5px;
}

.contact-form button {
    padding: 15px;
    background: linear-gradient(145deg, #9b59b6, #e67e22);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.5);
}

@media (max-width: 600px) {
    #contact h2 {
        font-size: 28px;
    }
    .contact-text {
        font-size: 14px;
    }
    .contact-form button {
        font-size: 14px;
    }
}
.contact-text {
  text-align: center;
  font-size: 18px;
  margin-bottom: 20px;
  color: #ddd;
}

.contact-text {
  text-align: center;
  font-size: 18px;
  margin-bottom: 20px;
  color: #ddd;
}

.success-message {
  display: none;
  position: fixed;       
  left: 50%;
  transform: translate(-50%, -50%);
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #2ecc71;
  margin-top: 200px;
}

.success-message .tick {
  font-size: 60px;
  font-weight: bold;
}

.success-message p {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
}


