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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  background: #ffffff;
  color: #ffffff;
  padding: 0rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
}
.logo img {
  height: 80px;   /* Adjusted smaller logo */
  margin-right: 8px;
}
.logo span {
  color: #000000;
}

nav a {
  color: #000000;
  text-decoration: none;
  margin-right: 1.5rem;
  font-weight: bold;
}
nav a.active,
nav a:hover {
  color:#ff7b00;
  text-decoration: underline;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(-45deg, #0d1b2a, #1b263b, #415a77, #778da9);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
}
.hero-overlay {
  position: relative;
  z-index: 1;
}
@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Buttons */
.btn {
  display: inline-block;
  background: #ff7b00;
  color: #fff;
  padding: 0.7rem 1.5rem;
  margin-top: 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn:hover {
  background: #000000;
}

/* Services */
.services {
  padding: 3rem 0;
}
.services h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.service-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.service-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Shared details panel */
.service-details-panel {
  display: none;               /* hidden by default */
  margin-top: 2rem;
  padding: 2rem;
  background: #f4f4f9;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: fadeIn 0.5s ease-in-out;
}
.details-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;             /* responsive */
}
.details-content img {
  max-width: 300px;
  border-radius: 10px;
}
.details-content h3 {
  margin-top: 0;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #0a2540;
  color: #fff;
  margin-top: 3rem;
}
footer a {
  color: #ff7b00;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Make footer stick to bottom */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body > header,
body > section {
  flex: 0 0 auto; /* header and sections take needed space */
}

body > footer {
  margin-top: auto; /* pushes footer to bottom */
  text-align: center;
  padding: 1rem;
  background: #0a2540;
  color: #fff;
}


/* Contact Page */
.contact-section {
  padding: 3rem 0;
}

.contact-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;        /* makes it responsive on small screens */
  margin-top: 2rem;
  align-items: flex-start;
}

.contact-details {
  flex: 1;
}

.contact-form {
  flex: 1;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form button {
  background: #ff7b00;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-form button:hover {
  background: #000000;
}
/* About Page Layout */
.about-section {
  padding: 3rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;  /* Panel left, content right */
  gap: 2rem;
  align-items: flex-start;
}

/* Panel Styling */
.about-panel {
  background: #0a2540; /* Biznex dark blue */
  color: #fff;
  padding: 2rem;
  border-left: 5px solid #ff7b00; /* orange accent */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.about-panel h3 {
  color: #ff7b00;
  margin-bottom: 1rem;
}

.about-panel p { 
  font-size: 0.95rem;        /* slightly smaller for readability */
  line-height: 1.6;          /* improves readability */
  text-align: left;       /* aligns both left & right edges */
  margin-bottom: 1rem;
}

/* Right Content */
.about-content h2 {
  color: #0b2742;
  margin-bottom: 1rem;
}
.about-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
.about-image img {
  width: 50%;
  border-radius: 10%;
  margin-top: 5rem;
  margin-left: 15rem;
}


/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr; /* stack vertically */
  }
  .about-panel {
    margin-bottom: 1rem;
  }
}
/* ERP Hero Section */
.erp-hero {
  background: url("images/erp-hero.jpg") center/cover no-repeat;
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.erp-hero .hero-overlay {
  background: rgba(0,0,0,0.55);
  padding: 2rem;
  border-radius: 12px;
  color: #fff;
}

/* Solutions Grid */
.solutions {
  padding: 3rem 0;
  background: #f9f9f9;
}
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.solution-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}
.solution-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* CTA Section */
.cta {
  background: #0a2540;
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}
.cta h2 {
  color: #ff7b00;
  margin-bottom: 1rem;
}
.cta .btn {
  background: #ff7b00;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.cta .btn:hover {
  background: #e66900;
}
/* Dropdown Menu */
nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  color: #000000;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  border-radius: 6px;
  overflow: hidden;
}

.dropdown-content a {
  color: #0a2540;
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background-color: #ffffff;
  color: #ff7b00;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Keep Services button styled like other links */
.dropbtn:hover {
  color: #ff7b00;
}
html {
  scroll-behavior: smooth;
}
.details-flex {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.details-flex img {
  max-width: 220px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.details-flex ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
}
/* Details Panel */
/* Details Panel */
.details-panel {
  display: none;
  margin-top: 2rem;
  padding: 2rem;
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.details-panel.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}


.details-panel h3 {
  color: #0a2540;
  margin-bottom: 1rem;
}

.details-flex {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.details-flex img {
  max-width: 220px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.details-flex ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.details-panel .btn {
  display: inline-block;
  margin-top: 1rem;
  background: #ff7b00;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.details-panel .btn:hover {
  background: #e66900;
}


/* Profile pic at top-left with text wrapping */
.about-panel .profile-pic {
  float: left;
  margin: 0 1rem 0.0rem 0; /* space to the right and bottom */
}

.about-panel .profile-pic img {
  width: 75px;
  height: 79px;
  border-radius: 50%; /* circle */
  border: 0px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  /* Header */
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .logo img {
    height: 60px;  /* smaller logo for mobile */
  }
  .logo span {
    font-size: 1.2rem;
  }

  /* Hero Section */
  .hero {
    padding: 4rem 1rem;
  }
  .hero h2 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }

  /* Services Grid */
  .service-grid {
    grid-template-columns: 1fr; /* stack cards */
    gap: 1rem;
  }
  .service-card {
    padding: 1rem;
  }

  /* Details Panel */
  .details-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .details-flex img {
    max-width: 100%;
  }

  /* Contact Page */
  .contact-grid {
    flex-direction: column;
    gap: 1rem;
  }
  .contact-details img {
    width: 100% !important; /* full width image on mobile */
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  /* About Page */
  .about-grid {
    grid-template-columns: 1fr; /* stack vertically */
    gap: 1rem;
  }
  .about-panel {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    padding: 1.5rem;
  }
  .about-image img {
    width: 100%;
    margin: 1rem 0 0 0;
  }

  /* Footer */
  footer {
    font-size: 0.9rem;
    padding: 1rem;
  }
}

