/* Dark theme dialog styling
[data-theme="dark"] .dialog-content-container::before
[data-theme="dark"] .neomorphic-card
data-theme="dark"] .social-buttons
.card-description
.copyright-section 
data-theme="dark"] .neomorphic-card 
-theme="dark"] .input-wrapper
contact-section .rn-btn
theme="dark"] .contact-form-wrapper
@media (max-width: 768px) {
    .card-description
[data-theme="dark"] .card-description
  .contact-section .rn-btn:hover{
    background: linear-gradient(to bottom right,#212121, #121212);
  }
[data-theme="dark"] .form-row





















*/
[data-theme="dark"] .dialog-overlay {
  background-color: rgba(10, 15, 25, 0.85);
  backdrop-filter: blur(5px);
}

/* Dialog content redesign for dark theme - Minimalist style */
[data-theme="dark"] .dialog-content {
  background-color: #1a1c2e;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(55, 65, 90, 0.3);
  overflow-y: hidden;
  max-height: 85vh;
  transition: all 0.3s ease;
}

/* Dialog body for dark theme */
[data-theme="dark"] .dialog-body {
  margin-top: 2rem;
  overflow-y: auto;
  max-height: calc(85vh - 100px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
[data-theme="dark"] .dialog-body::-webkit-scrollbar {
  display: none;
}

/* Close button for dark theme */
[data-theme="dark"] .dialog-close-btn {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 60;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #2d2d44;
  color: #e0e0e0;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(77, 171, 247, 0.2);
}

[data-theme="dark"] .dialog-close-btn:hover {
  background-color: var(--main-color);
  color: white;
  transform: rotate(90deg);
  box-shadow: 0 6px 16px rgba(77, 171, 247, 0.3);
}

/* Dialog content container for dark theme */
[data-theme="dark"] .dialog-content-container {
  padding: 2rem 3rem;
  background-color: #1a1a2e;
  position: relative;
}

[data-theme="dark"] .dialog-content-container::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--main-color), #4facfe);
  opacity: 0.8;
}
@media screen and (max-width: 576px) {
  [data-theme="dark"] .dialog-content-container::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--main-color), #4facfe);
    opacity: 0.8;
  }
}

[data-theme="dark"] .dialog-header {
  margin-bottom: 2rem;
  position: relative;
}

[data-theme="dark"] .dialog-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #a0a0b0;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .dialog-title {
  font-family: var(--heading-font);
  font-size: 2.1rem;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .dialog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .dialog-category {
  background-color: rgba(77, 171, 247, 0.15);
  color: var(--main-color);
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

[data-theme="dark"] .dialog-read-time {
  color: #a0a0b0;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

[data-theme="dark"] .dialog-read-time svg {
  color: var(--main-color);
  margin-right: 0.5rem;
}

[data-theme="dark"] .dialog-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #b0b0c0;
  margin-bottom: 2.5rem;
}

[data-theme="dark"] .dialog-text p {
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .dialog-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #d0d0e0;
  margin: 2rem 0 1rem;
}

[data-theme="dark"] .dialog-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #c0c0d0;
  margin: 1.5rem 0 1rem;
}

[data-theme="dark"] .dialog-comment-section {
  border-top: 1px solid #2a2a40;
  padding-top: 2rem;
}

/* Comment form styling for dark theme */
[data-theme="dark"] .comment-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}

[data-theme="dark"] .comment-form-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  [data-theme="dark"] .comment-form-fields {
    grid-template-columns: repeat(2, 1fr);
  }
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  width: 100%;
  background-color: #272840;
  border: 1px solid #3a3b55;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: #e0e0e0;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.2);
}

[data-theme="dark"] .form-textarea {
  resize: vertical;
  height: 100%;
  min-height: 150px;
}

