/*==============================================
  CONTACT PAGE - NATIVE PORTFOLIO DESIGN
  Matches existing portfolio style.css design
==============================================*/

/*======================
  GENERAL & BASE STYLES
======================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: #040404;
  color: #fff;
  position: relative;
  background: transparent;
}

/* Background image - matches main portfolio */
body::before {
  content: "";
  position: fixed;
  background: #040404 url("../img/background.jpg") top right no-repeat;
  background-size: cover;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  z-index: -1;
}

@media (min-width: 1024px) {
  body::before {
    background-attachment: fixed;
  }
}

/* Waves Animation Canvas */
#waves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

a {
  color: #18d26e;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #35e888;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

/*======================
  HEADER
======================*/
#header {
  transition: ease-in-out 0.3s;
  position: relative;
  height: auto;
  /* min-height: 40vh; */
  display: flex;
  align-items: center;
  z-index: 997;
  padding: 15px 0 15px;
}

#header .container {
  text-align: center;
}

#header h1 {
  font-size: 48px;
  margin: 0 0 10px 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  color: #fff;
}

#header h1 .color-accent {
  color: #18d26e;
  transition: color 0.3s ease;
}

#header h1:hover .color-accent,
#header h1 .color-accent:hover {
  color: #35e888;
}

#header h2 {
  font-size: 24px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
}

#header h2 span {
  color: #fff;
  border-bottom: 2px solid #18d26e;
  padding-bottom: 6px;
}

#header .social-links {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#header .social-links a {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

#header .social-links a:hover {
  color: #fff;
}

/* Individual social link hover colors */
#header .social-links a[href="/"]:hover {
  color: #4a90e2;
}

#header .social-links a[href*="x.com"]:hover {
  color: #9b4dca;
}

#header .social-links a.github:hover {
  color: #18d26e;
}

#header .social-links a.linkedin:hover {
  color: #0077b5;
}

/* ====================== */
/* Back to Portfolio Button */
.back-button-container {
  text-align: center;
  padding: 15px 0 10px;
  position: relative;
  z-index: 998;
}

.back-to-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #007bff;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.back-to-portfolio:hover {
  background-color: #18d26e;
  color: #fff;
  text-decoration: none;
  transform: translateX(-3px);
}

.back-to-portfolio i {
  font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .back-button-container {
    padding: 25px 0 15px;
  }

  .back-to-portfolio {
    font-size: 13px;
    padding: 8px 16px;
  }
}

@media (max-width: 768px) {
  #header {
    min-height: 30vh;
    padding: 45px 0 21px;
  }

  #header h1 {
    font-size: 32px;
  }

  #header h2 {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .back-button-container {
    padding: 10px 0 8px;
  }
  
  #header {
    padding: 10px 0 15px;
  }
  
  #header h1 {
    font-size: 26px;
    margin-bottom: 8px;
  }

  #header h2 {
    font-size: 16px;
    margin-top: 8px;
  }
}

/*======================
  MAIN CONTACT SECTION
======================*/
.contact {
  padding: 0 0 60px 0;
}

.contact .container {
  background: rgba(0, 0, 0, 0.9);
  padding: 30px;
  max-width: 1200px;
}

@media (max-width: 768px) {
  .contact .container {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .contact .container {
    padding: 15px;
  }
  
  .contact {
    padding: 0 0 40px 0;
  }
}

/*======================
  MODE SELECTOR
======================*/
.mode-selector {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Subtle shimmer on mode buttons */
.mode-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 6s infinite;
}

.mode-btn i {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.mode-btn:hover i {
  color: #18d26e;
}

.mode-btn.active {
  background: rgba(24, 210, 110, 0.1);
  border-color: #18d26e;
  box-shadow: 0 0 20px rgba(24, 210, 110, 0.25);
}

.mode-btn.active i {
  color: #18d26e;
}

@media (max-width: 768px) {
  .mode-btn {
    padding: 15px 30px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .mode-selector {
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
  }
  
  .mode-btn {
    padding: 12px 24px;
    font-size: 13px;
    gap: 8px;
  }

  .mode-btn i {
    font-size: 28px;
  }
}

/*======================
  FORM CONTAINER
======================*/
.form-container {
  display: none;
  animation: fadeIn 0.4s ease;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 8px;
  border: 0.5px solid rgba(24, 210, 110, 0.1);
  box-shadow: 0 0 30px rgba(24, 210, 110, 0.15);
}

.form-container.active {
  display: block;
}

/* Shimmer effect on form container */
.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent
  );
  animation: shimmer 8s infinite;
  pointer-events: none;
}

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

/* ==================== SHIMMER ANIMATION ==================== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(24, 210, 110, 0.2),
                0 0 40px rgba(24, 210, 110, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(24, 210, 110, 0.3),
                0 0 60px rgba(24, 210, 110, 0.15);
  }
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
}

.form-header p {
  color: #aaaaaa;
  font-size: 16px;
}

@media (max-width: 768px) {
  .form-header h2 {
    font-size: 26px;
  }

  .form-header p {
    font-size: 14px;
  }
}

/*======================
  FORM SECTIONS
======================*/
.form-section {
  margin-bottom: 35px;
  padding: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border: 0.5px solid rgba(24, 210, 110, 0.08);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.2);
}

