
/* Header Section */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --base-color: #0A0F1C;
    --text-color: #E6EAF2;
    --primary-color: #2563EB;
    --secondary-color: #22D3EE;
    --color-1: #22C55E;
    --color-2: #f59E0B;
    --color-3: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: Inter, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}
body {
    padding: 1em;
    background-color: var(--base-color);
}

h1, h2, h3{
    font-family: Poppins, Inter, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

nav {
    margin: 1em auto 3em auto;
    width: min(1000px, 100%);
}
nav ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    gap: 2em;
}
nav li:first-child {
    margin-right: auto;
    font-family: Poppins, Inter;
    font-weight: bold;

}
nav a {
    text-decoration: none;
    color: var(--text-color);
}
nav a:hover {
    text-decoration: underline;
}
header, section {
    margin: 2em auto;
    width: min(75em, 100%);
    background-color: var(--color-3);
    padding: min(2em, 15%);
    border-radius: 1em;
}
.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3em;
}
header img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}
.text-container {
    flex: 0 1 34em;
}

h1 {
    font-size: 2.5em;
}
.text-container p {
    margin: .75em 0 1em 0;
    font-size: 1.2em;
}
.cta-button {
    display: inline-block;
    padding: .75em 1.25em;
    margin-right: 1em;
    background-color: var(--primary-color);
    color: var(--base-color);
    text-decoration: none;
    border-radius: .5em;
    font-weight: 600;
}

.secondary {
    background-color: var(--secondary-color);
}


/* About Me Section */
section {
    background-color: var(--color-3);
    padding: 3em min(2em, 15%);
    text-align: center;
}
/* About Me Section Image */
section img {
    border-radius: 15px; /* adjust the value for more or less rounding */
    max-width: 100%;
    height: auto;
    object-fit: cover; /* keeps the image from stretching */
}
/* Skills Section */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  padding: 15px;
  background-color: #e0e0e0;
  border-radius: 12px;
  transition: transform 0.3s, background-color 0.3s;
}

.skill i {
  font-size: 36px;
  margin-bottom: 10px;
  color: #0077b5;
}

.skill span {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #1f2933;
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  border-radius: 5px;
}

.progress.beginner { 
  background-color: var(--color-2);
  width: 30%; 
}

.progress.intermediate { 
  background-color: var(--color-1);
  width: 70%; 
}

.skill:hover {
  transform: scale(1.05);
  background-color: #d1d1d1;
  cursor: pointer;
}



/*--------------- Projects Section---------  */

#projects {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Title */
.projects-title {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
}

/* Subtitle */
.projects-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  text-align: center;
  color: #6b7280; /* soft gray */
  margin-bottom: 50px;
}

/* Grid layout */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.projects-github-btn {
  margin-top: 50px;
  text-align: center;
}



/* Project card */
.project-card {
  background-color: var(--color-3);
  border: 1px solid #1f2933;
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card hover */
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

/* Project title */
.project-card h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color);
}

/* List reset */
.project-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* List items */
.project-card li {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #cbd5e1; /* lighter gray */
  margin-bottom: 12px;
}

/* Bold labels */
.project-card li strong {
  color: var(--secondary-color);
  font-weight: 600;
}

/*---------Contact Section-----------*/

.contact-icons {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 20px;
}

.contact-icons i {
  font-size: 50px;
  color: var(--secondary-color); /* LinkedIn blue for LinkedIn icon */
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-icons i.fa-envelope {
  color: var(--secondary-color);
}

.contact-icons i:hover {
  transform: scale(1.2);
  cursor: pointer;
  color: var(--primary-color);
}

#contact {
  text-align: center;
  padding: 50px 20px;
  background-color: var(--color-3);
  color: var(--text-color);

}
/*------------Mobile Responsive----------*/

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Header Section */
@media (max-width: 768px) {
  .flex-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .text-container {
    flex: unset;
  }

  header img {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
  }
}

/*-------- About Section--------- */
@media (max-width: 768px) {
  #about .flex-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #about img {
    width: 250px;
    height: auto;
    margin-bottom: 20px;
  }
}

/* Projects Section */
@media (max-width: 600px) {
  #projects {
    padding: 40px 15px;
  }

  .projects-title {
    font-size: 24px;
  }

  .projects-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .projects-container {
    gap: 20px;
  }

  .project-card {
    padding: 18px;   /* smaller card padding */
    font-size: 14px;
  }
}

/* Navbar */
@media (max-width: 600px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em; /* reduce spacing for small screens */
  }
}

/* Buttons */
@media (max-width: 600px) {
  .cta-button {
    padding: 0.5em 1em;
    font-size: 14px;
  }
}
