body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f172a;
  background-image: radial-gradient(#1e293b 1px, transparent 1px);
  background-size: 20px 20px;
  color: #f1f5f9;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  background-color: rgba(15, 23, 42, 0.8);
  border-radius: 16px;
  padding: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  width: 100%;
  align-items: flex-start;
  min-height: 600px;
}

.text-section {
  flex: 1.2;
  padding-right: 40px;
  width: 100%;
}

.image-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.typing {
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  max-width: 100%;
  width: fit-content;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.typed-text {
  display: inline-block;
  animation: typing 3s steps(25, end) forwards;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
}

.cursor {
  width: 2px;
  height: 1em;
  background-color: #f1f5f9;
  margin-left: 4px;
  animation: blink 0.7s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    background-color: transparent;
  }
}

.subtitle {
  margin-top: 20px;
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0;
  animation: fadeInUp 2s ease-out 3s forwards;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.profile-pic {
  height: 400px;
  border-radius: 50% / 30%;
  object-fit: cover;
  z-index: 2;
}

.social-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  opacity: 0;
  animation: fadeInUp 2s ease-out 3s forwards; /* Match subtitle animation */
}

.social-btn {
  background-color: #1e293b;
  color: #f1f5f9;
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid #334155;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  margin-top: -10px;
}

.social-btn:hover {
  background-color: #334155;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.connect-section {
  margin-top: 30px;
  text-align: left;
  opacity: 0;
  animation: fadeInUp 2s ease-out 3s forwards;
}

.connect-text {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #f1f5f9;
}

.bottom-nav {
  display: none;
}

@media (max-width: 1000px) {
  body {
    padding: 24px 0;
    height: auto;
  }
  .container {
    height: 100vh;
    min-height: unset;
    padding-bottom: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 12px 80px 12px;
    box-sizing: border-box;
  }
  .text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    margin: 0;
    min-height: 0;
    margin-bottom: 0;
  }
  .image-section {
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 8px 0 6px 0;
    display: flex;
    margin-top: 8px;
    margin-bottom: 6px;
  }
  .profile-pic {
    width: 220px;
    height: 220px;
    max-width: 90vw;
    max-height: 45vw;
  }
  .typing {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: auto;
    margin-left: 0;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    margin-bottom: 10px;
    max-width: 95vw;
    word-break: break-word;
  }
  .typed-text {
    width: auto;
    animation: none;
    white-space: nowrap;
  }
  .cursor {
    animation: blink 0.7s step-end infinite;
  }
  .subtitle {
    font-size: clamp(0.95rem, 3vw, 1.2rem);
    margin-top: 10px;
    padding: 0 2px;
    text-align: center;
    line-height: 1.5;
  }
  .connect-section {
    margin-top: 18px;
    text-align: center;
    align-items: center;
    padding: 0 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .social-buttons {
    gap: 16px;
    margin-top: 16px;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
  }
  .social-btn {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    margin-top: 0;
  }
  .sidebar.left,
  .sidebar.right {
    display: none;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 2000;
    padding: 6px 0 2px 0;
    justify-content: space-around;
    align-items: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
  .bottom-nav-icon {
    color: #f1f5f9;
    font-size: 1.7rem;
    padding: 8px 16px;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .bottom-nav-icon:active,
  .bottom-nav-icon:hover {
    background: #334155;
    color: #3b82f6;
    transform: scale(1.1);
  }
  #projects {
    align-items: center;
    width: 100%;
  }
  
  #projects .typing {
    text-align: center;
    width: 100%;
  }
  #publications.text-section {
    padding-top: 100px;
  }

  #publications.typing {
    padding-top: 100px;
    height: auto;
  }
}

