@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* KPMG Brand Colors */
  --kpmg-blue: #00338D;
  --kpmg-light-blue: #0091DA;
  --kpmg-dark-blue: #0C233C;
  --kpmg-purple: #7213EA;
  --kpmg-green: #00C0AE;
  --kpmg-pink: #FD349C;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --gray-light: #F4F6F9;
  --gray-medium: #D1D5DB;
  --gray-dark: #374151;
  --black: #0F172A;
  
  /* Utilities */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 20px 40px rgba(0, 51, 141, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-dark);
  background-color: var(--gray-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--kpmg-dark-blue);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--kpmg-blue);
  transition: var(--transition);
}

a:hover {
  color: var(--kpmg-light-blue);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
  background-color: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--kpmg-blue);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.logo span {
  font-weight: 300;
  color: var(--gray-dark);
  margin-left: 8px;
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links li a {
  color: var(--gray-dark);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 5px 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--kpmg-blue);
  transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a.active {
  color: var(--kpmg-blue);
}

.btn-portal {
  background-color: var(--kpmg-blue);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 51, 141, 0.2);
}

.btn-portal::after {
  display: none !important;
}

.btn-portal:hover {
  background-color: var(--kpmg-light-blue);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 145, 218, 0.3);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--kpmg-dark-blue) 0%, var(--kpmg-blue) 100%);
  color: var(--white);
  padding: 120px 20px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
  background-size: 200px 200px;
  opacity: 0.5;
  animation: pulse 10s infinite linear;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 0.5; }
}

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

.hero-title {
  font-size: 56px;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0.9;
}

.btn-primary {
  display: inline-block;
  background-color: var(--white);
  color: var(--kpmg-blue);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--kpmg-light-blue);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  margin-left: 16px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* =========================================
   PAGE SECTIONS & LAYOUTS
   ========================================= */
.section {
  padding: 100px 20px;
}

.section-light {
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--gray-dark);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   GRID & CARDS
   ========================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  border-bottom: 4px solid var(--kpmg-blue);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 51, 141, 0.05);
  color: var(--kpmg-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.card-title {
  font-size: 22px;
  margin-bottom: 16px;
}

.card-text {
  flex-grow: 1;
  color: var(--gray-dark);
  margin-bottom: 24px;
}

.card-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================================
   PORTAL (LOGIN)
   ========================================= */
.portal-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--gray-light) 0%, #e0e6ed 100%);
}

.login-card {
  background: var(--white);
  width: 100%;
  max-width: 450px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.login-header {
  background-color: var(--kpmg-dark-blue);
  color: var(--white);
  padding: 40px;
  text-align: center;
}

.login-header h2 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 28px;
}

.login-body {
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--kpmg-dark-blue);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-medium);
  border-radius: var(--border-radius-md);
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--kpmg-blue);
  box-shadow: 0 0 0 3px rgba(0, 51, 141, 0.1);
}

.btn-block {
  width: 100%;
  text-align: center;
  background-color: var(--kpmg-blue);
  color: var(--white);
  padding: 16px;
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-block:hover {
  background-color: var(--kpmg-dark-blue);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background-color: var(--kpmg-dark-blue);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 20px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--kpmg-light-blue);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

/* =========================================
   PAGE HERO (Short Header for subpages)
   ========================================= */
.page-hero {
  background: var(--kpmg-dark-blue);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}

.page-hero-title {
  color: var(--white);
  font-size: 42px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile hide for now, JS will toggle if needed */
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .btn-secondary {
    margin-left: 0;
    margin-top: 16px;
    display: block;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}
