:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #4a5568;
  /* Improved contrast from #64748b */
  --accent: #0891b2;
  /* Primary cyan-600 */
  --accent-hover: #0e7490;
  /* Secondary cyan-700 */
  --accent-light: #06b6d4;
  /* Accent cyan-500 */
  --accent-2: #f59e0b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 20px;
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --header-height: 80px;
  --section-padding: 100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(15, 124, 141, 0.06), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(246, 166, 60, 0.08), transparent 30%),
    var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(15, 124, 141, 0.12), transparent 40%),
    radial-gradient(circle at 70% 10%, rgba(246, 166, 60, 0.15), transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(12, 82, 97, 0.12), transparent 40%);
  mix-blend-mode: multiply;
  filter: blur(24px);
  opacity: 0.6;
  animation: auroraShift 22s ease-in-out infinite alternate;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Accessibility: visible focus states */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Body text links should have underlines */
p a,
li a {
  text-decoration: underline;
  text-decoration-color: rgba(8, 145, 178, 0.3);
  transition: text-decoration-color 0.2s ease;
}

p a:hover,
li a:hover {
  text-decoration-color: var(--accent);
}

.page {
  max-width: 95%;
  /* Expanded to full width as requested */
  width: 100%;
  margin: 0 auto;
  padding: var(--header-height) 24px 96px;
}

@media (max-width: 768px) {

  /* Disable heavy background animation on mobile */
  body::before {
    animation: none;
    opacity: 0.4;
    filter: blur(40px);
    /* Cheaper blur */
  }

  .visual-decorator-1,
  .visual-decorator-2 {
    display: none;
  }

  .page {
    padding: var(--header-height) 12px 64px;
  }
}

@media (max-width: 480px) {
  .page {
    padding: var(--header-height) 8px 48px;
  }
}

section {
  padding: var(--section-padding) 0;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 95%;
  width: 100%;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 14px 12px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 14px 8px;
  }
}

.brand-wrapper {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
  color: inherit;
}

.nav-logo {
  height: 64px;
  /* Increased size */
  width: auto;
  transition: transform 0.3s ease;
}

.brand-link:hover .nav-logo {
  transform: scale(1.05);
}

.brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.brand-role {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 14px;
}

.lang-toggle {
  margin-left: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(12, 82, 97, 0.12);
  border-color: rgba(15, 124, 141, 0.4);
}

.lang-toggle.mobile {
  display: none;
}

.lang-toggle.desktop {
  display: inline-flex;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(15, 124, 141, 0.08);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.nav-links a.active {
  color: var(--accent);
  background: rgba(15, 124, 141, 0.12);
  border-bottom: 2px solid var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.16);
  border-color: rgba(15, 124, 141, 0.3);
}