@media (max-width: 600px) {
  body {
    padding: 0;
    height: 100vh;
    overflow-y: auto;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .container {
    height: auto;
    min-height: 100vh;
    padding-bottom: 56px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 0 2px 0 2px;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-y: auto;
    align-items: flex-start;
    padding-top: 32px;
  }
  .text-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    margin: 0;
    min-height: unset;
    max-width: 100vw;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }
  .image-section {
    order: 2;
    margin: 4px 0 0 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    max-width: 100vw;
    max-height: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .profile-pic {
    width: 200px;
    height: 200px;
    max-width: 90vw;
    max-height: 60vw;
    border-radius: 50% / 30%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    margin-top: -200px;
  }
  .typing {
    font-size: clamp(1.3rem, 8vw, 2.1rem);
    margin-bottom: 6px;
    max-width: 98vw;
    overflow-wrap: break-word;
    box-sizing: border-box;
    margin-top: 0;
  }
  .typed-text {
    width: auto;
    animation: none;
    white-space: nowrap;
  }
  .cursor {
    animation: blink 0.7s step-end infinite;
  }
  .subtitle {
    font-size: clamp(1.05rem, 4vw, 1.25rem);
    margin-top: 6px;
    padding: 0 2px;
    max-width: 98vw;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }
  .connect-section {
    margin-top: 6px;
    text-align: center;
    align-items: center;
    padding: 0 2px;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .social-buttons {
    gap: 10px;
    margin-top: 8px;
    max-width: 100vw;
    flex-wrap: wrap;
    box-sizing: border-box;
  }
  .skills-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    width: 100%;
    padding: 0 2vw;
    gap: 8px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .skill {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px 6px;
    font-size: 0.95rem;
    height: auto;
    margin: 0;
    box-sizing: border-box;
    word-break: break-word;
  }
  .custom-select,
  .select-selected,
  .select-items {
    max-width: 140px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .skill-name {
    width: 100%;
    flex: 1 1 100%;
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  #skills {
    margin-top: -100px;
  }
  .publications-grid {
    padding: 0.5rem;
    width: 100%;
  }
  #publications .typing {
    margin-top: 36px;
  }

  #projects {
    margin-top: 200px;
    padding-bottom: 50px;
  }
}

@media (max-width: 1000px) and (min-width: 601px) {
  .container {
    align-items: flex-start;
    padding-top: 80px;
  }
  #publications .typing {
    display: flex;
    align-items: center;
    margin-top: 80px;
    min-height: 40px;
  }
  #publications.text-section {
    margin-top: 0;
  }
  #projects .typing {
    display: flex;
    align-items: center;
    margin-top: 80px;
    min-height: 40px;
  }
  #projects.text-section {
    margin-top: 0;
  }
}

.sidebar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-color: rgba(15, 23, 42, 0.7);
  border-radius: 20px;
  padding: 20px 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.sidebar.left {
  left: 20px;
}

.sidebar.right {
  right: 20px;
}

.sidebar.right .dock-label {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 8px;
}

.dock-icon {
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f1f5f9;
  border-radius: 12px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  font-size: 1.2rem;
  text-decoration: none;
}

.dock-icon:hover {
  background-color: #334155;
  transform: scale(1.2);
}

.dock-icon-wrapper {
  position: relative;
}

.dock-label {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  background-color: #1e293b;
  color: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-left: 8px;
  pointer-events: none;
}

.dock-icon-wrapper:hover .dock-label {
  opacity: 1;
}

.skills-tabs {
  margin-top: 40px;
  width: 100%;
  max-width: 1200px;
  min-height: 400px;
  position: relative;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  width: 100%;
  padding: 0 20px;
}

.tab-btn {
  background-color: #1e293b;
  color: #f1f5f9;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  line-height: 1.4;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-btn:hover {
  background-color: #334155;
  transform: translateY(-2px);
}

.tab-btn.active {
  background-color: #3b82f6;
  color: white;
}

.tab-content {
  position: relative;
  width: 100%;
  min-height: 400px;
  margin-top: 30px;
}

.tab-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-pane.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.skills-container {
  display: flex;
  gap: 40px;
  width: 100%;
  position: relative;
}

.skills-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}

.skill-category {
  font-size: 1.5rem;
  color: #f1f5f9;
  margin-bottom: 15px;
  font-weight: 600;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.skill {
  background-color: #1e293b;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill:hover {
  background-color: #334155;
  transform: translateY(-2px);
}

.skill-name {
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  flex: 2;
  margin-right: 20px;
  line-height: 1.2;
}

.skill-bar {
  width: 30%;
  height: 8px;
  background-color: #0f172a;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.skill:hover .skill-bar {
  opacity: 1;
  transform: translateX(0);
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  width: 0%;
  transition: width 1.5s ease;
}

.skill:hover .skill-bar-fill {
  width: var(--skill-level);
}

/* Mobile Dropdown Styles */
.mobile-select {
  display: none;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 30px auto;
  padding: 0;
}

.custom-select {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.select-selected,
.select-items {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.select-selected {
  background-color: #1e293b;
  color: #f1f5f9;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.select-selected:after {
  content: '';
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #f1f5f9;
  transition: transform 0.3s ease;
}

.select-selected.active:after {
  transform: rotate(180deg);
}

.select-items {
  position: absolute;
  background-color: #1e293b;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  border-radius: 8px;
  margin-top: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.select-items.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #f1f5f9;
}

.select-item:hover {
  background-color: #334155;
}

.select-item.active {
  background-color: #3b82f6;
  color: white;
}

@media (max-width: 1000px) {
  .tab-buttons {
    display: none;
  }

  .mobile-select {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px auto;
    padding: 0;
  }

  .skills-list {
    grid-template-columns: 1fr;
    max-width: 300px;
    padding: 0;
    margin: 0 auto;
    gap: 12px;
  }

  .skills-column {
    gap: 12px;
  }

  .skills-tabs {
    min-height: 350px;
  }

  .tab-content {
    min-height: 350px;
  }

  .typing {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: auto;
    margin-left: 0;
  }
}

@media (max-width: 500px) {
  .mobile-select {
    width: 100%;
    padding: 0;
  }

  .select-selected,
  .select-items {
    width: 100%;
  }
}

/* Project Carousel Styles */
#projects {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

#projects .typing {
  margin-bottom: 2rem;
  text-align: left;
}

.projects-carousel {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 1rem;
  box-sizing: border-box;
}

.projects-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  position: relative;
  gap: 0;
}

.project-card {
  min-width: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex-shrink: 0;
  margin: 0;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding-right: 0.5rem;
}

.project-description {
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.5;
  padding-left: 1.2rem;
  padding-right: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
  text-align: left;
}

.project-description li {
  margin-bottom: 0.5rem;
  text-align: left;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-right: 0.5rem;
  
}

.project-links a {
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.project-links a:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.project-links a i {
  font-size: 1rem;
  color: #3b82f6;
}

.carousel-controls {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 20;
}

.control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.control-btn i {
  font-size: 1.2rem;
}

@media (max-width: 1000px) {
  .carousel-controls {
    right: 1rem;
  }
}

@media (max-width: 768px) {
  .carousel-controls {
    right: 0.5rem;
  }
}

@media (max-width: 600px) {
  .carousel-controls {
    right: 0.25rem;
  }
}

/* Experience Carousel Styles */
#experience {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

#experience .typing {
  margin-bottom: 2rem;
  text-align: left;
}

.experience-carousel {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 1rem;
  box-sizing: border-box;
  height: 600px;
}

.experience-container {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  position: relative;
  gap: 2rem;
}

.experience-card {
  min-height: 500px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex-shrink: 0;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.company-header img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
}

.company-info {
  flex: 1;
}

.company-info h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  color: #fff;
}

.company-info h4 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: #3b82f6;
}

.duration {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}

.experience-description {
  color: #ccc;
  margin: 1rem 0;
  line-height: 1.6;
  padding-left: 1.2rem;
  flex: 1;
}

.experience-description li {
  margin-bottom: 0.8rem;
  text-align: left;
}

.experience-links {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-top: auto;
}

.experience-links a {
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.experience-links a:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.experience-links a i {
  font-size: 1rem;
  color: #3b82f6;
}

@media (max-width: 1000px) {
  #experience {
    align-items: center;
    margin-top: -3rem;
  }
  
  #experience .typing {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .experience-carousel {
    height: 500px;
    max-height: 80vh;
  }

  .experience-card {
    min-height: 400px;
    max-height: 70vh;
  }
}

