/* Base Reset & Variables */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a3c5e;
  --accent-color: #00a1a7;
  --background-color: #f8f9fa;
  --text-color: #333;
  --card-bg: #f0f2f5;
  --project-bg: #f0f2f5;
  --hover-color: #007a7a;
}

/* Global Styles */
body {
  font-family: 'Inter', sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Navigation */
nav.sticky {
  background: var(--primary-color);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-list {
  display: flex;
  list-style: none;
  justify-content: flex-end;
  gap: 1.5rem;
  padding-right: 1rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: background 0.3s, color 0.3s;
}

.nav-link:hover {
  background: var(--accent-color);
  border-radius: 4px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.link-button {
  background: var(--accent-color);
  border-radius: 4px;
  box-shadow: none; /* Ensure no default shadow */
  transition: box-shadow 0.2s; /* Add transition for shadow */
}

.link-button:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Shadow on hover */
}

/* Home Section */
.hero {
  background: linear-gradient(to bottom, var(--primary-color), var(--background-color));
  color: white;
  text-align: center;
  padding: 2rem 0;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.home-content {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 0.5rem;
  align-items: center;
  gap: 1.5rem;
}

.image-container img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
}

.text-container {
  flex: 1;
  color: #333;
}

.text-container p {
  font-size: 1rem;
  text-align: justify;
}

.find-me {
  text-align: center;
  margin-top: 1rem;
}

.find-me h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.find-me .social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.find-me .social-links a {
  color: var(--primary-color);
  font-size: 2rem;
  transition: color 0.3s;
}

.find-me .social-links a:hover {
  color: var(--hover-color);
}

/* Bio Section */
.bio-container {
  max-width: 1000px;
  margin: 1rem auto;
  padding: 0 0.5rem;
}

.bio-container h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.bio-container h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

#bio-sub {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bio-role {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 1rem;
  min-width: 280px;
}

.bio-role-header {
  display: flex;
  flex-direction: column;
}

.bio-date {
  font-style: italic;
  color: #555;
}

.bio-role-description{
   margin-top: 0.5rem;
   color: #666;
   text-align: justify;
}

.bio-role-description-ul{
  padding-left: 2rem !important;        
  list-style-type: square !important;    
  text-align: justify !important;
  list-style-position: outside !important;
  display: block !important;
  margin-block-start: 1rem;
  margin-block-end: 1rem;

}

.bio-role-description-ul li {
  margin-bottom: 0.5rem;      
}


#vol-col {
  display: flex;
  flex-direction: column;
}

.bio-subsection {
  margin-bottom: 1rem;
}

#bio-sub-1, #bio-sub {
  padding-left: 0.5rem;
}

#bio-sub-sec {
  padding-left: 1.5rem;
}

#vol-head {
  font-size: 1rem;
  text-align: left;
}

.tab-container {
  margin-top: 1rem;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab-button {
  padding: 0.5rem 1rem;
  border: none;
  background: #ddd;
  cursor: pointer;
  border-radius: 4px;
}

.tab-button.active {
  background: var(--accent-color);
  color: white;
}

.tab-content {
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 4px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Portfolio Section */
.portfolio-container {
  max-width: 1000px;
  margin: 1rem auto;
  padding: 0 0.5rem;
}

.portfolio-container h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.portfolio-container h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.skill-group {
  margin-bottom: 1rem;
}

.skill-group h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.skill-list li {
  background: #e4e4e4;
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  font-size: 0.9rem;
}

.skill-list li:hover {
  background: #ccc;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-box {
  background: var(--project-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  text-decoration: none;
  color: inherit;
}

.project-box:hover {
  transform: scale(1.05);
}

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

.project-details {
  padding: 1rem;
}

.project-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.project-focus,
.project-tech,
.project-summary {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.project-summary {
  text-align: justify;
}

.certificates-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.certificate-box {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
  min-height: 120px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #333;
}

.certificate-box:hover {
  transform: scale(1.02);
}

.certificate-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.certificate-company {
  font-size: 0.95rem;
  color: #666;
}

/* Contact Section */
.contact-container {
  max-width: 1000px;
  margin: 1rem auto;
  padding: 0 0.5rem;
  text-align: center;
}

.contact-container h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.contact-box {
  width: 160px;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: none !important; /* Force no default shadow */
}

.contact-box:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
}

.contact-box i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.contact-box span {
  font-size: 1rem;
  font-weight: bold;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 2rem;
}

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  transition: opacity 0.3s;
}

#back-to-top:hover {
  background: var(--hover-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--primary-color);
  }

  .nav-list.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .home-content {
    flex-direction: column;
    align-items: center;
  }

  .image-container img {
    width: 180px;
    height: 180px;
  }

  .project-box {
    width: 100%;
  }

  .contact-box {
    width: 140px;
  }

  .skill-list li {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .text-container p {
    font-size: 0.9rem;
  }

  .contact-box {
    width: 120px;
  }
}
