/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }


.raleway-font {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
  
  body {
    font-family: 'DotGothic16', 'DotGothic16-Regular', 'DotGothic16-Bold', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  /* Theme styles */
  .light {
    --bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #3455db;
    --secondary-bg: #f5f5f5;
  }
  
  .dark {
    --bg-color: #121212;
    --text-color: #ffffff;
    --accent-color: #64b5f6;
    --secondary-bg: #1e1e1e;
  }
  
  body {
    background-color: var(--bg-color);
    color: var(--text-color);
  }
  
  /* Header styles */
  .header {
    text-align: center;
    padding: 0.5rem 0;
    position: relative;
  }
  
  .header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
  }
  
  .subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 1rem;
  }
  
  .theme-toggle-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .theme-toggle-button:hover {
    transform: rotate(15deg);
  }
  
  /* Main content styles */
  .main-content {
    background-color: var(--secondary-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
  }
  
  section {
    margin-bottom: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  /* Skills section */
  .skills p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .skills p span {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
  }
  
  /* Social links */
  .socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .socials a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .socials a:hover {
    color: var(--accent-color);
  }
  
  /* Footer */
  .footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    opacity: 0.7;
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
    .container {
      padding: 1rem;
    }
  
    .header h1 {
      font-size: 2.5rem;
    }
  
    .subtitle {
      font-size: 1rem;
    }
  
    .main-content {
      padding: 1.5rem;
    }
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .main-content {
    animation: fadeIn 0.5s ease-out;
  }
  
  .socials a {
    transition: transform 0.3s ease;
  }
  
  .socials a:hover {
    transform: translateY(-3px);
  }

  .subtitle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 1.1rem;
  }
  
  .subtitle-item {
    display: flex;
    align-items: center;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.3s ease;
  }
  
  .subtitle-item:hover {
    background-color: rgba(var(--accent-color-rgb), 0.2);
  }
  
  .subtitle-item i {
    margin-right: 0.5rem;
    color: var(--accent-color);
  }
  
  /* Add this to your existing CSS variables */
  :root {
    --accent-color-rgb: 52, 152, 219; /* This is the RGB equivalent of #3498db */
  }
  
  /* Dark mode adjustment */
  .dark {
    --accent-color-rgb: 100, 181, 246; /* A lighter blue for dark mode */
  }

  .skills {
    margin-bottom: 2rem;
  }
  
  .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .skill-tag {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: default;
  }
  
  .skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--text-color);
  }
  
  /* Add this to your existing CSS variables */
  :root {
    --accent-color: #3498db;
    --bg-color: #ffffff;
    --text-color: #333333;
  }
  
  /* Dark mode adjustment */
  .dark {
    --accent-color: #64b5f6;
    --bg-color: #121212;
    --text-color: #ffffff;
  }


  .background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
  }

  #particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
  body {
    position: relative;
    z-index: 1;
  }
  
  /* Default link styles */
a {
    color: #1e90ff; /* Bright blue color for links */
    text-decoration: none; /* Remove underline for links */
    transition: color 0.3s; /* Smooth color transition */
}

/* Link hover state */
a:hover {
    color: #90cdf4; /* Lighter blue on hover */
}

/* Link visited state */
a:visited {
    color: #5a9bd4; /* A different color for visited links */
}

/* Link in active state */
a:active {
    color: #1c77b6; /* Darker blue while the link is active */
}

/* Specific styles for dark theme */
.dark a {
    color: #1e90ff; /* Keep the same bright blue for links */
}

.dark a:hover {
    color: #90cdf4; /* Keep lighter blue on hover */
}

.dark a:visited {
    color: #5a9bd4; /* Use same or different color for visited links */
}

.dark a:active {
    color: #1c77b6; /* Use darker blue while the link is active */
}

/* Specific styles for light theme */
.light a {
    color: #007bff; /* A suitable blue for light theme links */
}

.light a:hover {
    color: #0056b3; /* Darker blue on hover for light theme */
}

.light a:visited {
    color: #0056b3; /* Use same color for visited links if desired */
}

.light a:active {
    color: #004085; /* Darker blue while the link is active for light theme */
}

.profile-pic {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 30px solid #39ff14;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: #d7d534;
}

@media (prefers-color-scheme: dark) {
    .profile-pic {
        border: 0.1px solid #2a2a2a;
        box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
    }

    .profile-pic:hover {
        box-shadow: 0 12px 25px rgba(255, 255, 255, 0.15);
    }
}

.modern-nav {
  background-color: #f5f5f5; /* Light background color */
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}
.modern-nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0;
  padding: 0;
}
.modern-nav li {
  margin: 0 0.5rem;
}
.modern-nav a {
  color: #333; /* Dark text color for contrast */
  text-decoration: none;
  font-family: 'DotGothic16', sans-serif;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s, transform 0.3s;
  border-radius: 4px;
}
.modern-nav a:hover {
  background-color: #d7d534; /* Light hover color */
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .modern-nav ul {
      flex-direction: column;
      gap: 0.5rem;
  }
  .modern-nav a {
      width: 100%;
      text-align: center;
  }
}

.collapsible-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collapsible-header i {
    transition: transform 0.3s ease;
}

.skill-tags.collapsed {
    display: none;
}

.collapsible-header.active i {
    transform: rotate(180deg);
}

.contact-content.collapsed {
    display: none;
}

.about-content.collapsed {
    display: none;
}

.copy-button {
    background-color: #d7d534; /* Button background color */
    border: 2px solid #39ff14; /* Border color */
    border-radius: 4px; /* Rounded corners */
    color: #000; /* Text color */
    padding: 0.3rem 0.6rem; /* Padding for the button */
    font-family: 'DotGothic16', sans-serif; /* Font family */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s, transform 0.3s; /* Smooth transition for background color and transform */
}

.copy-button:hover {
    background-color: #39ff14; /* Hover background color */
    transform: scale(1.05); /* Slightly enlarge the button on hover */
}

.retro-nav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: 'DotGothic16', sans-serif;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
.retro-nav a {
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, #d7d534, #39ff14);
  border: 2px solid #39ff14;
  border-radius: 4px;
  box-shadow: 0 0 10px #39ff14;
  color: #000;
  text-decoration: none;  
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  position: relative;
}
.retro-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/pixel-art.png') repeat;
  opacity: 0.2;
  z-index: 1;
}
.retro-nav a:hover {
  background: linear-gradient(45deg, #39ff14, #d7d534);
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 0 15px #39ff14;
}

@media (max-width: 768px) {
  .retro-nav {
      position: static;
      margin-bottom: 2rem;
      padding: 0 1rem;
  }
  .retro-nav a {
      padding: 0.4rem 0.8rem;
      font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .retro-nav {
      flex-direction: column;
      align-items: stretch;
      gap: 0.3rem;
  }
  .retro-nav a {
      text-align: center;
  }
}