:root {
  --primary: #000000;
  --primary-hover: #333333;
  --bg-main: #ffffff;
  --bg-card: #f8f9fa;
  --text-main: #212529;
  --text-muted: #6c757d;
  --border: #dee2e6;
  --transition: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navigation & Brand Logo --- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 80px;
}


.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  justify-content: flex-end;
  text-align: right;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.nav-list a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-main);
  margin: 3px 0;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  padding: 180px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}


h1 {
  font-size: 4rem;
  margin: 1.5rem 0;
  line-height: 1.1;
  letter-spacing: -2px;
}

.highlight {
  color: var(--primary);
  font-weight: 800;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-link img {
  width: 20px;
  filter: invert(0);
}

.social-link:hover {
  color: var(--primary);
}

/* --- Hero Image --- */
.image-border {
  position: relative;
  border-radius: 16px;
  background: var(--bg-card);
  padding: 8px;
  border: 1px solid var(--border);
}

.profile-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  transition: var(--transition);
}

/* --- About Section --- */
.about {
  padding: 100px 0;
  text-align: center;
}

.about p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2rem;
}

.skills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.skill-tag {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

/* --- Project Cards --- */
.projects {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3.5rem;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--primary);
}

.project-img-wrapper img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-info {
  padding: 2rem;
}

.tech-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* --- Buttons --- */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  border: 1px solid var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  margin-left: 0.5rem;
}

.btn:hover {
  background: var(--primary);
  color: white;
}

/* --- Contact Section --- */
.contact-box {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  border-color: var(--primary);
}

.footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  h1 {
    font-size: 3rem;
  }

  .form-group {
    flex-direction: column;
  }

  .nav-list {
    display: none;
  }
}
/* Mobile responsive adjustment */
@media (max-width: 768px) {
  .nav-list {
    display: none;
  }

  .nav.active .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    gap: 1rem;
    border-top: 1px solid var(--border);
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }
}