:root {
  --bg: #000;
  --text: #fff;
  --accent: #fff;
  --footer-bg: #9A2525;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { width:100%; height:100%; background:var(--bg); font-family:"Courier New", Courier; color:var(--text); scroll-behavior:smooth; text-align:center; }

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

header {
  position: fixed;
  top:0; left:0; width:100%;
  font-weight:bold;
  background: var(--footer-bg);
  color: var(--text);
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding:15px 30px;
  z-index:10;
  backdrop-filter:blur(8px);
}

header .logo img { height:50px; display:block; }

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

nav a { text-decoration:none; color:var(--text); font-size:1rem; transition: color 0.3s; }
nav a:hover { color:var(--accent); }

.menu-toggle {
  display:none;
  flex-direction: column;
  justify-content:center;
  width:30px; height:25px;
  gap:5px;
  cursor:pointer;
  z-index:20;
}

.menu-toggle span {
  display:block;
  width:100%;
  height:3px;
  background:var(--text);
  border-radius:2px;
  transition:0.3s;
}

.menu-toggle.active span:nth-child(1) { transform:rotate(45deg) translateY(8px); }
.menu-toggle.active span:nth-child(2) { opacity:0; }
.menu-toggle.active span:nth-child(3) { transform:rotate(-45deg) translateY(-8px); }

@media (max-width:1024px){
  nav ul {
    position:absolute;
    top:60px;
    left:0;
    width:60%;
    flex-direction:column;
    background: var(--bg);
    text-align:center;
    max-height:0;
    overflow:hidden;
    transition:max-height 0.3s ease;
  }
  nav ul.active { max-height:500px; }
  .menu-toggle { display:flex; }
}

main { padding:60px 20px; display:flex; flex-direction:column; align-items:center; gap:40px; }

/* ---------------------------------------
   GRID LAYOUT FOR PROJECT ITEMS - 3 COLUMNS
--------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.item {
  width: 100%;
  max-width: none;
  background: transparent;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  padding-bottom: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.media {
  width: 100%;
  height: auto;
  border-radius:10px;
  display:block;
}

h2.title {
  font-weight:700;
  margin:10px 0 0 0;
  color:#D9A5A1;
  text-align:center;
  max-width:100%;
}

/* Responsive adjustments */
@media(max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Footer and form styles */
footer {
  width:100%;
  background-color: var(--footer-bg);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:60px 20px;
  text-align:center;
  gap:25px;
}

.contact-form {
  display:flex;
  color: #000;
  flex-direction:column;
  align-items:center;
  gap:15px;
  width:100%;
  max-width:500px;
  border:2px solid #4E0E0F;
  padding:25px;
  border-radius:10px;
  background: #fff;
}

.form-group { display:flex; flex-direction:column; gap:10px; width:100%; }

.contact-form input, .contact-form textarea {
  width:100%;
  padding:10px 15px;
  border:1px solid #444;
  border-radius:6px;
  background: #C7C7C7;
  color: #000;
  font-family:inherit;
  font-size:1rem;
  outline:none;
  transition:border 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus { border-color:var(--accent); }

.contact-form button {
  background: #9A2525;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}
.contact-form button:hover { background:#c38c87; transform:scale(1.05); }
