/* ------------------------------
   Global Styling
--------------------------------- */
* {
  box-sizing: border-box;
}

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

/* Utility */
.text-center {
  text-align: center;
}

/* ------------------------------
   Header / Hero Section
--------------------------------- */
header {
  background: linear-gradient(120deg, #004C97, #0B5ED7);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1.5s ease-in-out;
}

/* Animated gradient border behind photo */
.photo-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  background: linear-gradient(45deg, #0B5ED7, #00C9A7, #FF7A00, #004C97);
  background-size: 400% 400%;
  animation: gradientShift 6s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

header img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  z-index: 2;
}

header h1 {
  margin-top: 10px;
  font-size: 2rem;
  letter-spacing: 1px;
}

header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 25px;
  opacity: 0.95;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.buttons button {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buttons button:hover {
  background: #fff;
  color: #004C97;
}

/* ------------------------------
   Section: About Me
--------------------------------- */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px 55px 20px;
  background: linear-gradient(135deg, rgba(11,94,215,0.1), rgba(0,201,167,0.1));
  animation: sectionFade 2s ease;
}

.about h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #0B5ED7;
}

.about p {
  max-width: 800px;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
}

/* ------------------------------
   Section: Contact Me (Aligned & Balanced)
--------------------------------- */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(0,201,167,0.12), rgba(11,94,215,0.12));
  animation: sectionFade 2s ease;
}

.contact h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #004C97;
  text-align: center;
}

/* Contact Card Layout */
.contact-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  padding: 35px;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

/* Row and Field Layout */
.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

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

.form-group.full {
  width: 100%;
}

label {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  text-align: left;
}

/* Inputs and Textarea Styling */
input,
textarea {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
}

input:focus,
textarea:focus {
  border-color: #0B5ED7;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

/* Captcha & Button */
.captcha-wrap {
  text-align: center;
  margin: 20px 0 10px 0;
}

/* Submit Button */
button#sendBtn {
  background: #0B5ED7;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

button#sendBtn:hover:enabled {
  background: #004C97;
}

button#sendBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive Layout */
@media (max-width: 700px) {
  .form-row {
    flex-direction: column;
  }
}


/* ------------------------------
   Footer
--------------------------------- */
footer {
  background: #004C97;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

/* ------------------------------
   Animations
--------------------------------- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sectionFade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