/* Patent Section Updates */
.patent-brand {
  width: 70px;
  /* Slightly larger */
  height: 70px;
  background: transparent;
  /* Removed gray box */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.patent-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.patent-card {
  display: flex;
  gap: 24px;
  align-items: center;
}

@media (max-width: 640px) {
  .patent-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Device Showcase Styles */
.device-showcase {
  background: linear-gradient(180deg, #fff, #f8fafc);
  padding: 100px 0;
}

.devices-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 40px;
  align-items: flex-end;
  margin-top: 60px;
}

.device-item {
  text-align: center;
}

.device-item p {
  margin-top: 20px;
  font-weight: 700;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.device-frame {
  background: #1e293b;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.desktop .device-frame {
  border-radius: 12px 12px 0 0;
  padding: 15px 15px 0;
}

.screen-content {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.tablet .screen-content {
  aspect-ratio: 3 / 4;
}

.mobile .screen-content {
  aspect-ratio: 9 / 19;
  border-radius: 24px;
}

.mobile .device-frame {
  border-radius: 36px;
  padding: 10px;
}

.screen-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero section used to have .hero, now uses .hero-container */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 6px;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 64px;
}

h2 {
  font-size: 42px;
}

h3 {
  font-size: 24px;
}

.lead {
  font-size: 18px;
  margin-bottom: 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  white-space: nowrap;
}

.btn.primary-lg {
  padding: 16px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 16px;
  box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.3);
}

.btn.primary-lg:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(2, 132, 199, 0.4);
  text-decoration: none;
}

.btn.ghost-lg {
  padding: 16px 32px;
  background: transparent;
  border: 2px solid var(--accent);
  /* Changed from var(--border) for consistency */
  color: var(--accent);
  font-size: 16px;
}

.btn.ghost-lg:hover {
  background: rgba(8, 145, 178, 0.1);
  border-color: var(--accent-hover);
  color: var(--accent-hover);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn.small {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

/* Hero Section Styles */
.hero-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-tagline {
  font-size: 24px;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-tagline .highlight {
  color: var(--accent);
  position: relative;
}

.hero-description {
  font-size: 18px;
  color: #2d3748;
  /* Improved contrast from var(--muted) */
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.meta-item i {
  color: var(--accent);
}

.hero-socials {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.hero-socials a {
  font-size: 20px;
  color: var(--muted);
  transition: color 0.3s ease;
}

.hero-socials a:hover {
  color: var(--accent);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-mask {
  width: 400px;
  height: 400px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  /* Improved shadow */
  background: transparent;
  /* Removed white background */
  animation: blob 8s linear infinite alternate;
}

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

@keyframes blob {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  100% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

.visual-decorator-1 {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(var(--accent-2) 20%, transparent 20%);
  background-size: 10px 10px;
  opacity: 0.2;
}

.visual-decorator-2 {
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 1;
}

.desktop-only {
  display: inline-flex;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

.icon-row {
  display: inline-flex;
  gap: 8px;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #f9fafc;
  transition: background 0.2s ease, transform 0.15s ease;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-button:hover {
  text-decoration: none;
  background: #e9f6f8;
  transform: translateY(-1px);
}

.gallery {
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  align-items: center;
}

.gallery-lede {
  background: linear-gradient(160deg, #f4fbff, #ffffff);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 14px 32px rgba(15, 124, 141, 0.12);
}

.lede-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.progress-legend {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(15, 124, 141, 0.12);
}

.gallery-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.gallery-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 40% 30%, rgba(15, 124, 141, 0.14), transparent 55%), #081621;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(0, 30, 50, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.glow-ring {
  position: absolute;
  inset: 10%;
  border-radius: 20px;
  background: conic-gradient(from 120deg, rgba(15, 124, 141, 0.12), rgba(246, 166, 60, 0.16), rgba(15, 124, 141, 0.12));
  filter: blur(20px);
  animation: orbit 18s linear infinite;
}

.gallery-visual img {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 14px;
  background: #0b1f2a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  animation: float-in 0.8s ease, soft-pop 6s ease-in-out infinite;
}

.gallery-visual img.is-changing {
  animation: swap 0.6s ease, soft-pop 6s ease-in-out infinite;
}

.gallery-meta {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fcfdfd;
  box-shadow: 0 14px 30px rgba(12, 82, 97, 0.08);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1f2a44;
  font-weight: 700;
  font-size: 12px;
}

.gallery-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.chip-button {
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.chip-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(12, 82, 97, 0.12);
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e7eef5;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #0c5261, var(--accent-2));
  box-shadow: 0 8px 18px rgba(12, 82, 97, 0.25);
}

.data-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.data-list li {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f9fbff;
}

.item-title {
  font-weight: 700;
  color: var(--text);
}

.item-meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.profile-card {
  background: linear-gradient(180deg, #f9fbff, #ffffff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.profile-photo {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background: #f1f5f9;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;

}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.section-header {
  margin-bottom: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.social-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(160deg, #f4fbff, #ffffff);
  box-shadow: 0 14px 28px rgba(12, 82, 97, 0.08);
}

.social-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.social-list {
  display: grid;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  text-decoration: none;
  transform: translateY(-3px);
  /* Increased from -1px */
  box-shadow: 0 5px 15px rgba(8, 145, 178, 0.3);
  /* Enhanced hover effect */
  border-color: var(--accent);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9f6f8;
  color: var(--accent);
  flex-shrink: 0;
}

.social-icon i {
  font-size: 16px;
}

.social-name {
  flex: 1;
}

/* Company Logos in Connect Section */
.company-logos {
  margin-top: 30px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 15px;
}

.company-logo {
  width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  background: transparent;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.company-logo:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* Company logos in social links */
.social-company-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  margin-left: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.social-link:hover .social-company-logo {
  opacity: 1;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.news-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.news-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.date {
  font-weight: 700;
  color: var(--text);
}

.pub-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.pub-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  background: var(--card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pub-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.pub-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  background: #0f7c8d0f;
  color: var(--accent);
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  background: #e6edf3;
  color: #2e3a4a;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}

.pill.muted {
  background: #f1f2f7;
  color: var(--muted);
}

.authors {
  color: var(--muted);
  margin: 0 0 10px;
}

.summary {
  margin: 0 0 12px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}


.link-chip {
  padding: 8px 12px;
  background: #eef8fa;
  color: #0c5261;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid #d3e8ee;
}

/* Projects Section Refinement */
.projects-section {
  background: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  /* Enhanced shadow */
  border-color: var(--accent);
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.badge-tech {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.project-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.project-content h3 {
  font-size: 22px;
  margin-bottom: 0;
}

.project-story {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.story-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.story-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.story-item p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 0;
}

.story-item.highlight {
  background: rgba(2, 132, 199, 0.05);
  padding: 12px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.story-item.highlight p {
  font-weight: 600;
  color: var(--text);
}

.project-footer {
  margin-top: auto;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 16px;
  border-left: 2px solid #d6dde7;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid #e8f3f6;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  background: linear-gradient(120deg, #0f7c8d, #0c5261);
  color: #ffffff;
  padding: 48px 32px;
}

.cta>div {
  width: 100%;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-main-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile fix for contact buttons */
@media (max-width: 640px) {
  .cta-main-btns {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .cta-main-btns .btn {
    width: 100%;
    justify-content: center;
  }
}

.cta-social-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.cta-social-row .icon-button {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 42px;
  height: 42px;
}

.cta-social-row .icon-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: #ffffff;
}

.cta-social-row .icon-button i {
  font-size: 20px;
}

.cta p {
  color: #e2eff3;
  max-width: 600px;
  margin: 0 auto;
}

.cta .btn {
  border-color: rgba(255, 255, 255, 0.4);
  color: #0f5261;
}

.cta .btn.primary {
  background: #ffffff;
  color: #0c5261;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.cta .btn.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

@keyframes orbit {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes float-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes soft-pop {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes swap {
  from {
    opacity: 0.15;
    transform: scale(0.99);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes auroraShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-8px, 12px, 0) scale(1.05);
  }

  100% {
    transform: translate3d(12px, -10px, 0) scale(1.03);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Details Styling */
.contact-details {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #000000;
  /* Pure black as requested */
}


.contact-item i {
  color: var(--accent);
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.contact-item a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}


.page-footer {
  border-top: 1px solid var(--border);
  padding: 22px 24px 32px;
  color: var(--muted);
  background: #ffffffd9;
  backdrop-filter: blur(8px);
}

.footer-inner {
  max-width: 95%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  body::before {
    display: none;
  }

  .nav-toggle {
    display: block;
    z-index: 25;
  }

  .lang-toggle.desktop {
    display: none;
  }

  .lang-toggle.mobile {
    display: block;
    width: 100%;
    text-align: left;
    margin-top: 6px;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    height: 100dvh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 20;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }

  .top-nav.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .top-nav.nav-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .top-nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .top-nav.nav-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-links a {
    font-size: 20px;
    padding: 10px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero img {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta-row {
    justify-content: center;
    flex-direction: column;
    gap: 16px;
  }

  .hero-socials {
    margin: 0;
  }

  .meta-item,
  .hero-socials a,
  .nav-links a {
    padding: 12px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-display {
    grid-template-columns: 1fr;
  }

  .news-list li {
    grid-template-columns: 1fr;
  }

  .nav-links a {
    font-size: 20px;
    padding: 10px;
  }

  .profile-mask {
    width: 280px;
    height: 280px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
    padding: 0 20px;
  }
}

.footer-branding-block {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 16px;
}

@media (max-width: 768px) {
  .footer-branding-block {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

.footer-copyright {
  font-weight: 500;
  color: var(--text);
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-social-logos {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
  width: 56px;
  /* Increased from 44px to 56px for better mobile touch */
  height: 56px;
  /* Increased from 44px to 56px */
  border-radius: 50%;
  padding: 14px;
  /* Increased padding */
}

.social-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.social-logo:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

.social-logo.scholar {
  color: #4285F4;
  background: #f0f4ff;
}

.social-logo.linkedin {
  color: #0077B5;
  background: #e9f5ff;
}

.social-logo.github {
  color: #181717;
  background: #f3f4f5;
}

.social-logo.twitter {
  color: #1DA1F2;
  background: #ecf7fe;
}

.social-logo.researchgate {
  color: #00CCBB;
  background: #edfffb;
}

.social-logo.orcid {
  color: #A6CE39;
  background: #f7fbeb;
}


@media (max-width: 960px) {
  .page {
    padding: 96px 16px 64px;
  }

  .hero-container {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-display {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0s !important;
  }
}

/* --- Publications section Refinement --- */
.publications-section {
  padding: 100px 0;
  background: #f8fafc;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.pub-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  /* Fix for consistent card heights */
}

.pub-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(12, 82, 97, 0.1);
}

.pub-type-icon {
  width: 180px;
  height: 100px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  flex-shrink: 0;
  margin-bottom: 20px;
}

.pub-type-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pub-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
}

.pub-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-pill.highlight {
  background: #edfcf7;
  color: #059669;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.view-more-cta {
  text-align: center;
}

/* --- Patents Section --- */
.patents-section {
  padding: 100px 0;
  background: #fff;
}

.patents-list {
  display: grid;
  gap: 20px;
}

.patent-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  align-items: center;
  transition: all 0.3s ease;
}

.patent-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.patent-icon {
  width: 50px;
  height: 50px;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.patent-content h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

/* --- Service Section --- */
.service-section {
  padding: 100px 0;
  background: #f8fafc;
}

.service-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  align-items: flex-start;
}

.service-icon {
  width: 150px;
  /* Even bigger */
  height: 150px;
  background: transparent;
  border: none;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  flex-shrink: 0;
  margin-right: 24px;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-info h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

/* --- Animations & Utilities --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.btn.ghost-sm {
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  font-weight: 600;
}

.btn.ghost-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .pub-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    padding: 20px 4px !important;
    margin: 0 -8px !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-height: none;
    overflow-y: visible;
    background: transparent;
    border: none;
  }

  .pub-grid::-webkit-scrollbar {
    display: none;
  }

  .pub-card {
    flex: 0 0 85% !important;
    scroll-snap-align: center !important;
    max-width: 320px !important;
    margin-right: 0;
  }

  .patent-card,
  .service-card {
    flex-direction: column;
    gap: 16px;
  }

  .service-icon {
    width: 100px;
    /* Bigger on mobile too */
    height: 100px;
    margin-right: 16px;
    margin-bottom: 0;
  }
}

.meta-item,
.pub-card h3 a,
.footer-copyright a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.pub-card h3 a:hover,
.footer-copyright a:hover {
  color: var(--accent);
}

/* --- Find Me Online social section --- */
.find-me-online {
  margin-top: 64px;
  text-align: center;
}

.social-links-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--text);
  font-weight: 700;
}

.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-item i {
  font-size: 20px;
}

.social-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 480px) {
  .social-links-grid {
    flex-direction: column;
    width: 100%;
  }

  .social-item {
    width: 100%;
    justify-content: center;
  }
}

/* --- Mobile Research Projects Horizontal Scroll --- */
@media (max-width: 768px) {
  .project-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    padding: 20px 8px !important;
    margin: 0 -8px !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .project-grid::-webkit-scrollbar {
    display: none;
  }

  .project-card {
    flex: 0 0 85% !important;
    scroll-snap-align: center !important;
    max-width: 320px !important;
  }
}

/* --- Journal Logo Styles --- */
.pub-card h3 {
  margin-top: 4px;
}

.journal-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 480px) {
  section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0;
  }

  .pub-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .journal-logo,
  .journal-logo-nature,
  .journal-logo-cell {
    height: 24px;
  }
}



/* --- Lightbox Styles --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}