:root {
  --bg-color: #0a192f;
  --text-color: #8892b0;
  --heading-color: #ccd6f6;
  --accent-color: #64ffda;
  --nav-height: 100px;
}

/* Additional color variables for the side menu */
:root {
  --menu-background: var(--bg-color);
  --menu-text-color: var(--text-color);
  --menu-accent-color: var(--accent-color);
}

.side-menu {
  position: fixed;
  top: 0;
  right:0;
  width: 250px;
  height: 100vh;
  background-color: var(--menu-background);
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 100px 30px;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.menu-hover-fill {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-hover-fill li {
  position: relative;
  overflow: hidden;
}

.menu-hover-fill a {
  color: var(--menu-text-color);
  text-decoration: none;
  font-size: 1.2rem;
  position: relative;
  display: block;
  transition: color 0.3s ease;
}

.menu-hover-fill li::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background-color: var(--menu-accent-color);
  transition: left 0.3s ease;
}

.menu-hover-fill li:hover::before {
  left: 0;
}

.menu-hover-fill li:hover a {
  color: var(--menu-accent-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .side-menu {
      width: 100%;
      height: auto;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 10px 0;
      background-color: rgba(10, 25, 47, 0.95);
      backdrop-filter: blur(15px);
      z-index: 1000;
      box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  }

  .menu-hover-fill {
      flex-direction: row;
      justify-content: space-around;
      align-items: center;
      gap: 10px;
  }

  .menu-hover-fill li {
      flex-grow: 0;
      text-align: center;
  }

  .menu-hover-fill a {
      font-size: 0.8rem;
      padding: 8px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      color: var(--text-color);
      transition: color 0.3s ease;
  }

  .menu-hover-fill a::before {
      content: attr(data-icon);
      font-size: 1.2rem;
      margin-bottom: 4px;
      color: var(--accent-color);
  }

  .menu-hover-fill li:hover a {
      color: var(--accent-color);
  }

  .menu-hover-fill li::before {
      display: none; /* Remove the underline for mobile */
  }

  main {
      margin-right: 0;
      margin-bottom: 60px; /* Reduced height of the menu on mobile */
  }

  body {
      padding-bottom: 60px;
  }
}

/* Desktop Styles */
@media (min-width: 769px) {
  main {
      margin-right: 250px; /* Width of the side menu */
  }
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--menu-accent-color);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.side-menu.active {
  right: 0;
}

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
  }

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

  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
  }

  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
  }

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

  nav ul li {
    margin-left: 30px;
  }

  nav ul li a {
    color: var(--heading-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
  }

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

  section {
    padding: 100px 0;
  }

  h1, h2, h3 {
    color: var(--heading-color);
  }

  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
  }

  .hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
  }

  .hero-content h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
  }

  .hero-content p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 2rem;
  }

  .btn {
    display: inline-block;
    background: transparent;
    color: var(--accent-color);
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .btn:hover {
    background: rgba(100, 255, 218, 0.1);
  }

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

  .about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .about-text {
    flex: 1;
    margin-right: 2rem;
  }

  .skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 0 10px;
    padding: 0;
    margin: 20px 0 0 0;
    overflow: hidden;
    list-style: none;
  }

  .skills-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
    font-size: 0.9rem;
  }

  .skills-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
  }

  .projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .project-card {
    background: #112240;
    border-radius: 4px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    flex: 1 1 calc(33.333% - 1.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
  }

  @media (max-width: 768px) {
    .project-card {
        flex: 1 1 calc(50% - 1.5rem);
    }
  }

  @media (max-width: 480px) {
    .project-card {
        flex: 1 1 100%;
    }
  }

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

  .project-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .project-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .project-tech-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 1rem;
  }

  .project-tech-list li {
    font-size: 0.8rem;
    margin-right: 1rem;
    color: var(--accent-color);
  }

  .project-links a {
    color: var(--heading-color);
    text-decoration: none;
    margin-right: 1rem;
    font-size: 1.2rem;
  }

  .project-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
  }

  footer {
    text-align: center;
    padding: 2rem 0;
  }

  .social-links {
    margin-top: 1rem;
  }

  .social-links a {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .social-links a:hover {
    color: var(--accent-color);
  }
  
  .about-card {
    background: #112240;
    border-radius: 4px;
    padding: 2rem;
    transition: transform 0.3s ease;
  }

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

  .skills-title {
    color: var(--heading-color);
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  .about-card .project-tech-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 0;
  }

  .about-card .project-tech-list li {
    font-size: 0.8rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
  }
  
/* New styles for responsiveness */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(100px);
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

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

#back-to-top svg {
  transition: transform 0.3s ease;
}

#back-to-top:hover svg {
  transform: translateY(-5px);
}

#cursor-dot {
  width: 24px;
  height: 24px;
  background-color: transparent;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  user-select: none;
}

/* Hide the cursor on interactive elements */
a, button, input[type="submit"], input[type="button"] {
  cursor: none !important;
}


