/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #000000;
  color: #ffffff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Unified header with navigation */
header {
  padding: 20px 30px;
  background-color: #000000;
  border-bottom: 1px solid #333333;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.profile-photo {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

h1 {
  font-size: 1.5rem;
  font-weight: 300;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
}

/* Header navigation (right side) */
.header-nav {
  flex-shrink: 1;
  min-width: 0;
}

.header-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
}

.header-nav li {
  position: relative;
}

.header-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.header-nav a:hover {
  opacity: 0.7;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  right: 0;
  transform: none;
  background-color: #1a1a1a;
  min-width: 450px;
  padding: 15px 0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  z-index: 1000;
  margin-top: 10px;
  list-style: none;
}

.dropdown-menu::before {
    content: "";
    display: block;
    position: absolute;
    top: -10px;      /* Move up into the gap */
    left: 0;
    width: 100%;
    height: 10px;    /* The same height as your margin-top */
    background: transparent; /* Invisible */
}

.dropdown:hover .dropdown-menu {
  display: block !important;
}

.dropdown-menu li {
  padding: 0;
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s;
  white-space: normal;
}

.dropdown-menu a:hover {
  background-color: #2a2a2a;
  opacity: 1;
}

/* Social links - centered */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: #000000;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

.social-link svg {
  width: 48px;
  height: 48px;
  padding: 12px;
  background-color: #404040;
  border-radius: 50%;
  fill: #ffffff;
  transition: background-color 0.2s ease;
}

.social-link:hover svg {
  background-color: #505050;
}

/* Main content area */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #000000;
  padding: 40px 20px;
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
}

/* Introduction section */
.introduction {
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

.introduction p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

/* Blog posts section */
.blog-posts {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

/* Individual blog post */
.blog-post {
  margin-bottom: 60px;
}

.blog-post h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: #ffffff;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.blog-content {
  line-height: 1.7;
}

.blog-content p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.blog-content a {
  color: #6b9bd1;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.blog-content a:hover {
  opacity: 0.7;
}

.blog-content sup {
  font-size: 0.75em;
  vertical-align: super;
}

/* Blog separator */
.blog-separator {
  border: none;
  border-top: 1px solid #333;
  margin: 50px auto;
  max-width: 200px;
}

/* Individual blog page */
.blog-post-single {
  max-width: 700px;
  margin: 0 auto;
}

.blog-post-single h1 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: #ffffff;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
}

/* Post navigation */
.post-nav {
  max-width: 700px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.post-nav a {
  color: #6b9bd1;
  text-decoration: none;
  transition: opacity 0.2s;
}

.post-nav a:hover {
  opacity: 0.7;
}

/* Technological approach page */
.tech-approach {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.tech-approach h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: #ffffff;
}

.tech-approach h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #ffffff;
}

.tech-approach p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.tech-approach a {
  color: #6b9bd1;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.tech-approach a:hover {
  opacity: 0.7;
}

/* Responsive design */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .profile-photo {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 1.2rem;
  }

  .header-nav {
    width: 100%;
  }

  .header-nav ul {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    min-width: auto;
    margin-top: 10px;
    box-shadow: none;
    border: 1px solid #333;
  }

  .social-links {
    gap: 12px;
    padding: 15px;
  }

  .social-link svg {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  main {
    padding: 30px 15px;
  }

  .blog-post,
  .introduction,
  .blog-posts {
    max-width: 100%;
  }

  .blog-post h2 {
    font-size: 1.3rem;
  }

  .blog-post-single h1 {
    font-size: 1.5rem;
  }

  .post-nav {
    flex-direction: column;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .blog-post,
  .blog-posts,
  .introduction,
  .tech-approach {
    max-width: 600px;
  }

  .dropdown-menu {
    min-width: 400px;
  }
}