[data-theme="dark"] .submit-btn {
  margin-top: 1rem;
  background-color: transparent;
  color: #e0e0e0;
  border: 1px solid rgba(77, 171, 247, 0.4);
  border-radius: 4px;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .submit-btn:hover {
  background-color: rgba(77, 171, 247, 0.08);
  border-color: var(--main-color);
  color: var(--main-color);
}

[data-theme="dark"] .submit-btn:active {
  transform: scale(0.98);
}

[data-theme="dark"] .submit-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

[data-theme="dark"] .submit-btn:hover::before {
  width: 100%;
}

[data-theme="dark"] .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #c0c0d0;
  font-weight: 500;
}

/* Custom placeholder color for dark theme */
[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: #6a6b8a;
}

/* Dialog image for dark theme */
[data-theme="dark"] .dialog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.05);
}

/* Mobile responsive styles for dialog content */
@media (max-width: 576px) {
  [data-theme="dark"] .dialog-content {
    border-radius: 10px;
    max-height: 92vh;
    margin: 0 5px;
  }
  
  [data-theme="dark"] .dialog-content-container {
    padding: 1.25rem 1.5rem;
  }
  
  [data-theme="dark"] .dialog-title {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }
  
  [data-theme="dark"] .dialog-date {
    font-size: 0.8rem;
  }
  
  [data-theme="dark"] .dialog-category {
    font-size: 0.7rem;
    padding: 0.35rem 0.8rem;
  }
  
  [data-theme="dark"] .dialog-read-time {
    font-size: 0.8rem;
  }
  
  [data-theme="dark"] .dialog-meta {
    gap: 0.8rem;
    margin-bottom: 1.25rem;
  }
  
  [data-theme="dark"] .dialog-text {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  [data-theme="dark"] .dialog-text h2 {
    font-size: 1.4rem;
    margin: 1.75rem 0 0.75rem;
  }
  
  [data-theme="dark"] .dialog-text h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
  }
  
  [data-theme="dark"] .dialog-text p {
    margin-bottom: 1.25rem;
  }
  
  [data-theme="dark"] .dialog-image-container {
    height: 250px;
  }
  
  [data-theme="dark"] .comment-title {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
  }
  
  [data-theme="dark"] .form-input, 
  [data-theme="dark"] .form-textarea {
    font-size: 0.9rem;
    padding: 0.75rem 0.9rem;
  }
  
  [data-theme="dark"] .submit-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
  }
}

/* Neomorphic Contact Form for Dark Theme */
[data-theme="dark"] .contact-section {
  padding: 5rem 0;
  background-color: #1A1A1A;
}
[data-theme="dark"] .contact-section .rn-btn:hover{
  background: linear-gradient(to bottom right,#212121, #121212);
}


[data-theme="dark"] .contact-container {
  max-width: 100%;
  width: 100%;
  margin: 3rem auto 0;
  padding: 0 15px;
}

[data-theme="dark"] .contact-form-wrapper {
  background-color: #212121;
  border-radius: 15px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3), 
              -10px -10px 20px rgba(45, 45, 45, 0.15);
  overflow: hidden;
  padding: 2.7rem 3rem 1rem 3rem;
  position: relative;
}


[data-theme="dark"] .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .form-field {
  margin-bottom: 2.9rem !important;
}


@media (max-width: 768px) {
  [data-theme="dark"] .contact-form-wrapper {
    padding: 2rem;
  }
}

[data-theme="dark"] .neomorphic-form {
  width: 100%;
}

[data-theme="dark"] .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom 1.5rem;
}

@media (max-width: 576px) {
  [data-theme="dark"] .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
}

[data-theme="dark"] .form-field {
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .form-field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.05rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #94a3b8;
  font-family: 'Montserrat', sans-serif;
}

[data-theme="dark"] .input-wrapper {
  position: relative;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: #242424;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5),
              inset -2px -2px 5px rgba(45, 45, 45, 0.15);
}

[data-theme="dark"] .input-wrapper:focus-within {
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5),
              inset -2px -2px 5px rgba(45, 45, 45, 0.15),
              0 0 0 2px rgba(77, 171, 247, 0.25);
}