:root {
  --bg-color: #0a192f;
  --text-color: #8892b0;
  --heading-color: #ccd6f6;
  --accent-color: #64ffda;
  --nav-height: 100px;
}

/* Additional color variables for the side menu */
:root {
  --menu-background: var(--bg-color);
  --menu-text-color: var(--text-color);
  --menu-accent-color: var(--accent-color);
}

.side-menu {
  position: fixed;
  top: 0;
  right:0;
  width: 250px;
  height: 100vh;
  background-color: var(--menu-background);
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 100px 30px;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.menu-hover-fill {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-hover-fill li {
  position: relative;
  overflow: hidden;
}

.menu-hover-fill a {
  color: var(--menu-text-color);
  text-decoration: none;
  font-size: 1.2rem;
  position: relative;
  display: block;
  transition: color 0.3s ease;
}

.menu-hover-fill li::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background-color: var(--menu-accent-color);
  transition: left 0.3s ease;
}

.menu-hover-fill li:hover::before {
  left: 0;
}

.menu-hover-fill li:hover a {
  color: var(--menu-accent-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .side-menu {
      width: 100%;
      height: auto;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 10px 0;
      background-color: rgba(10, 25, 47, 0.95);
      backdrop-filter: blur(15px);
      z-index: 1000;
      box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  }

  .menu-hover-fill {
      flex-direction: row;
      justify-content: space-around;
      align-items: center;
      gap: 10px;
  }

  .menu-hover-fill li {
      flex-grow: 0;
      text-align: center;
  }

  .menu-hover-fill a {
      font-size: 0.8rem;
      padding: 8px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      color: var(--text-color);
      transition: color 0.3s ease;
  }

  .menu-hover-fill a::before {
      content: attr(data-icon);
      font-size: 1.2rem;
      margin-bottom: 4px;
      color: var(--accent-color);
  }

  .menu-hover-fill li:hover a {
      color: var(--accent-color);
  }

  .menu-hover-fill li::before {
      display: none; /* Remove the underline for mobile */
  }

  main {
      margin-right: 0;
      margin-bottom: 60px; /* Reduced height of the menu on mobile */
  }

  body {
      padding-bottom: 60px;
  }
}

/* Desktop Styles */
@media (min-width: 769px) {
  main {
      margin-right: 250px; /* Width of the side menu */
  }
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--menu-accent-color);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.side-menu.active {
  right: 0;
}

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
  }

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

  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
  }

  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
  }

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

  nav ul li {
    margin-left: 30px;
  }

  nav ul li a {
    color: var(--heading-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
  }

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

  section {
    padding: 100px 0;
  }

  h1, h2, h3 {
    color: var(--heading-color);
  }

  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
  }

  .hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
  }

  .hero-content h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
  }

  .hero-content p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 2rem;
  }

  .btn {
    display: inline-block;
    background: transparent;
    color: var(--accent-color);
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .btn:hover {
    background: rgba(100, 255, 218, 0.1);
  }

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

  .about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .about-text {
    flex: 1;
    margin-right: 2rem;
  }

  .skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 0 10px;
    padding: 0;
    margin: 20px 0 0 0;
    overflow: hidden;
    list-style: none;
  }

  .skills-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
    font-size: 0.9rem;
  }

  .skills-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
  }

  .projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .project-card {
    background: #112240;
    border-radius: 4px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    flex: 1 1 calc(33.333% - 1.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
  }

  @media (max-width: 768px) {
    .project-card {
        flex: 1 1 calc(50% - 1.5rem);
    }
  }

  @media (max-width: 480px) {
    .project-card {
        flex: 1 1 100%;
    }
  }

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

  .project-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .project-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .project-tech-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 1rem;
  }

  .project-tech-list li {
    font-size: 0.8rem;
    margin-right: 1rem;
    color: var(--accent-color);
  }

  .project-links a {
    color: var(--heading-color);
    text-decoration: none;
    margin-right: 1rem;
    font-size: 1.2rem;
  }

  .project-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
  }

  footer {
    text-align: center;
    padding: 2rem 0;
  }

  .social-links {
    margin-top: 1rem;
  }

  .social-links a {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .social-links a:hover {
    color: var(--accent-color);
  }
  
  .about-card {
    background: #112240;
    border-radius: 4px;
    padding: 2rem;
    transition: transform 0.3s ease;
  }

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

  .skills-title {
    color: var(--heading-color);
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  .about-card .project-tech-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 0;
  }

  .about-card .project-tech-list li {
    font-size: 0.8rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
  }
  
/* New styles for responsiveness */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(100px);
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

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

#back-to-top svg {
  transition: transform 0.3s ease;
}

#back-to-top:hover svg {
  transform: translateY(-5px);
}

#cursor-dot {
  width: 24px;
  height: 24px;
  background-color: transparent;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  user-select: none;
}

/* Hide the cursor on interactive elements */
a, button, input[type="submit"], input[type="button"] {
  cursor: none !important;
}
