:root {
  --color-primary: #5e17eb;
  --color-primary-glow: #8b55ff;
  --color-accent-purple: #a06aff;
  --color-accent-lavender: #c2a3ff;

  --color-bg: #080710;
  --color-panel: #11111a;
  --color-border: #24222f;

  --color-text: #ffffff;
  --color-text-secondary: #a5a3b5;
  --color-text-glow: #b28aff;

  --color-success: #00ffae;
  --color-warning: #ffb400;
  --color-error: #ff335f;
}

/* RESET */
* { margin: 0;}
body {
  background-color: var(--color-bg);
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-panel) 100%);
  color: var(--color-text);
  font-family: "Kode Mono", monospace;
  font-optical-sizing: auto;
  font-style: normal;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  height: 100%;
}

/* HEADER */
header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  padding: 0px 40px;
}
header nav ul {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
header nav ul li {
  transition: 0.1s;
}
header nav ul li a:hover {
  color: var(--color-accent-purple);
}
header nav ul li a {
  transition: 0.15s;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
ul { list-style: none;}
a { text-decoration: none; color: inherit;}

/* MAIN CONTAINER */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-height: auto;
  height: 100%;
}
section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;}

/* HOME SECTION  */
.home-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.home-header {
  text-align: center;
  margin-bottom: 40px;
}
.home-container h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-accent-purple);
}
.home-container h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--color-text);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.home-container p {
  font-size: 1.3rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: 1.6;
}
.home-icons {
  width: 30px;
  height: 30px;
  margin: 0 15px;
}
.home-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.home-links a:hover .home-icons {
  filter: drop-shadow(0 0 5px var(--color-accent-purple));
  transform: scale(1.1);
  transition: all 0.3s ease;
}


/* TIMELINE CONTAINER */
.about-container { max-width: 1000px; margin: 0 auto; padding: 40px 20px;}
.about-header { text-align: center; margin-bottom: 60px; color: var(--color-text);}
.about-header h1 { font-size: 3rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3);}
.about-header p { font-size: 1.2rem; opacity: 0.9;}
.timeline { position: relative; padding: 20px 0;}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent-purple));
  transform: translateX(-50%);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 45%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.timeline-item.visible { opacity: 1; transform: translateY(0);}
.timeline-item:nth-child(odd) { left: 0; text-align: right;}
.timeline-item:nth-child(even) { left: 55%; text-align: left;}
.timeline-content {
  background: var(--color-panel);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 5px solid var(--color-primary);
  border: 1px solid var(--color-border);
}
.timeline-content:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.15);}
.timeline-item:nth-child(odd) .timeline-content::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 30px;
  width: 0;
  height: 0;
  border: 15px solid transparent;
  border-left-color: var(--color-panel);
}
.timeline-item:nth-child(even) .timeline-content::after {
  content: '';
  position: absolute;
  left: -15px;
  top: 30px;
  width: 0;
  height: 0;
  border: 15px solid transparent;
  border-right-color: var(--color-panel);
}
.timeline-item:hover .timeline-dot { transform: translateX(-50%) scale(1.3); box-shadow: 0 6px 20px rgba(94, 23, 235, 0.6);}
.year {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-text-glow);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon1 {
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent-purple));
  color: var(--color-text);
  padding: 4px 30px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}
.icon2 {
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent-purple));
  color: var(--color-text);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}
.icon3 {
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent-purple));
  color: var(--color-text);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}
.timeline-item:nth-child(odd) .year { justify-content: flex-end;}
.achievement-title { font-size: 1.4rem; font-weight: bold; margin-bottom: 15px; color: var(--color-text);}
.achievement-description { line-height: 1.6; color: var(--color-text-secondary); margin-bottom: 15px;}
.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px;}
.timeline-item:nth-child(odd) .tech-stack { justify-content: flex-end;}
.tech-tag {
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent-purple));
  color: var(--color-text);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}
.modal-content {
  background-color: var(--color-panel);
  margin: 5% auto;
  padding: 30px;
  border-radius: 20px;
  width: 80%;
  max-width: 600px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
@keyframes modalSlideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; }}
.close {
  color: var(--color-text-secondary);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close:hover { color: var(--color-primary);}

/* PROJECTS SECTION */
.projects-header { margin: 10px 20px 0 0;}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(1, 1fr);
  grid-gap: 20px;
  height: 100%;
}
.project-card {
  background: var(--color-panel);
  border-left: 4px solid var(--color-primary-glow);
  border-radius: 10px;
  padding: 20px;
  margin: 10px;
  text-align: center;
  color: var(--color-text);
  font-size: 18px;
  height: 250px;
  width: 600px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.project-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.project-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 50%;
  height: 100%;
  padding-right: 20px;
}
.project-right {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 100%;
}
.project-title, .project-desc{ margin-bottom: 10px;}
.project-button {
  color: var(--color-text-glow);
  font-weight: 600;
  text-decoration: none;
}
.project-button:hover {
  color: var(--color-accent-purple);
}
.project-card:hover { transition: 0.3s ease-in-out; transform: translateY(-5px);}
.project-image { height: 200px; width: auto; border-radius: 10px; margin-right: 20px;}

