*,
*::before,
*::after {
  box-sizing: border-box;
}

body { 
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  font-family: "Poppins", Helvetica, sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #3b2f4a;
  background: linear-gradient(to bottom, #f5f1ec, #e7e0d6);
  line-height: 1.2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;
}

body.loaded {
  opacity: 1;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  padding-top: 70px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #4a3a66dd;
  color: #f5f1ec;
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(74, 58, 102, 0.7);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
  flex-wrap: nowrap;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex-shrink: 1; 
  min-width: 0; 
}

.logo {
  font-weight: 700;
  font-size: 1.6rem;
  color: #f5f1ec;
  text-decoration: none;
  flex-shrink: 0;
  font-family: 'Segoe Script', cursive; 
  transition: color 0.3s ease, transform 0.3s ease;
}

.logo:hover {
  color: #d6876a;
  transform: scale(1.05);
}

nav {
  position: relative;
  flex-grow: 1;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s ease;
}

nav ul li a {
  color: #f5f1ec;
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s ease;
}

nav ul li a:hover {
  background-color: #d6876a99;
  color: #4a3a66;
  transform: sacale(1.05);
 }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1100;
  -webkit-appearance: none;
}

.menu-toggle span {
  display: block;
  height: 5px;            
  background-color: #f5f1ec; 
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

#lang-toggle {
  background-color: #7a698c;
  color: #f5f1ec;
  border: none;
  padding: 0.3rem 0.6rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: background-color 0.3s;
  flex-shrink: 1;
  font-size: 0.85rem;
  max-width: 100px;
  white-space: nowrap;
}

