* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #020035;
  color: #c9d1d9;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.header {
  background-color: #161b22;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.nav a {
  margin-left: 20px;
  color: #58a6ff;
  transition: color 0.3s;
}

.nav a:hover {
  color: #ffffff;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 50px;
  flex-wrap: wrap;
}

.hero-content {
  max-width: 600px;
}

.main-title {
  font-size: 2.5rem;
  color: #58a6ff;
  margin-bottom: 10px;
}

.animated-roles {
  position: relative;
  height: 40px;
  text-align: left;
  font-size: 1.5rem;
  font-weight: bold;
  color: #58a6ff;
  overflow: hidden;
  margin-bottom: 20px;
}

.animated-roles .role {
  position: absolute;
  width: 100%;
  opacity: 0;
  animation: fadeText 6s infinite;
}

.animated-roles .role:nth-child(1) { animation-delay: 0s; }
.animated-roles .role:nth-child(2) { animation-delay: 3s; }

@keyframes fadeText {
  0%   { opacity: 0; transform: translateY(20px); }
  10%  { opacity: 1; transform: translateY(0); }
  40%  { opacity: 1; transform: translateY(0); }
  50%  { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 0; }
}

.hero-content p {
  margin: 20px 0;
}

.buttons {
  display: flex;
  gap: 15px;
}

.btn, .btn-outline {
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn {
  background-color: #238636;
  color: white;
}

.btn:hover {
  background-color: #2ea043;
}

.btn-outline {
  border: 2px solid #58a6ff;
  color: #58a6ff;
}

.btn-outline:hover {
  background-color: #58a6ff;
  color: black;
}

.hero-img {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.hero-img img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 4px solid #0d6efd;
  box-shadow: 0 0 20px #0d6efd;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px #0d6efd;
}

.section {
  padding: 60px 50px;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #58a6ff;
}

.section p {
  max-width: 700px;
  margin: 0 auto;
}

.skills ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.skills li {
  background-color: #161b22;
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid #30363d;
}

.projects {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.card {
  background-color: #161b22;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  border: 1px solid #30363d;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* === CONTACT SECTION STARTS === */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
  padding: 0 20px;
}

.contact-form {
  background-color: #161b22;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #30363d;
  flex: 1 1 300px;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: 1px solid #30363d;
  border-radius: 8px;
  background-color: #21262d;
  color: #ffffff;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8b949e;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  background-color: #238636;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: bold;
}

.contact-form button:hover {
  background-color: #2ea043;
}

.contact-info {
  margin-top: 1rem;
  color: #c9d1d9;
  font-size: 16px;
  line-height: 1.8;
  padding-left: 10px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.contact-info a {
  color: #58a6ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.contact-info i {
  color: #58a6ff;
}

.social-icons.clean {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-icons.clean a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #58a6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1c23;
  transition: transform 0.3s;
}

.social-icons.clean a:hover {
  transform: scale(1.2);
  color: #ffffff;
}

.social-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.social-icons.clean a:hover .social-img {
  filter: brightness(1.5) saturate(1.5);
}

.hacker-img {
  filter: none !important;
  background-color: white;
  border-radius: 50%;
  padding: 3px;
}
/* === CONTACT SECTION ENDS === */

footer {
  text-align: center;
  padding: 20px;
  background-color: #161b22;
  border-top: 1px solid #30363d;
  margin-top: 40px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-img {
    margin-top: 30px;
    order: -1;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    max-width: 90%;
  }

  .contact-info {
    margin-top: 20px;
    text-align: center;
  }

  .contact-info p {
    justify-content: center;
  }
}