[data-theme="dark"] .input-wrapper input,
[data-theme="dark"] .input-wrapper textarea {
  width: 100%;
  background-color: transparent;
  border: none;
  color: #e2e8f0;
  padding: 0.85rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  outline: none;
}

[data-theme="dark"] .input-wrapper textarea {
  resize: none;
}

[data-theme="dark"] .input-wrapper input::placeholder,
[data-theme="dark"] .input-wrapper textarea::placeholder {
  color: #64748b;
}

[data-theme="dark"] .neomorphic-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(145deg, #212121, #1c1c1c);
  border: none;
  border-radius: 8px;
  color: #ff2c55;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
  width: auto;
  margin-top: 0.5rem;
}

[data-theme="dark"] .neomorphic-button:hover {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

[data-theme="dark"] .neomorphic-button:active {
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}

[data-theme="dark"] .neomorphic-button .arrow {
  margin-left: 0.5rem;
  stroke: #ff2c55;
  transition: transform 0.3s ease;
}

[data-theme="dark"] .neomorphic-button:hover .arrow {
  transform: translateX(3px);
}

/* Neomorphic Contact Card for Dark Theme */
[data-theme="dark"] .contact-card-wrapper {
  margin-bottom: 3rem;
  height: 100%;
}

[data-theme="dark"] .neomorphic-card {
  background-color: #212121;
  border-radius: 15px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3), 
              -10px -10px 20px rgba(45, 45, 45, 0.15);
  overflow: hidden;
  padding: 1rem;
  position: relative;
  text-align: left;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .card-image-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .card-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

[data-theme="dark"] .card-image:hover {
  transform: scale(1.03);
}

[data-theme="dark"] .card-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.75rem 0 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

[data-theme="dark"] .card-title {
  font-size: 1rem;
  font-weight: 500;
  color: #94a3b8;
  margin: 0 0 1rem;
  font-family: 'Poppins', sans-serif;
}

[data-theme="dark"] .card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom 1.5rem;
  font-family: 'Poppins', sans-serif;
}

[data-theme="dark"] .card-contact-info {
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .contact-item {
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

[data-theme="dark"] .contact-item .label {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-right: 0.5rem;
}

[data-theme="dark"] .contact-item .value {
  font-size: 0.95rem;
  color: #4dabf7;
  text-decoration: none;
  transition: color 0.2s ease;
}

[data-theme="dark"] .contact-item .value:hover {
  color: #74c0fc;
}

[data-theme="dark"] .social-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
}

[data-theme="dark"] .social-buttons {
  display: flex;
  justify-content: left;
  gap: 0.8rem;
}

[data-theme="dark"] .social-button {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border-radius: 6px;
  color: #9ca3af;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.25),
              inset 1px 1px 1px rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

[data-theme="dark"] .social-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: -1;
  transition: all 0.3s ease;
}

[data-theme="dark"] .social-button:hover {
  background: #212121;
  color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3),
              inset 1px 1px 1px rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .social-button:hover:before {
  background: rgba(var(--main-color-rgb), 0.05);
}

[data-theme="dark"] .social-button:active {
  transform: translateY(0);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3),
              inset -1px -1px 3px rgba(45, 45, 45, 0.05);
}

@media (min-width: 992px) {
  [data-theme="dark"] .contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    align-items: stretch;
  }
  
  [data-theme="dark"] .contact-card-wrapper {
    margin-bottom: 0;
  }
}

/* Adjusting form wrapper to match with card */
@media (min-width: 992px) {
  [data-theme="dark"] .contact-form-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  [data-theme="dark"] .neomorphic-form {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
}

/* Remove textarea resize handle in contact section */
[data-theme="dark"] .contact-section textarea {
  resize: none;
}

[data-theme="dark"] .contact-container {
  max-width: 100%;
  width: 100%;
  margin: 3rem auto 0;
  padding: 0 15px;
}
