/* Clear the float after skill tags */
.skills-list-cell::after {
  content: "";
  display: table;
  clear: both;
}.skills-list-cell .skill-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}/* Add hover effect to skills rows */
.skills-table tr:hover {
  transform: translateY(-8px); /* Match other cards' hover effect */
  box-shadow: var(--hover-shadow);
  z-index: 2; /* Ensure it appears above other elements */
}/* Simplified but professional CSS with enhanced colors */
:root {
  --primary-color: #6A3EB1; /* Purple - primary color */
  --primary-dark: #4E2D84; /* Darker purple */
  --primary-light: #8A5FD2; /* Lighter purple */
  --secondary-color: #333;
  --accent-color: #0D6E32; /* Hacker green for highlights */
  --accent-dark: #0A5226; /* Darker green */
  --accent-light: #15914A; /* Lighter green */
  --accent-secondary: #0D6E32; /* Same as accent-color for consistency */
  --accent-tertiary: #6A3EB1; /* Same as primary-color for consistency */
  --text-color: #333;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --dark-bg: #1E293B;
  --medium-gray: #6c757d;
  --light-gray: #dee2e6;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;

/* Network grid pattern background */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23132b43' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%231a5fb4'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  background-position: center;
  background-size: cover;
}

/* Static network grid overlay */
header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(90deg, rgba(0, 200, 255, 0.03) 0px, rgba(0, 200, 255, 0.03) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(180deg, rgba(0, 200, 255, 0.03) 0px, rgba(0, 200, 255, 0.03) 1px, transparent 1px, transparent 30px);
}

/* Enhanced styling for header text */
header h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 2.8rem;
  color: white;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
  letter-spacing: 1px;
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
}

/* Enhanced styling for social links */
.social-links {
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
}

/* Education section with accent color */
#education {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

#education::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
}

#education h2 {
  color: var(--accent-color);
  margin-bottom: 3rem;
}

#education h2::after {
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color));
}

/* Education and affiliations grid layout */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 2rem 0;
}

/* Common styles for both boxes */
.education-box,
.affiliations-box {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  border-top: 4px solid var(--accent-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.education-box:hover,
.affiliations-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

/* Header styles for both boxes */
.education-header,
.affiliations-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: rgba(76, 175, 80, 0.08);
  border-bottom: 1px solid rgba(76, 175, 80, 0.15);
}

.education-logo,
.affiliations-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1.2rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.education-title h3,
.affiliations-title h3 {
  color: var(--accent-color);
  font-size: 1.4rem;
  margin-bottom: 0;
  font-weight: 600;
}

.education-location {
  color: var(--text-color);
  font-size: 1rem;
  font-style: italic;
  margin-top: 0.2rem;
}

/* Content styles */
.education-content,
.affiliations-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Education specific styles */
.education-degree {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.degree-icon {
  color: var(--accent-color);
  font-size: 1.3rem;
  margin-right: 0.8rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.education-degree h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-color);
}

.education-degree p {
  margin: 0.2rem 0;
  color: var(--text-color);
  font-size: 0.95rem;
}

.education-dates {
  font-style: italic;
  color: var(--medium-gray);
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

.education-distinction {
  padding: 0.6rem 1rem;
  background: rgba(76, 175, 80, 0.1);
  color: var(--accent-color);
  border-radius: 30px;
  display: inline-block;
  font-weight: 600;
  margin: 0.5rem 0 1.2rem 0;
  font-size: 0.95rem;
}

.education-distinction i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

/* Affiliations specific styles */
.affiliation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.affiliation-list li {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.affiliation-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.affiliation-details {
  display: flex;
  align-items: flex-start;
}

.affiliation-details i {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-right: 0.8rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.affiliation-details h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-color);
}

.affiliation-dates {
  color: var(--medium-gray);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.affiliation-desc {
  color: var(--text-color);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* Skills list positioning */
.education-box .skills-list,
.affiliations-box .skills-list {
  margin-top: auto;
  padding-top: 1rem;
}

/* Publications section */
.publications-container {
  margin-top: 2.5rem;
}

.publications-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  border-top: 4px solid var(--accent-color);
  max-width: 1200px;
  margin: 0 auto;
}

.publications-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.publications-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: rgba(76, 175, 80, 0.08);
  border-bottom: 1px solid rgba(76, 175, 80, 0.15);
}

.publications-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1.2rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.publications-header h3 {
  color: var(--accent-color);
  font-size: 1.4rem;
  margin: 0;
  font-weight: 600;
}

.publications-content {
  padding: 1.5rem;
}

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

.publication-item {
  display: flex;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.publication-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.publication-number {
  font-weight: 700;
  color: var(--accent-color);
  margin-right: 1rem;
  flex-shrink: 0;
}

.publication-text {
  line-height: 1.6;
  color: var(--text-color);
}

.publication-link {
  display: inline-block;
  color: var(--accent-color);
  margin-top: 0.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.publication-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.publication-link i {
  margin-right: 0.3rem;
  font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 992px) {
  .education-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .education-box,
  .affiliations-box {
    max-width: 100%;
  }

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

@media (max-width: 576px) {
  .publication-item {
    flex-direction: column;
  }
  
  .publication-number {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .education-header,
  .affiliations-header {
    flex-direction: column;
    text-align: center;
  }
  
  .education-logo,
  .affiliations-logo {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .affiliation-details {
    flex-direction: column;
    text-align: center;
  }
  
  .affiliation-details i {
    margin-right: 0;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
  }
}

.social-link {
  display: inline-block;
  color: white;
  font-size: 1.5rem;
  margin: 0 15px;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.social-link:hover {
  color: #00c8ff;
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
}

/* Add glowing border to header section */
header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 200, 255, 0.2), 
    rgba(0, 200, 255, 0.5), 
    rgba(0, 200, 255, 0.2), 
    transparent);
}

/* Sections */
section {
  padding: 3rem 0;
  position: relative;
  max-width: 100%;
}

section:nth-child(even) {
  background-color: white;
}

section:nth-child(odd) {
  background-color: var(--light-bg);
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 10px;
  color: var(--primary-dark);
}

/* Section-specific heading colors */
#skills h2, 
#projects h2, 
#education h2 {
  color: var(--accent-color);
}

#about h2,
#experience h2,
#research h2,
#contact h2 {
  color: var(--primary-color);
}

section h2::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

/* Section-specific heading underlines */
#skills h2::after, 
#projects h2::after, 
#education h2::after {
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color));
}

