* {
  text-decoration: none;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f7f5ec;
  color: #1e1e1e;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

ul {
  list-style: none;
}

/* Header */
header {
  margin-top: 0%;
  background-color: #efefe2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 9999;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-container ul {
  display: flex;
  gap: 70px;
  justify-content: flex-end;
  align-items: center;
}

.nav-container li a {
  color: #6a7b54 !important;
  text-decoration: none;
  font-weight: 600;
}

.nav-container .logo {
  font-family: "Oleo Script Swash Caps", cursive !important;
  font-size: 28px;
  color: #6a7b54;
}

.nav-container li.logo {
  margin: 0 auto;
}

.nav-container li.logo a {
  font-family: "Oleo Script Swash Caps", cursive !important;
  font-size: 28px;
  color: #6a7b54;
  font-weight: 300;
  text-decoration: none;
  display: block;
  padding: 6px 0;
}

/* Dropdown Menu */
.dropdown {
  display: none !important;
  visibility: hidden;
  position: absolute;
  top: 104%;
  left: 67%;
  transform: translateX(-50%);
  background: #efefe2;
  padding: 8px 0;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  min-width: 180px;
  z-index: 1002;
}

.dropdown li {
  padding: 0;
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  color: #6a7b54;
  text-decoration: none;
  font-weight: 600;
}

.dropdown li a:hover,
.dropdown li a:focus {
  background: rgba(106, 123, 84, 0.08);
}

.has-dropdown.open > .dropdown {
  display: block !important;
  visibility: visible;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 60px 60px;
}

.contact-container {
  background: #f9f9f9;
  width: 100%;
  max-width: 90%;
  margin: auto;
  padding: 100px 70px;
  display: flex;
  gap: 220px;
  justify-content: space-between;
}

.contact-info h2 {
  font-family: "Oleo Script Swash Caps", cursive;
  font-size: 55px;
  font-weight: 300;
  color: #2c2c2c;
  margin-top: 0px;
  margin: 0;
}

.contact-info p {
  color: rgba(0, 0, 0, 0.7);
  width: 280px;
  line-height: 1;
  margin-top: 10px;
}

.details {
  margin-top: 170px;
  margin-bottom: 10px !important;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.detail-item img {
  width: 22px;
}

.detail-item a {
  text-decoration: none;
  color: inherit;
}

.detail-item span {
  font-size: 16px;
  font-weight: 500;
}

/* Form Styling */
.contact-form {
  flex: 1;
}

.contact-form form {
  width: 100%;
}

.contact-form label {
  font-size: 14px;
  font-weight: 500;
}
.hamburger {
  display: none;
}
.contact-form input,
.contact-form textarea {
  width: 97%;
  padding: 12px;
  border: 1.5px solid #c9c4b7;
  margin: 10px 0 25px;
  font-size: 15px;
  border-radius: 3px;
  background: #fff;
  resize: none;
}

.send-btn {
  background: #d2967b;
  border: none;
  padding: 10px 32px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
  color: #fff;
  transition: 0.3s;
}

.btn-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.send-btn:hover {
  background: #ba836c;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    gap: 50px;
    padding: 40px;
  }

  .contact-info h2 {
    font-size: 45px;
  }

  .contact-info p {
    width: 100%;
  }
}

/* Navbar mobile behavior: show logo left, hamburger right, menu items hidden until toggled */
@media (max-width: 900px) {
  .nav-container ul {
    display: flex;
    gap: 18px;
    justify-content: flex-start;
    align-items: center;
  }
  .nav-container ul li:not(.logo) {
    display: none;
  }
  .nav-container ul.show {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    gap: 12px;
    background: #efefe2;
    padding: 12px;
    z-index: 9998;
  }
  .nav-container ul.show li {
    display: flex;
  }
  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
  }
  .nav-container li.logo {
    display: none !important;
  }
}