.form-section:last-of-type {
  border-bottom: 0.5px solid rgba(24, 210, 110, 0.08);
}

.form-section h3 {
  color: #18d26e;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section h3 i {
  font-size: 24px;
}

.section-description {
  color: #aaaaaa;
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.6;
}

.file-info {
  color: #777;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
}

.file-info small {
  color: #666;
}

/*======================
  FORM ELEMENTS
======================*/
.row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.col-md-6 {
  flex: 1;
  min-width: 250px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #fff !important;
  font-size: 15px;
  font-family: "Open Sans", sans-serif;
  transition: all 0.3s ease;
  -webkit-text-fill-color: #fff !important;
}

.form-control:focus {
  outline: none;
  border-color: #18d26e;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 0 15px rgba(24, 210, 110, 0.15);
}

.form-control::placeholder {
  color: #888 !important;
  -webkit-text-fill-color: #888 !important;
  opacity: 1;
}

/* Fix autofill styling */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.05) inset !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

select.form-control option {
  background: #1a1a1a;
  color: #fff;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/*======================
  FILE UPLOAD ZONE
======================*/
.file-upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 50px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

/* Subtle shimmer on file upload zone */
.file-upload-zone::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: shimmer 10s infinite;
  pointer-events: none;
}

.file-upload-zone:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(24, 210, 110, 0.1);
}

.file-upload-zone.dragover {
  border-color: #18d26e;
  background: rgba(24, 210, 110, 0.1);
  box-shadow: 0 0 30px rgba(24, 210, 110, 0.3);
}

.file-upload-zone i {
  font-size: 56px;
  color: rgba(255, 255, 255, 0.3);
  display: block;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.file-upload-zone:hover i {
  color: #18d26e;
}

.upload-text {
  color: #aaaaaa;
  font-size: 16px;
}

.browse-link {
  color: #18d26e;
  text-decoration: underline;
  cursor: pointer;
}

.browse-link:hover {
  color: #35e888;
}

/*======================
  FILE PREVIEW
======================*/
.file-preview-container {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}

.file-preview-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 15px;
  position: relative;
  text-align: center;
  transition: all 0.3s ease;
}

.file-preview-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.file-preview-item i {
  font-size: 42px;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 10px;
}

.file-name {
  color: #fff;
  font-size: 12px;
  word-break: break-word;
  margin-bottom: 5px;
  line-height: 1.3;
}

.file-size {
  color: #777;
  font-size: 11px;
}

.remove-file {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(220, 53, 69, 0.9);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

.remove-file:hover {
  background: #dc3545;
  transform: scale(1.1);
}

/*======================
  TURNSTILE WRAPPER
======================*/
.turnstile-wrapper {
  margin: 25px 0;
  display: flex;
  justify-content: center;
}

/*======================
  SUBMIT BUTTON
======================*/
.text-center {
  text-align: center;
  margin-top: 30px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #18d26e;
  color: #040404;
  border: none;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Raleway", sans-serif;
  position: relative;
  overflow: hidden;
}

/* Subtle shimmer on submit button */
.btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 4s infinite;
}

.btn-submit:hover {
  background: #35e888;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(24, 210, 110, 0.4);
}

.btn-submit:active {
  transform: translateY(-1px);
}

.btn-submit-large {
  padding: 18px 50px;
  font-size: 18px;
}

/*======================
  FORM MESSAGES
======================*/
.form-message {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 15px;
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid #28a745;
  color: #4ceb95;
}

.form-message.error {
  display: block;
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid #dc3545;
  color: #ff6b6b;
}

.form-message.loading {
  display: block;
  background: rgba(0, 123, 255, 0.2);
  border: 1px solid #007bff;
  color: #4da3ff;
}

/*======================
  FOOTER - PROFESSIONAL
======================*/
#footer {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  padding: 21px 0;
  margin-top: 30px;
  margin-bottom: -45px;
  border-top: 0.5px solid rgba(24, 210, 110, 0.15);
  box-shadow: 0 -20px 30px rgba(24, 210, 110, 0.12);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 75px;
  text-align: justify;
}

.footer-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
}

.footer-icons a:hover {
  color: #18d26e;
  transform: translateY(-2px);
}

.footer-icons a.github:hover {
  color: #18d26e;
}

.footer-icons a.linkedin:hover {
  color: #0077b5;
}

.footer-icons a.twitter:hover {
  color: #1da1f2;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 400;
}

/*======================
  HIDDEN HONEYPOT
======================*/
.hidden {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/*======================
  RESPONSIVE
======================*/
@media (max-width: 768px) {
  .row {
    flex-direction: column;
    gap: 0;
  }

  .col-md-6 {
    width: 100%;
    min-width: 100%;
  }

  .mode-selector {
    gap: 10px;
  }

  .form-section h3 {
    font-size: 18px;
  }

  .file-preview-container {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .btn-submit-large {
    padding: 15px 40px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .mode-btn {
    width: 100%;
  }

  .file-preview-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-icons {
    justify-content: center;
  }

  .footer-copyright {
    text-align: center;
  }

  #footer {
    padding: 18px 0;
    margin-top: 22px;
  }
}

@media (max-width: 576px) {
  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-icons {
    gap: 18px;
  }

  .footer-icons a {
    font-size: 16px;
  }

  #footer {
    padding: 18px 0;
  }
}
