/* Base Styles */
:root 
{
  --bg-primary: #1a0b2e;
  --bg-secondary: rgba(65, 40, 110, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #d8c9ff;
  --accent-color: #9d7fe8;
  --accent-color-secondary: #ff6b6b;
  --card-bg: rgba(65, 40, 110, 0.7);
  --form-bg: rgba(65, 40, 110, 0.8);
  --form-text: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --timeline-bg: #c17aff;
  --project-overlay: rgba(26, 11, 46, 0.9);
  --border-color: #bb8688;
  --card-border: 2px solid #bb8688;
  --nav-bg: rgba(26, 11, 46, 0.8);
  --nav-hover-bg: rgba(157, 127, 232, 0.2);
  --nav-hover-border: 2px solid #c17aff;

  /* Theme colors for multi-color glow */
  --color-1: rgb(95, 32, 190);
  --color-2: rgb(203, 95, 137);
  --color-3: #c7568c;
  --color-4: #a75bca;
  --color-5: rgb(115, 71, 136);
  --color-6: #bb8688;
  --color-7: #510b9c;

  /* Button colors */
  --btn-bg: #7510a3;
  --btn-hover-bg: #510b9c;
  --btn-text: #ffffff;
  --btn-hover-text: #c7568c;
  --btn-border: #bb8688;
  --btn-shadow: rgba(119, 16, 163, 0.5);

  /* Border colors for animation */
  --border-color-1: #ebf1f1;
  --border-color-2: #ff6b6b;

  /* Gradient border colors */
  --gradient-color-1: #9d7fe8;
  --gradient-color-2: #c7568c;

  /* Profile border colors */
  --profile-color-1: #1a0797;
  --profile-color-2: #da837a;
  
  /* Navigation height for scroll padding */
  --nav-height: 10vh;
}

/* Reset and Base Styles */
* 
{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html, body 
{
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto; /* Ensure vertical scrolling is enabled */
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  overscroll-behavior: none; /* Prevent bounce effect */
}

/* Important: Set background color immediately to prevent flash */
body {
  background-color: var(--bg-primary) !important; /* Use !important to ensure this takes precedence */
  background-image: none; /* Start with no background image */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  min-height: 100vh; /* Ensure body takes at least full viewport height */
  display: flex;
  flex-direction: column;
  transition: background-image 0.3s ease-in; /* Smooth transition for background image */
}

/* Class added when background is loaded */
body.background-loaded {
  background-image: url("backgroundImages/Background.jpg");
  background-size: cover;
  background-position: right 35% bottom 45%;
  background-repeat: repeat;
}

@media (min-width: 885px) {
  body.background-loaded {
    background-size: 110% auto; /* Stretch width for desktop */
    background-position: 55% center; /* Shift right */
  }
}

/* Scrollbar styling to eliminate white background */
body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: var(--color-2); /* Match body background */
}

body::-webkit-scrollbar-thumb {
  background-color: #c9bfbf; /* Pinkish thumb */
  border-radius: 6px;
}

/* Page wrapper to contain all content */
.page-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 1;
  flex: 1 0 auto; /* Allow the wrapper to grow but not shrink */
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav-container .links a,
.dropdown .links a 
{
  font-family: "Montserrat", sans-serif;
}

html 
{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px); /* Increased to prevent titles from being hidden under nav */
  overscroll-behavior: none; /* Prevent bounce effect */
}

