/* ✅ Mobile menu styling (same as index.html) */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 240px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.2);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: right 0.3s ease;
  z-index: 3000;
}
.mobile-menu.show { right: 0; }

/* Hide hamburger on desktop, show on mobile */
.hamburger {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
  color: #333;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 3100;
}
.hamburger-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Only show hamburger on smaller screens */
@media (max-width: 768px) {
  .hamburger { display: block; }

  /* 🔹 Hide desktop-only items */
  .toolbar,
  .lang-switcher,
  .btn-secondary {
    display: none !important;
  }
}

/* 🔹 Page container (About + Contact) */
.page-content {
  max-width: 850px; /* wider */
  margin: 3rem auto;
  padding: 3rem;
  background: #fffdfa;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-radius: 12px;
}

/* Form elements */
form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.3rem;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #0077cc;
  box-shadow: 0 0 4px rgba(0,119,204,0.3);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Buttons inside forms (Send/Cancel) */
.form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: #0077cc;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.1s ease;
}
.btn-primary:hover { background: #005fa3; }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: #f0f0f0;
  color: #333;
  padding: 0.75rem 1.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn-secondary:hover {
  background: #e4e4e4;
  border-color: #999;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 500;
}
.alert-success {
  background: #e6ffed;
  border: 1px solid #00b341;
  color: #006b24;
}
.alert-error {
  background: #ffeaea;
  border: 1px solid #d00;
  color: #8a0000;
}

/* Footer stick */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
.footer {
  margin-top: auto;
  padding: 1rem;
  text-align: center;
  background: #f9f9f9;
  border-top: 1px solid #ddd;
}

/* 🔹 Navigation buttons (below form, About + Contact) */
.form-nav {
  margin: 2rem auto; /* equal spacing */
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.form-nav a {
  min-width: 140px;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  display: inline-block;
}

/* 🔹 Two-column contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.address p { margin: 0.2rem 0; }
.contact-logo { text-align: center; margin-top: auto; }

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
/* 🔹 About page image styling */
.about-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 400px; /* prevents image from being too tall */
  display: block;
}

/* 🔹 About text styling (single column, readable) */
.about-text {
  font-size: 1.15rem;       /* larger font */
  line-height: 1.8;         /* airy spacing */
  color: #222;
  max-width: 700px;         /* keeps line length comfortable */
  margin: 0 auto 2rem auto; /* center align block */
}

.about-text p {
  margin-bottom: 1.2rem;
  text-align: justify;      /* clean block alignment */
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-text hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #ddd;
}

/* Responsive: slightly smaller text on mobile */
@media (max-width: 768px) {
  .about-text {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
    padding: 0 1rem;
  }
}



/* Responsive stacking for small screens */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr; /* stack */
  }

  .about-image img {
    max-height: none; /* allow full height on mobile */
  }
}
/* About page grid: image + projects side by side */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: stretch; /* ensures equal height */
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills the column neatly */
  border-radius: 12px;
}

.about-projects {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-projects ul {
  list-style: none;
  padding-left: 0;
}

.about-projects li {
  margin-bottom: 0.5rem;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image img {
    height: auto;
  }
}