/* Uniform section intro paragraphs */
.section-intro {
  text-align: center;
  color: var(--medium-gray);
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* About section with card layout */
.about-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.about-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  padding: 2rem;
  max-width: 1200px;
  border-left: 4px solid var(--primary-color);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.about-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.about-card p:last-child {
  margin-bottom: 0;
}

/* Experience Section - Original layout */
#experience .container {
  max-width: 1400px; /* Keep the wider container */
}

/* Research Section - Simplified layout */
#research .container {
  max-width: 1400px; /* Keep the wider container */
}

.research-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 2rem 0;
}

#research .skill-tag {
  background: rgba(106, 62, 177, 0.1);
  color: var(--accent-tertiary);
}

#research .skill-tag:hover {
  background: var(--accent-tertiary);
  color: white;
}

/* Research Programs box */
.research-programs-box {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  border-left: 4px solid var(--accent-tertiary);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.research-programs-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.research-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: rgba(106, 62, 177, 0.05);
  border-bottom: 1px solid rgba(106, 62, 177, 0.1);
}

.research-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-tertiary);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1.2rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.research-title h3 {
  color: var(--accent-tertiary);
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
}

.research-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.research-program {
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.research-program:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.program-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent-tertiary);
  margin-bottom: 0.3rem;
}

.program-dates {
  font-style: italic;
  color: var(--medium-gray);
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}

.program-focus {
  margin-bottom: 0.7rem;
  line-height: 1.6;
  color: var(--text-color);
}

.research-program .skills-list {
  margin-top: 0.7rem;
}

