/* =========================
   ROOT & GLOBAL SETTINGS
========================= */

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: #0f172a;
  color: #f1f5f9;
  overflow-x: hidden;
}

/* Layout */
main {
  flex: 1;
  padding-top: 120px;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 30px;
}

/* =========================
   HEADER
========================= */

.top {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(15,23,42,0.9);
  backdrop-filter: blur(10px);
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
}

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

.site-title {
  color: #38bdf8;
  margin: 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flag-icon {
  width: 20px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-photo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 10px rgba(56,189,248,0.6);
}

.flag-icon {
  width: 22px;
  border-radius: 3px;
}
.brand-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}
a {
  color: #66ccff;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.brand-link:visited,
.brand-link:active {
  color: inherit;
}

.brand-link:hover {
  color: #38bdf8;
}
.brand-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(56,189,248,0.5);
  border-radius: 4px;
}

/* =========================
   DESKTOP NAV
========================= */

nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #f1f5f9;
  font-weight: 500;
  position: relative;
  font-size: 15px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #38bdf8;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #38bdf8;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* =========================
   HERO
========================= */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content-centered {
  max-width: 800px;
  width: 100%;
  animation: fadeHero 1s ease forwards;
  opacity: 0;
}

@keyframes fadeHero {
  to { opacity: 1; }
}

.hero-name {
  font-size: clamp(28px, 5vw, 48px);
  margin: 10px 0;
  color: #38bdf8;
}

.hero-content-centered h3 {
  font-weight: 400;
  color: #94a3b8;
  font-size: clamp(16px, 2.5vw, 20px);
}

.hero-content-centered p {
  margin-top: 20px;
  line-height: 1.6;
  color: #cbd5e1;
  font-size: clamp(14px, 2vw, 16px);
}
.hero-quote {
  margin-top: 12px;
  font-size: clamp(16px, 2vw, 20px);
  color: #ffffff;
  font-weight: 400;
  line-height: 1.5;
}

.hero-quote::after {
  content: "|";
  margin-left: 6px;
  animation: blinkCursor 1s infinite;
}

@keyframes blinkCursor {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* =========================
   PROFILE PHOTO
========================= */

.photo-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  margin-bottom: 25px;
}


.photo-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.55) 0%, rgba(56,189,248,0.2) 60%, transparent 75%);
  z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%   { transform: scale(1); opacity: 0.6; }
  50%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}

.profile-photo {
  width: clamp(150px, 25vw, 260px);
  height: clamp(150px, 25vw, 260px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.floating {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: #0b1220;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  text-align: center;
  margin-top: 60px;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  color: #94a3b8;
  font-size: 14px;
}
/* =========================
   PREMIUM MOBILE NAVIGATION
========================= */

/* Hamburger button */

.menu-toggle {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  margin-left: auto;
}

/* Hamburger bars */

.menu-toggle span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #38bdf8;
  left: 0;
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

/* Animate to X */

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Overlay */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 900;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Drawer Mode */

@media (max-width: 1150px) 
{

  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -280px;
    height: 100vh;
    width: 260px;
    background: #111827;
    flex-direction: column;
    padding-top: 120px;
    transition: right 0.45s cubic-bezier(.68,-0.55,.27,1.55);   
    border-left: 2px solid rgba(56,189,248,0.3);
    box-shadow:
      -8px 0 25px rgba(0,0,0,0.5),
      -2px 0 15px rgba(56,189,248,0.4);
  }

  nav.active {
     right: 0;
    animation: drawerGlow 1.5s ease infinite alternate;
  }

  nav a {
    margin: 15px 0;
    font-size: 16px;
    opacity: 0;
    transform: translateX(20px);
    animation: slideIn 0.4s forwards;
  }
    nav a:hover {
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56,189,248,0.7);
  }

  nav.active a:nth-child(1) { animation-delay: 0.1s; }
  nav.active a:nth-child(2) { animation-delay: 0.15s; }
  nav.active a:nth-child(3) { animation-delay: 0.2s; }
  nav.active a:nth-child(4) { animation-delay: 0.25s; }
  nav.active a:nth-child(5) { animation-delay: 0.3s; }
  nav.active a:nth-child(6) { animation-delay: 0.35s; }

}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes drawerGlow {
  from {
    box-shadow:
      -8px 0 25px rgba(0,0,0,0.5),
      -2px 0 15px rgba(56,189,248,0.4);
  }
  to {
    box-shadow:
      -8px 0 25px rgba(0,0,0,0.5),
      -2px 0 25px rgba(56,189,248,0.8);
  }
}

/* =========================
   LARGE DESKTOP
========================= */

@media (min-width: 1440px) {

  .container {
    max-width: 1300px;
  }

  .hero-name {
    font-size: 56px;
  }

}
/* =========================
   CONTACT PAGE
========================= */

