/* Style Rules for Internal Pages */

/* ==========================================================================
   1. PROJECTS PAGE
   ========================================================================== */
.projects-search-bar {
  display: flex;
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
}
.projects-search-bar input {
  width: 100%;
  padding-right: 50px;
}
.projects-search-bar svg {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Projects Detailed Modal overlay and card styling */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 4, 6, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  box-sizing: border-box;
}

.project-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-card {
  width: 100%;
  max-width: 900px;
  background: rgba(20, 20, 28, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(10, 132, 255, 0.05);
  position: relative;
  overflow: hidden;
  padding: 40px;
  box-sizing: border-box;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.open .modal-content-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-main-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.modal-thumb {
  height: 60px;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s;
}

.modal-thumb:hover, .modal-thumb.active {
  opacity: 1;
  border-color: var(--color-primary);
}

.modal-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 5px 0 10px;
  color: #FFF;
  letter-spacing: -0.5px;
}

.modal-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
}

.modal-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.modal-meta-lbl {
  color: var(--text-muted);
  font-weight: 500;
}

.modal-meta-val {
  color: #FFF;
  font-weight: 600;
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .modal-content-card {
    padding: 30px 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-main-img {
    height: 200px;
  }
}


/* ==========================================================================
   2. PRODUCTS & PRODUCT DETAILS PAGE
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-details-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

/* Gallery styles */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.gallery-main-wrapper {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
}
.gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-main:hover {
  transform: scale(1.03);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.gallery-thumb {
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--card-border);
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s;
  background: var(--card-bg);
}
.gallery-thumb.active, .gallery-thumb:hover {
  border-color: var(--color-primary);
  opacity: 1;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-meta-type {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.product-title-large {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 15px;
  line-height: 1.1;
}
.product-price-panel {
  display: flex;
  gap: 30px;
  align-items: baseline;
  margin: 20px 0 30px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(48, 209, 88, 0.05);
  border: 1px dashed rgba(48, 209, 88, 0.2);
}
.price-tag-large {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-success);
}
.price-tag-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.product-desc-large {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.product-features-box {
  margin-bottom: 40px;
}
.features-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.features-list-details {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.features-list-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.features-list-details li svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* ==========================================================================
   3. ERP PAGE
   ========================================================================== */
.erp-catalog-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}
.erp-catalog-item:nth-child(even) {
  grid-template-columns: 1.2fr 1fr;
}
.erp-catalog-item:nth-child(even) .erp-catalog-media {
  order: 2;
}
.erp-catalog-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-premium);
  height: 350px;
  background: var(--card-bg);
}
.erp-catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.erp-catalog-info {
  display: flex;
  flex-direction: column;
}
.erp-catalog-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}
.erp-catalog-desc {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 1.05rem;
}
.erp-catalog-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 30px;
}
.erp-catalog-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.erp-catalog-features li svg {
  color: var(--color-primary);
  flex-shrink: 0;
}
.erp-catalog-pricing {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}
.pricing-item-small {
  display: flex;
  flex-direction: column;
}
.pricing-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.pricing-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-success);
}

/* ==========================================================================
   4. SERVICES PAGE
   ========================================================================== */
.services-detailed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.service-detailed-card {
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-icon-large {
  width: 60px;
  height: 60px;
  background: rgba(10, 132, 255, 0.1);
  border-radius: 16px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}
.service-detailed-card:nth-child(4n+2) .service-icon-large {
  background: rgba(191, 90, 242, 0.1);
  color: var(--color-accent);
}
.service-detailed-card:nth-child(4n+3) .service-icon-large {
  background: rgba(48, 209, 88, 0.1);
  color: var(--color-success);
}
.service-detailed-card:nth-child(4n+4) .service-icon-large {
  background: rgba(90, 200, 250, 0.1);
  color: var(--color-secondary-1);
}
.service-detailed-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.service-detailed-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
  flex: 1;
}
.service-detailed-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
}
.service-detailed-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.service-detailed-features li svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   5. ABOUT US PAGE
   ========================================================================== */
.about-header-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}
.about-hero-headline {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.about-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 100px;
}
.about-mission-card {
  padding: 40px;
}
.mission-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}
.mission-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
}

/* Timeline Layout */
.timeline-section {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 100px;
  padding: 50px 0;
}
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px;
  margin-bottom: 60px;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}
.timeline-dot {
  position: absolute;
  top: 15px;
  width: 16px;
  height: 16px;
  background: var(--bg-color);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 10px var(--color-primary);
}
.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}
.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.team-card {
  text-align: center;
  padding: 30px 20px;
}
.team-avatar-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 2px solid var(--card-border);
}
.team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 5px;
}
.team-role {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}
.team-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.team-social-link {
  color: var(--text-muted);
  transition: color 0.3s;
}
.team-social-link:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   6. CONTACT PAGE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  margin-top: 40px;
}
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.contact-info-item {
  display: flex;
  gap: 20px;
}
.contact-info-icon {
  width: 50px;
  height: 50px;
  background: rgba(10, 132, 255, 0.1);
  border-radius: 12px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-text h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.contact-info-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.map-placeholder {
  width: 100%;
  height: 250px;
  border-radius: 20px;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-direction: column;
  gap: 10px;
}
.map-placeholder svg {
  color: var(--color-primary);
  width: 32px;
  height: 32px;
}

/* ==========================================================================
   7. AUTHENTICATION PAGES (LOGIN / REGISTER)
   ========================================================================== */
.auth-wrapper {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
}
.auth-card {
  width: 100%;
  max-width: 500px;
  padding: 50px;
}
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}
.auth-action-footer {
  text-align: center;
  margin-top: 25px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-action-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.auth-action-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 1024px) {
  .projects-grid, .products-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-details-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-detailed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-mission-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .projects-grid, .products-grid {
    grid-template-columns: 1fr;
  }
  .services-detailed-grid {
    grid-template-columns: 1fr;
  }
  .timeline-line {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }
  .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }
  .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .erp-catalog-item {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .erp-catalog-item:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .erp-catalog-item:nth-child(even) .erp-catalog-media {
    order: 0;
  }
  .auth-card {
    padding: 30px 20px;
  }
}