.container 
{
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* tsParticles container */
#tsparticles 
{
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0; /* Changed from -1 to 0 to ensure particles are visible */
  pointer-events: none; /* This allows clicks to pass through to elements below */
}

/* Navigation */
nav 
{
  width: 100%;
  position: fixed;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background-color: var(--nav-bg);
  backdrop-filter: blur(5px);
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo 
{
  display: flex;
  align-items: center;
}

.logo a 
{
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo img {
  height: 100px;
  filter: drop-shadow(0 0 5px var(--color-7));
  transition: all 0.3s ease;
}

.logo a:hover img {
  filter: drop-shadow(0 0 10px var(--color-2));
  transform: scale(1.05);
}

/* Hamburger menu styling with underline effect */
.hamburg,
.cancel {
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
  display: none;
  transition: all 0.3s ease;
  
  /* Create a contained box for the icon */
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: transparent;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-align: center;
}


.hamburg:hover,
.cancel:hover {
  color: var(--color-2);
  text-shadow: 0 0 10px var(--color-7);
}


.hamburg::after,
.cancel::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--color-2);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 3px;
}

.hamburg:hover::after,
.cancel:hover::after {
  width: 30px;
}

/* Apply multi-color effect to hamburger menu icon */
.hamburg i,
.cancel i {
  position: relative;
  display: inline-block;
}

/* Apply different colors to different parts of the icon */
.hamburg:hover i::before,
.cancel:hover i::before {
  background: linear-gradient(90deg, 
    var(--color-1) 0%, 
    var(--color-2) 25%, 
    var(--color-3) 50%, 
    var(--color-4) 75%, 
    var(--color-5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(157, 127, 232, 0.5);
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.nav-container .links {
  margin-left: -40px; /* Negative value moves menu to the left */
  margin-right: 0;
  display: flex;
  align-items: center;
}

.nav-container .links a {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 5px;
  position: relative;
  font-weight: 500;
}

.nav-container .links a:hover {
  background-color: var(--nav-hover-bg);
  border: var(--nav-hover-border);
}

/* Multi-Color Glow Effect */
.multi-color-glow {
  display: inline-block;
  position: relative;
}

.multi-color-glow span {
  position: relative;
  display: inline-block;
  transition: color 0.3s, text-shadow 0.3s;
}

.multi-color-glow span.space-char {
  margin-right: 0.25em;
}

.multi-color-glow span:nth-child(7n + 1):hover {
  color: var(--color-1);
  text-shadow: 0 0 8px var(--color-1);
}

.multi-color-glow span:nth-child(7n + 2):hover {
  color: var(--color-2);
  text-shadow: 0 0 8px var(--color-2);
}

.multi-color-glow span:nth-child(7n + 3):hover {
  color: var(--color-3);
  text-shadow: 0 0 8px var(--color-3);
}

.multi-color-glow span:nth-child(7n + 4):hover {
  color: var(--color-4);
  text-shadow: 0 0 8px var(--color-4);
}

.multi-color-glow span:nth-child(7n + 5):hover {
  color: var(--color-5);
  text-shadow: 0 0 8px var(--color-5);
}

.multi-color-glow span:nth-child(7n + 6):hover {
  color: var(--color-6);
  text-shadow: 0 0 8px var(--color-6);
}

.multi-color-glow span:nth-child(7n + 7):hover {
  color: var(--color-7);
  text-shadow: 0 0 8px var(--color-7);
}

.dropdown {
  position: absolute;
  top: 0;
  transform: translateY(-500px);
  width: 100%;
  height: auto;
  backdrop-filter: brightness(40%) blur(5px);
  background-color: var(--nav-bg);
  box-shadow: -50px 0 0px var(--shadow-color); /* Shift shadow left with fuller blur */
  transition: 0.3s linear;
  z-index: 9;
}

/* Updated Hamburger Menu Styling */
.dropdown .links a {
  display: flex;
  color: var(--text-primary);
  text-decoration: none;
  padding: 15px 0;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  margin: 5px 20px;
  background-color: transparent; /* Remove background color */
  border: none; /* Remove border */
}

/* Add shorter underline effect */
.dropdown .links a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-2);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Expand underline on hover - shorter width (40% instead of 70%) */
.dropdown .links a:hover::after {
  width: 40%;
}

/* Keep the multi-color glow effect for text but don't change background */
.dropdown .links a:hover {
  background-color: transparent; /* Ensure no background */
  border: none; /* Ensure no border */
}

/* Apply the same multi-color letter effect as in the main navigation */
.dropdown .links a.multi-color-glow span:nth-child(7n + 1):hover {
  color: var(--color-1);
  text-shadow: 0 0 8px var(--color-1);
}

.dropdown .links a.multi-color-glow span:nth-child(7n + 2):hover {
  color: var(--color-2);
  text-shadow: 0 0 8px var(--color-2);
}

.dropdown .links a.multi-color-glow span:nth-child(7n + 3):hover {
  color: var(--color-3);
  text-shadow: 0 0 8px var(--color-3);
}

.dropdown .links a.multi-color-glow span:nth-child(7n + 4):hover {
  color: var(--color-4);
  text-shadow: 0 0 8px var(--color-4);
}

.dropdown .links a.multi-color-glow span:nth-child(7n + 5):hover {
  color: var(--color-5);
  text-shadow: 0 0 8px var(--color-5);
}

.dropdown .links a.multi-color-glow span:nth-child(7n + 6):hover {
  color: var(--color-6);
  text-shadow: 0 0 8px var(--color-6);
}

.dropdown .links a.multi-color-glow span:nth-child(7n + 7):hover {
  color: var(--color-7);
  text-shadow: 0 0 8px var(--color-7);
}

/* Cancel button styling to match hamburger */
.cancel {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 10;
}

/* Hero Section */
section#home 
{
  width: 100%;
  height: auto;
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
}

.main-container 
{
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.content
 {
  color: var(--text-primary);
  width: 50%;
  min-height: 100px;
  padding: 20px;
  background-color: rgba(26, 11, 46, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}


.content h1 
{
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.name-container 
{
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-weight: 700;
}

.name-highlight 
{
  color: var(--color-2);
  font-weight: bold;
  text-shadow: 0 0 10px var(--color-7);
}

.typewriter 
{
  font-size: 1.2rem;
  font-weight: 400;
  margin: 10px 0 20px;
}

.typewriter-text 
{
  color: var(--color-3);
}

.cursor 
{
  animation: blink 1s infinite;
}

.resume-btn 
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  margin-top: 20px;
}

.resume-btn i 
{
  margin-right: 10px;
}

.resume-btn:hover 
{
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--btn-shadow);
  background-color: transparent;
  border: 2px solid var(--btn-border);
  color: var(--btn-hover-text);
}

/* Profile Image with Creative Animated Border */
.profile-container  
{
  position: relative;
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* New Creative Border Animation */
.animated-border-outer 
{
  position: absolute;
  width: 340px;
  height: 340px;
  z-index: 0;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.animated-border-outer::before 
{
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  clip-path: polygon(
    30% 0%,
    70% 0%,
    70% 30%,
    100% 30%,
    100% 70%,
    70% 70%,
    70% 100%,
    30% 100%,
    30% 70%,
    0% 70%,
    0% 30%,
    30% 30%
  );
  border: 4px solid var(--profile-color-1);
  animation: rotate-frame 8s linear infinite, pulse-border 2s ease-in-out infinite alternate;
}

.animated-border-inner 
{
  position: absolute;
  width: 320px;
  height: 320px;
  z-index: 0;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.animated-border-inner::before 
{
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  clip-path: polygon(
    30% 0%,
    70% 0%,
    70% 30%,
    100% 30%,
    100% 70%,
    70% 70%,
    70% 100%,
    30% 100%,
    30% 70%,
    0% 70%,
    0% 30%,
    30% 30%
  );
  border: 4px solid var(--profile-color-2);
  animation: rotate-frame 8s linear infinite reverse, pulse-border 2s ease-in-out infinite alternate-reverse;
}

.profile-image 
{
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--color-7);
  z-index: 1;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

@keyframes rotate-frame 
{
  0%
   {
    transform: rotate(0deg);
  }
  100% 
  {
    transform: rotate(360deg);
  }
}

@keyframes pulse-border 
{
  0% 
  {
    border-width: 2px;
    opacity: 0.7;
  }
  100% 
  {
    border-width: 6px;
    opacity: 1;
  }
}

/* Section Styles */
.section {
  width: 100%;
  min-height: auto; /* Reduced from 100vh to make sections shorter */
  padding: 50px 0; /* Reduced from 100px to make sections shorter */
  position: relative;
  padding-top: calc(var(--nav-height) + 20px); /* Add padding to prevent title from being hidden under nav */
  margin-top: -var(--nav-height); /* Offset the padding to maintain visual spacing */
}

.section-title {
  margin-bottom: 30px; /* Reduced from 40px */
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: bold;
  display: inline-block;
  border-bottom: 4px solid var(--color-6);
  padding-bottom: 5px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Subsection Styles */
.subsection {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--nav-height) + 20px); /* Add scroll margin to ensure proper scrolling */
}

.subsection-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-2);
  padding-bottom: 5px;
}

/* Title Alignments */
.right-align {
  text-align: right;
}

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

/* Animated Border for all sections */
.animated-border {
  position: relative;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.animated-border:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--btn-shadow);
  border-color: var(--color-2);
}



/* Social Icons in Home Section */
.social-icons {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(110, 88, 224, 0.1);
  color: var(--color-2);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
}

.social-icons a:hover {
  transform: translateY(-5px);
  background-color: var(--btn-bg);
  color: white;
  box-shadow: 0 0 15px var(--btn-shadow);
}



/* About Section */ 
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 20px var(--shadow-color);
}

.about-text h3 {
  font-size: 1.6rem;
  color: var(--text-primary);
  line-height: 1.4;
  font-weight: 600;
}

.about-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary);
}



