/* Global */
* { margin:0; padding:0; box-sizing:border-box; }
html, body { height: 100%; }
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color:#333;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
}
body.dark { background:#121212; color:#f4f4f4; }
a { text-decoration:none; color:inherit; }
h1,h2,h3 { margin-bottom:1rem; }

.aboutText{display:flex; flex-direction:column; gap:1rem; max-width:170px; margin:auto; margin-bottom:20px}

/* Layout wrapper for sticky footer */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main-content {
  flex: 1;
}

/* Navbar */
.navbar {
  display:flex; justify-content:space-between; align-items:center;
  padding:1rem 2rem; background:#333; color:white;
}
.navbar .logo { font-size:1.5rem; font-weight:bold; }
#nav-links { display:flex; gap:1rem; list-style:none; }
#nav-links a { color:white; padding:0.3rem 0.6rem; border-radius:5px; }
#nav-links a.active, #nav-links a:hover { background:#555; }
.menu-toggle { display:none; font-size:1.8rem; background:none; border:none; color:white; cursor:pointer; }

/* Hero */
.hero {
  height:60vh; display:flex; align-items:center; justify-content:center;
  text-align:center; background:linear-gradient(135deg,#6a11cb,#2575fc);
  color:white; padding:2rem;
}
.hero h1 { font-size:2.5rem; }
.highlight { color:yellow; }
.btn { display:inline-block; margin-top:1rem; padding:0.7rem 1.5rem; background:#fff; color:#2575fc; border-radius:25px; font-weight:bold; }

/* Sections */
section { padding:3rem 2rem; max-width:1000px; margin:auto; }
.about p { max-width:700px; margin:auto; }

/* Projects */
.project-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:1.5rem;
}
.project-card {
  background:white; padding:1.5rem; border-radius:15px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1); transition:transform 0.2s;
}
.project-card:hover { transform:translateY(-5px); }
body.dark .project-card { background:#1e1e1e; }

/* To-Do */
.todo form { display:flex; gap:1rem; margin-bottom:1rem; }
.todo input { flex:1; padding:0.7rem; border-radius:8px; border:1px solid #ccc; }
.todo button { padding:0.7rem 1rem; border:none; background:#2575fc; color:white; border-radius:8px; cursor:pointer; }
.todo ul { list-style:none; }
.todo li { background:white; padding:0.8rem; margin:0.5rem 0; border-radius:8px; display:flex; justify-content:space-between; align-items:center; }
.todo li span.completed { text-decoration:line-through; color:gray; }
body.dark .todo li { background:#1e1e1e; }

/* Products */
.controls { display:flex; gap:1rem; margin-bottom:1rem; }
.controls select { padding:0.5rem; border-radius:8px; }
#productGrid .project-card { text-align:center; }

/* Contact */
.contactText{display:flex; flex-direction:column; gap:1rem; max-width:170px; margin:auto; margin-bottom:20px}
.contact form { display:flex; flex-direction:column; gap:1rem; max-width:400px; margin:auto; }
.contact input, .contact textarea { padding:0.8rem; border-radius:8px; border:1px solid #ccc; }
.contact button { background:#2575fc; color:white; border:none; padding:0.8rem; border-radius:8px; cursor:pointer; }
.contactMsg{display:flex; flex-direction:column; gap:1rem; max-width:250px; margin:auto; margin-top:20px}

/* Footer */
footer {
  text-align:center;
  padding:1rem;
  background:#333;
  color:white;
  margin-top: auto;
}

/* Responsive */
@media(max-width:768px){
  #nav-links { display:none; flex-direction:column; background:#444; padding:1rem; }
  #nav-links.show { display:flex; }
  .menu-toggle { display:block; }
}