/* This is the required project styling. Will contain essential CSS styles like:
   * Flex property
   * Grid layout
   * Cards and sections
*/

@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

/* variables */
:root {
  /* Colors */
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #ffffff;
  --text-color: #222222;
  --text-color-two: #ffffff;
  --bg-secondary: #000000;
  --card-background: #f4f4f4;
  --bg-secondary-two: #111111;

  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  /* Font Weight */
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  /* Max width */
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

[data-theme="dark"] {
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #000000;
  --text-color: #ffffff;
  --text-color-two: #222222;
  --bg-secondary: #ffffff;
  --card-background: #111111;
  --bg-secondary-two: #f4f4f4;
  --shadow: 0 2px 10px rgba(95, 95, 95, 0.2);
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Reset default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

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

/* Main styling */
body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-primary);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  height: 80px;
  width: 100%;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
}

.navbar .nav-link {
  margin: 0 1rem;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
}

.navbar #logo img {
  display: block;
  width: 40px;
}

.navbar .btn {
  margin-right: 1.5rem;
}

.fas.fa-arrow-right {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* hamburger */
.hamburger {
  margin-bottom: 0.1rem;
  display: none;
}

.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--bg-secondary);
}

/* Hero section */
#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-image {
  width: 350px;
  border-radius: 50%;
}

.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin: 2.5rem 0;
}

/* README Section */
.readme-section {
  margin: 3rem auto;
  max-width: 900px;
  padding: 0 1rem;
}

.readme-window {
  background: var(--card-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.readme-header {
  background: #f6f8fa;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #d0d7de;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .readme-header {
  background: #21262d;
  border-bottom: 1px solid #30363d;
}

.readme-icon {
  font-size: 1rem;
}

.readme-filename {
  font-family: "Fira Mono", monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.readme-body {
  padding: 2rem;
  color: var(--text-color);
  line-height: 1.7;
}

.readme-body h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.readme-body h2 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
  border-bottom: 1px solid var(--card-background);
  padding-bottom: 0.3rem;
}

.readme-body p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.readme-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.readme-table td {
  padding: 0.6rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-color);
}

.readme-table tr td:first-child {
  font-weight: 600;
  width: 35%;
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .readme-table td {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .readme-table tr td:first-child {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
  .readme-body {
    padding: 1.2rem;
  }
  .readme-body h1 {
    font-size: 1.4rem;
  }
  .readme-table td {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
}

/* Experience */
#experience {
  display: flex;
  flex-direction: column;
  margin: 1rem auto 3rem;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.experience-item {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 5px;
  border-left: 4px solid var(--primary-color);
  transition: 0.3s ease-in-out;
}

.experience-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-header h3 {
  font-size: 1.2rem;
  color: var(--text-color);
}

.experience-duration {
  font-size: 0.85rem;
  color: var(--text-color);
  opacity: 0.8;
  font-weight: var(--weight-semibold);
}

.experience-company {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 1rem;
}

.experience-details {
  list-style: disc;
  margin-left: 1.5rem;
}

.experience-details li {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

/* Projects */
#projects {
  display: flex;
  flex-direction: column;
  margin: 1rem auto 3rem;
}

#projects .btn {
  align-self: center;
  margin: 2rem 0;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.card .project-bio p {
  font-size: 0.83rem;
}

.card .project-bio h3 {
  font-size: 0.9rem;
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  position: relative;
  transition: 0.5s ease-in-out;
  width: 100%;
}

.project-bio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}

/* Education */
#education {
  display: flex;
  flex-direction: column;
  margin: 1rem auto 3rem;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.education-item {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 5px;
  border-left: 4px solid var(--primary-color);
  transition: 0.3s ease-in-out;
}

.education-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1rem;
}

.education-header h3 {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.education-header h4 {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: var(--weight-semibold);
  margin-bottom: 0.3rem;
}

.education-location {
  font-size: 0.85rem;
  color: var(--text-color);
  opacity: 0.7;
}

.education-meta {
  text-align: right;
  flex-shrink: 0;
}

.education-grade {
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: var(--weight-semibold);
  margin-bottom: 0.3rem;
}

.education-year {
  font-size: 0.85rem;
  color: var(--text-color);
  opacity: 0.8;
}

.education-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.9;
  margin-top: 0.5rem;
}

/* Contact */
#contact {
  display: flex;
  flex-direction: column;
  margin: 1rem auto 3rem;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: var(--weight-semibold);
  margin-bottom: 0.5rem;
  color: var(--text-color);
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--card-background);
  border-radius: 5px;
  font-family: "Raleway", sans-serif;
  font-size: 0.95rem;
  background: var(--bg-primary);
  color: var(--text-color);
  transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  cursor: pointer;
  border: none;
  font-family: "Raleway", sans-serif;
  font-weight: var(--weight-semibold);
}

.contact-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Footer */
#footer {
  background: #111111;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-height: 160px;
  text-align: center;
}

#footer a {
  font-size: 0.8rem;
  color: #fff;
}

#footer a:hover {
  opacity: 0.6;
}

#footer .social {
  margin: 0.9rem 0;
}

#footer .social img {
  width: 20px;
  height: 20px;
}

#footer .social a {
  margin: 0 0.5rem;
}

#footer p {
  font-size: 0.8rem;
}

/* Responsiveness */

@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    gap: 1rem;
  }

  .education-meta {
    text-align: left;
  }
}

@media (max-width: 670px) {
  .navbar .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    width: calc(80% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 5px;
    align-items: flex-start;
  }

  .navbar .btn {
    margin: 0;
    margin-top: 1rem;
  }

  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem;
    margin: 0 0.2rem;
  }

  .nav-menu li {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
  }

  .hamburger.active {
    border: 1px dotted gray;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .header-container .btn {
    border-radius: 5px;
    width: 80%;
  }

  .contact-form {
    padding: 0 1rem;
  }
}