/* Education and Experience Timeline */
.timeline 
{
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 20px;
}

.timeline::after 
{
  content: "";
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-2), var(--color-7));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 4px;
}

.timeline-item 
{
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) 
{
  left: 0;
}

.timeline-item:nth-child(even) 
{
  left: 50%;
}

.timeline-item::after
 {
  content: "\f19d"; /* Graduation cap icon for Education */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: var(--timeline-bg);
  border-radius: 50%;
  top: 15px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(193, 122, 255, 0.7);
}

.timeline-item:nth-child(odd)::after 
{
  right: -15px;
}

.timeline-item:nth-child(even)::after 
{
  left: -15px;
}

/* Work Experience Icon */
.experience-item::after 
{
  content: "\f0b1" !important; /* Briefcase icon for Work Experience */
}

.timeline-content
 {
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 0 10px var(--shadow-color);
}

.timeline-content h3
 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-weight: 600;
}

.timeline-content h4 
{
  font-size: 1.2rem;
  color: var(--color-2);
  margin-bottom: 5px;
  font-weight: 500;
}

.timeline-date 
{
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.timeline-content p 
{
  color: var(--text-primary);
  line-height: 1.5;
}

.experience-type 
{
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.experience-location 
{
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.experience-description 
{
  color: var(--text-primary);
  line-height: 1.5;
}





/* Projects Section */
.projects-grid 
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.project-card 
{
  position: relative;
  height: 275px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px var(--shadow-color);
}

.project-card img 
{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info 
{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--project-overlay);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.5s;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-2) transparent;
}

.project-info:hover 
{
  opacity: 1;
}

.project-info::-webkit-scrollbar 
{
  width: 6px;
}

.project-info::-webkit-scrollbar-track
 {
  background: transparent;
}

.project-info::-webkit-scrollbar-thumb 
{
  background-color: var(--color-2);
  border-radius: 3px;
}

.project-info h3 
{
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-weight: 600;
}

.project-info p
 {
  margin-bottom: 15px;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
  max-height: none;
  overflow-y: visible;
  padding: 0 5px;
}

.project-info::after 
{
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 4px;
  background-color: var(--color-2);
  border-radius: 2px;
  opacity: 0.7;
}

.project-links 
{
  display: flex;
  gap: 15px;
}

.project-link 
{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: white;
  color: #333;
  border-radius: 5px;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.project-link:hover
 {
  transform: scale(1.1);
}

/* More Projects Button */
.more-projects-container 
{
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.more-projects-btn
 {
  padding: 12px 24px;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.more-projects-btn:hover 
{
  background-color: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  border: 2px solid var(--btn-border);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--btn-shadow);
}

.hidden 
{
  display: none !important;
}





/* Skills Section */
.skills-grid 
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.skill-card {
  background: var(--card-bg);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 10px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


/* C++ Skill Card */
.skill-card:nth-child(1)
{
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("skillsImages/C++B.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* C# Skill Card */
.skill-card:nth-child(2) 
{
    background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("skillsImages/C2B.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* React Skill Card */
.skill-card:nth-child(3) 
{
    background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("skillsImages/ReactB.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Node.js Skill Card */
#additional-skills .skill-card:nth-child(1) 
{
  background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  background-color: #035339;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  
}

/* Example: JavaScript Skill Card */
#additional-skills .skill-card:nth-child(2) {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
    url("skillsImages/JavaScriptB.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* CSS Skill Card */
#additional-skills .skill-card:nth-child(3) 
{
    background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  background-color: #8d8989;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

}

/* C Skill Card */
#additional-skills .skill-card:nth-child(4)
 {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  background-color: #20125c;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  
}

/* Python Skill Card */
#additional-skills .skill-card:nth-child(5) {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  background-color: #4d9dec;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Java Skill Card */
#additional-skills .skill-card:nth-child(6) 
{
  background-image: url("paper.gif");
  background-color: #2b2f33;
}

/* HTML Skill Card */
#additional-skills .skill-card:nth-child(7)
 {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  background-color:  #ce6809;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

}

/* Git Skill Card */
#tools-tech .skill-card:nth-child(1) 
{
    background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  background-color: #130f0c;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

}

/* Visual Studio Code Skill Card */
#tools-tech .skill-card:nth-child(2)
 {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  background-color: #34048b;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

}

/* GitHub Skill Card */
#tools-tech .skill-card:nth-child(3)
 {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  background-color: #a799db;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

}

/* Microsoft SQL Skill Card */
#additional-tools .skill-card:nth-child(1)
 {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  background-color:  #cfa005;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

}

/* Jenzabar Skill Card */
#additional-tools .skill-card:nth-child(2)
 {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  background-color: #2e51ec;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

}

/* Mitel Skill Card */
#additional-tools .skill-card:nth-child(3)
{
    background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  background-color: #b9cdf1;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

}


.skill-card:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.skill-icon {
  width: 60px;
  margin: 0 auto;
  padding: 5px 0;
}

.skill-icon img {
  width: 100%;
}

.skill-card p {
  margin-top: 5px;
  color: var(--text-primary);
  font-weight: 500;
}

.skill-card:hover 
{
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.skill-icon 
{
  width: 60px;
  margin: 0 auto;
  padding: 5px 0;
}

.skill-icon img 
{
  width: 100%;
}

.skill-card p 
{
  margin-top: 5px;
  color: var(--text-primary);
  font-weight: 500;
}




/* Certificates Section */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.certificate-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start; /* Align to top for wrapped text */
  box-shadow: 0 0 10px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 30px; /* Ensure card is wide enough */
}

.certificate-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid transparent;
  border-radius: inherit;
  background: linear-gradient(45deg, var(--color-2), var(--color-4), var(--color-7), var(--color-2));
  background-size: 400% 400%;
  animation: gradient-flow 3s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.certificate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.certificate-card:hover::before {
  opacity: 1;
}

.certificate-icon {
  font-size: 2.5rem;
  color: var(--color-2);
  margin-right: 15px;
  cursor: pointer;
}

.view-certificate-trigger {
  cursor: pointer;
}

.certificate-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-weight: 500;
  white-space: normal; /* Allow text to wrap */
  overflow: visible; /* Show all text */
  text-overflow: clip; /* Remove ellipsis */
  width: 110%; /* Keep full width */
}

.certificate-info p {
  color: var(--text-secondary);
}

.certificate-date {
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 5px;
}

.view-certificate {
  display: inline-block;
  margin-top: 10px;
  color: var(--color-2);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

.credential-link {
  display: block;
  margin-top: 10px;
  color: var(--color-2);
  font-size: 0.9rem;
  text-decoration: underline;
}



/* Certificate Modal */
.modal 
{
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content 
{
  background-color: var(--bg-primary);
  margin: 28% auto; /* default for mobile */
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  position: relative;
  box-shadow: 0 0 20px var(--btn-shadow);
}

/* For desktop viewpoint*/
@media (min-width: 768px) 
{
  .modal-content {
    margin: 11% auto;
  }
}


.close-modal 
{
  color: var(--text-secondary);
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover 
{
  color: var(--color-2);
}


#modal-title 
{
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.certificate-display 
{
  width: 100%;
  height: 600px;
  overflow: hidden;
}

#certificate-frame 
{
  width: 100%;
  height: 100%;
  border: none;
}

/* Success Modal */
.success-content 
{
  text-align: center;
  padding: 40px;
}

.success-icon 
{
  font-size: 4rem;
  color: #4caf50;
  margin-bottom: 20px;
}





/* Contact Section */
.contact-info 
{
  margin-bottom: 30px;
}

.contact-methods 
{
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-method 
{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  background-color: var(--card-bg);
  transition: all 0.3s;
}

.contact-method i 
{
  font-size: 1.5rem;
  color: var(--color-2);
}

.contact-method:hover 
{
  background-color: var(--btn-bg);
  transform: translateY(-5px);
  border-color: var(--color-2);
  box-shadow: 0 5px 15px var(--btn-shadow);
}

.contact-method:hover i,
.contact-method:hover span
 {
  color: white;
}

/* Contact Form */
.contact-form 
{
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 8px;
  background-color: var(--form-bg);
}

.contact-form input,
.contact-form textarea 
{
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background-color: rgba(26, 11, 46, 0.7);
  color: var(--form-text);
  font-family: "Poppins", sans-serif;
}

/* Fix for autofill styling */
.no-autofill-style:-webkit-autofill,
.no-autofill-style:-webkit-autofill:hover,
.no-autofill-style:-webkit-autofill:focus,
.no-autofill-style:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px rgba(26, 11, 46, 0.7) inset !important;
  -webkit-text-fill-color: var(--form-text) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.contact-form textarea 
{
  resize: vertical;
  min-height: 120px;
}

.contact-form button 
{
  padding: 12px 24px;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  margin: 20px auto;
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.contact-form button:hover
 {
  background-color: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  border: 2px solid var(--btn-border);
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--btn-shadow);
}




/* Footer */
footer 
{
  background-color: var(--nav-bg);
  padding: 30px 0;
  text-align: center;
  margin-top: 30px;
  min-height: 60px;
  width: 100%;
  flex-shrink: 0; /* Prevent footer from shrinking */
}

footer p 
{
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animation Classes and Transitions */
.animated 
{
  opacity: 0;
}

.animated.visible
 {
  opacity: 1;
  transform: none !important;
  transition: opacity 1s, transform 1s;
}

/* Different slide animations for each section */
.fade-up 
{
  transform: translateY(20px);
}

.fade-down 
{
  transform: translateY(-20px);
}

.fade-left 
{
  transform: translateX(20px);
}

.fade-right
 {
  transform: translateX(-20px);
}

.slide-up 
{
  transform: translateY(30px);
}

.slide-down 
{
  transform: translateY(-30px);
}

.slide-left 
{
  transform: translateX(30px);
}

.slide-right 
{
  transform: translateX(-30px);
}

.zoom-in 
{
  transform: scale(0.95);
}

/* Keyframes */
@keyframes blink 
{
  0%,
  100% 
  {
    opacity: 1;
  }
  50% 
  {
    opacity: 0;
  }
}

@keyframes gradient-flow
 {
  0% 
  {
    background-position: 0% 50%;
  }
  50% 
  {
    background-position: 100% 50%;
  }
  100% 
  {
    background-position: 0% 50%;
  }
}

/* Media Queries */
@media (max-width: 884px) 
{
  .main-container 
  {
    flex-direction: column-reverse;
    padding-top: 50px;
  }

  .nav-container .links
   {
    display: none;
  }

  .hamburg
   {
    display: block;
  }

  .content 
  {
    width: 90%;
    margin-top: 30px;
  }

  .profile-container 
  {
    width: 80%;
    margin-bottom: 30px;
  }

  .resume-btn
   {
    margin: 20px auto;
  }

  .about-content,
  .skills-grid,
  .certificates-grid,
  .projects-grid
   {
    grid-template-columns: 1fr 1fr;
  }

  .timeline::after 
  {
    left: 31px;
  }

  .timeline-item 
  {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) 
  {
    left: 0;
  }

  .timeline-item::after 
  {
    left: 21px;
  }
}

@media (max-width: 600px) 
{
  .about-content,
  .skills-grid,
  .certificates-grid,
  .projects-grid 
  {
    grid-template-columns: 1fr;
  }

  .profile-container 
  {
    width: 100%;
  }

  .animated-border-outer,
  .animated-border-inner,
  .profile-image 
  {
    width: 250px;
    height: 250px;
  }

  .animated-border-outer
   {
    width: 290px;
    height: 290px;
  }

  .animated-border-inner
   {
    width: 270px;
    height: 270px;
  }

  .content 
  {
    width: 100%;
  }

  .social-icons
   {
    justify-content: center;
  }

  .section-title h2 
  {
    font-size: 2rem;
  }

  /* Mobile hamburger menu styling */
  .hamburg 
  {
    display: flex; 
    top: 15px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .dropdown .links a 
  {
    padding: 15px 0;
    font-size: 1.2rem;
  }

  .cancel 
  {
    display: flex; 
    top: 15px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .about-text h3 
  {
    font-size: 1.5rem;
    white-space: normal;
  }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
    min-height: 100vh; /* Ensure body can grow */
    overflow-y: auto; /* Explicitly allow vertical scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
  
  html, body {
    position: relative;
    overflow: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
}

/* Multi-color glow effect for About section subsection titles */
#about-me .subsection-title.multi-color-glow,
#education .subsection-title.multi-color-glow,
#experience .subsection-title.multi-color-glow {
  display: inline-block;
  position: relative;
  width: 100%; /* Ensure it takes full width for the border-bottom */
}

#about-me .subsection-title.multi-color-glow span,
#education .subsection-title.multi-color-glow span,
#experience .subsection-title.multi-color-glow span {
  position: relative;
  display: inline-block;
  transition: color 0.3s, text-shadow 0.3s;
}

#about-me .subsection-title.multi-color-glow span.space-char,
#education .subsection-title.multi-color-glow span.space-char,
#experience .subsection-title.multi-color-glow span.space-char {
  margin-right: 0.25em;
}

/* Apply the same color patterns as the existing multi-color-glow class */
#about-me .subsection-title.multi-color-glow span:nth-child(7n + 1):hover,
#education .subsection-title.multi-color-glow span:nth-child(7n + 1):hover,
#experience .subsection-title.multi-color-glow span:nth-child(7n + 1):hover {
  color: var(--color-1);
  text-shadow: 0 0 8px var(--color-1);
}

#about-me .subsection-title.multi-color-glow span:nth-child(7n + 2):hover,
#education .subsection-title.multi-color-glow span:nth-child(7n + 2):hover,
#experience .subsection-title.multi-color-glow span:nth-child(7n + 2):hover {
  color: var(--color-2);
  text-shadow: 0 0 8px var(--color-2);
}

#about-me .subsection-title.multi-color-glow span:nth-child(7n + 3):hover,
#education .subsection-title.multi-color-glow span:nth-child(7n + 3):hover,
#experience .subsection-title.multi-color-glow span:nth-child(7n + 3):hover {
  color: var(--color-3);
  text-shadow: 0 0 8px var(--color-3);
}

#about-me .subsection-title.multi-color-glow span:nth-child(7n + 4):hover,
#education .subsection-title.multi-color-glow span:nth-child(7n + 4):hover,
#experience .subsection-title.multi-color-glow span:nth-child(7n + 4):hover {
  color: var(--color-4);
  text-shadow: 0 0 8px var(--color-4);
}

#about-me .subsection-title.multi-color-glow span:nth-child(7n + 5):hover,
#education .subsection-title.multi-color-glow span:nth-child(7n + 5):hover,
#experience .subsection-title.multi-color-glow span:nth-child(7n + 5):hover {
  color: var(--color-5);
  text-shadow: 0 0 8px var(--color-5);
}

#about-me .subsection-title.multi-color-glow span:nth-child(7n + 6):hover,
#education .subsection-title.multi-color-glow span:nth-child(7n + 6):hover,
#experience .subsection-title.multi-color-glow span:nth-child(7n + 6):hover {
  color: var(--color-6);
  text-shadow: 0 0 8px var(--color-6);
}

#about-me .subsection-title.multi-color-glow span:nth-child(7n + 7):hover,
#education .subsection-title.multi-color-glow span:nth-child(7n + 7):hover,
#experience .subsection-title.multi-color-glow span:nth-child(7n + 7):hover {
  color: var(--color-7);
  text-shadow: 0 0 8px var(--color-7);
}

/* Make skill card text use the multi-color glow effect */
.skill-card p {
  margin-top: 5px;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  display: inline-block;
}

/* Apply the multi-color glow effect to subsection titles */
.subsection-title.multi-color-glow {
  display: inline-block;
  position: relative;
  width: 100%; /* Ensure it takes full width for the border-bottom */
}

.subsection-title.multi-color-glow span {
  position: relative;
  display: inline-block;
  transition: color 0.3s, text-shadow 0.3s;
}

.subsection-title.multi-color-glow span.space-char {
  margin-right: 0.25em;
}

/* Certificate title glow effect */
.certificate-info h3 span {
  position: relative;
  display: inline-block;
  transition: color 0.3s, text-shadow 0.3s;
}

.certificate-info h3 span.space-char {
  margin-right: 0.25em;
}

/* Apply the same color patterns as the existing multi-color-glow class */
.skill-card p span:nth-child(7n + 1):hover,
.subsection-title.multi-color-glow span:nth-child(7n + 1):hover,
.certificate-info h3 span:nth-child(7n + 1):hover {
  color: var(--color-1);
  text-shadow: 0 0 8px var(--color-1);
}

.skill-card p span:nth-child(7n + 2):hover,
.subsection-title.multi-color-glow span:nth-child(7n + 2):hover,
.certificate-info h3 span:nth-child(7n + 2):hover {
  color: var(--color-2);
  text-shadow: 0 0 8px var(--color-2);
}

.skill-card p span:nth-child(7n + 3):hover,
.subsection-title.multi-color-glow span:nth-child(7n + 3):hover,
.certificate-info h3 span:nth-child(7n + 3):hover {
  color: var(--color-3);
  text-shadow: 0 0 8px var(--color-3);
}

.skill-card p span:nth-child(7n + 4):hover,
.subsection-title.multi-color-glow span:nth-child(7n + 4):hover,
.certificate-info h3 span:nth-child(7n + 4):hover {
  color: var(--color-4);
  text-shadow: 0 0 8px var(--color-4);
}

.skill-card p span:nth-child(7n + 5):hover,
.subsection-title.multi-color-glow span:nth-child(7n + 5):hover,
.certificate-info h3 span:nth-child(7n + 5):hover {
  color: var(--color-5);
  text-shadow: 0 0 8px var(--color-5);
}

.skill-card p span:nth-child(7n + 6):hover,
.subsection-title.multi-color-glow span:nth-child(7n + 6):hover,
.certificate-info h3 span:nth-child(7n + 6):hover {
  color: var(--color-6);
  text-shadow: 0 0 8px var(--color-6);
}

.skill-card p span:nth-child(7n + 7):hover,
.subsection-title.multi-color-glow span:nth-child(7n + 7):hover,
.certificate-info h3 span:nth-child(7n + 7):hover {
  color: var(--color-7);
  text-shadow: 0 0 8px var(--color-7);
}





#publications.subsection {
    text-align: center; /* Center align the subsection title and description */
}

#publications .subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 5px;
    display: block;
    text-align: center;
    position: relative;
    border-bottom: none;
        margin-left: -100px; /* Shift slightly left to center properly */

}

#publications .subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 53%;
    transform: translateX(-50%);
    width: 340px; /* Shorter, proper medium width */
    height: 2px;
    background-color: var(--color-2);
}


#publications .subsection-title + p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Publications container - ensure proper centering */
#publications .publications-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

/* Publication card styling - LEFT ALIGNED CONTENT */
#publications .publication-card {
    max-width: 800px;
    width: 100%;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px var(--shadow-color);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    overflow: visible;
    text-align: left; /* LEFT ALIGN ALL CONTENT INSIDE THE CARD */
}

#publications .publication-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--btn-shadow);
    border-color: var(--color-2);
}

/* Publication icon - positioned inside the card at top-left */
#publications .publication-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Publication content styling - LEFT ALIGNED */
#publications .publication-content {
    margin-left: 70px;
    margin-top: 0;
    text-align: left; /* ENSURE LEFT ALIGNMENT */
}

#publications .publication-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left; /* LEFT ALIGN TITLE */
}

#publications .publication-authors {
    font-size: 1.1rem;
    color: var(--color-2);
    margin-bottom: 8px;
    font-style: italic;
    text-align: left; /* LEFT ALIGN AUTHORS */
}

#publications .publication-venue {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 500;
    text-align: left; /* LEFT ALIGN VENUE */
}

#publications .publication-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: left; /* LEFT ALIGN DATE */
}

