html {
    scroll-behavior: smooth;
}

body {
    font-family: monospace, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0B0B12;
}

section {
    scroll-margin-top: 70px;
}

h2{
    font-size: 50px;
}

.topnav {
    position: fixed;
    background-color: #141423;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.topnav a {
    position: relative;
    display: block;
    color: #8B5CF6;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-weight: bold;
}

.topnav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 10%;
    height: 2px;
    background-color: #8B5CF6;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.topnav a.home::after,
.topnav a.home:hover::after {
    width: 0;
}

.topnav a:hover,
.topnav a.home {
    font-weight: bold;
    color: white;
}

.home-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 90px;
    min-height: 100vh;
    padding: 0 80px;
}

.home-image {
    flex: 0 0 auto;
}

.home-image img {
    width: min(32vw, 360px);
    height: auto;
    display: block;
}

.home-text {
    flex-wrap: nowrap;
    color: white;
    max-width: 500px;
}

.about-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    align-items: center;
    min-height: calc(100vh - 60px);
    padding: 0 80px;
    text-align: center;
}

.about-intro {
    font-size: 24px;
    font-weight: normal;
}

.about-details {
    font-size: 14px;
    font-weight: normal;
    max-width: 820px;
    line-height: 1.7;
}

.highlight {
    color: #8B5CF6;
    font-weight: bold;
}

.cv-link {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: bold;
}



#work-experience {
    min-height: 100vh;
    padding: 40px 40px 80px;
    color: white;
}

.work-container {
    max-width: 1000px;
    margin: 0 auto;
    color: white;
}

.work-title {
    text-align: center;
    font-size: 50px;
    font-style: italic;
    text-decoration: underline;
    margin-bottom: 70px;
    color: white;
}

.work-item {
    margin-bottom: 70px;
}

.work-item h3 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 10px;
    color: white;
}

.work-org {
    font-size: 16px;
    font-style: italic;
    color: #a9a9a9;
    margin: 0 0 6px 0;
}

.work-date {
    font-size: 16px;
    font-style: italic;
    color: #a9a9a9;
    margin: 0 0 18px 0;
}

.work-item ul {
    margin: 0;
    padding-left: 28px;
}

.work-item li {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: white;
}

#home {
    padding-top: 60px;
    box-sizing: border-box;
}

.topnav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #141423;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

#skills {
    min-height: 100vh;
    padding: 120px 40px 80px;
    color: white;
}

.skills-container {
    max-width: 1100px;
    margin: 0 auto;
}

.skills-title {
    text-align: center;
    font-size: 50px;
    font-style: italic;
    text-decoration: underline;
    margin-bottom: 70px;
    color: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.skill-card {
    background-color: #141423;
    border: 1px solid #2A2A40;
    border-radius: 16px;
    padding: 25px;
}

.skill-card h3 {
    color: #8B5CF6;
    margin-bottom: 15px;
    font-size: 22px;
}

.skill-card p {
    color: white;
    font-size: 16px;
    line-height: 1.7;
}

#projects {
    min-height: 100vh;
    padding: 20px 40px 80px;
    color: white;
}

.projects-container {
    max-width: 1100px;
    margin: 0 auto;
}

.projects-title {
    text-align: center;
    font-size: 50px;
    font-style: italic;
    text-decoration: underline;
    margin-bottom: 70px;
    color: white;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: #141423;
    border: 1px solid #2A2A40;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.project-image img {
    width: 260px;
    height: auto;
    display: block;
    border-radius: 12px;
}

.project-content {
    flex: 1;
}

.project-content h3 {
    color: white;
    font-size: 28px;
    margin-bottom: 10px;
}

.project-tech {
    color: #8B5CF6;
    font-weight: bold;
    margin-bottom: 14px;
}

.project-desc {
    color: white;
    font-size: 16px;
    line-height: 1.7;
}

.contact-section {
  min-height: 100vh;
  padding: 0px 20px 60px;
  background: #08080e67;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-container {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  background-color: #0B0B12;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.contact-info p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 25px;
  max-width: 400px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-links a {
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: 0.3s ease;
  width: fit-content;
}

.contact-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(5px);
}

.contact-form-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: none;
  outline: none;
  border-radius: 12px;
  background: #1e293b;
  color: white;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.contact-form button {
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #8B5CF6;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background: #8B5CF6;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info p {
    margin: 0 auto 25px;
  }

  .contact-links {
    align-items: center;
  }
}

.success-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.success-popup.show {
  display: flex;
}

.success-popup-content {
  width: 90%;
  max-width: 420px;
  background: #11141d;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.success-popup-content h3 {
  margin-bottom: 10px;
  color: white;
  font-size: 1.6rem;
}

.success-popup-content p {
  color: #cbd5e1;
  margin-bottom: 20px;
}

.success-popup-content button {
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  background: linear-gradient(90deg, #7c3aed, #8b5cf6);
  color: white;
}