/* Global Styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f0f2f5;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

header {
  background-color:  #f0f2f5;
  color: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.header-left {
  flex: 1;
  text-align: left;
}

.site-title {
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  color: black;
}

nav a.active {
  background-color: rgb(199, 136, 104);
  color: #007acc;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  transition: background 0.3s, color 0.3s;
}

.header-center {
  flex: 2;
  text-align: center;
}

.header-center a {
  margin: 0 10px;
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.header-right {
  flex: 1;
  text-align: right;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .header-left, .header-center, .header-right {
    flex: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }
}

#typed-text {
  display: inline-block;
  min-width: 250px;
  text-align: center;
  white-space: nowrap;
}

header p {
  margin: 0;
  font-size: 1.25rem;
  min-height: 2rem;
}

/* Shared Button Style */
.resume-btn,
.about-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background-color: white;
  color: #007acc;
  border: 2px solid #007acc;
  border-radius: 999px; /* Oval shape */
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 160px;
  text-align: center;
  margin: 0.5rem;
}

.resume-btn:hover,
.about-btn:hover {
  background-color: #007acc;
  color: white;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #1a1a1a;
  color: #eee;
}

body.dark-mode .project,
body.dark-mode .intro-text,
body.dark-mode nav a {
  background-color:  #1a1a1a;
  color: #eee;
}

body.dark-mode header {
  background-color:  #1a1a1a;
  color: white;
}

body.dark-mode .site-title,
body.dark-mode nav a {
  color: white;
}

body.dark-mode .resume-btn,
body.dark-mode .about-btn {
  background-color:  #1a1a1a;
  color: #eee;
  border-color: #eee;
}

body.dark-mode .resume-btn:hover,
body.dark-mode .about-btn:hover {
  background-color: #eee;
  color: #121212;
}

body.dark-mode nav a.active {
  background-color:  #1a1a1a;
  color: #f0c040;
}

button#toggle-dark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.6rem;
  background-color: white;
  color: #007acc;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

#theme-icon {
  transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease;
  display: inline-block;
  padding: 0.2em 0.4em;
  border-radius: 50%;
  color: white;
}

#theme-icon.moon-bg {
  background-color: black;
}

#theme-icon.sun-bg {
  background-color: transparent;
  color: #f39c12;
}

.spin {
  transform: rotate(360deg);
}

main {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

.project {
  background: white;
  margin: 1rem 0;
  padding: 1rem;
  border-left: 5px solid #007acc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #222;
  color: white;
}

/* Scroll animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Intro Section */
.intro-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.intro-text {
  max-width: 500px;
  text-align: center;
}

.intro-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.intro-image img {
  max-width: 250px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Skills Section */
.skill {
  margin-bottom: 1rem;
}

.skill label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.bar {
  background-color: #ddd;
  border-radius: 25px;
  overflow: hidden;
  height: 20px;
}

.fill {
  height: 100%;
  border-radius: 25px;
  background-color: #007acc;
  transition: width 0.6s ease;
}

.fill.novice {
  width: 50%;
}

.fill.intermediate {
  width: 75%;
}

.fill.expert {
  width: 100%;
}

body.dark-mode .bar {
  background-color: #444;
}

body.dark-mode .fill {
  background-color: #f0c040;
}

.courses-section ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.courses-section li {
  margin-bottom: 0.5rem;
}

.hobbies-section p {
  line-height: 1.6;
}





.triangle-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  justify-content: center;
  gap: 2rem 10rem; /* row-gap: 2rem, col-gap: 10rem */
  max-width: 900px;
  margin: 2rem auto;
}

/* Shared styles for skills and courses */
.courses, .skills {
  border: 2px solid #007acc;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0, 122, 204, 0.2);
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

/* Hobbies section */
.hobbies {
  border: 2px solid #007acc;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  box-sizing: border-box;
  grid-column: 1 / 3;
  grid-row: 3 / 4;
  max-width: 600px;
  justify-self: center;
  margin-top: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 122, 204, 0.2);
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

/* About Me circle */
.about-circle {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  justify-self: center;
  width: 140px;
  height: 140px;
  font-size: 1.2rem;
  margin: 0 auto;
  border: 4px solid #007acc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f2f5;
  color: #007acc;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(0, 122, 204, 0.5);
  box-sizing: border-box;
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s, color 0.3s;
}

.more-projects {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background-color: #ad501210; /* light blue background */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.1);
}

.more-projects h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #053555;
}

.more-projects-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: #007acc;
  color: white;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.more-projects-btn:hover {
  background-color: #005f99;
  transform: scale(1.05);
}

/* Project Card Styling */
.project {
  background-color: #ffffff;
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.1);
  border-left: 5px solid #007acc;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 122, 204, 0.15);
}

