/* =============================================
   CONTACT PAGE - Sai Pratyusha Gorapalli
   Data Scientist Portfolio
   ============================================= */

/* ===== AVAILABILITY BADGE ===== */
.contact-availability {
  max-width: 600px;
  margin: 1.5rem auto;
  padding: 12px 24px;
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #28a745;
}

.availability-dot {
  width: 10px;
  height: 10px;
  background: #28a745;
  border-radius: 50%;
  flex-shrink: 0;
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
  }
}

/* ===== CONTACT HERO ===== */
.contact-hero {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.deco-circle-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #ff9f00, #ff6b6b);
  top: -100px;
  right: -80px;
}

.deco-circle-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #ff6b6b, #ff9f00);
  bottom: -60px;
  left: -50px;
}

.contact-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ff9f00, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.contact-hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #bbb;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.contact-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(255, 159, 0, 0.08);
  border: 1px solid rgba(255, 159, 0, 0.2);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff9f00;
  position: relative;
  z-index: 1;
}

.contact-location-badge i {
  font-size: 1rem;
}

/* ===== CONTACT MAIN GRID ===== */
.contact-main {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ===== LEFT COLUMN - CONTACT INFO ===== */
.contact-info-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
}

.info-col-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ff9f00;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-col-title i {
  font-size: 1.2rem;
}