#publications .publication-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: flex-start; /* LEFT ALIGN LINKS */
}

#publications .publication-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#publications .publication-link:hover {
    background-color: transparent;
    border-color: var(--btn-border);
    color: var(--btn-hover-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--btn-shadow);
}

#publications .publication-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start; /* LEFT ALIGN TAGS */
}

#publications .tag {
    background-color: rgba(157, 127, 232, 0.2);
    color: var(--color-2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--color-2);
    transition: all 0.3s ease;
}

#publications .tag:hover {
    background-color: var(--color-2);
    color: white;
    transform: scale(1.05);
}

/* MULTI-COLOR HOVER EFFECT FOR PUBLICATIONS TITLE */
#publications .subsection-title.multi-color-glow {
    display: inline-block;
    position: relative;
    width: auto; /* Allow natural width for centering */
}

#publications .subsection-title.multi-color-glow span {
    position: relative;
    display: inline-block;
    transition: color 0.3s, text-shadow 0.3s;
}

#publications .subsection-title.multi-color-glow span.space-char {
    margin-right: 0.25em;
}

/* Apply the same color patterns as the existing multi-color-glow class */
#publications .subsection-title.multi-color-glow span:nth-child(7n + 1):hover {
    color: var(--color-1);
    text-shadow: 0 0 8px var(--color-1);
}

