/* Base styles and variables */
:root {
  --background-image-url: url('/BBR/images/blueprints.jpg');
  --primary-color: #61dafb;
  --secondary-color: #282c34;
  --text-color: #abb2bf;
  --background-color: #21252b;
  --accent-color: #98c379;
}

html {
  scroll-padding-top: 140px;
}

body {
  font-family: 'Fira Code', monospace;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  text-align: justify;
}

section {
  margin: 5rem 0rem;
}

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

a:hover {
  color: var(--accent-color);
}

/* Header and Navigation */
header {
  background-color: var(--secondary-color);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.strike {
  text-decoration: line-through;
  color:  #abb2bf;
}

.language-toggle, .theme-toggle {
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color) !important;
  padding: 0.5rem 1rem;
  margin-left: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.language-toggle:hover, .theme-toggle:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color) !important;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin-left: 1rem;
}

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

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

/* Burger Menu Styles */
.burger-menu {
    display: none; /* Hide burger menu by default */
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    z-index: 1100;
}

.burger-menu.active .nav-text {
    content: "&lt;<span class='nav-word'>...</span>&gt;";
}

.nav-text .nav-word {
    color: var(--secondary-color);
}

.site-name {
    cursor: context-menu;
    font-family: 'Fira Code', monospace;
    color: inherit;
    text-decoration: none;
}

/* Active State (for when menu is open) */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
#hero {
  background-color: var(--secondary-color);
  /*background-image: var(--background-image-url);*/ /* Hiden until a better image is found */ 
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  color: var(--primary-color);
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

#hero h2 {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.hidden-text {
  opacity: 0;
  transition: opacity 0.5s;
}

/* About Section */
#about {
  margin-bottom: 2rem;
  line-height: 2.2rem;
}

/* Skills Section */
#skills ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#skills li {
  background-color: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#skills i {
  font-size: 1.2rem;
}

#skills .svg-inline--fa {
  color: var(--accent-color);
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.project-card {
  background-color: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

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

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

.project-card .content {
  padding: 1rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tech-stack i {
  font-size: 1.5rem;
}

#projects .svg-inline--fa {
  color: var(--accent-color);
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  border-radius: 3px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  border-top: 4px dotted var(--accent-color); /* Dotted line marker */
  width: 43.5%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  /*background-color: var(--background-color);
  border: 4px solid var(--accent-color);
  */ /* Removed timeline markers */
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(odd)::after {
  left: -16px;
}

/* Education Section */
#education ul {
  list-style-type: none;
  padding: 0;
}

#education li {
  margin-bottom: 1rem;
}

#education h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.education-card {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.education-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.education-card p {
    word-wrap: break-word;
    hyphens: auto;
}

#education .svg-inline--fa {
  color: var(--accent-color);
}

/* Contact and Quote */
#contact form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 2rem auto;
}

#contact input,
#contact textarea {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid var(--primary-color);
  background-color: var(--secondary-color);
  color: var(--text-color);
}

#contact button {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

#contact button:hover {
  background-color: var(--accent-color);
}

#contact p{
  text-align: center;
}

.typography-quote {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    padding: 20px;
    line-height: 0.8;
    border: 3px solid var(--text-color);
    border-left: 0;
    border-right: 0;
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-color);
}

.quote-line {
    margin: 0;
    padding: 0;
}

.small {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.medium {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.large {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.large-highlight {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.quote-credit {
font-size: 0.9em;
    color: var(--accent-color);
    margin-top: 20px;
    border: 2px solid var(--primary-color);
    border-right: 0px;
    border-left: 0px;
    padding: 0.5rem;
    font-weight: bold;
}

.quote-translation {
    font-size: 0.8em;
    color: var(--text-color);
    margin-top: 15px;
    line-height: 0.9;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--text-color);
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
p, h3{
		text-align: left;
	}
	
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        font-size: 1.2rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .burger-menu {
        display: inline-block; /* Display burger menu only on mobile */
    }

    #hero {
        margin: 2rem 0rem;
    }

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

    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 70%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 15px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .large, .large-highlight {
            font-size: 2em;
        }

    .medium {
        font-size: 1.3em;
    }

    .small {
        font-size: 0.9em;
    }

    .quote-credit, .quote-translation {
        font-size: 0.8em;
    }

}

@media (min-width: 769px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
    .education-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
        grid-auto-flow: dense;
    }

    .education-card:nth-child(1),
    .education-card:nth-child(2) {
        grid-column: span 2;
    }
}

/* Light theme */
body.light-theme {
  --background-image-url: url('/BBR/images/whiteprints.png');
  --primary-color: #0066cc;
  --secondary-color: #f0f0f0;
  --text-color: #333333;
  --background-color: #ffffff;
  --accent-color: #ff6b6b;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 1s ease-in;
}
