* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  box-sizing: border-box;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}


body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  background: #f4f8fb;
  color: #222;
}

header {
  background-image: url(./imges/header.jpeg);
  background-size: cover;
  background-position: center, center;
  height: 100vh;
  position: relative;
  z-index: 0;
  overflow: hidden;
}
header::before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(136, 136, 136, 0.35);
  z-index: 1;
}
header .navContainer,
header .home {
  position: relative;
  z-index: 2;
}

.navContainer nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 60px;
}

.Logo img {
  width: 200px;
  height: auto;
}

.navLinks {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navLinks li a {
  color: #2aa2af;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 20px;
  transition: all 0.3s ease;
}

.navLinks li a:hover {
  color: #00bcd4;
  font-size: 1.15rem;
}

#theme-toggle {
  position: fixed;
  right: 30px;
  top: 30px;
  padding: 12px 14px;
  background: #fff;
  border: 2px solid #00bcd4;
  color: #00bcd4;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 20px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, border 0.2s, font-size 0.3s;
}
#theme-toggle:hover {
  background: #00bcd4;
  color: #fff;
  border-color: #0097a7;
  font-size: 2.1rem;
}

.home {
  position: absolute;
  top: 15%; /* was 25% */
  left: 50%;
  transform: translate(-50%, -15%);
  text-align: center;
}

.home p {
  font-family: "Source Sans 3", "Source Code Pro";
  font-size: 1.5rem;
  line-height: 26.4px;
  font-weight: 600;
  color: #0097a7;
  margin: 0;
}

.home h1 {
  font-size: 3rem;
  margin: 10px 0;
  color: #00bcd4;
}

.try-converter-btn {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.95rem 2.2rem;
  background: linear-gradient(90deg, #00bcd4 60%, #0097a7 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,188,212,0.10);
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.try-converter-btn:hover {
  background: #fff;
  color: #00bcd4;
  border: 2px solid #00bcd4;
  box-shadow: 0 4px 18px rgba(0,188,212,0.13);
}

/*     ---- ------------ ------- -----   -about start */

.about {
  background-color: #fff;
  padding: 60px 0;
  margin-top: 60px;
  margin-bottom: 50px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.about-image {
  position: relative;
  display: inline-block;
  z-index: 2;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -30px;
  width: 70%;
  height: 95%;
  border: 10px solid #e3e8ee;
  border-radius: 10px;
  z-index: -1;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.about-text h2 {
  color: #0097a7;
  font-family: "Source Sans 3";
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.about-text h2 span {
  font-size: 40px;
  color: #00bcd4;
}
.about-text p {
  font-family: "Roboto", sans-serif;
  font-size: 1.3rem;
  color: #333;
  line-height: 1.6;
}

/* Visoin mission */

.vision-section {
  background-color: #f4f8fb;
  padding: 60px 20px;
  height: fit-content;
  margin-bottom: 50px;
}

.vision-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 188, 212, 0.13);
}
.card h2 {
  font-family: "Source Sans 3", "Source Code Pro";
  color: #00bcd4;
  margin-bottom: 15px;
  font-size: 1.8rem;
}
.card p {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #222;
}

/* contact sec */

/* ========== CONTACT SECTION ========== */
.contact {
  padding: 4rem 1rem;
  background-color: #fff;
  text-align: center;
}
.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0097a7;
}
.contact p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
}
.contact-form .form-group {
  display: flex;
  flex-direction: column;
}
.contact-form .full-width {
  grid-column: span 2;
}
.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #d1d9e6;
  border-radius: 6px;
  background: #f7fafc;
  color: #222;
}
.contact-form button {
  background-color: #00bcd4;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.contact-form button:hover {
  background-color: #0097a7;
}





/* = FOOTER === */
.footer {
  background-color: #eaf3fa;
  color: #4a5a6a;
  text-align: center;
  padding: 2rem 1rem;
}
.footer p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.footer .social-icons a {
  color: #00bcd4;
  font-size: 1.2rem;
  transition: color 0.2s, transform 0.2s;
}
.footer .social-icons a:hover {
  color: #0097a7;
  transform: scale(1.18) rotate(-8deg);
}



/* ---!!!!!!!!!!Convert.html!!!!!!!!!!!! */



/* test */

