/* Color Scheme Variables for Light and Dark Themes */
:root {
  --primary-color: #ff99bf;
  --background-color: #ffffff;
  --text-color: #121212;
  --accent-color: #dd79a1;
  --toggle-bg: #e0e0e0;
  --button-hover-color: #dd79a1;
  --font-family: 'Poppins', sans-serif;
  --transition-duration: 0.3s;
  --shadow-color: rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] {
  --background-color: #1d1f27;
  --text-color: #ffffff;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color var(--transition-duration), color var(--transition-duration);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  background-color: var(--background-color);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 4;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
h1{
  margin-top: 2rem;
  margin-left: 2rem;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 1px;
}
nav {
  display: flex;
  gap: 20px;
}
nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}
nav ul li {
  margin: 0 10px;
}
nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

nav a:hover {
  color: var(--primary-color);
  border-radius: 15px;
  transition: background-color 0.3s ease;
}

/* Ensuring h2, p, and label are always black */
.contact-form h2,
.contact-form p,
.contact-form label {
  color: black !important; /* Forces the color to be black regardless of the theme */
}
 .contact-section h2 {
  color: #495460;
}
/* Hamburger Menu (Hidden on Desktop) */
.phone-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-color);
  background: none;
  border: none;
  outline: none;
  margin-left: auto;
}
.phone-toggle.active {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .logo {
    max-width: 150px; /* Scale down further for tablets */
  }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: var(--background-color);
    width: 200px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  nav ul.active {
    display: flex;
  }
  .phone-toggle {
    display: block;
  }
  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
  }
}
@media (max-width: 480px) {
  .logo {
    max-width: 120px; /* Scale down further for smaller phones */
  }
  .phone-toggle {
    display: block; /* Show hamburger menu on small screens */
  }
}

/* Card Container (Main Wrapper) */
.card-container {
  display: flex;
  justify-content: center; /* Center the cards */
  margin-top: 30px;
}

/* Contact Section */
.contact-section {
  max-width: 500px;
  width:100%;
  margin:  auto;
  padding: 20px;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 2px 5px var(--shadow-color);
}

.contact-form {
  max-width: 500px;
  margin:  auto;
  padding: 20px;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  /*box-shadow: 0 2px 5px var(--shadow-color);*/
}

/* Contact Form */
.contact-form input, .contact-form textarea, .contact-form button {
  width: 100%;
  margin-bottom: 15px;
}

.contact-form input, .contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  background-color: var(--primary-color);
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.contact-form button:hover {
  background-color: var(--button-hover-color);
}

/* Contact Details */
.contact-details {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 30px;
  color: var(--text-color);
}

.contact-details div {
  background-color: var(--primary-color);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 45%;
  text-align: center;
}

/* Social Icons Styles */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
}

.social-icons li {
  margin: 0 10px;
}

.social-icons li a img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0) saturate(100%) invert(86%) sepia(15%) saturate(3780%) hue-rotate(290deg) brightness(97%) contrast(110%);
}

.social-icons li a img:hover {
  transform: scale(1.2);
  filter: brightness(0) saturate(100%) invert(80%) sepia(20%) saturate(5000%) hue-rotate(305deg) brightness(95%) contrast(104%);
}

/* Footer */
footer {
  background-color: var(--background-color);
  padding: 20px;
  text-align: center;
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width:768px) {
  h2 {
    /*font-size: 1.6rem;*/
    margin-left: 20px;
    margin-top: 20px;
  }
  p{
    margin-left: 20px;
    margin-bottom: auto;
  }
  .contact-section{
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    padding: 0;
  }
  .card-container {
    flex-direction: column;
    align-items: center;
    padding-right: 0;
  }
  .contact-form {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 20px;
  }
  input,
  textarea {
    width: 100%;
    font-size: 16px;
  }
  .contact-details {
    flex-direction: column;
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
  .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
  }
  .contact-details div {
    width: 80%;
    align-items: center;
    margin: auto;
  }
}
