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

:root {
  --background: #fcfcfd;
  --foreground: #09090b;
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(9, 9, 11, 0.05);
  --border-color: #e4e4e7;
  --accent-color: #4f46e5;
  --accent-hover: #4338ca;
  --muted-text: #71717a;
  --shadow-color: rgba(0, 0, 0, 0.02);
  --header-bg: rgba(252, 252, 253, 0.85);
}

html.dark {
  --background: #09090b;
  --foreground: #f4f4f5;
  --card-bg: rgba(20, 20, 25, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  --border-color: #27272a;
  --accent-color: #6366f1;
  --accent-hover: #4f46e5;
  --muted-text: #a1a1aa;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --header-bg: rgba(9, 9, 11, 0.85);
}

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

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Layout Utilities */
.max-width-7xl {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.max-width-4xl {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.logo-text {
  font-weight: 800;
  font-size: 1.125rem;
  background: linear-gradient(to right, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

html.dark .logo-text {
  background: linear-gradient(to right, #e2e8f0, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  max-width: 48rem;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.hero h1 span {
  background: linear-gradient(to right, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.dark .hero h1 span {
  background: linear-gradient(to right, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted-text);
  font-weight: 300;
  font-size: 1.125rem;
}

/* Glass Panels & Cards */
.glass-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px -10px var(--shadow-color);
  border-radius: 1rem;
}

.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 20px -5px var(--shadow-color);
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.15);
}

/* Directory Grid */
.directory-section {
  padding-bottom: 5rem;
}

.directory-title {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.directory-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.directory-title p {
  font-size: 0.875rem;
  color: var(--muted-text);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Detail page stacked layout */
.stacked-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

/* Card Header content */
.profile-card {
  padding: 2rem;
}

.profile-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .profile-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.profile-title-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-logo {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background-color: var(--border-color);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  overflow: hidden;
  box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.06);
}

.profile-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-names h1 {
  font-size: 1.5rem;
  font-weight: 800;
}

.profile-city {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.profile-contact-block {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
}

.contact-item span {
  display: block;
}

.contact-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 0.125rem;
}

.contact-value {
  color: var(--foreground);
  font-weight: 300;
}

/* About description content */
.about-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-logo-wrapper {
  display: flex;
  justify-content: center;
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 15rem;
  margin: 0 auto;
}

html.dark .about-logo-wrapper {
  background: rgba(255, 255, 255, 0.02);
}

.about-logo-wrapper img {
  max-height: 7rem;
  width: auto;
  border-radius: 0.5rem;
  object-fit: contain;
}

.about-description {
  color: var(--foreground);
  font-weight: 300;
  font-size: 1rem;
  white-space: pre-wrap;
}

/* Documents grid cards */
.docs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.doc-card {
  padding: 1rem;
  height: 8rem;
  justify-content: space-between;
  cursor: pointer;
}

.doc-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-width: 0;
}

.doc-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.15);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-meta {
  overflow: hidden;
  min-width: 0;
}


.doc-name {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-size {
  font-size: 0.65rem;
  color: var(--muted-text);
  font-family: monospace;
}

.doc-action-text {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.doc-action-text:hover {
  text-decoration: underline;
}

/* Form Styles */
.form-title {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-group-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-group-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-text);
}

.form-field input, .form-field textarea {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: border-color 0.2s;
}

.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.15);
}

.btn:hover {
  background-color: var(--accent-hover);
}

/* Feedbacks */
.feedback-box {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

.feedback-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.feedback-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* OTP verification box */
.otp-panel {
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.02);
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.otp-input {
  letter-spacing: 0.2em;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
}

.otp-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-secondary {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--foreground);
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

/* Comments List */
.comments-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-entry {
  padding: 1.25rem;
  border-radius: 0.75rem;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 700;
  color: var(--accent-color);
}

.comment-date {
  color: var(--muted-text);
  font-family: monospace;
}

.comment-text {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--foreground);
}

/* Inline PDF Modal Viewer */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  width: 100%;
  max-width: 64rem;
  height: 85vh;
  background-color: #121214;
  border: 1px solid #27272a;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: #0d0d0f;
  color: white;
  border-bottom: 1px solid #1f1f23;
}

.modal-title h4 {
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 25rem;
}

.modal-title p {
  font-size: 0.65rem;
  color: #71717a;
  font-family: monospace;
}

.modal-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-btn-download {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #27272a;
  border: 1px solid #3f3f46;
  color: #e4e4e7;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.modal-btn-download:hover {
  background-color: #3f3f46;
  color: white;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background-color: #27272a;
  color: white;
}

.modal-iframe-container {
  flex: 1;
  background-color: #18181b;
  position: relative;
}

.modal-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Theme Toggle widget style */
.theme-toggle-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
}

html.dark .theme-toggle-container {
  background: rgba(255, 255, 255, 0.04);
}

.theme-btn {
  background: none;
  border: none;
  padding: 0.375rem;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  transition: all 0.2s;
}

.theme-btn:hover {
  color: var(--foreground);
}

.theme-btn.active {
  background-color: white;
  color: #f59e0b; /* Amber */
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

html.dark .theme-btn.active {
  background-color: #27272a;
  color: #818cf8; /* Indigo */
}

/* Page footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  background-color: rgba(0, 0, 0, 0.01);
}

html.dark footer {
  background-color: rgba(255, 255, 255, 0.01);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-logo-text {
  font-weight: 700;
  color: var(--foreground);
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-text);
}
