  :root {
      --bg: #ffffff;
      --text: #000000;
      --primary: #0077ff;
      --accent: #f5f5f5;
    }* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html {
  transition: background 0.5s, color 0.5s;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

nav {
  position: sticky;
  top: 0;
  background: var(--primary);
  padding: 10px 0;
  text-align: center;
  z-index: 1000;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
}

section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
  opacity: 1;
  transform: none;
}

header {
  background: var(--primary);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

header img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1rem;
}

.section {
  margin-bottom: 2.5rem;
}

h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.skills span {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  margin: 6px;
  border-radius: 6px;
}

.projects .project {
  background: var(--accent);
  padding: 15px;
  margin-bottom: 12px;
  border-left: 5px solid var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projects .project img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 15px;
  border-radius: 8px;
}

.project-content {
  flex-grow: 1;
}

.project-links a {
  text-decoration: none;
  margin-left: 10px;
  color: var(--primary);
  font-weight: bold;
}

.contact form {
  display: flex;
  flex-direction: column;
}

.contact input, .contact textarea {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact button, .download-btn {
  background: var(--primary);
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}

.typing-text {
  font-size: 18px;
  margin-top: 1rem;
  color: #eee;
}

.harshtech {
  background: var(--accent);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.harshtech img {
  width: 60px;
  height: 60px;
  margin-right: 15px;
}

footer {
  text-align: center;
  padding: 1rem;
  background: var(--primary);
  color: white;
}

.floating-icons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.floating-icons a img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.floating-icons a img:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  nav a {
    display: block;
    margin: 10px 0;
  }

  .projects .project {
    flex-direction: column;
    text-align: center;
  }

  .projects .project img {
    margin: 0 0 10px 0;
  }
}