#publications .subsection-title.multi-color-glow span:nth-child(7n + 2):hover {
    color: var(--color-2);
    text-shadow: 0 0 8px var(--color-2);
}

#publications .subsection-title.multi-color-glow span:nth-child(7n + 3):hover {
    color: var(--color-3);
    text-shadow: 0 0 8px var(--color-3);
}

#publications .subsection-title.multi-color-glow span:nth-child(7n + 4):hover {
    color: var(--color-4);
    text-shadow: 0 0 8px var(--color-4);
}

#publications .subsection-title.multi-color-glow span:nth-child(7n + 5):hover {
    color: var(--color-5);
    text-shadow: 0 0 8px var(--color-5);
}

#publications .subsection-title.multi-color-glow span:nth-child(7n + 6):hover {
    color: var(--color-6);
    text-shadow: 0 0 8px var(--color-6);
}

#publications .subsection-title.multi-color-glow span:nth-child(7n + 7):hover {
    color: var(--color-7);
    text-shadow: 0 0 8px var(--color-7);
}

/* Responsive Design */
@media (max-width: 884px) {
    #publications .publications-container {
        padding: 20px 10px;
    }
    
    #publications .publication-card {
        padding: 25px;
        margin: 0 10px;
        text-align: left; /* MAINTAIN LEFT ALIGNMENT ON MOBILE */
    }
    
    #publications .publication-content {
        margin-left: 60px;
        text-align: left; /* MAINTAIN LEFT ALIGNMENT ON MOBILE */
    }
    
    #publications .publication-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: 12px;
        left: 12px;
    }
    
    #publications .publication-title {
        font-size: 1.6rem;
        text-align: left; /* MAINTAIN LEFT ALIGNMENT ON MOBILE */
    }
    
    #publications .publication-links {
        flex-direction: column;
        align-items: flex-start; /* LEFT ALIGN LINKS ON MOBILE */
    }
    
    #publications .publication-link {
        align-self: flex-start; /* LEFT ALIGN INDIVIDUAL LINKS */
    }
}

@media (max-width: 600px) {
    #publications .publications-container {
        padding: 20px 5px;
    }
    
    #publications .publication-card {
        padding: 20px;
        margin: 0 5px;
        text-align: left; /* MAINTAIN LEFT ALIGNMENT ON MOBILE */
    }
    
    #publications .publication-content {
        margin-left: 0;
        margin-top: 50px;
        text-align: left; /* MAINTAIN LEFT ALIGNMENT ON MOBILE */
    }
    
    #publications .publication-icon {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    #publications .publication-title {
        font-size: 1.4rem;
        text-align: left; /* MAINTAIN LEFT ALIGNMENT ON MOBILE */
    }
    
    #publications .publication-tags {
        justify-content: flex-start; /* LEFT ALIGN TAGS ON MOBILE */
    }
}

.timeline-content h4 a {
    color: var(--timeline-bg);
    text-decoration: none;
    font-style: italic;
    transition: opacity 0.3s ease;
}

.timeline-content h4 a:hover {
    opacity: 0.75;
    text-shadow: 0 0 8px var(--accent-color);
}