/* ========== VARIABLES ========== */
:root {
  --bg-color: #edfbff;
  --heading-color: #001842;
  --logo-color: #00008c;
  --text-color: #0c0c0c;
  --accent-color: #2c43b8;
  --accent-active-color: #445bc1;
  --accent-hover-color: #040d6a;
  --border-color: #808080;

  --font-heading: 'Orbitron', sans-serif;
  --font-text: 'Roboto', sans-serif;
}

/* ========== RESET & GLOBAL ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-text);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: 1rem;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--heading-color);
}

h1 {
  color: var(--logo-color);
}

a {
  text-decoration: none;
  color: var(--accent-hover-color);

}

ul {
  list-style: none;
}

/* ========== HEADER ========== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

header h1, nav {
  flex-basis: 50%;
}

.nav_links {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.nav_links li {
  display: flex;
  align-items: center;
  height: 50px;
}

.nav_links li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  height: 100%;
  width: 100%;
  transition: background-color 0.3s ease;

}

.nav_links li a:hover {
  background-color: var(--accent-hover-color);
  color: var(--bg-color);
}

/* ========== HERO ========== */
.hero {
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.hero p {
  font-size: 0.85rem;
}

/* ========== MAIN CONTENT ========== */
.content {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}

/* Projects */
.projects {
  flex: 1;
}
.projects h3{
    text-align: center;
}
.projects ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.projects ul li {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.25rem;
}

/* Work Experience */
.work {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.roadmap {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}
.work article{
  padding: 1rem;
}
.work article p{
  margin-bottom: 1rem;
}
.work article > a{
    background-color: var(--accent-hover-color);
    color: var(--bg-color);
    width: max-content;
    padding: 0.5rem;
    border-radius: 10px;
    opacity: 0.7;
    transition: 0.3s;
}
.work article>a:hover{
    opacity: 1;
}

/* Education */
.education {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Review Section */
.review {
  padding-top: 1rem;
}

.review_section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.review_section article {
  flex: 1 1 30%;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  background-color: #f9f9f9;
}

/* ========== FOOTER ========== */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}

footer p {
  font-size: 0.75rem;
  color: var(--text-color);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .nav_links {
    flex-direction: row;
    align-items: center;
  }

  .nav_links li {
    width: 100%;
  }

  .content {
    flex-direction: column;
    gap: 2rem;
  }

  .projects ul {
    width: 100%;
    background-color: #d0f1f7;
    text-align: center;
    padding: 1rem;
  }

  .work article {
    background-color: #d0f1f7;
  }

  .work article > a{
    width: 100vw;
    text-align: center;
  }

  .education h3, .work h3 {
    text-align: center;
  }

  .review_section {
    flex-direction: column;
    align-items: center;
  }

  .review_section article {
    width: 90%;
  }
  /* ------------Articles Page-----------*/
  .articlepage{
    flex-direction: column;
  }
}


/* -----------Articles--------------- */
.articlepage{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex-wrap: wrap;
}
.articlepage section{
    display: flex;
    flex-wrap: wrap;
}
.articlepage h2{
    text-align: center;
}
.articlepage section>article{
    border: solid 1px var(--border-color);
    border-radius: 10px;
    margin: 1rem;
    padding: 1rem;
    flex: 1;
}

/* -----------Project page--------------- */
.projectspage{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.projectspage ul{
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.projectspage ul>li{
    border: solid 1px var(--border-color);
    border-radius: 10px;
    margin: 1rem;
    padding: 3rem;
    flex: 1;
}
.projectspage ul>li:hover{
    background-color: #d0f1f7;
    transition: 0.5s ease-in-out;
}


/* ------------Contact Page ---------------*/
.contactpage{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contactpage section{
    display: flex;
    flex-direction: column;
    border: solid 1px var(--border-color);
    padding: 2rem;
    border-radius: 5px;
    margin: 1rem;
    background-color: #d0f1f7;
}
.contactpage section h2{
    text-align: center;
}
form{
    display: flex;  
    flex-direction: column;
}

form>input{
    height: 2rem;
    border-radius: 5px;
}
form>textarea{
    border-radius: 5px;
}
.submitbtn{
    width: 100%;
    background-color: var(--accent-hover-color);
    color: var(--bg-color);
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 1.2rem;
    opacity: 0.7;
}

.submitbtn:hover{
    opacity: 1;
}

.contactpage section p{
    color: red;
    margin: 1rem 0;
}

