/* Main Styles */
:root {
  --background-color: rgb(255, 255, 255);
  --text-color: rgb(0, 0, 0);
  --box-shadow-color: rgba(0, 0, 0, 0.5);
  --active-link-color: #2e7d32;
}

html.dark-mode {
  --background-color: #1a1a1a;
  --text-color: #f0f0f0;
  --box-shadow-color: rgba(255, 255, 255, 0.1);
  --active-link-color: #57b654;
}

html {
  background: var(--background-color);
}

body {
  color: var(--text-color);
  font-family: "Inconsolata", monospace;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
  background-color: var(--background-color);
}

a {
  text-decoration: none;
  color: var(--text-color);
}

.box-shadow {
  box-shadow: 0px 0px 15px var(--box-shadow-color);
}

.rounded-edges {
  border-radius: 20px;
}

/* Header Styles */
.top-part {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
}

.header-row {
  display: flex;
  align-items: center;
  flex-direction: row;
  margin-top: 6vh;
  flex-wrap: wrap;
}

.header-column {
  text-align: left;
  margin-right: 3vw;
  padding: 30px;
}

.image-container {
  width: 185px;
  height: 185px;
  overflow: hidden;
  border-radius: 50%;
}
.header-button-row {
  display: flex;
  flex-direction: row;
  justify-content:flex-start;
}
.about-info {
  padding: 2px;
  margin: 0;
}
.pfp-img {
  
  height: 100%;
  width: 100%;
  overflow: hidden;
  transform: scale(1);
  object-fit: cover;
  box-shadow: 0px 20px 20px var(--box-shadow-color);
}
/* Dark Mode Toggle Button */
#darkModeToggle {
  top: 13px;
  margin-left: 180px;
  width: 60px;
  height: 30px;
  background-color: var(--background-color);
  border: 2px solid var(--text-color);
  border-radius: 30px;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

#darkModeToggle .toggle-circle {
  width: 22px;
  height: 22px;
  background-color: var(--text-color);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.3s ease;
}

#darkModeToggle.dark-mode .toggle-circle {
  left: 32px;
  background-color: var(--background-color);
}

#darkModeToggle.dark-mode {
  background-color: var(--text-color);
}
/* Nav Bar Styles */
.nav-bar {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: left;
  margin-right: 3vw;
  margin-top: 5vh;
}

nav a {
  padding: 6px;
  margin-bottom: 10px;
}

nav a.active {
  color: var(--active-link-color);
  font-weight: bold;
}

/* Main Content Styles */
main {
  max-width: 850px;
  margin: 0 auto;
  padding: 20px;
}

.section {
  margin-bottom: 40px;
}

h2 {
  border-bottom: 2px solid var(--text-color);
  padding-bottom: 10px;
}
.social-medias img {
  width: 30px;
  height: 30px;
}

/* Blog Styles */
.blog-section article {
  margin-bottom: 30px;
}

/* Projects Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #2e7d32;
}

.project-card h3 {
    margin: 0 0 1rem 0;
    color: #2e7d32;
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background-color: rgba(46, 125, 50, 0.1);
    color: #292929;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    cursor:default;
}

.project-links {
    margin-top: 1rem;
}

.project-link {
    display: inline-block;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Dark mode for project cards */
html.dark-mode .project-card {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.2) 0%, rgba(76, 175, 80, 0.3) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

html.dark-mode .project-card:hover {
    border: 2px solid #57b654;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.3) 0%, rgba(76, 175, 80, 0.4) 100%);
}

html.dark-mode .project-card h3 {
    color: #a5d6a7;
}

html.dark-mode .project-description {
    color: #e8f5e9;
}

html.dark-mode .tech-tag {
    background-color: rgba(165, 214, 167, 0.2);
    color: #a5d6a7;
}

html.dark-mode .project-link {
    color: #a5d6a7;
}

html.dark-mode .project-link:hover {
    color: #c9c9c9;
}

/* Responsive design for projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 20px;
  background-color: var(--background-color);
  color: var(--text-color);
  border-top: 1px solid var(--text-color);
}

/* Blog Styles */
.blog-preview {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--text-color);
}

.blog-preview h3 {
  margin-bottom: 10px;
}

.post-meta {
  font-style: italic;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
}

.blog-post {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.post-content p {
  margin-bottom: 20px;
}

.back_arrow {
  color: white;
  width: 20px;
  margin-top: 55px;
  margin-left: -40px;
}

.blog-row {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}
/* Responsive Design */
@media (max-width: 800px) {
  .header-row {
    flex-direction: column-reverse;
    margin: 0px;
  }
  .image-container {
    margin-bottom: 20px;
  }

  .header-column {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .nav-bar {
    flex-direction: row;
    justify-content: center;
    margin-right: 0;
    margin-bottom: 0px;
    margin-top: 0px;
  }

  nav a {
    margin-right: 10px;
    margin-bottom: -10px;
  }
}