/* TODO: Replace following colors with your preferred themes */

:root {
  /* Light mode colors */
  --primary-color: #99e2fe;
  --secondary-color: #ffe2d9;
  --text-color: #000000;
  --accent-color: #fddabe87;
  --nav-background: #99e2fe;
  --link-hover-color: #000000;

  /* Dark mode colors */
  --primary-color-dark: #3d4b5d;
  --secondary-color-dark: #2c3e50;
  --text-color-dark: #f0f0f0;
  --accent-color-dark: #5f5f5f;
  --nav-background-dark: #3d4b5d;
  --link-hover-color-dark: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Courier New', monospace;
  background-image: linear-gradient(to bottom, var(--primary-color), #fddabe87);
  background-color: var(--primary-color);
  min-height: 100vh;
  color: var(--text-color);
}

.container {
  max-width: 80%;
  margin: 80px auto;
  padding-top: 80px;
}

.content-separator {
  height: 60px;
}

p {
  font-size: 20px;
  line-height: 150%;
}

ul {
  list-style-type: none;
  font-size: 20px;
  line-height: 200%;
  padding-left: 0;
  margin: 0;
}

.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  background-color: var(--nav-background);
  padding: 1rem 0;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 18px;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--text-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.profile-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
}

/************************** projects  ***************************/
.projects-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 20px;
  margin: 40px 0;
  /* filter: drop-shadow(#6c605d 8px 8px 8px ); */
}

.project {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  padding: 15px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width (needed to prevent overlapping cards) */
}

.project-link {
  text-decoration: none;
  color: inherit;
}

.project img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.project p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.project a {
  text-decoration: none;
  color: #2c12ed;
  font-weight: bold;
  transition: color 0.3s;
}

.project a:hover {
  color: #f148c8;
}

/************************** Activities and interests  ***************************/
.interests-table-container {
  background-color: var(--secondary-color);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Initially hide rows with opacity */
.interests-table tr {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 2s ease, transform 1s ease;
}

/* Fade-in class */
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.interests-table img {
  width: 100%;
  border-radius: 10px;
}

.interests-table td:nth-child(1) {
  width: 30%;
  padding-right: 30px;
}

.interests-table td:nth-child(2) {
  width: 50%;
  padding-right: 30px;
  vertical-align: top;
}

.interests-table td:nth-child(3) {
  width: 20%;
  vertical-align: top;
}

/************************** connect with me  ***************************/

.connect-container {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.connect-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.connect-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 20px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.connect-links a:hover {
  transform: scale(1.1);
}

/************************** dark mode  ***************************/
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: var(--primary-color-dark);
    --secondary-color: var(--secondary-color-dark);
    --text-color: var(--text-color-dark);
    --accent-color: var(--accent-color-dark);
    --nav-background: var(--nav-background-dark);
    --link-hover-color: var(--link-hover-color-dark);
  }

  body {
    background-image: linear-gradient(to bottom, var(--primary-color), #5f5f5f);
    background-color: var(--primary-color);
    color: var(--text-color);
  }

  a {
    color: var(--link-hover-color-dark);
  }
  
  .navbar {
    background-color: var(--nav-background);
  }

  .project {
    background-color: var(--secondary-color);
  }

  .interests-table-container {
    background-color: var(--secondary-color);
  }

  /* Dark mode text and links */
  .nav-links a {
    color: var(--text-color);
  }

  .nav-links a:hover {
    color: var(--link-hover-color);
  }
}

/************************** tilting card effect  ***************************/
.tilt {
  transition: all 0.1s ease;
  cursor: pointer;
}

/************************** glowing border effect  ***************************/
.profile-img {
  border-radius: 50%;
  width: 400px;
  border: 5px solid #b97800;
}

/* source: https://www.youtube.com/watch?v=ezP4kbOvs_E&list=PLZ6KBrFKcaDtqcqHv9NUCpul8a2B3F33F&index=6 */
.profile {
  position: relative;
}
  
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.profile:hover::after, 
.profile:hover::before {
  content: '';
  position: absolute;
  height: 99%;
  width: 100%;
  background-image: conic-gradient(from var(--angle), #bb4ec4, #f148c8, #2c12ed, #ffa500, #bb4ec4);
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: -1;
  animation: 3s spin linear infinite;
  transform: translate(0, 0);
  transition: filter 0.5s ease-in-out, opacity 0.5s ease-in-out, background-image 0.5s ease-in-out;
}


.profile:hover::before {
  filter: blur(2rem);
  opacity: 1;
  transition: filter 0.5s ease-in-out, opacity 0.5s ease-in-out, background-image 0.5s ease-in-out;
}

@keyframes spin{
  from{
    --angle: 0deg;
  }
  to{
    --angle: 360deg;
  }
}
/*****************************************************************************/