@import url('https://cdn.jsdelivr.net/npm/firacode@6.2.0/distr/fira_code.css');

/* Root Variables */
:root {
  --background: #1a170f;
  --foreground: #eceae5;
  --accent: #eec35e;
  --radius: 0;
  --font-size: 1.3rem;
  --line-height: 1.54em;
}

/* Global Styles */
body {
  margin: 0;
  padding: 0;
  font-family: HEX Franklin, '_font_fallback_875254319143', sans-serif;
  font-size: var(--font-size);
  font-weight: 400;
  line-height: var(--line-height);
  letter-spacing: -0.01em;
  background-color: var(--background);
  color: var(--foreground);
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga", "tnum", "ss01", "locl";
  font-variant-ligatures: contextual;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--background);
  font-size: 1em;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


/* Sections */
section {
  padding: 30px 20px;
}

/* About Section */
section#about {
  text-align: left; 
}

section#about p {
  margin: 0 auto;
  text-align: left; /* Specifically aligns the paragraph text to the left */
  line-height: var(--line-height); /* Ensures good readability */
  font-size: calc(var(--font-size) * 1.1); /* Slightly larger font for better emphasis */
}

h1 {
  text-decoration-thickness: 2px;
  text-underline-offset: calc(var(--font-size) * 0.2);
}

h1, h2 {
  text-transform: uppercase;
}

h1, h2, h3, h4, h5, h6 {
  font-size: calc(var(--font-size) * 1.1);
  letter-spacing: 0.04em;
}

/* Skills & Tools Section */
#skills-tools {
  background-color: var(--background);
  color: var(--foreground);
}

.skills-list, .tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.skill-item, .tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 15px 20px;
  width: 120px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill-item:hover, .tool-item:hover {
  transform: scale(1.1);
  background-color: var(--accent);
  color: #000;
}

.skill-item i, .tool-item i {
  font-size: 2rem;
  margin-bottom: 10px;
}

.skill-item span, .tool-item span {
  font-size: 1rem;
  font-weight: 500;
}


/* Footer */
.footer {
  background: var(--glass-bg);
  padding: 3rem 0;
  color: var(--foreground);
}

.footer-header {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-column h4 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Images */
img {
  display: block;
  max-width: 10px;
  border: 8px solid var(--accent);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 15px;
}

/* Placeholder */
::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Form Inputs */
input, textarea, select {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--foreground);
  border-radius: var(--radius);
  padding: 10px;
  font: inherit;
}

.signature-container {
  text-align: center;
  margin-top: 50px;
}

.signature {
  width: 130px;
  height: auto;
  stroke: #ffffff;
  fill: none; /* Make sure the path has no fill */
  stroke-width: 1.3;
  stroke-dasharray: 800; /* Total length of the path (use a large value) */
  stroke-dashoffset: 800; /* Start fully offset */
  animation: draw 8s ease-in-out forwards; /* 4s animation */
}

@keyframes flash {
  50% { color: white; }
  100% { color: #eec35e; }
  
}

.flashing-text {
  font-size: 2rem;
  font-weight: bold;
  animation: flash 1.5s infinite;
  width: auto;
  height: auto;
  padding: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

/* Reset all margins and paddings */
.nav, .nav-item, .btn {
  margin: 0;
  padding: 0;
}

/* Set consistent button padding */
.btn {
  padding: 0.375rem 0.75rem;
  height: 38px;
  display: flex;
  align-items: center;
}

/* Add hover effect for dropdown items */
.hover-effect:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Active state for nav buttons and dropdown items */
.nav-btn:active,
.nav-btn.active,
.dropdown-item:active,
.dropdown-item.active {
  background-color: var(--accent) !important;
}

/* Fix button alignment */
.nav-item .btn {
  display: flex;
  align-items: center;
  justify-content: center;
}


@keyframes draw {
  to {
    stroke-dashoffset: 0; /* Path fully drawn */
  }
}

.about-image {
  width: 100%; /* Full width for small screens */
  height: auto; /* Maintain aspect ratio */
  max-width: 600px; /* Limit the size for medium and large screens */
  display: block; /* Center-align if needed */
  margin: 0 auto; /* Center-align the image */
}

.scrollspy-example {
  max-width: 600px;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 1rem;
}

.skill-icon {
  margin-right: 8px;
}


  a {
    color: white;
    text-decoration: underline;
  }

  a:hover,
  a:focus,
  a:active {
    color: white;
  }

    h2 {
      color: var(--accent);
      text-align: center;
      margin-bottom: 20px;
    }

    .custom-form {
      max-width: 500px;
      margin: 50px auto;
      background: #222;
      padding: 20px;
      border-radius: var(--radius);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    label {
      display: block;
      margin-bottom: 5px;
      font-weight: bold;
      color: var(--accent);
    }

    input, textarea, button {
      width: 100%;
      padding: 10px;
      margin-bottom: 15px;
      border: 1px solid var(--foreground);
      border-radius: var(--radius);
      background: transparent;
      color: var(--foreground);
      font-size: var(--font-size);
    }

    input::placeholder, textarea::placeholder {
      color: rgba(255, 255, 255, 0.5);
    }

    button {
      background: var(--accent);
      color: #000;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    button:hover {
      background: #d1a347;
    }

    button:focus {
      outline: none;
    }

    textarea {
      resize: none;
    }

    .timeline {
      position: relative;
      padding: 40px 0;
      margin-left: 50px;
    }

    .timeline::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 2px;
      background: #ddd;
      transform: translateX(-50%);
    }

    .timeline-item {
      position: relative;
      margin-bottom: 30px;
      padding-left: 30px;
    }

    .timeline-item .date {
      top: 0;
      font-weight: bold;
      font-size: 1.2rem;
      color: white;
      text-decoration-line: underline;
      text-decoration-style: wavy;
      text-decoration-color: var(--accent)
    }
    .signature-container {
      position: sticky;
      top: 0;
    }
    .timeline-item .content {
      padding-left: 20px;
    }

    .timeline-item .content p {
      margin: 0;
      font-size: 1rem;
      line-height: 1.6;
    }

    .timeline-item::before {
      content: '';
      position: absolute;
      left: -6px;
      top: 10px;
      width: 12px;
      height: 12px;
      background-color: var(--accent);
      border-radius: 50%;
      border: 2px solid white;
    }

@media (min-width: 768px) {
  .about-image {
    max-width: 50%; /* Adjust the size for medium devices */
  }
}

@media (min-width: 1200px) {
  .about-image {
    max-width: 400px; /* Further reduce the size for larger screens */
  }
}