.research-link {
  color: var(--accent-tertiary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.research-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Publications box in research section */
.publications-box {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  border-left: 4px solid var(--accent-tertiary);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.publications-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.publications-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: rgba(106, 62, 177, 0.05);
  border-bottom: 1px solid rgba(106, 62, 177, 0.1);
}

.publications-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-tertiary);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1.2rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.publications-title h3 {
  color: var(--accent-tertiary);
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
}

.publications-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.publication-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.publication-item {
  display: flex;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.publication-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.publication-number {
  font-weight: 700;
  color: var(--accent-tertiary);
  margin-right: 1rem;
  flex-shrink: 0;
}

.publication-text {
  line-height: 1.6;
  color: var(--text-color);
}

.publication-link {
  display: inline-block;
  color: var(--accent-tertiary);
  margin-top: 0.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.publication-link:hover {
  color: var(--accent-tertiary);
  opacity: 0.8;
  text-decoration: underline;
}

.publication-link i {
  margin-right: 0.3rem;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .research-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .publications-box,
  .research-programs-box {
    height: auto;
  }
}

/* Job styling */
.job {
  margin-bottom: 2.5rem; /* Increased spacing between job cards */
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: white;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.job:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.job h3 {
  margin: 0;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.job-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.job-company {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.job-duration {
  font-style: italic;
  color: var(--medium-gray);
  font-weight: 500;
  background-color: rgba(36, 110, 185, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.9rem;
}

.job ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.job li {
  margin-bottom: 0.5rem;
}

.job .skills-list {
  margin-top: 0.5rem;
}

/* Fix skill tag colors by section */
/* Skills section skill tags - accent color styling for skills table */
.skills-list-cell .skill-tag {
  background: rgba(76, 175, 80, 0.08);
  color: var(--accent-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.skills-list-cell .skill-tag:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Experience section - light blue background */
.job .skill-tag {
  background: rgba(36, 110, 185, 0.1);
  color: var(--primary-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.job .skill-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Homelab section - accent green */
.homelab-item .skill-tag {
  background: rgba(76, 175, 80, 0.1);
  color: var(--accent-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.homelab-item .skill-tag:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Project section - light orange background */
.project-content .skill-tag {
  background: rgba(255, 140, 66, 0.1);
  color: var(--accent-secondary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Project Carousel Styles */
.carousel-container {
  position: relative;
  margin: 3rem auto;
  max-width: 1400px;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.carousel-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin: 0 1.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--light-gray);
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

.carousel-track {
  position: relative;
  overflow: hidden;
  min-height: 650px; /* Increased height to match other sections */
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.6s ease;
  visibility: hidden;
}

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

.project-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-top: 4px solid var(--accent-color);
  max-width: 1200px;
  margin: 0 auto;
  height: 550px;
  overflow-y: auto;
}

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-align: center;
}

.project-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-align: center;
  font-size: 1.5rem;
}

.project-desc {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-color);
}

.project-details {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.project-details li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.project-card .skills-list {
  margin-top: 1.5rem;
  text-align: center;
}

.project-card .skill-tag {
  background: rgba(76, 175, 80, 0.1);
  color: var(--accent-color);
}

.project-card .skill-tag:hover {
  background: var(--accent-color);
  color: white;
}

@media (max-width: 768px) {
  .carousel-track {
    min-height: 750px;
  }
  
  .carousel-slide {
    padding: 0 1rem;
  }
  
  .project-card {
    padding: 1.5rem;
    height: 650px;
  }
}

@media (max-width: 576px) {
  .carousel-track {
    min-height: 850px;
  }
  
  .project-card {
    height: 750px;
  }
  
  .carousel-indicators {
    display: none;
  }
}

/* Project Cards */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-secondary));
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid rgba(0, 0, 0, 0.05);
}

/* Project content layout with proper ordering */
.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Set the order for elements within project content */
.project-content h3 {
  margin-top: 0;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.project-tags span {
  background: rgba(36, 110, 185, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}

.project-tags span:hover {
  background: var(--primary-color);
  color: white;
}

.project-content p {
  margin-bottom: 1.5rem;
}

/* Skills list comes right before the button */
.project-content .skills-list {
  margin-top: auto;
  margin-bottom: 1rem;
}

.project-links {
  margin-top: 0.5rem;
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: white;
  text-align: center;
  padding: 2rem 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-secondary), var(--accent-tertiary));
}

footer .social-links {
  margin-bottom: 1rem;
}

footer .social-link {
  display: inline-block;
  color: white;
  font-size: 1.5rem;
  margin: 0 15px;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  line-height: 40px;
  opacity: 0.8;
}

footer .social-link:hover {
  opacity: 1;
  transform: translateY(-3px);
  color: var(--accent-color);
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* Add back-to-top button styling */
.back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Responsive styles */
@media (max-width: 1200px) {
  .homelab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #research .container,
  #experience .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  #about .container {
    flex-direction: column;
  }
  
  #about h2 {
    width: 100%;
    text-align: center;
    padding-right: 0;
    border-right: none;
    margin-bottom: 1.5rem;
  }
  
  #about p {
    width: 100%;
    text-align: center;
  }
  
  .skills-category {
    padding: 1rem;
    font-size: 1.1rem;
  }
  
  .skill-tag {
    font-size: 0.95rem;
    padding: 0.4rem 0.9rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  nav ul {
    position: fixed;
    top: 60px;
    right: -100%;
    background: var(--dark-bg);
    width: 70%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transition: var(--transition);
    z-index: 100;
  }
  
  nav ul.active {
    right: 0;
  }
  
  nav li {
    margin: 1rem 0;
  }
  
  .homelab-grid {
    grid-template-columns: 1fr;
  }
  
  .job-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .job-info {
    align-items: flex-start;
    margin-top: 0.5rem;
  }
  
  .skills-category {
    width: 30%;
    padding: 0.8rem;
    font-size: 1rem;
  }
  
  .skills-list-cell {
    width: 70%;
    padding: 0.8rem;
    gap: 0.6rem;
  }
  
  .skill-tag {
    font-size: 0.9rem;
    padding: 0.35rem 0.8rem;
  }
}

@media (max-width: 576px) {
  header h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  .job, 
  .project-card,
  .homelab-item,
  form {
    padding: 1rem;
  }
  
  .button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .social-link {
    margin: 0 10px;
  }
  
  .skills-table {
    border-spacing: 0 0.8rem;
    font-size: 0.95rem;
  }
  
  .skills-category {
    width: 35%;
    padding: 0.6rem;
    font-size: 0.95rem;
  }
  
  .skills-list-cell {
    width: 65%;
    padding: 0.6rem;
    gap: 0.5rem;
  }
  
  .skill-tag {
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
  }
}
}

/* Base styles */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Container for better responsiveness */
.container {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Button styling */
.button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  margin: 0 auto;
}

.button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.button i {
  margin-right: 5px;
}

/* Contact section styling */
.contact-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.contact-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  border-top: 4px solid var(--primary-color);
  width: 100%;
  max-width: 800px;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.contact-content {
  padding: 2.5rem;
  text-align: center;
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem auto;
  color: white;
  font-size: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.contact-content h3 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.contact-content p {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
  color: var(--text-color);
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.contact-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
  color: white;
}

.contact-button.secondary {
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.contact-button.secondary:hover {
  background: rgba(36, 110, 185, 0.1);
  color: var(--primary-color);
}

.contact-button i {
  margin-right: 0.5rem;
}

@media (max-width: 576px) {
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-button {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
}

/* Skills tags for research section */
.skills-list {
  display: block; /* Change from flex to block for more natural flow */
  margin-top: 1rem;
}

.skill-tag {
  background: rgba(36, 110, 185, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-right: 0.5rem; /* Add a specific right margin */
  margin-bottom: 0.5rem; /* Add a specific bottom margin */
  display: inline-block; /* Change to inline-block for more natural flow */
}

.skill-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Fix layout for tables */
.skills-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: separate;
  border-spacing: 0 0.75rem;
  table-layout: fixed; /* Control width distribution */
}

/* Ensure the skills table container fills the width */
#skills .container {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Make sure skills row has proper width */
.skills-table tr {
  transition: all 0.3s ease;
  display: table-row;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  background-color: #f8f9fa; /* Match the skills-list-cell background */
  width: 100%;
}

/* Adjust table cells for better filling behavior */
.skills-table td {
  position: relative;
}

/* Update skills categories and cells */
.skills-category {
  width: 15%;
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
  text-align: right;
  vertical-align: top;
  border-right: 3px solid var(--accent-color);
  background-color: rgba(76, 175, 80, 0.05);
  border-radius: 8px 0 0 8px;
  box-shadow: none; /* Remove default box shadow */
}

/* Make skillls list cell take up maximum width */
.skills-list-cell {
  width: 85%;
  padding: 1rem 1.5rem;
  background-color: #f8f9fa;
  border-radius: 0 8px 8px 0;
  box-shadow: none;
  min-height: 70px; /* Ensure minimum height */
  word-wrap: break-word;
  overflow: hidden; /* Handle overflow */
}

.skill-tag {
  background: white; /* Changed to white for better contrast against the gray background */
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.skill-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Navigation - fixed to top for better UX */
nav {
  background: var(--dark-bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

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

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

.logo-container a {
  display: block;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: var(--transition);
}

.logo-container a:hover .logo-img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  transition: var(--transition);
}

nav a:hover {
  color: var(--accent-color);
}

/* Underline effect for nav links */
nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

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

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Updated header styling for cybersecurity theme */
header {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #0a1927 0%, #1a3a5f 100%);
  position: relative;
  color: white;
  overflow: hidden;
}