/* Reset & Variables */
:root {
  --dark: #1e1e1e;
  --light: #f5f5f5;
  --accent: #ffc107;
  --font-sans: 'Segoe UI', Tahoma, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--light);
  background-color: var(--dark);
  line-height: 1.6;
}

/* Container */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 0;
}

/* Header & Navigation */
header {
  background-color: var(--dark);
  border-bottom: 1px solid #333;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profile img {
  width: 80px;
  border-radius: 50%;
  margin-right: 1rem;
}
.profile h1 {
  font-size: 1.5rem;
  color: var(--light);
}
.profile p {
  color: var(--accent);
}
.nav-list {
  list-style: none;
  display: flex;
}
.nav-list li + li {
  margin-left: 1.5rem;
}
.nav-list a {
  color: var(--light);
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.3s;
}
.nav-list a:hover {
  color: var(--accent);
}

/* Sections */
.section {
  scroll-margin-top: 80px; /* offset for nav */
}
.dark-bg {
  background-color: var(--dark);
}
.light-bg {
  background-color: #2a2a2a;
}

/* About Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service {
  background: #333;
  padding: 1rem;
  border-radius: 8px;
}
.service h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Resume */
.resume-block {
  margin-bottom: 2rem;
}
.resume-block h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.skills-list {
  list-style: none;
}
.skills-list li {
  margin-bottom: 0.75rem;
  position: relative;
}
.skill-bar {
  display: inline-block;
  height: 6px;
  background: #555;
  width: 50%;
  border-radius: 3px;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
}
.skill-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 1s ease;
}

/* Portfolio */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.5rem;
}
.project {
  background: #333;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}
.project img {
  width: 100%;
  display: block;
}
.project h3 {
  padding: 0.75rem;
  color: var(--light);
}

/* Contact */
form {
  background: #333;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}
.form-row {
  display: flex;
  gap: 1rem;
}
.form-row input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background: #222;
  color: var(--light);
}
textarea {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background: #222;
  color: var(--light);
  margin: 1rem 0;
}
button {
  background: var(--accent);
  border: none;
  padding: 0.75rem 1.5rem;
  color: var(--dark);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover {
  background: #e6a000;
}


/* Blog */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1.5rem;
}
.post {
  background: #333;
  padding: 1.5rem;
  border-radius: 6px;
}
.post h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.post a {
  color: var(--accent);
  text-decoration: none;
}

/* Footer */
footer {
  background: #111;
  text-align: center;
  padding: 1rem 0;
}
footer p {
  color: #777;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
  }
}