.units-info-section {
  background: #f7fafc;
  padding: 3.5rem 1rem 2.5rem 1rem;
  text-align: center;
}
.units-info-title {
  font-size: 2rem;
  color: #0097a7;
  margin-bottom: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.units-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.unit-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,188,212,0.10);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  width: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1.5px solid #e3e8ee;
}
.unit-card:hover {
  transform: translateY(-7px) scale(1.04);
  box-shadow: 0 8px 32px rgba(0,188,212,0.16);
  border-color: #00bcd4;
}
.unit-icon {
  font-size: 2.5rem;
  color: #00bcd4;
  margin-bottom: 1.1rem;
}
.unit-card h3 {
  font-size: 1.18rem;
  color: #0097a7;
  margin-bottom: 0.7rem;
  font-weight: 600;
}
.unit-card p {
  font-size: 0.98rem;
  color: #333;
  margin: 0;
}
@media (max-width: 900px) {
  .units-cards-container {
    gap: 1.2rem;
  }
  .unit-card {
    width: 170px;
    padding: 1.3rem 0.7rem 1rem 0.7rem;
  }
}
@media (max-width: 600px) {
  .units-cards-container {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .about-image{
    justify-content: center;
    margin-left: 20px;
  }

  .about-image img {
    max-width: 80vw;
    width: 80%;
    height: auto;
  }

  .unit-card {
    width: 95%;
    min-width: 0;
  }
}

.units-convert-btn {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(90deg, #00bcd4 60%, #0097a7 100%);
  color: #fff;
  font-size: 1.18rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,188,212,0.10);
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.units-convert-btn:hover {
  background: #fff;
  color: #00bcd4;
  border: 2px solid #00bcd4;
  box-shadow: 0 4px 18px rgba(0,188,212,0.13);
}

/* === DARK THEME OVERRIDES (moved to bottom for priority) === */
body.dark-theme {
  background: #3a3a3a;
  color: #f4f4f4;
}
.dark-theme header {
  background-image: url(./imges/header.jpeg);
  background-color: #181818;
}
.dark-theme header::before {
  background-color: rgba(24, 24, 24, 0.85);
}
.dark-theme .navLinks li a {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.dark-theme .navLinks li a:hover {
  color: #ff305b;
}
.dark-theme #theme-toggle {
  background: #181818;
  border: 2px solid #ff305b;
  color: #ff305b;
}
.dark-theme #theme-toggle:hover {
  background: #ff305b;
  color: #fff;
  border-color: #fff;
}
.dark-theme .home p {
  color: #fff;
}
.dark-theme .home h1 {
  color: #ff305b;
}
.dark-theme .try-converter-btn {
  background: #ff305b;
  color: #fff;
  border: none;
}
.dark-theme .try-converter-btn:hover {
  background: #fff;
  color: #ff305b;
  border: 2px solid #ff305b;
}
.dark-theme .about,
.dark-theme .units-info-section,
.dark-theme .vision-section,
.dark-theme .contact {
  background: #333;
  color: #fff;
}
.dark-theme .unit-card {
  background: #23232b;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,255,255,0.08);
  border: 1.5px solid #333;
}
.dark-theme .unit-card h3,
.dark-theme .unit-icon {
  color: #fff;
}
.dark-theme .unit-card p {
  color: #fff;
}
.dark-theme .unit-card:hover {
  box-shadow: 0 12px 24px rgba(255,255,255,0.13);
  border-color: #fff;
}
.dark-theme .card {
  box-shadow: 0 8px 20px rgba(255,255,255,0.08);
  border: 1.5px solid #333;
}
.dark-theme .card:hover {
  box-shadow: 0 12px 24px rgba(255,255,255,0.13);
  border-color: #fff;
}
.dark-theme .units-info-title {
  color: #fff;
}
.dark-theme .unit-icon {
  color: #ff305b;
}
.dark-theme .units-convert-btn {
  background: #ff305b;
  color: #fff;
  border: none;
}
.dark-theme .units-convert-btn:hover {
  background: #fff;
  color: #ff305b;
  border: 2px solid #ff305b;
}
.dark-theme .about-text h2,
.dark-theme .about-text h2 span,
.dark-theme .vision-section h2,
.dark-theme .contact h2 {
  color: #ff305b;
}
.dark-theme .about-text p,
.dark-theme .vision-section p,
.dark-theme .contact p {
  color: #fff;
}
.dark-theme .about-grid .about-image::before {
  border-color: #fff;
}
.dark-theme .about-grid .about-image img {
  box-shadow: 0 0 20px rgba(255,255,255,0.08);
}
.dark-theme .card {
  background: #3a3a3a;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,255,255,0.08);
  border: 1.5px solid #444;
}
.dark-theme .card h2 {
  color: #ff305b;
}
.dark-theme .card p {
  color: #fff;
}
.dark-theme .card:hover {
  box-shadow: 0 12px 24px rgba(255,255,255,0.13);
  border-color: #ff305b;
}
.dark-theme .contact-form input,
.dark-theme .contact-form textarea {
  background: #23232b;
  color: #fff;
  border: 1.5px solid #444;
}
.dark-theme .contact-form input:focus,
.dark-theme .contact-form textarea:focus {
  border-color: #ff305b;
  outline: none;
}
.dark-theme .contact-form button {
  background: #ff305b;
  color: #fff;
  border: none;
}
.dark-theme .contact-form button:hover {
  background: #fff;
  color: #ff305b;
  border: 2px solid #ff305b;
}
.dark-theme .footer {
  background: #222;
  color: #fff;
}
.dark-theme .footer .social-icons a {
  color: #ff305b;
}
.dark-theme .footer .social-icons a:hover {
  color: #fff;
}

body, section, .card, .unit-card, .about, .vision-section, .contact, .footer, .units-info-section {
  transition: background 0.3s, color 0.3s, border 0.3s, box-shadow 0.3s, filter 0.3s, outline 0.3s, text-shadow 0.3s, letter-spacing 0.3s, font-size 0.3s, font-weight 0.3s, all 0.3s;
}

.navLinks li a,
.navLinks li a:hover,
#theme-toggle,
#theme-toggle:hover,
.try-converter-btn,
.try-converter-btn:hover,
.units-convert-btn,
.units-convert-btn:hover,
.unit-card,
.unit-card:hover,
.card,
.card:hover,
.contact-form button,
.contact-form button:hover,
.footer .social-icons a,
.footer .social-icons a:hover {
  transition: all 0.3s ease;
}

.try-converter-btn,
.try-converter-btn:hover,
.units-convert-btn,
.units-convert-btn:hover,
.contact-form button,
.contact-form button:hover {
  transition: all 0.3s ease;
}

/* Dark mode text polish */
.dark-theme .about-text h2,
.dark-theme .about-text h2 span,
.dark-theme .vision-section h2,
.dark-theme .contact h2,
.dark-theme .footer-title,
.dark-theme .units-info-title {
  color: #ff305b;
}
.dark-theme .about-text p,
.dark-theme .vision-section p,
.dark-theme .contact p,
.dark-theme .footer-copy,
.dark-theme .card p,
.dark-theme .unit-card p {
  color: #fff;
}
.dark-theme .footer {
  color: #fff;
}

@media (max-width: 900px) {
  .navLinks {
    gap: 1.2rem;
  }
  .navLinks li a {
    font-size: 1rem;
  }
  .navContainer nav {
    padding: 1px 20px;
  }
}

@media (max-width: 600px) {
  .navContainer nav {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0.5rem;
  }
  .Logo img {
    width: 120px;
  }
  .navLinks {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1rem;
  }
  .navLinks li a {
    font-size: 0.98rem;
    padding: 0.5rem 0;
  }
  .home h1 {
    font-size: 2rem;
  }
  .home p {
    font-size: 1.1rem;
  }
  .try-converter-btn {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    margin-top: 1.2rem;
  }
}

@media (max-width: 900px) {
  .about-grid,
  .vision-container,
  .units-cards-container {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    flex-direction: column;
    align-items: center;
  }
  .unit-card,
  .card {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
}
@media (max-width: 600px) {
  .about-grid,
  .vision-container,
  .units-cards-container {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    flex-direction: column;
    align-items: center;
  }
  .unit-card,
  .card {
    width: 100%;
    max-width: none;
    padding: 0.7rem 0.3rem 0.7rem 0.3rem;
    font-size: 0.98rem;
  }
}

@media (max-width: 600px) {
  .contact-form {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0 0.2rem;
  }
  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    width: 100%;
    font-size: 0.98rem;
    padding: 0.7rem;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.98rem;
  }
  .footer-title {
    font-size: 1.01rem;
  }
  .footer-icons {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.7rem;
  }
  .footer-icons a {
    font-size: 1.1rem;
  }
}



