/*-----------------------------------*\
  #COMPONENTS
  Reusable UI components
\*-----------------------------------*/

/*-----------------------------------*\
  #MAIN CONTAINER
\*-----------------------------------*/

main {
  margin: var(--space-lg) var(--space-md);
  margin-bottom: 75px;
  min-width: 259px;
  position: relative;
  z-index: 1;
}

/*-----------------------------------*\
  #CARD STYLES
\*-----------------------------------*/

.sidebar,
article {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-2);
  z-index: 1;
  transition: var(--transition-theme);
}

/* Dark mode: glassmorphism panels — see the stars through the glass */
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] article {
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-color: rgba(37, 48, 80, 0.7);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 0 1px rgba(34, 211, 238, 0.04);
}

/* Light mode: warm frosted glass */
:root[data-theme="light"] .sidebar,
:root[data-theme="light"] article {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent, var(--border));
  margin: var(--space-lg) 0;
}

/*-----------------------------------*\
  #ICON BOX
\*-----------------------------------*/

.icon-box {
  position: relative;
  background: var(--accent-weak);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: var(--accent);
  box-shadow: var(--shadow-1);
  z-index: 1;
  transition: var(--transition-1);
}

.icon-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--elevated);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.icon-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2), var(--glow-accent);
}

.icon-box:hover::before {
  background: var(--accent-weak);
}

.icon-box ion-icon {
  --ionicon-stroke-width: 50px;
  stroke-width: 2.4;
}

/* General icon styling */
.icon {
  color: var(--icon);
  transition: var(--transition-1);
}

/* Expertise/service cards icon hover effect */
.service-item:hover .icon,
.service-item:focus-visible .icon {
  color: var(--accent);
}

/* Dark surface icons */
.dark-surface .icon {
  color: var(--text);
}

/*-----------------------------------*\
  #ARTICLE STATES
\*-----------------------------------*/

article { display: none; }

article.active {
  display: block;
  animation: var(--slide-up);
}

/*-----------------------------------*\
  #TYPOGRAPHY
\*-----------------------------------*/

.h2,
.h3,
.h4,
.h5 {
  color: var(--white-2);
  text-transform: capitalize;
}

.h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.3px;
}

.h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 400;
}

.h4 {
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
}

.h5 {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-title {
  position: relative;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
}

.article-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  box-shadow: var(--glow-accent);
}

.section-title {
  position: relative;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
}

/*-----------------------------------*\
  #SCROLLBAR
\*-----------------------------------*/

.has-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.has-scrollbar::-webkit-scrollbar-track {
  background: var(--border-subtle);
  border-radius: var(--radius-full);
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: var(--transition-1);
}

.has-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

.has-scrollbar::-webkit-scrollbar-button { width: 20px; }

/*-----------------------------------*\
  #CONTENT CARD
\*-----------------------------------*/

.content-card {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: var(--space-lg);
  padding-top: calc(var(--space-lg) + var(--space-md));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  cursor: pointer;
  z-index: 1;
  transition: var(--transition-1);
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--elevated);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
}

.content-card:hover::before {
  background: var(--bg-gradient-jet);
}

/*-----------------------------------*\
  #AWARD CARD
\*-----------------------------------*/

.award-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg);
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: var(--transition-1);
}

.award-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-3), var(--glow-accent);
}

.award-card .icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  stroke-width: 2.4;
  align-self: center;
  transform: translateY(4px);
}

.award-card h3 {
  margin: 0 0 var(--space-xs);
  color: var(--text);
}

.award-card p {
  margin: 0;
  color: var(--muted);
}
