/* ======================================================
   RESET & BASE STYLES
====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen;
  background-color: #0d0d0d;
  color: #f0f0f0;
  line-height: 1.6;
}


/* ======================================================
   HEADER
====================================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: #121212;
  border-bottom: 1px solid #333;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}


.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #cccccc;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #ffffff;
}


/* ======================================================
   MAIN CONTENT
====================================================== */
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 2rem 3rem;
  min-height: calc(100vh - 160px);
  overflow: hidden;
}

.no-wrap-name {
    white-space: nowrap;
    display: inline-block;
  }

.intro {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
  max-width: 1100px;
  width: 100%;
  margin-top: 5rem;
}

.text-content {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
}

.text-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.text-content span {
  color: #ffffff;
  font-weight: 700;
}

.text-content p {
  color: #aaaaaa;
  margin-bottom: 1.5rem;
}


/* ======================================================
   PROFILE IMAGE & RIPPLE EFFECT
====================================================== */
.profile-pic-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}


/* Ripple circles absolutely positioned */
.ripple-circle {
  position: absolute;
  border: 1px solid;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

/* Gradual fading ripple circles */
/* First ripple matches image perfectly (200px) */
.circle-1  { width: 200px; height: 200px; border-color: rgba(255,255,255,0.9); }
/* Each next ripple grows outward */
.circle-2  { width: 230px; height: 230px; border-color: rgba(230,230,230,0.75); }
.circle-3  { width: 265px; height: 265px; border-color: rgba(200,200,200,0.6); }
.circle-4  { width: 305px; height: 305px; border-color: rgba(170,170,170,0.5); }
.circle-5  { width: 350px; height: 350px; border-color: rgba(140,140,140,0.4); }
.circle-6  { width: 400px; height: 400px; border-color: rgba(110,110,110,0.3); }
.circle-7  { width: 455px; height: 455px; border-color: rgba(85,85,85,0.25); }
.circle-8  { width: 515px; height: 515px; border-color: rgba(60,60,60,0.2); }
.circle-9  { width: 580px; height: 580px; border-color: rgba(40,40,40,0.15); }
.circle-10 { width: 650px; height: 650px; border-color: rgba(20,20,20,0.1); }

.profile-pic {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic img {
  width: 200px;
  height: 200px;
  border-radius: 100%;
  object-fit: cover;
  border: 2px solid #444;
}

.text-content,
.contact-section {
  position: relative;
  z-index: 2;
}


/* ======================================================
   CONTACT SECTION
====================================================== */
.contact-section {
  margin-top: 2rem;
  text-align: left;
  align-self: flex-start;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.contact-form input[type="email"],
.contact-form textarea {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #f0f0f0;
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

.contact-form input[type="email"] {
  width: 250px;
}

.contact-form textarea {
  width: 100%;
  max-width: 500px;
  resize: vertical;
}

.contact-form button,
.reveal-form-btn {
  padding: 0.75rem 1.2rem;
  background-color: #ffffff;
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover,
.reveal-form-btn:hover {
  background-color: #e0e0e0;
}


/* ======================================================
   CONTACT FORM WRAPPER ANIMATION
====================================================== */
.contact-form-wrapper {
  position: relative;
  background-color: #1a1a1a;
  padding: 1.5rem 1rem 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  max-width: 500px;
  width: 100%;

  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  overflow: hidden;
  pointer-events: none;

  transition:
    max-height 0.4s ease,
    opacity 0.2s ease-in-out,
    transform 0.3s ease;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form-wrapper.open {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.contact-form-wrapper.hidden {
  opacity: 0;
  display: none;
}

.close-form-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.close-form-btn:hover {
  color: #fff;
  transform: scale(1.2);
}


/* ======================================================
   BUTTON STYLES
====================================================== */
.linkedin-btn,
.reveal-form-btn {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: 14px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  min-width: 220px;
  max-width: 300px;
  width: fit-content;
}

.linkedin-btn {
  background-color: #0077b5;
  color: white;
  text-decoration: none;
  text-align: center;
  border: none;
}

.linkedin-btn:hover {
  background-color: #0063a3;
}


/* ======================================================
   FOOTER
====================================================== */
.footer {
  text-align: center;
  padding: 1rem 0;
  background-color: #121212;
  font-size: 0.9rem;
  color: #777;
}

html, body {
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
  margin: 0;
  padding: 0;
}



/* ======================================================
   PUBLICATIONS SECTION
====================================================== */
.publication-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.publication {
  padding: 1.5rem;
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pub-title {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.pub-authors {
  font-size: 0.95rem;
  color: #aaaaaa;
  margin-bottom: 0.3rem;
}

.pub-venue {
  font-size: 0.9rem;
  color: #888888;
  margin-bottom: 1rem;
}

.pub-link {
  display: inline-block;
  color: #00aaff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pub-link:hover {
  color: #66ccff;
}

.abstract-dropdown summary {
  cursor: pointer;
  font-weight: 500;
  color: #00aaff;
  margin-top: 1rem;
}

.abstract-dropdown[open] summary {
  color: #66ccff;
}

.pub-abstract {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #bbbbbb;
  line-height: 1.5;
}


/* ======================================================
   RESPONSIVE DESIGN
====================================================== */
@media (max-width: 768px) {

  .no-wrap-name {
    white-space: nowrap;
    display: inline-block;
  }

  .main {
    padding-top: 2.5rem;
  }

  /* Stack elements vertically and center them */
  .intro,
  .text-content,
  .contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0.2rem;  /* Or try 0.5rem or 1rem if you want a little space */
  }

  .intro {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0;
  }

  .text-content h1 {
    font-size: 1.2rem;
    line-height: 1.3;
    padding: 0 1rem;
    text-align: center;
  }

  .text-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 0.8rem;
    max-width: 100%;
  }

  .contact-section h2 {
    font-size: 1.1rem;
    line-height: 1.3;
    padding: 0 1rem;
  }

  .linkedin-btn,
  .reveal-form-btn,
  .contact-form button {
    font-size: 0.9rem;
    width: 100%;
    max-width: 300px;
  }

  .contact-form {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .contact-form input[type="email"],
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
  }

  .profile-pic-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto 0 auto;
    position: relative;
    left: auto;
    right: auto;
    width: 100%;
  }

  .profile-pic {
    z-index: 2;
    position: relative;
  }

  .profile-pic img {
    width: 200px;
    height: 200px;
  }

  .ripple-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.05rem;
    text-align: center;
    margin-top: 0.5rem;
  }

  .nav a {
    font-size: 0.7rem;
    margin-left: 1rem;
    padding: 0.25rem 0;
    display: inline-block;
  }

  .logo {
    font-size: 0.75rem;
  }

  .footer {
    font-size: 0.8rem;
    padding: 1rem;
  }


  h2.pub-title {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    padding: 0 0.5rem !important;
    text-align: center !important;
  }

  .pub-authors,
  .pub-venue,
  .pub-link {
    text-align: center;
    padding: 0 1rem;
  }

  .abstract-dropdown {
    padding: 0 1rem;
  }

  .pub-abstract {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
  }

  .publication {
    margin-bottom: 2rem;
  }
}


/* ======================================================
    BLOG SECTION
====================================================== */
.blog-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: 700px;
  align-items: center;
}

.blog-post {
  background: #1a1a1a;
  border: 1px solid #232323;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.blog-post:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.blog-cover-link,
.blog-cover {
  display: block;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #121212;
}

.blog-cover {
  object-fit: cover;
  width: 100%;
  height: 250px;
  border-bottom: 1px solid #232323;
  transition: transform 0.3s;
}

.blog-post:hover .blog-cover {
  transform: scale(1.03);
}

.blog-content {
  padding: 2rem 2rem 1.5rem 2rem;
}

.blog-title {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.blog-excerpt {
  color: #bbbbbb;
  font-size: 1.06rem;
  margin-bottom: 1.3rem;
}

.blog-read-btn {
  background: #00aaff;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s;
  display: inline-block;
  margin-top: 0.2rem;
}

.blog-read-btn:hover {
  background: #66ccff;
  color: #121212;
}

/* Responsive for blog */
@media (max-width: 600px) {
  .blog-list, .blog-post {
    max-width: 100%;
    width: 100%;
  }
  .blog-content {
    padding: 1.2rem 0.8rem 1.2rem 0.8rem;
  }
  .blog-title {
    font-size: 1.1rem;
  }
  .blog-excerpt {
    font-size: 0.95rem;
  }
  .blog-cover, .blog-cover-link {
    height: 150px;
  }
}
