/* ====== IMPORTS ====== */
@import url('https://fonts.googleapis.com/css?family=Alegreya+Sans:100');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Poppins:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@400&family=Oswald:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Roboto+Slab:wght@400;600&display=swap");

/* ====== UNIVERSAL RESET ====== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden !important;
}
body {
  font-family: 'Alegreya Sans', 'Poppins', sans-serif;
  font-weight: 100;
  background: linear-gradient(315deg, rgba(101,0,94,1) 3%, rgba(60,132,206,1) 38%, rgba(48,238,226,1) 68%, rgba(255,25,25,1) 98%);
  animation: gradient 15s ease infinite;
  background-size: 400% 400%;
  background-attachment: fixed;
}

/* ====== NAVIGATION BAR ====== */
.container {
  width: 100%;
  margin: 0;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header {
  background-color: rgb(51, 51, 51);
  width: 100%;
  height: 80px;
  position: fixed;
  top: 0;
  z-index: 1000;
  left: 0;
}
#logo {
  height: 100px;
  margin-left: 40px;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
}
#logo:hover {
  transform: scale(1.1);
  cursor: pointer;
}
nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}
.nav-list {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}
.nav-list li {
  margin: 0 25px;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}
.nav-list li:nth-child(1) { animation-delay: 0.1s; }
.nav-list li:nth-child(2) { animation-delay: 0.2s; }
.nav-list li:nth-child(3) { animation-delay: 0.3s; }
.nav-list li:nth-child(4) { animation-delay: 0.4s; }
.nav-list li:nth-child(5) { animation-delay: 0.5s; }
.nav-list li:nth-child(6) { animation-delay: 0.6s; }
.nav-list li:nth-child(7) { animation-delay: 0.7s; }
.nav-list li:nth-child(8) { animation-delay: 0.8s; }
.nav-list li:nth-child(9) { animation-delay: 0.9s; }
.nav-list a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  transition: opacity 0.3s;
}
.nav-list a.active-nav {
  color: #ffd60a;
  font-weight: bold;
  border-bottom: 2px solid #ffd60a;
}
.nav-list a:hover {
  opacity: 0.6;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px);}
  to   { opacity: 1; transform: translateY(0);}
}

@media (max-width: 600px) {
  .nav-list {
    flex-direction: column;
    background: #222;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2000;
    padding: 0 0 8px 0;
    display: none; /* Start hidden for burger menu */
  }
  .nav-list li {
    margin: 8px 0;
    opacity: 1;
    animation: none;
  }
  .container {
    flex-direction: row;
    align-items: flex-start;
    padding: 0 4vw;
  }
  #logo {
    height: 54px;
    margin-left: 0;
  }
}


/* ====== LANGUAGE TOGGLE BUTTON (EN/DE) ====== */
.flex-cradle {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Helvetica, Arial, sans-serif;
}

.nav-lang-toggle {
  width: auto;
  margin-left: 50px;
  margin-top: -15px;
}

.slider-cradle {
  display: flex;
  width: 60px;    /* <-- change this! (was 100px) */
  text-align: center;
  border-radius: 3px;
  background: #cacaca;
  height: 28px;   /* <-- change this! (was 50px) */
  position: relative;
  overflow: hidden;
  box-shadow: inset 0px 0px 5px rgba(0,0,0,0.4);
  transition: background ease-in-out 0.5s;
}

.slider-cradle .option-1,
.slider-cradle .option-2 {
  width: 50%;
  line-height: 34px;   /* <-- change this! (was 50px) */
  font-size: 15px;     /* <-- optionally add this line for smaller text */
  color: white;
  font-weight: 500;
  user-select: none;
  z-index: 2;
  position: relative;
}

.slider-cradle .handle {
  cursor: pointer;
  width: 24px;    /* <-- change this! (was 46px) */
  height: 24px;   /* <-- change this! (was 46px) */
  border-radius: 3px;
  position: absolute;
  background: white;
  top: 2px;
  left: 2px;
  box-shadow: 0px 0px 15px rgba(0,0,0,0.4);
  transition: transform cubic-bezier(1, 0.11, 1, 1.04) 400ms;
  z-index: 1;
}

.slider-cradle.is-transitioned {
  background: #cacaca;
}

.slider-cradle.is-transitioned .handle {
  transform: translateX(35px);  /* <-- change this! (was 50px) */
}



/* ====== CORNER FLAG ====== */
.corner-intro {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  transform: rotate(-10deg);
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: rgba(255,255,255,0.7);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
  z-index: 999;
}
.flag {
  width: 20px;
  height: 14px;
  vertical-align: middle;
  margin-left: 4px;
}
#corner-flags { transition: opacity 0.5s; }
.hide-flags { opacity: 0; pointer-events:none; }
.show-flags { opacity: 1; pointer-events:auto; }

