
/* styles.css */
/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  line-height: 1.6;
  color: #eee;                 /* light text for contrast */
  background-color: #161616;      /* super dark grey background */
}

a {
  text-decoration: none;
  color: #ffffff;
  font-size: 30px;
}

/* Container fissato per mantenere invariate le cose con lo zoom */
.container {
  width: 1350px;     /* or whatever your design width is */
  margin: 0 auto;   /* center it in the viewport */
}


/* state‐based styling */
a:hover, a:focus {
  color: #00ff37;
}

/* Navbar */
.navbar {
  /* remove side‑padding if it’s there… */
  /* padding: 1rem 2rem; */
  background: #161616;
  position: static;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: static;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;   /* only vertical padding */
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

/* Home Section */
.home-section {
  display: static;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.home-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.intro-text textarea {
  width: 300px;
  height: 200px;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #444;
  background: #333;
  color: #eee;
  resize: none;
}
.profile-pic img {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #111;
  box-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* ICONE LINKEDIN E */
.home-social-icons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 1rem 0;
}
.home-social-icons a img {
  display: block;
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

/* Projects Section */
.projects-section {
  padding: 2rem 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  padding: 1em 0;
}
.project-card {
  background: #333;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.7);
  overflow: hidden;
  transition: transform 0.2s;
}
.project-card:hover {
  transform: translateY(-5px);
}
.card-content {
  border: 4px solid #444;
  padding: 1rem;
  color: #eee;
  font-size: 1.2rem;
}

/* Pubblications Section */
.pubblications-section {
  padding: 4rem 2rem;
}
.pubblications-list {
  list-style: disc inside;
  margin-top: 1rem;
  color: #eee;
}
.pubblications-list li {
  margin-bottom: 0.5rem;
}

/* Thoughts Section */
.thoughts-section {
  padding: 4rem 2rem;
}
.thoughts-list {
  list-style: disc inside;
  margin-top: 1rem;
  color: #eee;
}
.thoughts-list li {
  margin-bottom: 0.5rem;
}


/* Contact Section */
.contact-section {
  padding: 4rem 2rem;
}
.contact-section p {
  color: #eee;
}

/* Footer */
.footer-social {
  display: flex;
  justify-content: center;
  padding: 2rem;
  gap: 1.5rem;
}
.footer-social img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

/* Font size customizzabili */
h1 {
  font-size: 45px;
}

h2 {
  font-size: 30px;
}

p {
  font-size: 18px;
}

/* Responsive styles for phones */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 1rem;
  }

  .home-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-pic img {
    width: 250px;
    height: 250px;
    margin-top: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .card-content {
    font-size: 1rem;
    padding: 1rem;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  .navbar .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-social-icons {
    justify-content: center;
  }

  .home-social-icons img {
    width: 30px;
    height: 30px;
  }

  .footer-social {
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
  }

  p {
    font-size: 16px;
  }
}

/* Blogposts */

.thoughts-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.thoughts-content p {
  margin-bottom: 1.5rem;
}
