@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;500;600;700&display=swap');

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

html {
  font-size: 10px;
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}

body {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 4.5rem;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.8rem;
}

h4 {
  font-size: 2.2rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.text-center {
  text-align: center;
}

.text-highlight {
  color: #7FFFD4;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background-color: transparent;
  border: 2px solid #7FFFD4;
  color: #7FFFD4;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 4px;
  min-width: 15rem;
  text-align: center;
}

.btn:hover, .btn:focus, .btn:active {
  background-color: #7FFFD4;
  color: #29323c;
  outline: none;
}

.btn-dark {
  border-color: #29323c;
  color: #29323c;
}

.btn-dark:hover {
  background-color: #29323c;
  color: #fff;
}

.btn-alt {
  background-color: rgba(127, 255, 212, 0.1);
  margin-left: 1rem;
}

.btn-alt:hover {
  background-color: rgba(127, 255, 212, 0.9);
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  border: 2px solid #ff6b6b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  margin-right: 1rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ee5a24, #ff6b6b);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(41, 50, 60, 0.9);
  transition: background-color 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.etenders-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-text {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 0;
  font-weight: 600;
}

.logo span {
  color: #7FFFD4;
}

.logo-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: -0.5rem;
}

nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 2.5rem;
}

.nav-menu a {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #7FFFD4;
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 10px;
  margin-left: 20px;
  position: relative;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(127, 255, 212, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(127, 255, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(127, 255, 212, 0);
  }
}

.bar {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #7FFFD4;
  transition: all 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #29323c 0%, #1a2332 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(127,255,212,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 2rem;
}

.hero-tagline {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #7FFFD4;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

/* Search Section */
.search-section {
  background-color: #f9f9f9;
}

.search-container {
  max-width: 900px;
  margin: 4rem auto 0;
}

.search-form {
  background-color: #fff;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.search-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.search-field {
  display: flex;
  flex-direction: column;
}

.search-field label {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #29323c;
}

.search-field input,
.search-field select {
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1.4rem;
  transition: border-color 0.3s ease;
}

.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: #7FFFD4;
}

.search-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

/* Results Section */
.results-section {
  background-color: #fff;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
}

.results-info {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.results-controls {
  display: flex;
  gap: 1rem;
}

.results-controls select {
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1.4rem;
}

.loading-spinner {
  text-align: center;
  padding: 4rem 0;
  color: #7FFFD4;
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tenders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.tender-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tender-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #7FFFD4;
}

.tender-card-header {
  margin-bottom: 1.5rem;
}

.tender-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #29323c;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.tender-id {
  font-size: 1.2rem;
  color: #666;
  font-family: monospace;
}

.tender-buyer {
  font-size: 1.3rem;
  color: #7FFFD4;
  font-weight: 500;
  margin-top: 0.5rem;
}

.tender-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tender-status {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-active {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.status-closed {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.status-awarded {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.tender-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: #7FFFD4;
}

.tender-description {
  font-size: 1.4rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tender-dates {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  color: #888;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination button {
  padding: 0.8rem 1.5rem;
  border: 2px solid #e0e0e0;
  background-color: #fff;
  color: #666;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination button:hover {
  border-color: #7FFFD4;
  color: #7FFFD4;
}

.pagination button.active {
  background-color: #7FFFD4;
  border-color: #7FFFD4;
  color: #29323c;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Dashboard Section */
.dashboard-section {
  background-color: #f9f9f9;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.dashboard-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background-color: #29323c;
  color: #fff;
}

.dashboard-card-header h3 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

.dashboard-card-header i {
  font-size: 2rem;
  color: #7FFFD4;
}

.dashboard-content {
  padding: 2rem;
  max-height: 400px;
  overflow-y: auto;
}

.loading-placeholder {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem 0;
}

.dashboard-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.dashboard-item:last-child {
  border-bottom: none;
}

.dashboard-item-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #29323c;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.dashboard-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  color: #666;
}

.dashboard-item-value {
  font-weight: 600;
  color: #7FFFD4;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.category-item:last-child {
  border-bottom: none;
}

.category-item.clickable {
  cursor: pointer;
  padding: 1rem;
  margin: 0 -1rem;
  border-radius: 5px;
}

.category-item.clickable:hover {
  background-color: rgba(127, 255, 212, 0.1);
  transform: translateX(5px);
}

.category-name {
  font-size: 1.4rem;
  font-weight: 500;
  color: #29323c;
}

.category-count {
  background-color: #7FFFD4;
  color: #29323c;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 600;
}

/* About Section */
.about {
  background-color: #fff;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-img img {
  max-width: 300px;
  margin: 0 auto;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(127, 255, 212, 0.1);
  border-radius: 8px;
}

.feature-item i {
  color: #7FFFD4;
  font-size: 1.8rem;
}

.feature-item span {
  font-size: 1.4rem;
  font-weight: 500;
  color: #29323c;
}

.about-buttons {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

/* Footer */
.footer {
  background-color: #29323c;
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo-text {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-logo-text span {
  color: #7FFFD4;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.footer-links h3 {
  color: #7FFFD4;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #7FFFD4;
}

.footer-contact h3 {
  color: #7FFFD4;
  margin-bottom: 1.5rem;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.footer-contact i {
  color: #7FFFD4;
  margin-right: 0.8rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(127, 255, 212, 0.1);
  border-radius: 50%;
  color: #7FFFD4;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #7FFFD4;
  color: #29323c;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background-color: #29323c;
  color: #fff;
  border-radius: 10px 10px 0 0;
}

.modal-header h2 {
  margin-bottom: 0;
  color: #fff;
}

.close-modal {
  color: #7FFFD4;
  font-size: 2.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 2rem;
}

.tender-detail-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.tender-detail-section:last-child {
  border-bottom: none;
}

.tender-detail-section h3 {
  color: #29323c;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.detail-item {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
}

.detail-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 0.5rem;
}

.detail-value {
  font-size: 1.4rem;
  color: #29323c;
  font-weight: 500;
}

.documents-list {
  list-style: none;
  padding: 0;
}

.documents-list li {
  background-color: #f9f9f9;
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #7FFFD4;
}

.document-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #29323c;
  margin-bottom: 0.5rem;
}

.document-meta {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 1rem;
}

.document-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #7FFFD4;
  font-weight: 500;
  transition: color 0.3s ease;
}

.document-link:hover {
  color: #29323c;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-buttons {
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(41, 50, 60, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1.5rem 0;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-tagline {
    font-size: 1.6rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .btn-alt {
    margin-left: 0;
    margin-top: 1rem;
  }

  .results-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .results-info {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .results-controls {
    width: 100%;
  }

  .results-controls select {
    width: 100%;
  }

  .tenders-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pagination button {
    padding: 0.6rem 1rem;
    font-size: 1.4rem;
  }

  .modal-content {
    width: 95%;
    margin: 2% auto;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-tagline {
    font-size: 1.4rem;
  }

  .search-form {
    padding: 2rem;
  }

  .tender-card {
    padding: 1.5rem;
  }

  .tender-title {
    font-size: 1.6rem;
  }

  .dashboard-card-header {
    padding: 1.5rem;
  }

  .dashboard-content {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 1.2rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .hero,
  .search-section,
  .footer,
  .modal {
    display: none !important;
  }

  .results-section,
  .dashboard-section {
    padding: 2rem 0;
  }

  .tender-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
  }

  .tender-card:hover {
    transform: none;
    box-shadow: none;
  }

  .btn {
    display: none;
  }
}

/* Loading Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* Utility Classes */
.text-success {
  color: #28a745;
}

.text-warning {
  color: #ffc107;
}

.text-danger {
  color: #dc3545;
}

.text-info {
  color: #17a2b8;
}

.bg-light {
  background-color: #f8f9fa;
}

.bg-dark {
  background-color: #29323c;
}

.border-radius {
  border-radius: 8px;
}

.shadow {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }


