/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* STREAMING PLATFORMS & SOCIAL MEDIA */

.platforms-section {
  margin-top: 3rem;
}

.platforms-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgb(53, 53, 53);
  text-align: center;
  margin-bottom: 1.5rem;
}

.platforms-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem;
  background: white;
  border: rgb(163, 163, 163) 0.1rem solid;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 300ms ease;
  text-decoration: none;
}

.platform-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: rgb(53, 53, 53);
}

.platform-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.8rem;
  transition: all 200ms ease;
  object-fit: contain;
}

.platform-item:hover .platform-icon {
  transform: scale(1.1);
}

.platform-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgb(85, 85, 85);
  text-align: center;
  transition: all 200ms ease;
}

.platform-item:hover .platform-name {
  color: rgb(53, 53, 53);
  font-weight: 600;
}

/* GALLERY SECTION - ULTRA SMOOTH SLIDER */

#gallery {
  position: relative;
  padding: 2rem 0;
}

.slider-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  margin-top: 3rem;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* UNIVERSAL SLIDER WRAPPER - ALL SLIDERS */
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 2rem;
  background: #f8f9fa;
}

/* Specific heights for different sliders */
.second-slider .slider-wrapper {
  height: 550px;
}

.third-slider .slider-wrapper {
  height: 580px;
}

/* UNIVERSAL SLIDE STYLES - ALL SLIDERS */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(100%) scale(0.9);
  z-index: 1;
  will-change: transform, opacity;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  z-index: 3;
}

.slide.prev {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%) scale(0.9);
  z-index: 1;
}

.slide.next {
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%) scale(0.9);
  z-index: 1;
}

/* Ensure ALL sliders use the same slide animations */
.second-slider .slide,
.third-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(100%) scale(0.9);
  z-index: 1;
  will-change: transform, opacity;
}

.second-slider .slide.active,
.third-slider .slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  z-index: 3;
}

.second-slider .slide.prev,
.third-slider .slide.prev {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%) scale(0.9);
  z-index: 1;
}

/* UNIVERSAL SLIDE IMAGE STYLES - ALL SLIDERS */
.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
              linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
              linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
              linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0;
  animation: slideImageLoad 0.6s ease forwards;
}

.slide.active .slide-image,
.second-slider .slide.active .slide-image,
.third-slider .slide.active .slide-image {
  transform: scale(1);
  opacity: 1;
}

@keyframes slideImageLoad {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Loading state for images */
.slide-image[src=""] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* UNIVERSAL PREMIUM NAVIGATION ARROWS - ALL SLIDERS */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 100;
  backdrop-filter: blur(20px);
  opacity: 0.8;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  opacity: 1;
  border-color: rgba(53, 53, 53, 0.1);
}

.slider-btn:active {
  transform: translateY(-50%) scale(1.05);
}

.prev-btn {
  left: 30px;
}

.next-btn {
  right: 30px;
}

.slider-btn svg {
  width: 28px;
  height: 28px;
  color: rgb(53, 53, 53);
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* UNIVERSAL PREMIUM DOTS - ALL SLIDERS */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(53, 53, 53, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgb(53, 53, 53);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
}

.dot.active {
  background: rgba(53, 53, 53, 0.1);
  border-color: rgb(53, 53, 53);
  transform: scale(1.3);
}

.dot.active::before {
  width: 100%;
  height: 100%;
}

.dot:hover {
  background: rgba(53, 53, 53, 0.3);
  transform: scale(1.2);
  border-color: rgba(53, 53, 53, 0.5);
}

/* SECOND SLIDER - DISTINCTIVE STYLING */

.second-slider-section {
  margin-top: 4rem;
  padding: 2rem 0;
}

.slider-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: rgb(53, 53, 53);
  margin-bottom: 2rem;
  text-align: center;
}

.second-slider {
  background: linear-gradient(145deg, #f8f9fa, #ffffff);
  border: 2px solid rgba(53, 53, 53, 0.1);
  box-shadow: 
    0 25px 70px rgba(53, 53, 53, 0.15),
    0 0 0 1px rgba(53, 53, 53, 0.05);
}









/* Second slider inherits all universal styles - no overrides needed for arrows and dots */

/* THIRD SLIDER - GRADIENT THEME */

.third-slider-section {
  margin-top: 4rem;
  padding: 2rem 0;
}

.third-slider {
  background: linear-gradient(135deg, 
    rgba(255, 94, 77, 0.1), 
    rgba(255, 154, 158, 0.1), 
    rgba(250, 208, 196, 0.1));
  border: 2px solid rgba(255, 94, 77, 0.2);
  box-shadow: 
    0 30px 80px rgba(255, 94, 77, 0.15),
    0 0 0 1px rgba(255, 154, 158, 0.1);
}





/* Third slider inherits all universal styles - no overrides needed for arrows and dots */

/* ENHANCED EXPERIENCE SECTION */

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.experience-item {
  background: white;
  border: rgb(163, 163, 163) 0.1rem solid;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 300ms ease;
}

.experience-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.experience-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.company-logo {
  flex-shrink: 0;
}

.company-icon {
  width: 60px;
  height: 60px;
  border-radius: 0.5rem;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.experience-content {
  flex: 1;
}

.position-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgb(53, 53, 53);
  margin-bottom: 0.5rem;
}

.company-name {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgb(85, 85, 85);
  margin-bottom: 0.3rem;
}

.employment-period {
  font-size: 1rem;
  color: rgb(120, 120, 120);
  margin-bottom: 0.2rem;
}

.location {
  font-size: 0.9rem;
  color: rgb(140, 140, 140);
  margin-bottom: 1rem;
}

.job-responsibilities {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-responsibilities li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: rgb(85, 85, 85);
  line-height: 1.4;
}

.job-responsibilities li:before {
  content: "▸";
  color: rgb(53, 53, 53);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* Experience Highlights */
.experience-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.highlight-badge {
  background: linear-gradient(135deg, rgb(53, 53, 53), rgb(75, 75, 75));
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(53, 53, 53, 0.2);
  transition: all 200ms ease;
}

.highlight-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(53, 53, 53, 0.3);
}

/* Enhanced Company Icons */
.rotaract-logo {
  background: white;
  padding: 8px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  object-fit: contain;
}

.editor-logo {
  background: white;
  padding: 8px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  object-fit: contain;
}

.it-logo {
  background: white;
  padding: 5px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  object-fit: contain;
}

.interact-logo {
  background: white;
  padding: 8px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  object-fit: contain;
}

.valmiki-logo {
  background: white;
  padding: 8px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  object-fit: contain;
}

.mun-logo {
  background: white;
  padding: 8px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  object-fit: contain;
}

/* Additional logo responsiveness */
@media screen and (max-width: 600px) {
  .company-icon {
    width: 50px;
    height: 50px;
  }
  
  .rotaract-logo,
  .editor-logo,
  .interact-logo,
  .valmiki-logo,
  .mun-logo {
    padding: 6px;
  }
  
  .it-logo {
    padding: 4px;
  }
}

/* SKILLS SECTION */

.skills-container {
  margin-top: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.skill-category {
  background: white;
  border: rgb(163, 163, 163) 0.1rem solid;
  border-radius: 1rem;
  padding: 1.5rem;
}

.skill-category h4 {
  font-size: 1.2rem;
  color: rgb(53, 53, 53);
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgb(240, 240, 240);
  color: rgb(53, 53, 53);
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: rgb(200, 200, 200) 0.1rem solid;
  transition: all 200ms ease;
}

.skill-tag:hover {
  background: rgb(53, 53, 53);
  color: white;
  cursor: pointer;
}

/* CERTIFICATIONS SECTION */

#certifications {
  position: relative;
}

.certifications-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.certification-card {
  background: white;
  border: rgb(163, 163, 163) 0.1rem solid;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 300ms ease;
  position: relative;
}

.certification-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.cert-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.cert-badge {
  flex-shrink: 0;
}

.cert-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgb(240, 248, 255);
  padding: 10px;
  box-sizing: border-box;
}

.cert-content {
  flex: 1;
}

.cert-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgb(53, 53, 53);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.cert-issuer {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgb(85, 85, 85);
  margin-bottom: 0.3rem;
}

.cert-date {
  font-size: 0.95rem;
  color: rgb(120, 120, 120);
  margin-bottom: 0.2rem;
}

.cert-id {
  font-size: 0.9rem;
  color: rgb(140, 140, 140);
  margin-bottom: 0;
  font-family: monospace;
}

/* Certification Provider Logo */
.cert-provider-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.provider-logo {
  width: 80px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 8px;
  border: 1px solid rgb(220, 220, 220);
  transition: all 200ms ease;
}

.provider-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Certification Action Buttons */
.cert-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(235, 235, 235);
}

.cert-btn {
  background: rgb(53, 53, 53);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cert-btn:hover {
  background: rgb(30, 30, 30);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cert-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Certificate Image Display */
.cert-image-container {
  position: relative;
  margin: 1.5rem 0 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 300ms ease;
}

.cert-image-container:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.cert-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: all 300ms ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.cert-image:hover {
  transform: scale(1.02);
}

.cert-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem;
  opacity: 0;
  transition: all 300ms ease;
  text-align: center;
}

.cert-image-container:hover .cert-image-overlay {
  opacity: 1;
}

.view-cert-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Certificate Modal */
.cert-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.cert-modal-content {
  position: relative;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  text-align: center;
}

.cert-modal img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cert-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.cert-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* PUBLICATIONS SECTION */

#publications {
  position: relative;
}

.publications-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.publication-card {
  background: white;
  border: rgb(163, 163, 163) 0.1rem solid;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 300ms ease;
  position: relative;
}

.publication-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

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

.publication-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgb(240, 248, 255), rgb(230, 245, 255));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(200, 220, 240);
}

.pub-icon {
  width: 24px;
  height: 24px;
  color: rgb(53, 53, 53);
  stroke-width: 1.5;
}

.publication-content {
  flex: 1;
}

.publication-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: rgb(53, 53, 53);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.publication-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.publication-source {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(85, 85, 85);
}

.publication-separator {
  color: rgb(140, 140, 140);
}

.publication-date {
  font-size: 0.95rem;
  color: rgb(120, 120, 120);
}

.publication-description {
  font-size: 1rem;
  color: rgb(85, 85, 85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.publication-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pub-tag {
  background: linear-gradient(135deg, rgb(245, 250, 255), rgb(235, 245, 255));
  color: rgb(53, 53, 53);
  padding: 0.4rem 0.9rem;
  border-radius: 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: rgb(200, 220, 240) 0.1rem solid;
  transition: all 200ms ease;
}

.pub-tag:hover {
  background: rgb(53, 53, 53);
  color: white;
  cursor: pointer;
}

/* Publishing Company Logo */
.publication-company-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.publisher-logo {
  width: 80px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 8px;
  border: 1px solid rgb(220, 220, 220);
  transition: all 200ms ease;
}

.publisher-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.publication-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(235, 235, 235);
}

.pub-btn {
  background: rgb(53, 53, 53);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pub-btn:hover {
  background: rgb(30, 30, 30);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.add-publication-note {
  background: rgb(248, 250, 255);
  border: rgb(200, 220, 240) 0.1rem solid;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1rem;
}

.add-publication-note .note-text {
  color: rgb(70, 90, 120);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

.add-certification-note {
  grid-column: 1 / -1;
  background: rgb(255, 248, 240);
  border: rgb(255, 200, 100) 0.1rem solid;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1rem;
}

.note-text {
  color: rgb(120, 80, 0);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}
