/* --- IBITech Software CC - Global Styles --- */
:root {
  --ibitech-blue: #2e3192;
  --ibitech-gold: #d49b2a;
  --bg-gray: #f4f7f6;
  --white: #ffffff;
  --text-dark: #333333;
  --text-muted: #666666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-gray);
  color: var(--text-dark);
  line-height: 1.6;
}

/* --- Navigation Bar (Sticky Version) --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 5%; /* Tight vertical padding for a cleaner look */
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  /* Sticky Magic */
  position: fixed; /* Fixes it to the screen */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999; /* Ensures it stays above all other content */
}

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

.nav-logo-large {
  height: 110px; /* Increased from 90px to be even more prominent */
  width: auto;
  transition: 0.3s; /* Smooth transition if you decide to shrink it on scroll later */
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ibitech-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--ibitech-blue);
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--ibitech-gold);
}

/* --- Hero Section Adjustment --- */
/* IMPORTANT: Since the navbar is now 'fixed', it floats over the content. 
   We must add 'margin-top' to the next section so it isn't hidden behind the header. */
.hero-compact {
  margin-top: 130px; /* Adjust this to match your total header height */
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-bottom: 1px solid #eee;
}

.hero-compact h1 {
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.hero-compact p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 25px;
}

/* --- Buttons --- */
.btn-primary {
  background: var(--ibitech-gold);
  color: var(--white);
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  transition: 0.3s;
  border: none;
}

.btn-primary:hover {
  background: #b88622;
}

.btn-outline {
  border: 2px solid var(--ibitech-blue);
  color: var(--ibitech-blue);
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-left: 10px;
  display: inline-block;
  transition: 0.3s;
}

.btn-outline:hover {
  background: var(--ibitech-blue);
  color: var(--white);
}

.btn-login {
  background: var(--ibitech-blue);
  color: white !important;
  padding: 8px 18px;
  border-radius: 5px;
}

.btn-logout {
  background: #eee;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem !important;
}

/* --- Services Grid --- */
.services {
  padding: 30px 5%; /* Reduced space between hero and services */
}

.section-title {
  text-align: center;
  color: var(--ibitech-blue);
  margin-bottom: 25px;
  font-size: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  padding: 35px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--ibitech-blue);
  transition: 0.3s;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  border-top-color: var(--ibitech-gold);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--ibitech-blue);
  margin-bottom: 15px;
  display: block;
}

.icon-box {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ibitech-gold);
  color: white;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.9rem;
}

/* --- Admin & Portal Components --- */
.admin-container {
  padding: 30px;
  max-width: 1200px;
  margin: auto;
}

.admin-section {
  background: white;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.user-table {
  width: 100%;
  border-collapse: collapse;
}

.user-table th,
.user-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.user-table th {
  color: var(--ibitech-blue);
}

.role-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

/* --- Login Page Specific Fixes (Scoped) --- */
body.login-body {
  background: linear-gradient(135deg, var(--ibitech-blue) 0%, #1a1c54 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-card {
  background: #fff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-header img {
  width: 180px; /* Fixed size for login card only */
  height: auto;
  margin-bottom: 20px;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
