* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}
@font-face {
  font-family: 'Cookie'; /*a name to be used later*/
  src: url('/assets/Cookie-Regular.ttf'); /*URL to font*/
}
body {
    background-color: var(--primary-bg-color);
    color: #fff;
    display: flex;
    min-height: 100vh;
    max-width: 1300px;
    margin: 0 auto;
}
:root {
    --primary-color: #7289DA;
    --secondary-color: #B6C2EC;
    --text-color: #949ba4;
    --text-color-alt: #888;
    --primary-bg-color: #1a1a1a;
    --secondary-bg-color: #242424;
}

/* Left Sidebar */
.sidebar {
    width: 300px;
    background-color: var(--secondary-bg-color);
    border: 1px solid var(--primary-color);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem;
    height: 32rem;
    position: sticky;

}

.profile {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    /* background-color: #333 */;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.title {
    color: var(--text-color);
    margin-bottom: 2rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.info-item span {
    margin-left: 1rem;
}
.info-item a {
    color: var(--text-color);
    text-decoration: none;
}
.info-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

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


/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    border: 1px solid var(--primary-color);
    margin-top: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    margin-right: 2rem;
}

.nav {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
    gap: 2rem;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative; 
    display: inline-block;
}


.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 0.5rem;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;

}

.service-card {
    background-color: var(--secondary-bg-color);
    padding: 1.5rem;
    border-radius: 10px;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: var(--text-color);
}

.service-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.service-card a:hover {
    color: var(--secondary-color);
}

.nav a.active {
    color: var(--primary-color);
    text-decoration: none; 
}

.content-wrapper {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

/* Portfolio Section Styles */


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: start;
    align-items: stretch;
}

.project-card {
    display: block;
    background-color: var(--secondary-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 15px;
    text-align: left;
}

.project-info h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
}


/* ================ The Timeline ================ */

