/* Reset + Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f9f9fb;
  color: #2d2d2d;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Header */
header {
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 0, 128, 0.1), transparent),
    radial-gradient(circle at bottom right, rgba(0, 119, 255, 0.15), transparent);
  pointer-events: none;
  z-index: 0;
}

header .container {
  position: relative;
  z-index: 1;
}

.hero-name {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 114, 255, 0.2);
}

.hero-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

/* Profile Picture */
.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  padding: 4px;
  background: linear-gradient(135deg, #ff0080, #7928ca, #0077ff);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto 1rem;
  display: block;
  position: relative;
  z-index: 1;
}

.profile-pic::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
  z-index: -1;
}

/* Sections */
section {
  background-color: #ffffff;
  margin: 2rem 0;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

h2 {
  color: #0a192f;
  margin-bottom: 1rem;
  font-size: 2rem;
}

/* Skills Grid */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 1rem;
}

.skill-item {
  text-align: center;
  width: 100px;
}

.skill-item img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, #ff0080, #7928ca, #0077ff);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.skill-item img:hover {
  transform: scale(1.1);
  animation: glow 1s infinite alternate;
}

.skill-item p {
  margin-top: 0.5rem;
  font-weight: 500;
  color: #0a192f;
}

/* Glow Animation */
@keyframes glow {
  0% {
    box-shadow:
      0 0 5px #ff0080,
      0 0 10px #7928ca,
      0 0 15px #0077ff;
  }
  100% {
    box-shadow:
      0 0 15px #ff0080,
      0 0 25px #7928ca,
      0 0 30px #0077ff;
  }
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 1.5rem;
}

.project-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 0 8px #ff0080,
    0 0 16px #7928ca,
    0 0 24px #0077ff,
    0 0 32px #ff0080,
    0 0 40px #7928ca;
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.project-card h3 {
  font-size: 1.4rem;
  margin: 1rem;
  color: #0f172a;
}

.project-card p {
  font-size: 1rem;
  margin: 0 1rem 1.25rem;
  color: #475569;
  line-height: 1.4;
}

/* Testimonials Section */
#testimonials {
  background: #f3f4f6;
  padding: 3rem 1.5rem;
  border-radius: 12px;
  max-width: 900px;
  margin: 4rem auto;
  color: #1e293b;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

#testimonials h2 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: #0f172a;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #2563eb;
}

.testimonial-text {
  font-style: italic;
  font-size: 1rem;
  color: #334155;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.client-name {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.client-role {
  font-size: 0.9rem;
  color: #64748b;
}

/* Contact Section */
#contact {
  background: #f9fafb;
  padding: 3rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 3rem auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #102a43;
}

#contact h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #1e293b;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #334155;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.contact-form button {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  color: white;
  padding: 0.85rem 2.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 700;
  display: block;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
  transition: background 0.4s ease;
}

.contact-form button:hover {
  background: linear-gradient(90deg, #1e40af, #2563eb);
  box-shadow: 0 7px 20px rgba(30, 64, 175, 0.6);
}

/* Links */
a {
  color: #0077ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  text-decoration: underline;
  outline: none;
  color: #005fcc;
}

/* Footer */
footer {
  background-color: #0a192f;
  color: #a8b2d1;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Accessibility focus */
button:focus, a:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