#lang-toggle:hover {
  background-color: #d6876a;
  color: #3b2f4a
  transform: scale(1.05);
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background-color: #7a698ccc;
    position: absolute;
    top: 60px;
    right: 1rem;
    width: 200px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow:0 4px 12px rgba(74, 58, 102, 0.5);
    max-height: 0;
    overflow: hidden;
    display: none;
  }

  nav ul.open {
    max-height: 500px;
    overflow: visible;
    display: flex;
  }

  nav ul.closed {
    max-height: 0;
    overflow: hidden;
    display: none;
  }

  nav ul li a {
    padding: 0.5rem 0;
    color: #f5f1ec;
  }

  .menu-toggle {
    order: 0;
    display: flex;
  }

  #lang-toggle {
    order: 1;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.8rem 0.5rem;
  }

  .header-content {
    flex-direction: row;        
    justify-content: space-between; 
    align-items: center;      
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.4rem;
    text-align: left;         
    flex-shrink: 0;            
  }

  .header-buttons {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    width: auto;  }

  .menu-toggle {
    display: flex;
  }

  #lang-toggle {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }

  .container {
    padding: 1rem;
    padding-top: 80px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .card-grid,
  .cert-list {
    grid-template-columns: 1fr;
  }

  nav ul {
    right: 0.5rem;
    width: 90%;
  }

  .btn-cv,
  .btn-card {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .cert-list {
    grid-template-columns: 1fr !important;
    justify-content: center;
    justify-items: center;
  }

  .cert-list li a {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 769px) {
  nav ul {
    display: flex !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

.hero {
  background-color: #7a698c;
  padding: 4rem 1rem;
  text-align: center;
  color: #f5f1ec;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.hero .container p{
  color: #f1f5ecb8;
}

.hero.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: 'Poppins', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero p {
  margin: 0;
  font-weight: 400;
  font-size: 1.2rem;
}

main.container {
  flex-grow: 1;
  padding-bottom: 2rem;
}

.section {
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
  padding: 0.5rem 1rem;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #3b2f4a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

p,
li {
  font-size: 1rem;
  color: #5a466d;
  line-height: 1.5;
}

.section p,
.section ul,
.section li {
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.cert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
}

.qa-meta {
  margin-top: 0.6rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  opacity: 0.85;
}

.qa-meta li {
  margin-bottom: 0.2rem;
}

.card{
  background-color: rgba(231, 224, 214, 0.2);
  border-radius: 8px;
  padding: 1em;
  color: #4a3a66;
  box-shadow: 0 2px 8px rgba(74, 58, 102, 0.25);
  transition: all 0.3s ease-in-out;
  margin-bottom: 1rem;
}

.card:hover{
  background-color: #d6876a;
  box-shadow: 0 6px 16px rgba(214, 134, 106, 0.5);
  transform: translateY(-3px);
}

.btn-card {
  display: inline-block;
  background-color: #d6876a;
  color: #f5f1ec;
  padding: 0.6rem 1.2rem;
  margin-top: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 5px rgba(74, 58, 102, 0.3);
}

.card:hover .btn-card {
  background-color: #4a3a66;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(74, 58, 102, 0.4);
}

#experience details,
.skills-container details{
  background-color: rgba(231, 224, 214, 0.2);
  border-radius: 8px;
  padding: 1em;
  color: #4a3a66;
  box-shadow: 0 2px 8px rgba(74, 58, 102, 0.25);
  transition: all 0.3s ease-in-out;
  margin-bottom: 1rem;
}

#experience details:hover,
.skills-container details:hover{
  background-color: #d6876a;
  box-shadow: 0 6px 16px rgba(214, 134, 106, 0.5);
  transform: translateY(-3px);
}

#experience details[open],
.skills-container details[open] {
  background-color: #cbc3c4b0;
  box-shadow: 0 8px 20px rgba(214, 134, 106, 0.35)
}

.skills-container summary,
#experience summary {
  font-weight: 600;
  font-size: 1.1rem;
  color: #3b2f4a;
  cursor: pointer;
  outline: none;
  list-style: none;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skills-container summary::marker,
#experience summary::marker {
  display: none;
}

.skills-container summary::-webkit-details-marker,
#experience summary::-webkit-details-marker {
  display: none;
}

.skills-container summary::after,
#experience summary::after {
  content: "▾";
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.skills-container details[open] summary::after,
#experience details[open] summary::after {
  transform: rotate(180deg);
}

.skills-container ul,
details ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.btn-cv {
  display: inline-block;
  background-color: #d6876a;
  color: #f5f1ec;
  padding: 0.6rem 1.2rem;
  margin-top: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 5px rgba(74, 58, 102, 0.3);
}

.btn-cv:hover {
  background-color: #4a3a66;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(74, 58, 102, 0.4);
}

.fade-slide {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

.cert-section {
  margin-bottom: 2.5rem;
  border-radius: 14px;
  background-color: rgba(231, 224, 214, 0.25);
  box-shadow: 0 4px 12px rgba(74, 58, 102, 0.15);
  padding: 1.2rem 1.4rem;
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              background-color 0.25s ease;
}

.cert-section:hover {
  background-color: #d6876a;
  box-shadow: 0 6px 16px rgba(214, 134, 106, 0.5);
  transform: translateY(-3px);
}

.cert-section[open] {
  background-color: #5f51763b;
  box-shadow: 0 8px 20px rgba(214, 134, 106, 0.35)
}

.cert-section summary {
  font-weight: 600;
  font-size: 1.1rem;
  color: #3b2f4a;
  cursor: pointer;
  outline: none;
  list-style: none;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cert-section summary::marker {
  display: none;
}

.cert-section summary::after {
  content: "▾";
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cert-section[open] summary::after {
  transform: rotate(180deg);
}

.cert-list {
  margin-top: 1.5rem;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cert-list li {
  list-style-type: none;
}

.cert-list li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  background-color: #e8e2d8ad;
  border: 1px solid rgba(122, 105, 140, 0.4);
  border-radius: 10px;
  padding: 2rem 1.2rem 1.2rem;
  color: #4a3a66;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 58, 102, 0.25);
  transition: all 0.3s ease-in-out;
  min-height: 120px;
  text-align: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.35;
}

.cert-list li a > * {
  margin-left: auto;
  margin-right: auto;
}

.cert-list li a::after {
  content: "✔";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: #fff;
  opacity: 0.8;
  transition: transform 0.3s ease-in-out;
}

.cert-list li a:hover {
  background-color: #d6876a;
  box-shadow: 0 6px 16px rgba(214, 134, 106, 0.5);
  transform: translateY(-3px);
  color: #2b1f38;
}

.cert-list li a:hover::after {
  transform: scale(1.3) rotate(15deg);
  opacity: 1;
}

footer {
  background-color: #4a3a66cc;
  color: #f5f1ec;
  text-align: center;
  padding: 1.5rem 1rem;
  font-weight: 300;
  font-size: 0.9rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid #d6876aaa;
}

footer .contact-icons {
  display: flex;
  gap: 1.5rem;
  font-size: 2rem;
}

footer .contact-icons a {
  color: #f5f1ec;
  transition: all 0.3s ease-in-out;
}

footer .contact-icons a:hover {
  color: #d6876a;
  transform: scale(1.1);
}

.footer-content p{
  color: #f5f1ec
}

.fa-solid, .fas {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal;
}


