/* ===========================
   General Styles
=========================== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: url('../me/markus-spiske-8etPyxrbliQ-unsplash.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  line-height: 1.6;
}

header {
  background-color: rgba(31, 41, 55, 0.85);
  color: #818cf8;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

header h1 {
  margin: 0;
  font-size: 2em;
  letter-spacing: 1px;
}

/* ===========================
   Navigation Tabs
=========================== */
nav {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  border-bottom: 3px solid #818cf8;
}

nav button {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  margin: 0 5px;
  padding: 12px 25px;
  cursor: pointer;
  font-size: 1em;
  border-radius: 10px 10px 0 0;
  transition: all 0.3s ease;
  color: #fff;
  font-weight: 500;
}

nav button:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

nav button.active {
  background-color: #818cf8;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ===========================
   Main Content
=========================== */
main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.60);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

section {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

section.active {
  display: block;
  opacity: 1;
}

/* ===========================
   About Section
=========================== */
#about img {
  float: left;
  margin-right: 20px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #818cf8;
}

#about h3 {
  color: #818cf8; /* blue color like interest section headers */
}

#about p {
  color: #fff; /* keep paragraph text white */
  margin-top: 0;
  text-align: justify;
}

/* About section asymmetric frames */
.about-frames {
  display: grid;
  grid-template-areas: 
    "stack interests"
    "contact interests";
  grid-template-columns: 1fr 1.5fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 30px;
  clear: both;
}

.info-block.stack { grid-area: stack; }
.info-block.interests { grid-area: interests; }
.info-block.contact { grid-area: contact; }

.info-block {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.info-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

.info-block h3 {
  color: #818cf8;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.stack-list li {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.stack-list li:hover {
  background: rgba(129, 140, 248, 0.4);
  transform: translateY(-2px);
}

/* Contact icons */
.contact .social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.contact .social-links img {
  width: 22px !important;
  height: 22px !important;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.contact .social-links img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px #818cf8);
}

/* ===========================
   Projects Section
=========================== */
/* .project-card {
  background-color: rgba(255,255,255,0.2);
  padding: 20px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.project-card h3 {
  margin-top: 0;
  color: #818cf8;
} */

/* ===========================
   Chat Section
=========================== */
.chat-container {
  width: 100%;
  height: 600px;
  margin-top: 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.chat-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===========================
   Chat Button
=========================== */
.chat-link-button {
  padding: 12px 25px;
  background: linear-gradient(135deg, #818cf8, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
}

.chat-link-button:hover {
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 900px) {
  .about-frames {
    grid-template-areas:
      "stack"
      "interests"
      "contact";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

@media (max-width: 600px) {
  #about img {
    float: none;
    display: block;
    margin: 0 auto 20px;
  }

  nav {
    flex-direction: column;
    align-items: center;
    border-bottom: none;
  }

  nav button {
    margin: 5px 0;
  }

  main {
    padding: 20px;
  }
}
