/* ===================== BODY / DEFAULT ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f6fa;
  color: #0d1b2a;
  line-height: 1.6;
  font-size: 16px;
  padding-top: 70px; /* space for fixed navbar */
}
/* ================= SIDEBAR BEHAVIOUR ================= */
.sidebar {
  width: 250px;
  background: #0d1b2a;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  transition: 0.3s ease;
  z-index: 500;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}


h1, h2, h3, h4 {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #0d1b2a;
}

p {
  margin-bottom: 1rem;
  color: #333;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #f4b400;
  color: #0d1b2a;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background-color: #0d1b2a;
  color: #f4b400;
  border: 2px solid #f4b400;
}

.btn-secondary:hover {
  opacity: 0.85;
}

/* ===================== HERO SECTION ===================== */
.hero {
  background: linear-gradient(135deg, #0d1b2a, #1b2a47);
  color: #f4b400;
  text-align: center;
  padding: 4rem 1rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ===================== ABOUT PREVIEW ===================== */
.about-preview {
  text-align: center;
  margin-bottom: 3rem;
}

.about-preview p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

/* ===================== SERVICES SECTION ===================== */
.services {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  text-align: center;
}

.services-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.service-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 250px;
  text-align: center;
}

/* ===================== CONVERTER PREVIEW ===================== */
.converter-preview {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #f4f4f4;
  border-radius: 10px;
}

/* ===================== HEADER / NAVBAR (head.php) ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0d1b2a; /* deep blue */
  color: #f4b400; /* gold accent */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.navbar .logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #f4b400;
  text-decoration: none;
}

.navbar .nav-links {
  display: flex;
  gap: 1.2rem;
}

.navbar .nav-links a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.navbar .nav-links a:hover {
  background-color: #f4b400;
  color: #0d1b2a;
}

.navbar .auth-links {
  display: flex;
  gap: 0.8rem;
}

.navbar .auth-links a {
  color: #0d1b2a;
  background-color: #f4b400;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.navbar .auth-links a:hover {
  opacity: 0.85;
}

.navbar .menu-btn {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #f4b400;
  cursor: pointer;
}



/* ===================== FOOTER (foot.php) ===================== */
.site-footer {
  background-color: #0d1b2a;
  color: #f4b400;
  padding: 2rem 1rem 1rem;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1.5rem;
}

.footer-brand h2 {
  margin: 0 0 0.5rem;
  color: #f4b400;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin: 0.3rem 0;
}

.footer-links ul li a {
  color: #ffffff;
  text-decoration: none;
}

.footer-links ul li a:hover {
  color: #f4b400;
}

.footer-contact p {
  margin: 0.3rem 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  border-top: 1px solid rgba(244, 180, 0, 0.3);
  padding-top: 0.8rem;
  color: #ffffff;
}

/* ===================== FORM STYLING ===================== */
.form-container {
  max-width: 450px;
  margin: 5rem auto;
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #0d1b2a;
}

.form-container form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #0d1b2a;
}

.form-container form input {
  width: 100%;
  padding: 0.7rem 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}
.form-container button {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 6px;
  background-color: #f4b400;
  color: #0d1b2a;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.form-container button:hover {
  opacity: 0.9;
}
.form-container p {
  text-align: center;
  margin-top: 1rem;
  color: #333;
}


/* ===================== FORM PASSWORD WRAPPER ===================== */
.password-wrapper {
  position: relative;
}

.password-wrapper .toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
}

/* ===================== MODAL STYLING ===================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-content.success {
  border-left: 6px solid #28a745;
}

.modal-content.error {
  border-left: 6px solid #dc3545;
}

.modal-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.modal-content button {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 6px;
  background-color: #0d1b2a;
  color: #f4b400;
  cursor: pointer;
  font-weight: bold;
}
/* LANGUAGE BAR */
.language-bar {
  width: 100%;
  text-align: right;
  padding: 20px;
}