/* ====== BACKGROUND WAVE ====== */
@keyframes gradient {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
.wave {
  background: rgba(255,255,255,0.25);
  border-radius: 1000% 1000% 0 0;
  position: fixed;
  width: 200%;
  height: 12em;
  animation: wave 10s -3s linear infinite;
  bottom: 0;
  left: 0;
  z-index: -1;
}
.wave:nth-of-type(2) {
  bottom: -1.25em;
  animation: wave 18s linear reverse infinite;
}
.wave:nth-of-type(3) {
  bottom: -2.5em;
  animation: wave 20s -1s reverse infinite;
}
@keyframes wave {
  2%   { transform: translateX(1); }
  25%  { transform: translateX(-25%);}
  50%  { transform: translateX(-50%);}
  75%  { transform: translateX(-25%);}
  100% { transform: translateX(1);}
}

/* ====== MAIN SECTION LAYOUTS ====== */

/* ---- Home Section ---- */
.main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1440px;
  min-height: calc(100vh - 80px);
  height: calc(100vh - 80px);
  margin: 0 auto;
  padding: 0 60px;
  margin-top: -20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  font-weight: 10 !important;
}

.text-block {
  flex: 1 1 0;
  min-width: 320px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-right: 40px;
  overflow: hidden;
}
.expertise-wrapper {
  flex: 0 0 600px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  min-width: 600px;
  margin-top: 10px;
  overflow: hidden;
}
.expertise-tag-cloud, .skill-tag-cloud {
  width: 500px;
  height: 500px;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 140px;
}

