@import url('https://fonts.googleapis.com/css2?family=Italianno&family=Lora:ital,wght@0,400..700;1,400..700&family=Monda:wght@400..700&display=swap');

:root {
  --bg-light: #f4f4f4;
  --primary: #00adb5;
  --card-bg: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Monda", sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: 0.4s ease;
}

/* header */
header {
  background-color: var(--primary);
  padding: 10px 25px;
  color: #fff;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

.nav-links {
  display: flex;
  justify-content:flex-end;
  align-items: center;
  gap: 20px;
}

.nav-links a{
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
color: black;
}

/* Sections*/
section {
  padding: 2rem 1rem;
  text-align: center;
}

h2 {
  font-weight: 800;

}

h3 {
  margin: 5px;
}

h4 {
  text-align: left;
  text-transform: uppercase;
  padding-left: 10px;
}


/* About */
.about-container {
  display: flex;
  align-items: center; 
  justify-content: center;
  flex-wrap:  wrap;
  padding: 30px;
  gap: 8em;
}

.profile-img {
  display: none;
  background: var(--card-bg);
}

.profile-img1 {
  width: 250px;
  border-radius: 50%;
}

.about-text {
  max-width: 500px;
  text-align: left;
  text-align: justify;
}

.about p {
  font-weight: bold;
  max-width: 600px;
  font-size: rem;
  
} 

.about-me {
  justify-items: center;
}

.about-me p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  /* font-size: 0.95em; */
  color: #555;
  text-align: justify;
} 

.aboutme-container {
  justify-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  width: 70%;
  padding: 10px;
  gap: 2em;
  padding: 2em;
}

/* Projects */
.project:hover {
  transform: translateY(-5px);
}

.project-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2em;
  padding: 2em;
}

.project-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease;

}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1em;
  border-radius: 10px;
}

.project-card h3 {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0.5em 0;
}

.project-card p {
  font-size: 0.95em;
  color: #555;
}

/* Certificate */
.certificate-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2em;
  padding: 2em;
}

.certificate-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease;

}

.certificate-card:hover {
  transform: translateY(-5px);
}

.certificate-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1em;
  border-radius: 10px;
}

.certificate-card h3 {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0.5em 0;
}

.certificate-card p {
  font-size: 0.95em;
  color: #555;
}

.certificate:hover {
  transform: translateY(-5px);
}

/* Skills */
.skills-section li {
  list-style: none;
  text-transform: uppercase;
}

.skills-grid {
  width: 700px;
  margin: 60px auto;
  color: black;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.skills-grid li {
  margin: 15px 0;
  padding: 10px;
}

.bar {
  background: #fff;
  display: block;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.bar:hover {
   box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.bar span {
  height: 20px;
  float: left;
  background: linear-gradient(135deg, rgb(103,242 , 252)0%, rgb(0, 185, 236)100%);
}

.C {
  width: 90%;
  animation: C 3s;
}

.Cpp {
  width: 80%;
  animation: Cpp 3s;
}

.html {
  width: 90%;
  animation: html 3s;
}

.css {
  width: 60%;
  animation: css 3s;
}

.JavaScript {
  width: 40%;
  animation: JavaScript 3s;
}

.php{
  width: 35%;
  animation: php 3s;
}

@keyframes C{
  0%{
    width: 0%;
  }
  100%{
    width: 90%;
  }
}

@keyframes Cpp{
  0%{
    width: 0%;
  }
  100%{
    width: 80%;
  }
}
@keyframes html{
  0%{
    width: 0%;
  }
  100%{
    width: 90%;
  }
}

@keyframes css{
  0%{
    width: 0%;
  }
  100%{
    width: 60%;
  }
}

@keyframes JavaScript{
  0%{
    width: 0%;
  }
  100%{
    width: 40%;
  }
}

@keyframes php{
  0%{
    width: 0%;
  }
  100%{
    width: 35%;
  }
}

/* Button */
.btnn{
  background: var(--primary);
  height: 5vh;
  width: 12vh;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 15px;
  
}

.btnn:hover {
 transform: translateY(-2px);
 background: #0b6f6e;
}

/* Contact Form */
.contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

.contact input, .contact textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact textarea {
  height: 70px;
  resize: vertical;
}

.contact button {
  padding: 0.8rem;
  background-color: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  width: 100%;
}

.contact button:hover {
  background-color: #0b6f6e;
  transform: translateY(-2px);
}

footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 1rem;
}

.icon-container a {
  color:white;
  font-size: 16px;
}


/* Responsive Styles */
@media (max-width: 1200px) {
  .about-container, .project-container, .certificate-container {
    gap: 3em;
    padding: 1.5em;
  }
  .skills-grid {
    width: 90%;
  }
}

@media (max-width: 900px) {
  .about-container, .project-container, .certificate-container {
    flex-direction: column;
    align-items: center;
    gap: 2em;
    padding: 1em;
  }
  .aboutme-container, .skills-grid {
    width: 95%;
    padding: 1em;
  }
  .project-card, .certificate-card {
    width: 90%;
    min-width: 220px;
    max-width: 400px;
  }
}

@media (max-width: 750px) {
  header {
    padding: 10px 10px;
  }
  #logo {
    font-size: 1.3rem;
  }
  .nav-links {
    gap: 10px;
  }
  section {
    padding: 1.2rem 0.5rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .about-container {
    flex-direction: column;
    gap: 1.5em;
    padding: 1em 0.5em;
  }
  .about-text {
    text-align: center;
    max-width: 100%;
    font-size: 1rem;
  }
  .profile-img {
    display: flex;
    width: 180px;
    margin: 0 auto 1em auto;
  }
  .profile-img1 {
    display: none;
  }
  .aboutme-container {
    width: 100%;
    padding: 1em;
    box-shadow: none;
  }
  .skills-grid {
    width: 100%;
    margin: 30px auto;
    padding: 0.5em;
  }
  .project-card, .certificate-card {
    width: 100%;
    min-width: 180px;
    max-width: 100%;
    padding: 1em;
  }
}

@media (max-width: 500px) {
  header {
    flex-direction: column;
    padding: 8px 2px;
  }
  #logo {
    font-size: 1.1rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
  section {
    padding: 0.7rem 0.2rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .about-container {
    gap: 1em;
    padding: 0.5em 0.1em;
  }
  .about-text {
    font-size: 0.95rem;
  }
  .profile-img {
    width: 120px;
  }
  .skills-grid {
    width: 100%;
    margin: 10px auto;
    padding: 0.2em;
  }
  .project-card, .certificate-card {
    width: 100%;
    min-width: 120px;
    max-width: 100%;
    padding: 0.7em;
  }
  .btnn, .contact button {
    width: 100%;
    font-size: 15px;
  }
}

