/* ==== General ==== */
html, body { 
    margin: 0; 
    text-align: 
    center; 
    background: #C4D5BE;
    color: #2a2d2b;
}


nav { 
    position: fixed; 
    top: 8px; 
    left: 8px; 
}

main { 
    margin-top: 48px; 
}

form input, form textarea, form button { 
    width: 100%; 
    margin-bottom: 16px;  
    box-sizing: 
    border-box; 
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: left;
}

.wrap form {
  padding: 24px;
  background: linear-gradient(135deg, #dfe8d6, #e6f0e4);
  border-radius: 12px;
  margin-top: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.links {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.links a {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  color: #2a4d14;
  border: 1px solid #c3d6c1;
  border-radius: 8px;
}

.links a:hover,
.links a:focus-visible {
  background: #a3b18a;
  color: #fff;
  border-color: #3a3d42;
  outline: none;
}

/* ==== Services Page ====*/
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1200px;  
  margin: 12px auto 0;
}

.card {
  background: #dcedc8;
  border: 1px solid #c3d6c1;
  color: #2a2d2b;
  border-radius: 12px;
  padding: 16px;
  min-height: 240px;
  transition: background 120ms, border-color 120ms, color 120ms;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.card h3 { 
    margin: 0 0 8px; 
}

.card p  {
    margin: 0 0 10px; 
}

.card .tags {
  color: #9aa0a6;
  font-size: 14px;
}

/* ==== About Page ==== */

#skills .grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 1200px;
  margin: 12px auto 0;
}
#skills .card {
  padding: 12px;
  min-height: 220px;
}

#skills .card h3 {
  margin-bottom: 12px;
}

.decor { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.row {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #2b2d31;
  border-radius: 999px;
  background: #15171a;
  color: #e9e9ea;
  font-size: 14px;
}

#skills .decor .row {
  font-size: 18px;
  line-height: 1.4;
}

#skills .decor {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

/* ==== Contact Page ==== */
 .form-row {
  display:flex;
  gap:20px;
  flex-wrap: wrap;
 }

 .form-row p{
  flex:1;
  min-width: 200px;
  padding: 4px 0;
 }

form p label {
  display: block;
  margin-bottom: 4px;
}

/* ==== Dark Mode ==== */
a { 
    color: #9ec1ff; 
    text-decoration: none; 
}

a:hover, a:focus-visible { 
    text-decoration: underline; 
}

nav a {
  display: inline-block;
  padding: 8px 12px;
  margin-right: 8px;
  font-size: 18px;
  color: #1f3610;
  border: 1px solid #a3b18a;
  background: #c4d5be;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a:focus-visible {
  background: #7b8e68;
  border-color: #5e6b50;
  color: #fff;
  outline: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}


input, textarea, button {
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0;
  padding: 10px 12px;
  color: #2a2d2b;
  background: #e6f0e4;;
  border: 1px solid #c3d6c1;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

input::placeholder,
textarea::placeholder { 
    color: #5e6b50;
    font-style: italic; 
} 

input:focus, textarea:focus, button:focus {
  outline: 2px solid #7aa2ff;
  outline-offset: 2px;
  border-color: #7b8e68;
}

input:hover, textarea:hover {
  border-color: #7b8e68;
  box-shadow: 0 0 4px rgba(123, 142, 104, 0.3);
}

button { 
    cursor: pointer; 
    background: #a3b18a; 
    color: #fff;
    border: none;
    transition: background 0.2s, box-shadow 0.2s;
}

button:hover { 
    background: #7b8e68;
    transform: scale(1.03);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2); 
}

button:active {
  transform: scale(0.98);
}

/* ==== Mobile tweaks ==== */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  nav a {
    margin: 4px 0;
    display: inline-block;
    width: auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  input, textarea, button {
    font-size: 16px;
    padding: 12px 14px;
  }

  main {
    margin-top: 100px;
  }

  nav {
    top: 0;
    left: 0;
    right: 0;
    padding: 8px 0;
    text-align: center;
    background: #c4d5be;
    z-index: 1000;
  }

}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
}