.project h3 {
  margin-top: 0;
  color: #007acc;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.project .description {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: #333;
}

.project .tech {
  font-style: italic;
  color: #555;
  margin-bottom: 0.5rem;
}

.project a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #007acc;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.project a:hover {
  background-color: #005f99;
}

/* === Dark Mode === */
body.dark-mode .project {
  background-color: #1a1a1a;
  border-left-color: #f0c040;
  box-shadow: 0 4px 12px rgba(240, 192, 64, 0.1);
}

body.dark-mode .project h3 {
  color: #f0c040;
}

body.dark-mode .project .description {
  color: #eee;
}

body.dark-mode .project .tech {
  color: #ccc;
}

body.dark-mode .project a {
  background-color: #f0c040;
  color: #121212;
}

body.dark-mode .project a:hover {
  background-color: #d6a800;
}

/* === Contact Section Styling === */
.contact-section {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.1);
  text-align: center;
  border-left: 5px solid #007acc;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-section h2 {
  font-size: 2rem;
  color: #007acc;
  margin-bottom: 1.5rem;
}

.contact-section p {
  font-size: 1.1rem;
  margin: 1rem 0;
}

.contact-section a {
  color: #007acc;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-section a:hover {
  color: #005f99;
  text-decoration: underline;
}





/* === Dark Mode Styles === */
body.dark-mode .courses,
body.dark-mode .skills,
body.dark-mode .hobbies {
  background-color: #222;
  border-color: #f0c040;
  box-shadow: 0 4px 10px rgba(240, 192, 64, 0.3);
  color: #eee;
}

body.dark-mode .about-circle {
  background-color: #1a1a1a;
  border-color: #f0c040;
  color: #f0c040;
  box-shadow: 0 0 15px rgba(240, 192, 64, 0.7);
}
/* Dark mode support */
body.dark-mode .more-projects {
  background-color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(240, 192, 64, 0.1);
}

body.dark-mode .more-projects h2 {
  color: #f0c040;
}

body.dark-mode .more-projects-btn {
  background-color: #f0c040;
  color: #121212;
}

body.dark-mode .more-projects-btn:hover {
  background-color: #d6a800;
}
/* === Dark Mode === */
body.dark-mode .project {
  background-color: #1a1a1a;
  border-left-color: #f0c040;
  box-shadow: 0 4px 12px rgba(240, 192, 64, 0.1);
}

body.dark-mode .project h3 {
  color: #f0c040;
}

body.dark-mode .project .description {
  color: #eee;
}

body.dark-mode .project .tech {
  color: #ccc;
}

body.dark-mode .project a {
  background-color: #f0c040;
  color: #121212;
}

body.dark-mode .project a:hover {
  background-color: #d6a800;
}
/* === Dark Mode === */
body.dark-mode .contact-section {
  background-color: #1a1a1a;
  color: #eee;
  border-left-color: #f0c040;
  box-shadow: 0 4px 12px rgba(240, 192, 64, 0.1);
}

body.dark-mode .contact-section h2 {
  color: #f0c040;
}

body.dark-mode .contact-section a {
  color: #f0c040;
}

body.dark-mode .contact-section a:hover {
  color: #d6a800;

}