/* SKILLS SECTION */
.skills-header { margin-left: 10px;}
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr);}
.skill-card {
  background: var(--color-panel);
  border-left: 4px solid var(--color-primary-glow);
  border-radius: 10px;
  padding: 20px;
  margin: 10px;
  text-align: center;
  color: var(--color-text);
  font-size: 18px;
  height: 75px;
  width: 250px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.skill-card:hover { transition: 0.3s ease-in-out; transform: translateX(5px);}
.skill-logo { height: 50px; width: 50px;}
.skill-card-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.skill-desc { margin: 5px;}

/* CONTACT SECTION */
.contact-section { 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 75vh;
}
.contact-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.contact-header { font-size: 40px; margin-bottom: 30px;}
.contact-desc { font-size: 20px; margin: 0px 20px 20px 20px;}
.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  max-width: 500px;
  padding: 12px;
  margin: 10px 0;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--color-primary-glow); box-shadow: 0 0 15px rgba(94, 23, 235, 0.5);}
.email-text { margin: 5px; font-size: 20px;}
.email-link { text-decoration: none; color: var(--color-text-glow);}
.email-link:hover { cursor: pointer; text-shadow: 0 0 10px var(--color-text-glow);}
.location-text { font-size: 20px;}

/* FOOTER */
footer {
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 20px;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-links { color: var(--color-text-secondary); text-decoration: none; font-size: 16px;}
.footer-links:hover { color: var(--color-text-glow);}

/* NEON BUTTON */
.neon-button {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px var(--color-primary-glow);
  transition: all 0.3s ease;
  margin: 10px;
  text-decoration: none;
}
.neon-button:hover {
  background: var(--color-accent-purple);
  box-shadow: 0 0 25px var(--color-accent-purple), 0 0 50px var(--color-accent-purple);
  transform: scale(1.05);
}
.neon-text {
  color: var(--color-primary-glow);
  text-shadow: 0 0 10px var(--color-primary-glow), 0 0 20px var(--color-primary-glow);
}

/* SCROLLBAR */
*::-webkit-scrollbar { width: 3px;}
*::-webkit-scrollbar-track { background: var(--color-panel)}
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--color-primary), var(--color-primary-glow));}

/* RESPONSIVENESS */

/* 1200-1024px */
@media (max-width: 1024px) {
  /* move nav to top */
  header nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    padding: 10px 20px;
    background: rgba(8, 7, 16, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
  }
  header nav ul {
    flex-direction: row;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  header nav ul li a { font-size: 15px; }
  main { padding-top: 76px; }
  .parent { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .home-container h1 { font-size: 3.5rem; }
  .about-header h1 { font-size: 2.6rem; }
}

/* tablet / large phone */
@media (max-width: 768px) { 
  header nav { padding: 8px 12px; }
  header nav ul { gap: 14px; }
  header nav ul li a { font-size: 14px; }
  .home-container h1 { font-size: 3rem; }
  .home-container p { font-size: 1.1rem; max-width: 420px; }
  .timeline::before { left: 30px; }
  .timeline-item { width: calc(100% - 80px); left: 60px !important; text-align: left !important; }
  .timeline-item:nth-child(odd) .timeline-content::after,
  .timeline-item:nth-child(even) .timeline-content::after {
      left: -15px;
      border: 15px solid transparent;
      border-right-color: var(--color-panel);
      border-left-color: transparent;
  }
  .timeline-item:hover .timeline-dot { transform: translateY(-50%) scale(1.3);} 
  .year { justify-content: flex-start !important; }
  .tech-stack { justify-content: flex-start !important; }
  .about-header h1 { font-size: 2rem; }
  .header-container { flex-direction: column; align-items: center; }
  .projects-grid { grid-template-columns: repeat(1, 1fr); gap: 40px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-card { width: 100%; max-width: 320px; }

  main { margin-left: 12px; margin-right: 12px; }
}

/* 480px */
@media (max-width: 480px) { 
  .logo { font-size: 28px;}
  .projects-grid { display: grid; grid-template-columns: repeat(1, 1fr);}
  .project-card { height: 125px; width: 200px;}
  .skills-grid { display: grid; grid-template-columns: repeat(1, 1fr);}
  .skill-card { flex-direction: column; height: auto;}
  .skill-card:hover { transition: 0.3s ease-in-out; transform: translateX(5px);}
  .social-links { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; text-align: center; align-items: center; justify-content: center;}
  .social-link-button { margin: 5px 0; width: 50%; margin: 0 0 10px 0;}
  footer  { height: 120px;}
  .links {display: flex; justify-content: center; align-items: center;}
  .icon1 { padding: 4px 12px;}
  .icon2 { padding: 4px 8px;}
  .icon3 { padding: 4px 4px;}
  .achievement-title { font-size: 20px;}
  .contact-header { font-size: 30px;}
  .contact-container { padding: 4px 20px; }
}
