/* 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: 55px;
}

.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: 150px;
  border-radius: 50%;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-10px);
  }
}

.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin: 5.5rem 0;
}
/* Projects */
#projects {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}

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

.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  grid-gap: 0.9rem;
}

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

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

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

.project-bio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  top: 160px;
  left: 10px;
}

/* 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: 1000px) {
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
}

@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) {
  .project {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-container .btn {
    border-radius: 5px;
    width: 80%;
  }
}

/* ==================== */
/* Devblogs Page Styles  */
/* ==================== */

.devblogs-header {
  margin-bottom: 0;
}

.devblogs-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.devblogs-container {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Devblog Card Styles */
.devblog-card {
  background: var(--card-background);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.devblog-card:nth-child(1) { animation-delay: 0.1s; }
.devblog-card:nth-child(2) { animation-delay: 0.2s; }
.devblog-card:nth-child(3) { animation-delay: 0.3s; }
.devblog-card:nth-child(4) { animation-delay: 0.4s; }
.devblog-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.devblog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.devblog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

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

.devblog-date i {
  margin-right: 0.4rem;
}

.devblog-tag {
  display: inline-block;
  background: var(--primary-color);
  color: #000;
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.devblog-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.devblog-title a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.devblog-title a:hover {
  color: var(--primary-color);
}

.devblog-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.devblog-read-more {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: var(--weight-semibold);
  color: var(--primary-color);
  transition: gap 0.3s ease;
  gap: 0.5rem;
}

.devblog-read-more:hover {
  gap: 0.75rem;
}

.devblog-read-more i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.devblog-read-more:hover i {
  transform: translateX(3px);
}

/* ======================== */
/* Devblog Article Styles    */
/* ======================== */

.devblog-article {
  margin-top: 6rem;
  margin-bottom: 4rem;
  max-width: 800px;
}

.devblog-article-header {
  margin-top: 4rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--card-background);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 1.5rem;
  transition: opacity 0.3s ease, gap 0.3s ease;
}

.back-link:hover {
  opacity: 1;
  gap: 0.75rem;
}

.devblog-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.devblog-article-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0;
}

.devblog-article-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.devblog-article-content .lead {
  font-size: 1.2rem;
  font-weight: var(--weight-semibold);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.devblog-article-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.devblog-article-content p {
  margin-bottom: 1.25rem;
}

.devblog-article-content ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.devblog-article-content ul li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

.devblog-article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.devblog-article-content ol li {
  margin-bottom: 0.5rem;
  list-style-type: decimal;
}

.devblog-article-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  font-weight: var(--weight-semibold);
}

.devblog-article-content a:hover {
  border-bottom-color: var(--primary-color);
}

.devblog-article-content a:visited {
  color: var(--secondary-color);
  opacity: 0.75;
}

.devblog-article-content a:visited:hover {
  border-bottom-color: var(--secondary-color);
}

.devblog-article-content pre {
  background: var(--card-background);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.devblog-article-content code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9rem;
}

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

/* Devblog Navigation */
.devblog-article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--card-background);
}

.devblog-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.devblog-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--card-background);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
  max-width: 45%;
}

.devblog-nav-link:hover:not(.disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.devblog-nav-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.devblog-nav-link.next {
  text-align: right;
  margin-left: auto;
}

.devblog-nav-link span:first-child {
  font-size: 0.85rem;
  color: var(--text-color);
  opacity: 0.7;
}

.devblog-nav-title {
  font-size: 0.95rem;
  font-weight: var(--weight-semibold);
  color: var(--text-color);
}

/* Responsive Devblog Styles */
@media (max-width: 768px) {
  .devblogs-header h1 {
    font-size: 2.25rem;
  }

  .devblog-card {
    padding: 1.5rem;
  }

  .devblog-title {
    font-size: 1.25rem;
  }

  .devblog-article-header h1 {
    font-size: 1.75rem;
  }

  .devblog-article-content h2 {
    font-size: 1.4rem;
  }

  .devblog-nav {
    flex-direction: column;
  }

  .devblog-nav-link {
    max-width: 100%;
  }

  .devblog-nav-link.next {
    text-align: left;
  }
}

/* ======================== */
/* Devblog Controls Styles   */
/* ======================== */

.devblog-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card-background);
  border-radius: 8px;
}

.devblog-search {
  position: relative;
  width: 100%;
}

.devblog-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  opacity: 0.5;
}

.devblog-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-color);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.devblog-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 205, 66, 0.2);
}

.devblog-search input::placeholder {
  color: var(--text-color);
  opacity: 0.5;
}

.devblog-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 150px;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: var(--weight-semibold);
  opacity: 0.7;
}

.filter-group select {
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-color);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.no-results {
  text-align: center;
  padding: 3rem;
  opacity: 0.7;
  font-size: 1.1rem;
}

.devblog-card.hidden {
  display: none;
}

/* ==================== */
/* Contact Page Styles  */
/* ==================== */

.contact-header {
  margin-bottom: 0;
}

.contact-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.contact-container {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-methods h2,
.contact-form-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card-background);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.25rem;
  color: #000;
}

.contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-details p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.contact-link {
  font-size: 0.95rem;
  color: var(--primary-color);
  font-weight: var(--weight-semibold);
  transition: opacity 0.3s ease;
}

.contact-link:hover {
  opacity: 0.8;
}

.contact-link i {
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: var(--weight-semibold);
}

.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid var(--card-background);
  border-radius: 8px;
  background: var(--card-background);
  color: var(--text-color);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 205, 66, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-color);
  opacity: 0.5;
}

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

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.contact-form .btn i {
  margin-left: 0.5rem;
}

.form-note {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 1rem;
}

.form-note i {
  margin-right: 0.25rem;
}

/* Response Info Cards */
.response-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card-background);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* Responsive Contact Styles */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .response-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-header h1 {
    font-size: 2.25rem;
  }

  .devblog-controls {
    padding: 1rem;
  }

  .filter-group {
    min-width: 100%;
  }
}