.timeline {
    position: relative;
    width: 660px;
    margin: 0 auto;
    margin-top: 20px;
    padding: 1em 0;
    list-style-type: none;
  }
  
  .timeline:before {
    position: absolute;
    left: 50%;
    top: 0;
    content: ' ';
    display: block;
    width: 6px;
    height: 100%;
    margin-left: -3px;
    background: rgb(80,80,80);
    background: -moz-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(30,87,153,1)), color-stop(100%,rgba(125,185,232,1)));
    background: -webkit-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
    background: -o-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
    background: -ms-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
    background: linear-gradient(to bottom, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
    
    z-index: 5;
  }
  
  .timeline li {
    padding: 1em 0;
  }
  
  .timeline li:after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
  }
  
  .direction-l {
    position: relative;
    width: 300px;
    float: left;
    text-align: right;
  }
  
  .direction-r {
    position: relative;
    width: 300px;
    float: right;
  }
  
  .flag-wrapper {
    position: relative;
    display: inline-block;
    
    text-align: center;
  }
  
  .flag {
    position: relative;
    display: inline;
    background: var(--secondary-bg-color);
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    font-weight: 600;
    text-align: left;
  }
  
  .direction-l .flag {
    -webkit-box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    -moz-box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
  }
  
  .direction-r .flag {
    -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    -moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
  }
  
  .direction-l .flag:before,
  .direction-r .flag:before {
    position: absolute;
    top: 50%;
    right: -40px;
    content: ' ';
    display: block;
    width: 12px;
    height: 12px;
    margin-top: -10px;
    background: #141414;
    border-radius: 10px;
    border: 4px solid var(--primary-color);
    z-index: 10;
  }
  
  .direction-r .flag:before {
    left: -40px;
  }
  
  .direction-l .flag:after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    height: 0;
    width: 0;
    margin-top: -7px;
    border: solid transparent;
    border-left-color: var(--primary-color);
    border-width: 7px;
    pointer-events: none;
  }
  
  .direction-r .flag:after {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    height: 0;
    width: 0;
    margin-top: -8px;
    border: solid transparent;
    border-right-color:var(--primary-color);
    border-width: 8px;
    pointer-events: none;
  }
  
  .time-wrapper {
    display: inline;
    border: 1px solid var(--primary-color);
    border-radius: 1px;
    line-height: 1em;
    font-size: 0.66666em;
    color: white;
    vertical-align: middle;
  }
  
  .direction-l .time-wrapper {
    float: left;
  }
  
  .direction-r .time-wrapper {
    float: right;
  }
  
  .time {
    display: inline-block;
    padding: 4px 6px;
    background: var(--secondary-bg-color);
  }
  
  .desc {
    margin: 1em 0.75em 0 0;
    
    font-size: 0.77777em;
    font-style: italic;
    line-height: 1.5em;
  }
  
  .direction-r .desc {
    margin: 1em 0 0 0.75em;
  }
  
  /* ================ Timeline Media Queries ================ */
  
  @media screen and (max-width: 660px) {
  
  .timeline {
       width: 100%;
      padding: 4em 0 1em 0;
  }
  
  .timeline li {
      padding: 2em 0;
  }
  
  .direction-l,
  .direction-r {
      float: none;
      width: 100%;
  
      text-align: center;
  }
  
  .flag-wrapper {
      text-align: center;
  }
  
  .flag {
      z-index: 15;
  }
  
  .direction-l .flag:before,
  .direction-r .flag:before {
    position: absolute;
    top: -30px;
      left: 50%;
      content: ' ';
      display: block;
      width: 12px;
      height: 12px;
      margin-left: -9px;
      border-radius: 10px;
      border: 4px solid var(--primary-color);
      z-index: 10;
  }
  
  .direction-l .flag:after,
  .direction-r .flag:after {
      content: "";
      position: absolute;
      left: 50%;
      top: -8px;
      height: 0;
      width: 0;
      margin-left: -8px;
      border: solid transparent;
      border-bottom-color: var(--primary-color);
      border-width: 8px;
      pointer-events: none;
  }
  
  .time-wrapper {
      display: block;
      position: relative;
      margin: 4px 0 0 0;
      z-index: 14;
      border: none;
  }
  
  .direction-l .time-wrapper {
      float: none;
  }
  
  .direction-r .time-wrapper {
      float: none;
  }
  
  .desc {
      position: relative;
      margin: 1em 0 0 0;
      padding: 1em;
      border: 1px solid var(--primary-color);
      background: var(--secondary-bg-color);
      -webkit-box-shadow: 0 0 1px rgba(0,0,0,0.20);
      -moz-box-shadow: 0 0 1px rgba(0,0,0,0.20);
      box-shadow: 0 0 1px rgba(0,0,0,0.20);
      
    z-index: 15;
  }
  
  .direction-l .desc,
  .direction-r .desc {
      position: relative;
      margin: 1em 1em 0 1em;
      padding: 1em;
      
    z-index: 15;
  }
  
  }
  
  @media screen and (min-width: 400px) {
  
  .direction-l .desc,
  .direction-r .desc {
      margin: 1em 4em 0 4em;
  }
  
  }
  /*  */

  
  .form-container {
    width: 100%;
    max-width: 800px;
  }

  h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }

  input, textarea {
    width: 100%;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  input::placeholder, textarea::placeholder {
    color: var(--text-color-alt);
  }

  input:focus, textarea:focus {
    background-color: rgba(255, 255, 255, 0.1);
  }

  textarea {
    grid-column: 1 / -1;
    min-height: 150px;
    resize: vertical;
  }

  .main_button {
    background-color: var(--secondary-bg-color);
    color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    transition: opacity 0.3s ease;
  }

  .main_button:hover {
    opacity: 0.8;
  }

  .paper-plane {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-left: 4px;
  }

  .coffee_message {
    font-family: Cookie;
    font-size: 4rem;
    text-align: center;
    margin-top: 2rem;
    display: inline-block;
    margin-right: auto;
    margin-left: auto;
  }
  .coffee_message::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 0.5rem;
  }
  .alt_button {
    background-color: var(--primary-color);
    font-family: Cookie;
    font-size: 2rem;
    padding-left: 0.5rem;
    padding-top: 0;
    padding-bottom: 0;
    color: black;
  }

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
  body {
    flex-direction: column;
  }
  .programming-stats {
    width: 15rem;
  }
  .sidebar {
    width: 100%;
    margin: 0 0 1rem 0;
    padding: 1rem;
  }

  .main-content {
    padding: 1rem;
    margin: 0;
  }

  .nav {
    gap: 0.5rem;
    justify-content: center;
    flex-direction: column;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline li {
    padding: 1em 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .main_button {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
  .coffee_message {
    font-size: 2rem;
  }
  .alt_button svg { 
    width: 3rem;
  }
  .alt_button {
    padding-left: 0.5rem;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 1.5rem;
  }
}


/* Language switcher styles */
.language-switcher {
  margin-left: auto;
  padding-right: 1rem;
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--secondary-bg-color);
  color: var(--text-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  color: var(--primary-color);
  background-color: #2d2d2d;
}

.current-lang {
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.lang-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 1rem;
  background-color: var(--secondary-bg-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  width: 120px;
  overflow: hidden;
  display: none;
  z-index: 1000;
}

.lang-dropdown.show {
  display: block;
}

.lang-option {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.lang-option:hover {
  background-color: #2d2d2d;
  color: var(--primary-color);
}

.lang-option:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Update the existing nav class */
.nav {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
 
  .language-switcher {
      margin: 0 auto;
      padding-right: 0;
      margin-top: 1rem;
  }
  
  .lang-dropdown {
      right: 50%;
      transform: translateX(50%);
  }
}

.resume_button {
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
}

.ps {
  font-size: 0.8rem;
}
.ps a {
  color: var(--primary-color);
  text-decoration: none;
}


/* Modal Container */
.modal-container {
  visibility: hidden; 
  opacity: 0; 
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: visibility 0.3s, opacity 0.3s ease-in-out; 
}

.modal-container.show {
  visibility: visible; 
  opacity: 1; 
  align-items: flex-start;

}

.modal-content {
  background-color: var(--secondary-bg-color);
  border: 1px solid var(--primary-color);
  padding: 2rem;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  transform: scale(0.7); 
  opacity: 0; 
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  margin: 2rem auto; 
}

.modal-container.show .modal-content {
  transform: scale(1); 
  opacity: 1;
}

.close-button {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  color: var(--text-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: var(--primary-color);
}

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal-content h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.modal-description {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-links {
  display: flex;
  gap: 1rem;
}

.modal-button {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.modal-button:hover {
  opacity: 0.9;
}
.modal {
  display: none;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .modal-image {
    height: 200px;
  }
}

.normal-link {
  color: var(--primary-color);
  text-decoration: none;
}