/* Reset some defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

h3 {
text-align: center;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  background-color: #222;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  color: #ffffff;
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #dddddd;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #4fc3f7;
}

/* Hero Section */
#hero {
  width: 100%;
  background: linear-gradient(to top, #6090bf, #1976d2);
  color: white;
  padding: 5rem 2rem;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: white;
  color: #1976d2;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #e3f2fd;
}

.centered {
  max-width: 1000px;
  margin: 0 auto;
}

/* Sections */
section {
  padding: 4rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* About */
#about p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  display: block;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 700px){
  .modal-content {
    max-width: 100vw;
    max-height: 80vh;
  }

  .modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
  }

  #caption {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}

/* Projects */
.modal-trigger:hover{
  opacity: 0.85;
  transition: opacity 0.3s;
}

#projects {
  width: 100%; 
  padding: 2rem 0; 
  background-color: #f5f5f5; 
  box-sizing: border-box;
}

.project-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  padding: 0 2rem;
  box-sizing: border-box;
}

.project-card {
  text-align: center;
}

img:hover {
  transform: translateY(-5px);
}

img.modal-trigger {
  transition: transform 0.3 ease, opacity 0.3 ease;
}

img.modal-trigger:hover {
  transform: scale(1.02);
  opacity: 0.85;
}

/* Skills */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin-top: 1rem;
}

.skills-list li {
  background-color: #e3f2fd;
  color: #1976d2;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
}

/* Contact */
#contact p {
  text-align: center;
  margin: 0.5rem 0;
}

#contact a {
  color: #1976d2;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #222;
  color: #ccc;
  font-size: 0.9rem;
}