@media (max-width: 768px) {
  .experience-carousel {
    height: 450px;
    max-height: 75vh;
    padding: 0.5rem;
  }

  .experience-card {
    padding: 1rem;
    min-height: 350px;
    max-height: 65vh;
  }

  .company-header {
    gap: 1rem;
  }

  .company-header img {
    width: 60px;
    height: 60px;
  }

  .company-info h3 {
    font-size: 1.3rem;
  }

  .company-info h4 {
    font-size: 1.1rem;
  }

  .experience-description {
    font-size: 0.95rem;
    overflow-y: auto;
    max-height: 40vh;
  }
}

@media (max-width: 600px) {
  .experience-carousel {
    height: 100vh;
    max-height: 600px;
    padding: 0.25rem;
    overflow: hidden;
  }

  .experience-container {
    gap: 1rem;
    height: 100%;
  }

  .experience-card {
    padding: 0.75rem;
    min-height: 100%;
    height: 100%;
    max-height: 100%;
  }

  .company-header {
    gap: 0.75rem;
  }

  .company-header img {
    width: 50px;
    height: 50px;
  }

  .company-info h3 {
    font-size: 1.2rem;
  }

  .company-info h4 {
    font-size: 1rem;
  }

  .duration {
    font-size: 0.85rem;
  }

  .experience-description {
    font-size: 0.9rem;
    padding-left: 1rem;
    overflow-y: auto;
    max-height: calc(100% - 200px);
  }

  .experience-links {
    margin-top: 0.75rem;
    gap: 0.75rem;
  }

  .experience-links a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 400px) {
  .experience-carousel {
    max-height: 500px;
    padding: 0.15rem;
  }

  .experience-card {
    padding: 0.5rem;
  }

  .company-header img {
    width: 40px;
    height: 40px;
  }

  .company-info h3 {
    font-size: 1.1rem;
  }

  .company-info h4 {
    font-size: 0.9rem;
  }

  .duration {
    font-size: 0.8rem;
  }

  .experience-description {
    font-size: 0.85rem;
    padding-left: 0.8rem;
    max-height: calc(100% - 180px);
  }

  .experience-links {
    margin-top: 0.5rem;
    gap: 0.5rem;
  }

  .experience-links a {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }
}

/* Publications Page Styles */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  margin: 0 auto;
  padding-bottom: 90px;
}

.publication-card {
  perspective: 1000px;
  height: 250px;
  cursor: pointer;
}

.publication-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.publication-card:hover .publication-card-inner {
  transform: rotateY(180deg);
}

.publication-card-front,
.publication-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 1.2rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.publication-card-front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.publication-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.publication-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.publication-authors {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.publication-venue {
  font-size: 0.85rem;
  color: #3b82f6;
  margin-top: auto;
  padding-top: 0.8rem;
}

.publication-date {
  font-size: 0.85rem;
  color: #94a3b8;
}

.publication-abstract {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.publication-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.publication-card-back .bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.8rem;
}

.publication-links a {
  color: #fff;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(59, 130, 246, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  text-decoration: none;
}

.publication-links a:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.publication-links a i {
  font-size: 1rem;
  color: #3b82f6;
}

.publication-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 1000px) {
  .publications-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    width: 80%;
    padding-bottom: 90px;
  }
  .publication-card {
    height: 220px;
  }
  .publication-title {
    font-size: 1.05rem;
  }
  .publication-authors {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .publications-grid {
    padding: 0.5rem;
    padding-bottom: 90px;
  }
  .publication-card {
    height: 200px;
  }
  .publication-title {
    font-size: 1rem;
    line-height: 1.2;
  }
  .publication-authors {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  .publication-venue {
    font-size: 0.75rem;
  }
  .publication-date {
    font-size: 0.75rem;
  }
  .publication-links a {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  .publication-card-front,
  .publication-card-back {
    padding: 1rem;
  }
}

@media (max-width: 400px) {
  .publication-card {
    height: 180px;
  }
  .publication-title {
    font-size: 0.95rem;
  }
  .publication-authors {
    font-size: 0.75rem;
  }
  .publication-venue {
    font-size: 0.7rem;
  }
  .publication-date {
    font-size: 0.7rem;
  }
  .publication-links a {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  .publication-card-front,
  .publication-card-back {
    padding: 0.8rem;
  }
}