/* Tighter mobile rules to avoid overflow and keep form readable */
@media (max-width: 600px) {
  .contact-container {
    padding: 24px;
    gap: 24px;
  }
  .contact-info h2 {
    font-size: 36px;
  }
  .contact-info p {
    width: 100%;
  }
  .contact-container {
    align-items: stretch;
  }
  .contact-form {
    width: 100%;
  }
  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    font-size: 14px;
  }
  .btn-row {
    justify-content: flex-end;
  }
  .send-btn {
    padding: 8px 18px;
  }
  nav ul li.logo {
    display: none;
  }
}

.nav-container {
  display: flex;
  justify-content: center;
}

.nav-container ul {
  display: flex;
  gap: 70px;
  justify-content: flex-end;
}

.nav-container li a {
  color: #6a7b54 !important;
  text-decoration: none;
  font-weight: 600;
}

.nav-container .logo {
  font-family: "Oleo Script Swash Caps", cursive !important;
  font-size: 28px;
  color: #6a7b54;
}

/* Footer */
footer {
  background-color: #efefe2;
  padding: 30px 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

footer .socials a {
  margin-left: 15px;
  text-decoration: none;
  display: inline-block;
}

footer .socials a img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

/* Tablet screens */
@media (max-width: 1024px) {
  .contact-container {
    gap: 60px;
  }

  .contact-info h2 {
    font-size: 50px;
  }

  .contact-info p {
    width: 100%;
  }
}

/* Mobile screens */
@media (max-width: 768px) {
  /* Navigation */
  .nav-container ul {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  /* Contact section stacks neatly */
  .contact-section {
    display: flex;
    justify-content: center;
    padding: 0;
  }
  .contact-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .contact-info h2 {
    font-size: 36px;
    text-align: center;
  }

  .contact-info p {
    text-align: center;
    margin-bottom: 20px;
  }

  .details {
    text-align: center;
  }

  .detail-item {
    justify-content: center;
  }

  .contact-form {
    width: 100%;
  }

  .send-btn {
    width: 100%;
    float: none;
    margin-top: 10px;
  }

  /* Footer */
  footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  footer .socials {
    justify-content: center;
  }
}
/* Small mobile screens */
@media (max-width: 480px) {
  .contact-container {
    align-items: center; /* center everything */
    text-align: center;
  }

  .contact-form form {
    display: flex;
    flex-direction: column;
    align-items: center; /* center inputs and button */
    gap: 15px; /* consistent gap between fields */
    width: 100%;
  }

  .contact-form label {
    text-align: left;
    width: 100%;
    max-width: 320px; /* keep labels aligned with inputs */
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    max-width: 320px; /* prevent stretching too wide */
    font-size: 14px;
    padding: 10px;
    margin: 0; /* remove extra margins */
  }

  .send-btn {
    width: 100%;
    max-width: 320px; /* button same width as inputs */
    font-size: 14px;
    padding: 10px;
    margin-top: 5px;
    align-self: center; /* center button */
  }
}
/* Mobile: max-width 768px for About page */
@media (max-width: 768px) {
  nav ul li.logo {
    display: none;
  }

  contact-section {
    display: flex;
    justify-content: center;
    padding: 0;
  }
  /* Show logo on the left outside dropdown */
  .nav-container::before {
    content: "JayGovindraj";
    font-family: "Oleo Script Swash Caps", cursive;
    font-size: 22px;
    color: #6a7b54;
    position: absolute;
    left: 20px;
    top: 18px;
    z-index: 1000;
  }

  /* Hamburger on the right */
  .hamburger {
    display: block;
    position: absolute;
    right: 20px !important;
    top: 18px !important;
    z-index: 1001;
    cursor: pointer;
  }
  nav {
    padding: 40px;
  }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* just below header */
    left: 0;
    width: 100%;
    background: #efefe2;
    padding: 20px 0;
    gap: 15px;
    text-align: center;
    z-index: 999;
  }

  nav ul.show {
    display: flex;
  }

  /* Keep mobile links small */
  nav ul li a {
    font-size: 15px;
  }
}
@media (max-width: 768px) {
  nav ul {
    display: none !important; /* hide by default */
  }

  nav ul.show {
    display: flex !important; /* only visible when JS adds .show */
  }
}