.info-col-desc {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Contact Cards */
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-card:hover {
  transform: translateX(5px);
  background: rgba(255, 159, 0, 0.08);
  border-color: rgba(255, 159, 0, 0.25);
  box-shadow: 0 4px 20px rgba(255, 159, 0, 0.1);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 159, 0, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-card-icon i {
  font-size: 1.1rem;
  color: #ff9f00;
}

.contact-card:hover .contact-card-icon {
  background: linear-gradient(135deg, #ff9f00, #ff6b6b);
}

.contact-card:hover .contact-card-icon i {
  color: #fff;
}

/* Platform-specific icon backgrounds */
.linkedin-icon {
  background: rgba(10, 102, 194, 0.12);
}

.linkedin-icon i {
  color: #0A66C2 !important;
}

.contact-card:hover .linkedin-icon {
  background: #0A66C2;
}

.contact-card:hover .linkedin-icon i {
  color: #fff !important;
}

.github-icon {
  background: rgba(110, 110, 110, 0.15);
}

.github-icon i {
  color: #ccc !important;
}

.contact-card:hover .github-icon {
  background: #333;
}

.contact-card:hover .github-icon i {
  color: #fff !important;
}

.kaggle-icon {
  background: rgba(32, 190, 255, 0.1);
}

.kaggle-icon i {
  color: #20BEFF !important;
}

.contact-card:hover .kaggle-icon {
  background: #20BEFF;
}

.contact-card:hover .kaggle-icon i {
  color: #fff !important;
}

.leetcode-icon {
  background: rgba(255, 161, 22, 0.1);
}

.leetcode-icon i {
  color: #FFA116 !important;
}

.contact-card:hover .leetcode-icon {
  background: #FFA116;
}

.contact-card:hover .leetcode-icon i {
  color: #fff !important;
}

.huggingface-icon {
  background: rgba(255, 210, 30, 0.1);
}

.huggingface-icon i {
  color: #FFD21E !important;
}

.contact-card:hover .huggingface-icon {
  background: #FFD21E;
}

.contact-card:hover .huggingface-icon i {
  color: #1A1A1A !important;
}

.location-icon {
  background: rgba(255, 107, 107, 0.1);
}

.location-icon i {
  color: #ff6b6b !important;
}

.location-card {
  cursor: default;
}

.location-card:hover {
  transform: none;
}

.contact-card-body {
  flex: 1;
  min-width: 0;
}

.contact-card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 2px;
}

.contact-card-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e6e6e6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-card-arrow {
  color: #555;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-card:hover .contact-card-arrow {
  color: #ff9f00;
  transform: translateX(3px);
}

/* ===== RIGHT COLUMN - CONTACT FORM ===== */
.contact-form-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
}

.form-col-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ff9f00;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-col-title i {
  font-size: 1.2rem;
}

.form-col-desc {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .form-group {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-icon {
  position: absolute;
  left: 16px;
  color: #ff9f00;
  font-size: 0.9rem;
  z-index: 1;
  pointer-events: none;
}

.form-input-icon.textarea-icon {
  top: 16px;
  align-items: flex-start;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e6e6e6;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff9f00;
  background: rgba(255, 159, 0, 0.04);
  box-shadow: 0 0 0 3px rgba(255, 159, 0, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button */
.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  background: linear-gradient(135deg, #ff9f00, #ff6b6b);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 159, 0, 0.3);
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

.contact-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.contact-submit-btn:hover::before {
  left: 100%;
}

.contact-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 159, 0, 0.5);
}

.contact-submit-btn i {
  transition: transform 0.3s ease;
}

.contact-submit-btn:hover i {
  transform: translateX(4px);
}

/* ===== RESPONSE PROMISE SECTION ===== */
.response-promise {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.promise-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.promise-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 159, 0, 0.2);
  box-shadow: 0 8px 25px rgba(255, 159, 0, 0.08);
}

.promise-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(255, 159, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promise-icon i {
  font-size: 1.4rem;
  color: #ff9f00;
}

.promise-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e6e6e6;
  margin-bottom: 0.5rem;
}

.promise-item p {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.5;
}

/* =============================================
   LIGHT MODE OVERRIDES
   ============================================= */

body.light-mode .contact-availability {
  background: rgba(40, 167, 69, 0.06);
  border-color: rgba(40, 167, 69, 0.2);
}

/* Hero */
body.light-mode .contact-hero-subtitle {
  color: #666;
}

body.light-mode .contact-location-badge {
  background: rgba(255, 159, 0, 0.06);
  border-color: rgba(255, 159, 0, 0.15);
}

body.light-mode .deco-circle {
  opacity: 0.04;
}

/* Info Column */
body.light-mode .contact-info-col,
body.light-mode .contact-form-col {
  background: #ffffff;
  border-color: #e6e6e6;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

body.light-mode .info-col-desc,
body.light-mode .form-col-desc {
  color: #777;
}

/* Contact Cards */
body.light-mode .contact-card {
  background: #f8f8f8;
  border-color: #e8e8e8;
}

body.light-mode .contact-card:hover {
  background: rgba(255, 159, 0, 0.05);
  border-color: rgba(255, 159, 0, 0.2);
  box-shadow: 0 4px 20px rgba(255, 159, 0, 0.08);
}

body.light-mode .contact-card-icon {
  background: rgba(255, 159, 0, 0.08);
}

body.light-mode .linkedin-icon {
  background: rgba(10, 102, 194, 0.08);
}

body.light-mode .github-icon {
  background: rgba(51, 51, 51, 0.08);
}

body.light-mode .github-icon i {
  color: #333 !important;
}

body.light-mode .kaggle-icon {
  background: rgba(32, 190, 255, 0.08);
}

body.light-mode .leetcode-icon {
  background: rgba(255, 161, 22, 0.08);
}

body.light-mode .huggingface-icon {
  background: rgba(255, 210, 30, 0.08);
}

body.light-mode .location-icon {
  background: rgba(255, 107, 107, 0.08);
}

body.light-mode .contact-card-label {
  color: #999;
}

body.light-mode .contact-card-value {
  color: #333;
}

body.light-mode .contact-card-arrow {
  color: #bbb;
}

body.light-mode .contact-card:hover .contact-card-arrow {
  color: #ff9f00;
}

/* Form Inputs */
body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #333;
}

body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus {
  border-color: #ff9f00;
  background: rgba(255, 159, 0, 0.03);
  box-shadow: 0 0 0 3px rgba(255, 159, 0, 0.08);
}

body.light-mode .contact-form input::placeholder,
body.light-mode .contact-form textarea::placeholder {
  color: #999;
}

/* Promise Section */
body.light-mode .promise-item {
  background: #ffffff;
  border-color: #e6e6e6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

body.light-mode .promise-item:hover {
  border-color: rgba(255, 159, 0, 0.2);
  box-shadow: 0 8px 25px rgba(255, 159, 0, 0.06);
}

body.light-mode .promise-icon {
  background: rgba(255, 159, 0, 0.06);
}

body.light-mode .promise-item h4 {
  color: #333;
}

body.light-mode .promise-item p {
  color: #777;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-hero {
    padding: 2rem 1.5rem;
  }

  .contact-hero-title {
    font-size: 2rem;
  }

  .contact-hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .contact-info-col,
  .contact-form-col {
    padding: 1.5rem;
  }

  .promise-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .promise-item {
    padding: 1.5rem;
  }

  .contact-availability {
    font-size: 0.85rem;
    padding: 10px 16px;
    margin: 1rem auto;
  }

  .contact-location-badge {
    font-size: 0.8rem;
    padding: 8px 18px;
  }

  .contact-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 1.5rem 1rem;
  }

  .contact-card-value {
    font-size: 0.85rem;
  }

  .contact-info-col,
  .contact-form-col {
    padding: 1.2rem;
  }

  .contact-location-badge {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
}
