
* { box-sizing: border-box; }
body {
  background: whitesmoke;
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background: #fff;
  padding: 10px 40px;
  border-bottom: 1px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 10;
}

footer {
  text-align: center;
  font-size: 12px;
  padding: 20px 0; 
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-links li {
  border-radius: 3px;
  padding: 5px 10px;
  transition: background-color 0.3s;
}

.nav-links li:hover {
  background-color: rgb(167, 166, 166);
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  display: block;
}
.etusivu {
    background-image:linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("IMG_7992.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.etusivu h1,
.etusivu h2,
.etusivu p,
.etusivu div,
.etusivu a {
  color: white;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
}

section {
  background-color: whitesmoke;
  padding: 200px 10px;
  text-align: center;
  min-height: 400px;
}
section a {
  text-decoration: none;
  color: #000;
}

.hamburger { 
     background: transparent;
     border: 0; 
     padding: 8px; 
     cursor: pointer;
     display: none;
 }

.hamburger img { height: 24px; width: 24px; display: block; }

@media (max-width: 768px) {
  .hamburger { display: block;
 }

  .nav-links {
    display: none; 
    position: absolute;
    right: 16px;
    top: 100%;                
    margin-top: 8px;
    background: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
    z-index: 1000;            
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }

  .nav-links.open { display: flex; 
}
.hamburger:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px; 
}
}

.cv-header {
  text-align: center;
  margin-bottom: 40px;
}

.cv-photo {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 15px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}

.cv-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.cv-header p {
  color: #555;
  font-size: 16px;
}

.portfolio {
  padding: 100px 20px;
  text-align: center;
  background: whitesmoke;
}

.portfolio h1 {
  font-size: 40px;
  margin-bottom: 40px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  text-align: left;
}

.card-content h2 {
  margin-top: 0;
  font-size: 24px;
}

.card-content p {
  font-size: 15px;
  color: #555;
  margin-bottom: 15px;
}

.contact-section {
  padding: 100px 20px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-section h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.contact-section p {
  margin-bottom: 40px;
  color: #555;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #000;
  outline: none;
}

.contact-btn {
  background: black;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.contact-btn:hover {
  background: #333;
}
.cv-section {
  max-width: 800px;
  margin: 100px auto;
  padding: 0 20px;
}

.cv-section h2 {
  border-bottom: 2px solid black;
  padding-bottom: 6px;
  margin-bottom: 20px;
}

.cv-item {
  margin-bottom: 30px;
}

.cv-item h3 {
  margin: 0;
  font-size: 20px;
}

.cv-item p {
  color: #555;
}
.card-btn {
    background: black;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}