.contact-section {
  padding: 140px 20px 80px;
  display: flex;
  justify-content: center;
}

.contact-container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.contact-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #38bdf8;
  margin-bottom: 10px;
}

.contact-subtitle {
  color: #94a3b8;
  margin-bottom: 40px;
}

.contact-card {
  background: #111827;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(56,189,248,0.2);
}

.contact-item {
  margin-bottom: 30px;
}

.contact-item h3 {
  margin-bottom: 8px;
  color: #ffffff;
}

.contact-item a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}
/* =========================
   CONTACT FORM
========================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #1f2937;
  background: #0f172a;
  color: #ffffff;
  font-size: 15px;
  outline: none;
  transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border: 1px solid #38bdf8;
}

.submit-btn {
  padding: 14px;
  border-radius: 6px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(56,189,248,0.5);
}
/* =========================
   PUBLICATIONS PAGE
========================= */

.publication-page {
  padding-top: 140px;
}

.page-title {
  font-size: 36px;
  margin-bottom: 30px;
  color: #38bdf8;
}

.citation-box {
  background: #111827;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: 0 0 20px rgba(56,189,248,0.2);
}

.citation-box span {
  color: #94a3b8;
}

.citation-box h2 {
  margin-top: 5px;
  font-size: 28px;
  color: #ffffff;
}

.publication-card {
  background: #111827;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: 0.3s ease;
}

.publication-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(56,189,248,0.2);
}

.publication-card h3 {
  margin-bottom: 8px;
  color: #ffffff;
}

.publication-card .authors {
  color: #94a3b8;
  font-size: 14px;
}

.publication-card .venue {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 8px;
}

.publication-card a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
}

.publication-card a:hover {
  text-decoration: underline;
}
.first-badge {
  background-color: #1f4e79;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: 4px;
  vertical-align: middle;
}
.pub-title {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 4px;
}

.pub-first-author {
  color: #4db8ff;
  font-weight: bold;
  margin-bottom: 4px;
}

.pub-authors {
  color: #d6e4f0;
  font-style: italic;
  margin-bottom: 4px;
}

.pub-venue {
  color: #b8c7d9;
  margin-bottom: 4px;
}

.pub-meta {
  color: #9fb3c8;
  font-size: 13px;
  margin-bottom: 6px;
}

.card {
  background-color: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.pub-link {
  display: inline-block;
  padding: 6px 12px;
  background-color: #1f4e79;
  color: #ffffff;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
}

.pub-link:hover {
  background-color: #2e6da4;
}
/* =========================
   CLEAN PREMIUM PROFILE ICONS
========================= */

.profile-links {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.profile-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.35s ease;
  text-decoration: none;
  opacity: 0;
  transform: translateY(15px);
  animation: iconFadeUp 0.6s ease forwards;
}

.profile-icon svg {
  width: 26px;
  height: 26px;
}

/* DBLP text */
.dblp-text {
  font-size: 12px;
  font-weight: bold;
  color: white;
}

/* Hover effect */
.profile-icon:hover {
  transform: translateY(-6px);
  border-color: #38bdf8;
  box-shadow: 0 8px 25px rgba(56,189,248,0.35);
  color: #38bdf8;
}

/* Tooltip */
.profile-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -32px;
  background: #1f2937;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
  opacity: 0;
  transition: 0.3s ease;
  white-space: nowrap;
}

.profile-icon:hover::after {
  opacity: 1;
  bottom: -38px;
}
.profile-icon.linkedin:hover { color: #0A66C2; border-color: #0A66C2; }
.profile-icon.facebook:hover { color: #1877F2; border-color: #1877F2; }
.profile-icon.whatsapp:hover { color: #25D366; border-color: #25D366; }
.profile-icon.scholar:hover { 
  color: #8b5cf6; 
  border-color: #8b5cf6; 
  box-shadow: 0 8px 25px rgba(139,92,246,0.4);
}
.profile-icon.dblp:hover { 
  color: #ffcc00; 
  border-color: #ffcc00; 
  box-shadow: 0 8px 25px rgba(255,204,0,0.35);
}

.profile-icon:nth-child(1) { animation-delay: 0.1s; }
.profile-icon:nth-child(2) { animation-delay: 0.2s; }
.profile-icon:nth-child(3) { animation-delay: 0.3s; }
.profile-icon:nth-child(4) { animation-delay: 0.4s; }
.profile-icon:nth-child(5) { animation-delay: 0.5s; }

@keyframes iconFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.profile-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.15;
  transform: scale(0);
  transition: 0.4s ease;
  z-index: -1;
}

.profile-icon:hover::before {
  transform: scale(1.3);
  opacity: 0;
}
/* =========================
   COLLABORATION INDICATOR
========================= */

.collaboration-status {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #cbd5e1;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(2.5);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