.language-bar select {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* CURRENCY CHANGER */
.currency-changer {
  width: 90%;
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.currency-changer h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.converter-box {
  margin-top: 20px;
}

.input-group {
  margin-bottom: 15px;
  text-align: left;
}

.input-group label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.input-group input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.rate-note {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
}

/* GENERAL BUTTONS */
.btn-primary {
  background: #007bff;
  padding: 12px 25px;
  color: #fff;
  border-radius: 6px;
  display: inline-block;
  margin-top: 10px;
}

.btn-secondary {
  background: #333;
  padding: 10px 20px;
  color: #fff;
  border-radius: 6px;
}

/* Fade & Slide Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 1.3s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TESTIMONIALS */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.testimonial-card {
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid #007bff;
}

/* CTA */
.cta {
  background: #f3f8ff;
  padding: 40px 20px;
  text-align: center;
  border-radius: 12px;
}

.cta-buttons a {
  margin: 10px;
  padding: 12px 25px;
  border-radius: 8px;
  display: inline-block;
}

.cta-btn {
  background: #007bff;
  color: #fff;
}

.cta-secondary-btn {
  background: #fff;
  border: 2px solid #007bff;
  color: #007bff;
}


/* ===================== ANIMATION ===================== */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ===================== PAGE STYLING ===================== */
.page-container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.hero {
  text-align: center;
  background-color: #f4b40033;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #f4b400;
}

.hero p {
  font-size: 1.1rem;
  color: #f4b400;
}

.content h2 {
  color: #f4b400;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content p, .content ul {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}

.content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.contact-form form input,
.contact-form form textarea,
.contact-form form button {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
}

.contact-form form button {
  background-color: #f4b400;
  color: #0d1b2a;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.contact-form form button:hover {
  opacity: 0.85;
}
/* Dropdown Menu */
/* ===================== DROPDOWN MENU FIX ===================== */
.menu-btn {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #f4b400;
  padding: 10px;
  display: none;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 65px;
  right: 20px;
  background: #0d1b2a;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 200;
  animation: fadeIn 0.3s ease forwards;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu ul li a {
  display: block;
  padding: 12px 20px;
  color: #f4b400;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.dropdown-menu ul li a:hover {
  background: #f4b400;
  color: #0d1b2a;
}


/* Testimonials */
.testimonials {
  padding: 80px 20px;
  background: #f9f9f9;
  text-align: center;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.testimonial-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 300px;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

/* About */
.about {
  padding: 80px 20px;
  text-align: center;
  background: #fff;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #ff6600,#f4b400);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.cta-btn {
  display: inline-block;
  background: #fff;
  color: #ff6600;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: scale(1.05);
  background: #fff2e6;
}
.cta p {
  max-width: 700px;
  margin: 1rem auto 2rem;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.5;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-secondary-btn {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-secondary-btn:hover {
  background: #fff;
  color: #ff6600;
}

.cta-features {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-features .feature {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.5rem;
  border-radius: 12px;
  min-width: 220px;
  max-width: 250px;
  text-align: center;
  color: #fff;
}

.cta-features .feature h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.cta-features .feature p {
  font-size: 0.95rem;
  line-height: 1.4;
}


/* Animations */
.fade-in, .slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.fade-in.visible, .slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

@media(max-width:768px){
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===================== RESPONSIVE SERVICES CARDS ===================== */
@media(max-width:768px){
  .services-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* Responsive Navbar */
@media(max-width:900px) {
  .navbar .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    flex-direction: column;
    background-color: #0d1b2a;
    width: 220px;
    padding: 1.5rem;
    gap: 1rem;
    transition: right 0.3s ease;
    height: calc(100% - 60px);
  }

  .navbar .nav-links.show {
    right: 0;
  }

  .navbar .menu-btn {
    display: block;
  }

  .navbar .auth-links {
    display: none;
  }
}
@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }

  .nav-links,
  .auth-links {
    display: none;
  }
}

