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

html {
  scroll-behavior: smooth;
  /* enables smooth scrolling */
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

/* Header */
header {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 1.5rem;
  animation: slideInLeft 1s ease;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffd700;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeIn 2s ease;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: slideInDown 1.2s ease;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  animation: fadeIn 2s ease 0.5s forwards;
  opacity: 0;
}

.hero .btn {
  margin-top: 20px;
  padding: 12px 25px;
  background: white;
  color: #2575fc;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s, background 0.3s;
}

.hero .btn:hover {
  background: #ffd700;
  transform: scale(1.05);
}

/* About */
section {
  padding: 60px 10%;
}

.about h2,
.portfolio h2,
.contact h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #2575fc;
}

.about p {
  max-width: 700px;
  margin: auto;
  text-align: center;
  font-size: 1.1rem;
  animation: fadeUp 1.5s ease;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeUp 1s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card h3 {
  margin-bottom: 10px;
  color: #6a11cb;
}

/* Contact */
.contact form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.contact input,
.contact textarea {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

/* Profile Picture Styling */

.profile-pic {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.profile-pic img {
  width: 160px;       /* smaller size */
  height: 160px;      /* smaller size */
  object-fit: contain; /* keeps full image inside circle */
  border-radius: 50%;
  border: 5px solid #2575fc;
  background: #fff;   /* adds clean background behind photo */
  padding: 5px;       /* adds spacing (gap) inside circle */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.profile-pic img:hover {
  transform: scale(1.05);
}

.contact button {
  padding: 12px;
  background: #2575fc;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact button:hover {
  background: #6a11cb;
}

/* Contact Info */
.contact-info {
  text-align: center;
  margin-bottom: 25px;
}

.contact-info p {
  margin: 8px 0;
  font-size: 1.1rem;
}

.contact-info a {
  color: #2575fc;
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  color: #6a11cb;
  text-decoration: underline;
}


.project-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #2575fc;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
}

.project-link:hover {
  background: #6a11cb;
  transform: scale(1.05);
}


/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 15px;
}

/* Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}