/* ---- About Section ---- */
.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  height: calc(100vh - 80px);
  padding: 0;
  background: transparent;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  width: 100%;
  max-width: 1320px;
  flex-wrap: nowrap;
}
.profile-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 0 0 auto;
  min-width: 180px;
  min-height: 180px;
  margin-top: -200px;
  margin-left: -50px;
}
.hero-photo-wrapper {
  border-radius: 50%;
  margin: 0;
  box-shadow: 0 0 0 0 #fff;
  transition: box-shadow 0.45s cubic-bezier(.4,0,.2,1);
}
.hero-photo-wrapper img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid #fff;
  box-shadow: 0 0 30px 2px #1113;
  background: white;
  transition: box-shadow 0.45s cubic-bezier(.4,0,.2,1);
}
@media (min-width: 1200px) {
  .hero-photo-wrapper img { width: 280px; height: 280px; }
}
.hero-photo-wrapper.glow-effect:hover img,
.hero-photo-wrapper:hover img {
  box-shadow:
    0 0 0 8px #fff,
    0 0 40px 12px #f1c40f,
    0 0 12px 6px #fed330;
}
.about-text {
  flex: 1 1 550px;
  display: flex;
  flex-direction: column;
  background: rgba(23, 41, 47, 0.80);
  border-radius: 36px;
  padding: 34px 38px 34px 38px;
  box-sizing: border-box;
  color: #e3eff9;
  text-shadow: 0 2px 18px #000a;
  max-width: 950px;
  min-width: 340px;
  max-height: 570px;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  position: relative;
  left: 50px;
  top: -30px;
}
.about-text h2, .about-text h3 {
  color: #fff;
  text-shadow: 2px 4px 18px #151516, 0 0 12px #000c !important;
  margin: 0 0 14px 0;
}
.about-text h2 { font-size: 2.7rem; margin-top: 32px; }
.about-text h3 { font-size: 1.3rem; color: #ff5722; margin-bottom: 20px; }
.about-text p {
  color: #e7f3f7;
  text-shadow: 1px 2px 8px #151516, 0 0 4px #0008;
  margin-bottom: 18px;
  font-size: 1.10rem;
  background: none;
}
.social-links {
  margin-top: -5px;
  margin-bottom: 0px;
}
.social-links a {
  color: #ffe082;
  text-shadow: 1px 2px 7px #1d2230;
  font-size: 2.0rem;
  margin-right: 18px;
  transition: color 0.3s;
}
.social-links a:hover { color: #29cdb2; }

/* ====== SECTION FADE (all major sections) ====== */
.section-fade {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  min-height: calc(100vh - 80px);
  height: calc(100vh - 80px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), visibility 0.7s cubic-bezier(.4,0,.2,1);
  will-change: opacity, visibility;
  z-index: 2;
  box-sizing: border-box;
  overflow: hidden;
}
.section-fade.section-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  position: relative;
  display: flex !important;
}

/* Specific layout overrides for section-active states */
.main-content.section-active {
  flex-direction: row;
  justify-content: space-between;
  overflow: hidden;
}
.about-section.section-active {
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.expertise-section.section-active {
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.certificates-section.section-active {
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
  min-height: calc(100vh - 80px);
}
.languages-section.section-active {
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
  min-height: calc(100vh - 80px);
}



/* ====== Name Slice, Typing Animation, etc ====== */
.name-sliced {
  white-space: nowrap;
  width: 100%;
  display: grid;
  place-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 3vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 20px;
  position: relative;
}
.name-sliced > div {
  grid-area: 1/1/-1/-1;
  white-space: nowrap;
  width: 100%;
  display: inline-block;
  text-align: left;
}
.name-sliced .top {
  clip-path: polygon(0% 0%, 100% 0%, 100% 48%, 0% 58%);
  color: #000;
}
.name-sliced .bottom {
  clip-path: polygon(0% 60%, 100% 50%, 100% 100%, 0% 100%);
  color: transparent;
  background: linear-gradient(177deg, #ff002b 65%, #ffb703 65%);
  background-clip: text;
  -webkit-background-clip: text;
  background-clip: text;
}
.title { font-size: clamp(20px, 4vw, 28px); margin-bottom: 0; }
.static-text { color: black; font-weight: bold; margin-right: 10px;}
.dynamic-text { color: #ffd60a; font-weight: bold; }
.typing {
  display: inline-block;
  border-right: 2px solid #000;
  padding-right: 5px;
  animation: blink 0.7s step-end infinite;
  white-space: nowrap;
}
@keyframes blink {
  50% { border-color: transparent; }
}

/* Description */
.description {
  margin-top: 0;
  color: #fff1e6;
  max-width: 600px;
  line-height: 1.5;
  text-align: left;
}
.primary-line {
  font-size: clamp(16px, 2.5vw, 20px);
  margin-bottom: 0;
  text-align: justify;
  line-height: 1.6;
  text-justify: inter-word;
  font-weight: 400;
}
.colored { color: #caffbf; font-weight: 400; }
.scale-line {
  font-size: clamp(15px, 2vw, 18px);
  color: #000100;
  font-weight: 600;
  margin-top: 0;
  text-align: left;
}

/* Reveal Ball Text Animation */
.reveal-outer {
  width: 100%;
  display: flex;
  justify-content: center;
}
.reveal-container {
  position: relative;
  height: 70px;
  width: fit-content;
  margin: 0 auto;
}
.reveal-ball {
  position: absolute;
  top: 42px;
  left: 0px;
  height: 50px;
  width: 50px;
  background-color: #ff841f;
  border-radius: 50%;
  animation: ballmove 4s infinite alternate;
  box-shadow: 0px 3px 10px rgba(0,0,0,0.3);
  z-index: 1;
}
.reveal-text {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  color: #ffffff;
  position: relative; 
  z-index: 4;
  padding-top: 35px;
  padding-left: 0px;
  text-align: center;
}
@keyframes ballmove {
  0%   { transform: translate(0px,8.5px) scale(0.1);}
  10%  { transform: translateX(0px) scale(0.5);}
  40%  { transform: translateX(250px) scale(0.5);}
  60%  { transform: translate(250px,8.5px) scale(0.1);}
  70%  { transform: translate(250px,8.5px) scale(0.15);}
  80%  { transform: translate(250px,8.5px) scale(0.1);}
  90%  { transform: translate(250px,8.5px) scale(0.15);}
  100% { transform: translate(250px,8.5px) scale(0.1);}
}

/* ====== Social Buttons ====== */
.social-buttons {
  display: flex;
  gap: 20px;
  margin-top: 0;
  justify-content: flex-start;
}
.social-button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none;
  width: 50px;
  height: 50px;
  text-decoration: none;
  border-radius: 100%;
  background: #fff;
  text-align: center;
  transition: 0.3s;
}
.social-button::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  display: block;
  width: 0;
  height: 0;
  border-radius: 100%;
  transition: 0.3s;
}
.social-button:hover,
.social-button:focus {
  color: #fff;
}
.social-button:hover::after,
.social-button:focus::after {
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  margin-left: calc(-50% - 1px);
}
.social-button i {
  position: relative;
  z-index: 1;
  transition: 0.3s;
  font-size: 20px;
}
.social-button--linkedin { color: #0077b5; }
.social-button--linkedin::after { background: #0077b5; }
.social-button--mail { color: #e63946; }
.social-button--mail::after { background: #e63946; }
.social-button--github { color: #6e5494; }
.social-button--github::after { background: #6e5494; }

/* ====== EXPERTISE SECTION SLIDER (CARDS) ====== */
.expertise-section {
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0px 0 0 0;
  box-sizing: border-box;
  text-align: center;
  background: none;
  width: 100%;
  margin-top: 40px;
  overflow: hidden;
}
.expertise-main-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: #e3eff9;
  max-width: 90vw;
  margin: 0px auto 30px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.expertise-subheading {
  font-size: 1.1rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 14px;
  font-weight: 500;
  max-width: 90vw;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  letter-spacing: 0.5px;
  margin-top: -15px;
}
.gradient-text {
  background: linear-gradient(to right, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.expertise-flex-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}
.contenedor {
  width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
}
.card {
  width: 320px;
  height: 460px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #293241;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.4s ease-in-out;
  position: absolute;
  margin-top: -50px;
}
.card-image {
  padding: 16px;
  text-align: center;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-image img {
  max-width: 100%;
  max-height: 118%;
  border-radius: 10px;
}
.card-content {
  padding: 14px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 250px;
}
.card-content h3 {
  font-size: 22px;
  color: #ffd60a;
  font-weight: bold;
  margin: 0 0 14px 0;
  text-align: center;
  letter-spacing: 0.5px;
}
.card-content p {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.65;
  text-align: justify;
  text-align-last: left;   /* or try center for a different feel */
  margin: 0;
  font-weight: 400;
  hyphens: auto;           /* Helps words break neatly if needed */
}



/* Card Depth Positioning */
.principal {
  left: calc(50% - 150px);
  z-index: 3;
}
.siguiente {
  left: calc(50%);
  z-index: 2;
  transform: scale(0.9);
  filter: blur(3px);
}
.siguiente2 {
  left: calc(50% + 160px);
  z-index: 1;
  transform: scale(0.75);
  filter: blur(6px);
}
.anterior {
  left: calc(50% - 300px);
  z-index: 2;
  transform: scale(0.9);
  filter: blur(3px);
}
.anterior2 {
  left: calc(50% - 460px);
  z-index: 1;
  transform: scale(0.75);
  filter: blur(6px);
}
/* Card Navigation */
.card-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.dot {
  height: 10px;
  width: 10px;
  margin: 0 3px;
  background-color:  #e3f2fd;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}
.active-dot {
  background-color: #ff5400;
  width: 20px;
  border-radius: 10px;
}
.buttons { display: flex; gap: 10px; }
.next-button, .previous-button {
  width: 36px;
  height: 36px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.next-button {
  background-color: #ffff3f;
  color: #04080f;
}
.previous-button {
  background-color: #eee;
  color: #333;
}
.next-button:hover, .previous-button:hover {
  background-color: #666;
  color: white;
}
/* Transparent Click Zones */
#div-transparent-previous, #div-transparent-next {
  position: absolute;
  top: 0;
  height: 100%;
  width: 150px;
  z-index: 4;
  cursor: pointer;
}
#div-transparent-previous { left: 0; }
#div-transparent-next { right: 0; }
.ocultar { display: none; }

@media (max-width: 600px) {
  .contenedor {
    flex-direction: column;
    align-items: stretch;
    position: static;
    width: 100%;
    min-width: unset;
  }
  .card {
    position: static !important;
    margin: 10px 0 !important;
    width: 96vw !important;
    max-width: 360px;
    height: auto;
    left: auto !important;
    transform: none !important;
    filter: none !important;
  }
}


/* ====== LANGUAGES SECTION (INTEGRATED) ====== */
.languages-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100vh - 80px);
  height: auto;
  padding-top: 0px;
  box-sizing: border-box;
  width: 100%;
  background: transparent;
  overflow-y: auto;
  overflow-x: hidden;
}
.Language-heading {
  font-size: 1rem;
  font-weight: 500;
  color: #e3eff9;
  max-width: 90vw;
  margin: 25px auto 20px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gradient-text-language {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
   margin-bottom: 44px;
}
.lang-cards-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  padding: 0 30px 40px;
  flex-wrap: wrap;
  margin-top: 120px;
}
.lang-card {
  background: #fff;
  border-radius: 22px;
  /*box-shadow: 0 4px 22px #ecead3;*/
  padding: 25px 25px 25px;
  width: 304px;
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.18s, transform 0.4s ease;
  padding: 18px 14px 20px;
}
.lang-card:hover {
  box-shadow: 0 8px 32px #e4e2c7;
  transform: translateY(-8px) rotateX(4deg);
}
.lang-card-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 4px 0 4px;
  letter-spacing: 2px;
  text-align: center;
}
.lang-card-imgbox {
  width: 170px;
  height: 200px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
  background: #fff;
}
.lang-card-imgbox img {
  width: 250px;
  height: 250px;
  object-fit: contain;
}
.lang-card-level {
  width: 100%;
  padding: 10px 2px;
  margin-bottom: 10px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 12px;
  background: #f7f7f7;
}
.lang-card-desc {
  width: 100%;
  min-height: 54px;
  padding: 14px 7px;
  font-size: 1.0rem;
  border-radius: 12px;
  background: #edede9;
  color: #222 !important;
  font-weight: 400;
  text-align: left;
  display: block;
  word-break: normal;
  hyphens: auto;
  overflow-wrap: break-word;
  line-height: 1.4;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* ====== CERTIFICATES SECTION ====== */
.certificates-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 80px);
    height: auto;
    padding-top: 0px;
    box-sizing: border-box;
    width: 100%;
    background: transparent;
    overflow-y: auto;
    overflow-x: hidden;
}
.Certificates-heading {
  font-size: 1rem;
  font-weight: 500;
  color: #e3eff9;
  max-width: 90vw;
  margin: 0px auto 0px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gradient-text-certificates {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cert-cards-container {
    margin-top: 120px;
    min-height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 1rem 2rem 4rem 2rem;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.property-card {
  min-height: 28em;
  width: 20.5em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 20px 20px 30px rgba(0,0,0,0.2), -20px -20px 30px rgba(255,255,255,0.8);
}
.property-image {
  height: 14em;
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #ffffff;
  transition: all 0.4s ease;
}
.property-description {
    margin-top: 5em;
    height: 20em;
    /*background: linear-gradient(to right, #2A7B9B, #57C785, #EDDD53);*/
   

background-image: linear-gradient(315deg, #f1dfd1 0%, #f6f0ea 74%);
    /*background: linear-gradient(to right, rgb(192,192,192), rgb(224,224,224), rgb(245,245,245));*/
    height: 14.5em;
    width: 100%;
    position: absolute;
    bottom: 0;
    transition: all 0.4s ease;
    padding: 14px 7px 14px 7px;
    text-align: center;
    color: #333;
    box-sizing: border-box;
    border-radius: 0 0 16px 16px;
}
.property-description h5 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
    text-align: center;
    margin-bottom: 0.5em;
    margin-top: 0;
    letter-spacing: 0.5px;
}
.property-description p {
    font-family: 'Poppins', 'Alegreya Sans', Arial, sans-serif;
    font-size: 0.9rem;
    color: #222;
    font-style: normal;
    font-weight: 400;
    text-align: left;   /* <-- Change this */
    text-justify: inter-word;
    margin: 20px ;
    padding: 0 18px 0 18px;  /* <-- Add more side padding */
    max-width: 100%;
    line-height: 1.5;
    box-sizing: border-box;
    word-break: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}
.property-social-icons {
  width: 1em;
  height: 1em;
  background-color: black;
  position: absolute;
  bottom: 1em;
  left: 1em;
  transition: all 0.4s ease;
}
.property-card:hover .property-description {
  height: 0;
  padding: 0 1em;
  overflow: hidden;
}
.property-card:hover .property-image {
  height: 18em;
}
.property-card:hover .property-social-icons {
  background-color: white;
}
.property-card:hover .property-social-icons:hover {
  background-color: blue;
  cursor: pointer;
}

/* ====== WORK/PROJECTS SECTION ====== */
.work_heading {
  margin-top: 42px;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 100;
  font-size: 1.7rem;
  letter-spacing: 1px;
  padding: 0;
  border-radius: 10px;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.work_subheading {
    font-family: 'Poppins', 'Alegreya Sans', Arial, sans-serif;
    font-weight: 100 !important;
    font-style: normal !important;
    font-size: 1.1rem;
    color: #f7fff7;
    margin: 0 auto 0 auto;
    padding-bottom: 6px;
    max-width: 640px;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.5;
}
.work_list_ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  grid-column-gap: 40px;
  gap: 40px;
  grid-row-gap: 40px;
  padding: 15px 80px 120px 80px;
  list-style: none;
  margin-top: 80px;
}
.work_list_item {
  position: relative;
  background: linear-gradient(to right, #bcb8b1, #f4f3ee);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19),
    0 6px 6px rgba(0, 0, 0, 0.23);
  transition: transform 0.2s ease;
}
.work_list_item:hover {
  transform: translateY(-5px);
}
.work_list_item img {
  height: 300px;
  width: 100%;
  object-fit: contain;
  background: #f8f8f8;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.work_info {
  padding: 15px;
  text-align: center;
}
.work_info h3 {
  font-size: 18px;
  line-height: 1.4;
  text-transform: none;
}
.work_overview {
  position: absolute;
  inset: 0;
  padding: 25px 25px;
  background: linear-gradient(to right, #bcb8b1, #f4f3ee);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(101%);
  transition: transform 0.6s ease-in;
  overflow: visible !important;
  overflow-y: auto;
  padding-top: 25%;
}
.work_overview p {
  font-weight: 400 !important;
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
  width: 90%;
  margin: 0 auto 40px auto;
  padding: 0 10px;
  hyphens: auto;
  word-break: break-word;
}
.work_list_item:hover .work_overview {
  transform: translateY(0%);
}
.work_overview p {
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
  width: 90%;
  margin: 0 auto 40px auto;
  padding: 0 10px;
  hyphens: auto;
  word-break: break-word;
}
/* --- Fix Work Section Display --- */
.work-section.section-active {
  display: block !important;
  height: calc(100vh - 80px);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: 60px;
}
/* SOCIAL LINKS UNDER EACH work */
.work_overview .social-links {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 0 0;
}
.social-links a {
  font-size: 22px;
  color: #333;
  transition: color 0.3s ease;
  justify-content: center;
  align-items: center;
}
.social-links a:hover {
  color: #ffd60a;
}

/* ===== UPCOMINGPROJECTS SECTION ===== */
.upcomingprojects_heading {
  margin-top: 42px;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 100;
  font-size: 1.7rem;
  letter-spacing: 1px;
  padding: 0;
  border-radius: 10px;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.upcomingprojects_subheading {
    font-family: 'Poppins', 'Alegreya Sans', Arial, sans-serif;
    font-weight: 100 !important;
    font-style: normal !important;
    font-size: 1.1rem;
    color: #f7fff7;
    margin: 0 auto 0 auto;
    padding-bottom: 6px;
    max-width: 640px;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.5;
}
.upcomingprojects_list_ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  grid-column-gap: 40px;
  gap: 40px;
  grid-row-gap: 40px;
  padding: 15px 80px 120px 80px;
  list-style: none;
  margin-top: 85px;
}
.upcomingprojects_list_item {
  position: relative;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19),
    0 6px 6px rgba(0, 0, 0, 0.23);
  transition: transform 0.2s ease;
}
.upcomingprojects_list_item:hover {
  transform: translateY(-5px);
}
.upcomingprojects_list_item img {
  height: 300px;
  width: 100%;
  object-fit: contain;
  background: #f8f8f8;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.upcomingprojects_info {
  padding: 15px;
  text-align: center;
}
.upcomingprojects_info h3 {
  font-size: 18px;
  line-height: 1.4;
  text-transform: none;
}
.upcomingprojects_overview {
  position: absolute;
  inset: 0;
  padding: 25px 25px;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(101%);
  transition: transform 0.6s ease-in;
  overflow: visible !important;
  overflow-y: auto;
  padding-top: 25%;
}
.upcomingprojects_overview p {
  font-weight: 400 !important;
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
  width: 90%;
  margin: 0 auto 40px auto;
  padding: 0 10px;
  hyphens: auto;
  word-break: break-word;
}
.upcomingprojects_list_item:hover .upcomingprojects_overview {
  transform: translateY(0%);
}
.upcomingprojects_overview p {
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
  width: 90%;
  margin: 0 auto 40px auto;
  padding: 0 10px;
  hyphens: auto;
  word-break: break-word;
}
/* --- Fix Work Section Display --- */
.upcomingprojects-section.section-active {
 display: block !important;
 height: calc(100vh - 80px);
 overflow-y: auto !important;
 overflow-x: hidden !important;
 padding-bottom: 60px;
}
/* SOCIAL LINKS UNDER EACH work */
.upcomingprojects_overview .social-links {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 0 0;
}
.social-links a {
  font-size: 22px;
  color: #333;
  transition: color 0.3s ease;
  justify-content: center;
  align-items: center;
}
.social-links a:hover {
  color: #ffd60a;
}

/* ====== FOOTER ====== */
#main-footer {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0px 10px;
  font-size: 15px;
  color: #fff;
  background: none;
  box-shadow: none;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 20;
  gap: 700px;  
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
}
.footer-left, .footer-right {
  opacity: 0.98;
  font-weight: 400;
}
.footer-dev-text {
  color: #fff;
}
.footer-heart {
  color: #e25555;
  font-size: 1.1em;
  vertical-align: middle;
}
.footer-name {
  color: #3c096c/*orange*/;
  font-weight: 600;
  margin-left: 5px;
}
body > #main-footer {
  margin-top: auto;
}
@media (max-width: 600px) {
  #main-footer {
    flex-direction: column;
    text-align: center;
    padding: 14px 6px;
    gap: 4px;
  }
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1200px) {
  .main-content, .about-section, .expertise-section {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 3vw;
    min-height: calc(100vh - 80px);
    height: auto;
    max-height: none;
    overflow: hidden;
  }
  .certificates-section, .languages-section {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 3vw;
    min-height: calc(100vh - 80px);
    height: auto;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .text-block, .expertise-wrapper, .about-container, .contenedor {
    max-width: 100%;
    min-width: unset;
    width: 100%;
    padding: 0;
  }
  .about-text {
    max-width: 98vw;
    min-width: unset;
    padding: 16px 7vw;
    font-size: 1.01rem;
    max-height: none;
    margin-bottom: 22px;
    align-items: center;
    overflow-y: auto;
  }
  .profile-wrapper { margin-bottom: 10px; }
  .contenedor { min-width: unset; }
  .cert-cards-container, .lang-cards-container {
      padding: 1rem 1rem 3rem 1rem;
      gap: 20px;
  }
  .property-card, .lang-card {
      width: 18em;
      height: 26em;
  }
}
@media (max-width: 1200px) {
  .about-section {
    min-height: auto;
    height: auto;
    max-height: none;
  }
  .about-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    max-width: 98vw;
    padding: 0 2vw;
  }
  .about-text {
    max-width: 98vw;
    padding: 16px 7vw;
    min-width: unset;
    font-size: 1.01rem;
    max-height: none;
    margin-bottom: 22px;
    align-items: center;
  }
  .profile-wrapper { margin-bottom: 10px; }
}
@media (max-width: 800px) {
  .expertise-tag-cloud, .skill-tag-cloud { width: 295px; height: 295px; }
  .main-content, .about-section, .expertise-section, .certificates-section, .languages-section { padding: 0 2vw; margin-top: 80px; }
  .corner-intro { width: 180px; font-size: 13px; padding: 7px; right: 6px; bottom: 6px; }
  .banner { height: 120px; }
  .name-sliced { font-size: 1.2rem; }
  .social-button { width: 38px; height: 38px; font-size: 16px; }
  .hero-photo-wrapper img { width: 120px; height: 120px; }
  .contenedor { width: 98vw; min-width: unset;}
  .Certificates-heading, .Language-heading {
      font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  .property-card, .lang-card {
      width: 16em;
      height: 24em;
  }
}
@media (max-width: 600px) {
  .main-content, .about-section, .expertise-section, .certificates-section, .languages-section { padding: 0 1vw; margin-top: 80px; min-height: 420px; height: auto;}
  .expertise-tag-cloud, .skill-tag-cloud { width: 160px; height: 160px;}
  .corner-intro { font-size: 11px; width: 120px; }
  .about-text { padding: 9vw 2vw; font-size: 1.00rem; }
  .hero-photo-wrapper img { width: 90px; height: 90px;}
  .contenedor { width: 98vw; }
  .property-card, .lang-card {
      width: 90vw;
      height: auto;
      max-height: 28em;
  }
  .property-image {
      height: 12em;
  }
  .property-description {
      margin-top: 8em;
      height: auto;
      padding-bottom: 1em;
  }
  .property-card:hover .property-image {
      height: 16em;
  }
}
@media (max-width: 420px) {
  .lang-card {
    width: 90%;
  }
}

.upcomingprojects-section img,
.upcomingprojects_card img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====== ACHIEVEMENTS SECTION (award1.css) ====== */
.achievements-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100vh - 80px);
  height: auto;
  padding-top: 16px;
  box-sizing: border-box;
  width: 100%;
  background: transparent;
  overflow-y: auto;
  overflow-x: hidden;
}
.achievements-heading {
  font-size: 1.7rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  color: #6366f1;
  margin: 25px auto 40px;
  text-align: center;
  letter-spacing: 1px;
  background: linear-gradient(to right, #00c6ff, #0072ff);/*linear-gradient(90deg, #6a11cb 0%, #2575fc 100%)*/;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.achievement-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  margin-top: 120px;
}
.achievement-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.08);
  display: flex;
  flex-direction: column;
  width: 350px;
  height: 500;          /* <-- CHANGED */
  min-height: 400px;     /* Optional, lower if you want */
  max-width: 90vw;
  margin-bottom: 10px;
  transition: transform 0.3s;
  overflow: hidden;
  padding-bottom: 0;
}

.achievement-card:hover {
  transform: translateY(-8px) scale(1.03);
}
.achievement-image {
  width: 100%;
  background: #f4f4ff;
  border-radius: 0;
  padding: 8px 8px 0 8px;  /* Less vertical padding, no bottom pad */
  text-align: center;
  display: flex;
  align-items: flex-start; /* align image to top */
  justify-content: center;
  /* min-height: 190px; */  /* Remove or set to a smaller value if needed */
  min-height: 100px;        /* Try a lower value */
  box-sizing: border-box;
}
.achievement-image img {
  width: 98%;
  height: 170px;           /* Slightly less than before */
  object-fit: contain;
  border-radius: 20px 20px 0 0;
  background: #f4f4ff;
  margin: 0 auto;
  display: block;
}
.achievement-content {
  padding: 12px 18px 12px 18px;   /* Was 18px 22px 22px 22px */
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
}
.achievement-title {
  color: #1a1a1a;
  font-size: 1.15rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  margin-bottom: 3px;
  text-align: center;
}
.achievement-issuer {
  font-size: 1rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  color: #323232;
  margin-bottom: 18px;
  text-align: left;
}
.achievement-details {
  color: #444;
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: left;
  font-family: 'Oswald', sans-serif;
  font-weight: 100;
  letter-spacing: 0.1px;
  line-height: 1.6;
  margin-bottom: 7px;
}
.achievement-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;  /* <--- add this line! */
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 5px;
  padding-bottom: 5px;
  border-top: 1px solid #eee;
}
.achievement-profile {
  display: flex;
  align-items: center;
}
.achievement-profile img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  margin-right: 8px;
  background: #fff;
  border: 1px solid #eee;
  padding: 2px;
}
.achievement-profile-info {
  display: flex;
  flex-direction: column;
}
.achievement-profile-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #252525;
  font-family: 'Oswald', sans-serif;
}
.achievement-profile-role {
  font-size: 0.8rem;
  color: #888;
   font-weight: 500;
}

.achievement-badge {
  background: linear-gradient(to right, #00c6ff, #0072ff);/*linear-gradient(90deg, #6a11cb 0%, #2575fc 100%)*/;
  color: #fff;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .achievement-cards-container {
    gap: 1.2rem;
    max-width: 99vw;
  }
  .achievement-card {
    width: 95vw;
    min-width: unset;
    margin-bottom: 16px;
  }
  .achievements-heading {
    font-size: 1.4rem;
  }
}

/* ====== BLOG SECTION ====== */
.blog-slider {
  width: 95%;
  position: relative;
  max-width: 1000px;
  margin: auto;
  background: #fff;
  box-shadow: 0px 14px 80px rgba(34, 35, 58, 0.2);
  padding: 25px;
  border-radius: 25px;
  height: 430px;
  transition: all .3s;
}

@media screen and (max-width: 992px) {
  .blog-slider {
    max-width: 680px;
    height: 400px;
  }
}

@media screen and (max-width: 768px) {
  .blog-slider {
    min-height: 500px;
    height: auto;
    margin: 180px auto;
  }
}

@media screen and (max-height: 500px) and (min-width: 992px) {
  .blog-slider {
    height: 350px;
  }
}

.blog-slider__item {
  /* No display:flex here! Swiper manages slide display. */
  
  display: flex;
  align-items: center;


}

.blog-slider__img {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  flex-grow: 0;
  flex-basis: 300px;
  background-image:  #fff /* #d3d3d3/* linear-gradient(147deg, #fe8a39 0%, #fd3838 74%)*/ ;
  box-shadow: 4px 13px 30px 1px rgba(252, 56, 56, 0.2);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  /*transform: translateX(-50px);*/
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  }

.blog-slider__img:after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: #fff /* #d3d3d3/* linear-gradient(147deg, #fe8a39 0%, #fd3838 74%)*/ ;
  border-radius: 20px;
  opacity: 0.2; /* lower if you want image more visible */
  z-index: 2;
  pointer-events: none;
}

.blog-slider__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: all .3s;
}

@media screen and (max-width: 768px) {
  .blog-slider__img {
    transform: translateY(-50%);
    width: 90%;
  }
}

@media screen and (max-width: 576px) {
  .blog-slider__img {
    width: 95%;
  }
}

.blog-slider__content {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 30px;
  padding-left: 40px;  /* Add this line or increase if already exists */
}


@media screen and (max-width: 768px) {
  .blog-slider__content {
    margin-top: -80px;
    text-align: center;
    padding: 0 30px;
  }
}

@media screen and (max-width: 576px) {
  .blog-slider__content {
    padding: 0;
  }
}

.blog-slider__code {
  color: #7b7992;
  margin-bottom: 15px;
  display: block;
  font-weight: 500;
}

.blog-slider__title {
  font-size: 24px;
  font-weight: 700;
  color: #0d0925;
  margin-bottom: 20px;
}

.blog-slider__text {
  color: #4e4a67;
  margin-bottom: 30px;
  line-height: 1.5em;
  font-weight: 700; /* <--- Add this line */
}

.blog-slider__button {
  display: inline-flex;
  background-image: linear-gradient(147deg, #fe8a39 0%, #fd3838 74%) ;
  padding: 15px 35px;
  border-radius: 50px;
  color: #fff;
  box-shadow: 0px 14px 80px rgba(252, 56, 56, 0.4);
  text-decoration: none;
  font-weight: 500;
  justify-content: center;
  text-align: center;
  letter-spacing: 1px;
}

@media screen and (max-width: 576px) {
  .blog-slider__button {
    width: 100%;
  }
}

.blog-slider__pagination {
  position: absolute;
  z-index: 21;
  right: 20px;
  width: 11px !important;
  text-align: center;
  left: auto !important;
  top: 50%;
  bottom: auto !important;
  transform: translateY(-50%);
}

@media screen and (max-width: 768px) {
  .blog-slider__pagination {
    transform: translateX(-50%);
    left: 50% !important;
    top: 205px;
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.swiper-pagination-bullet {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 11px;
  background: #062744;
  opacity: 0.2;
  transition: all .3s;
  margin: 12px 0;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #d3d3d3;
  height: 38px;
  width: 22px;
  box-shadow: 0px 0px 20px rgba(252, 56, 56, 0.3);
}

@media screen and (max-width: 768px) {
  .swiper-pagination-bullet {
    margin: 0 5px;
  }
  .swiper-pagination-bullet-active {
    height: 11px;
    width: 30px;
  }
}

/* ----------- --------- */
@media (max-width: 420px) {
  .lang-card, .property-card {
    width: 97vw;
    min-width: unset;
    height: auto;
    padding: 8px 2vw;
  }
  .card {
    max-width: 97vw;
    min-width: unset;
  }
  .main-content, .about-section, .expertise-section {
    padding: 0 1vw;
  }
}




/* ----------- Documents Section --------- */

.documents-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.8rem;
  margin-bottom: 1.8rem;
  letter-spacing: 2px;
  color:  #ff6f61;
}



.message {
  display: none;
  background: #ffdddd;
  color: #d8000c;
  padding: 12px 24px;
  margin: 0;
  font-size: 1.0rem;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 0px;
  justify-items: center;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  margin-top: 120px;
}

.gradient-text-documents {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 44px;
}

.item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 20px 0 rgba(0,0,0,0.11);
  overflow: hidden;
  min-width: 320px;
  max-width: 400px;
  height: 420px;          /* FIXED HEIGHT */
  display: flex;
  flex-direction: column;
}

.item a {
  display: block;
}

.item img {
  width: 100%;
  height: 700px;          /* Slightly less than .item height */
  object-fit: contain;
  background: #f4f4f4;
  border-bottom: 1px solid #eee;
}




.item a:hover img {
  transform: scale(1.02);
  box-shadow: 0 8px 36px rgba(0,0,0,0.13);
}

.item__details {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #333;
  font-size: 1.15rem;
  font-weight: 500;
  padding: 16px 18px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: 0 4px 14px rgba(60,60,60,0.06);
  letter-spacing: 0.02em;
  margin-top: auto;        /* PUSH TO BOTTOM */
}

.item__details span {
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 8px;
  color: #ff6f61;
}

@media (min-width: 800px) {
  .grid {
    grid-template-columns: 1fr 1fr; /* Two columns side by side */
    max-width: 950px;               /* Make this wider if you like */
  }
}
  h1 {
    font-size: 2rem;
  }
  .item img {
    height: 350px;
  }


@supports not (display: grid) {
  .grid {
    display: block;
  }
  .message {
    display: block;
  }
}


/* ----------- SWIPER FADE OVERLAP FIX: Only show the active slide --------- */
.swiper-slide {
  display: none !important;
}
.swiper-slide-active {
  display: flex !important;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .swiper-slide-active {
    flex-direction: column;
  }
}
