/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode Hex based on Lofi Theme*/
  --first-color: #d4af37; /* Gold Accent */
  --title-color: #1a1710;
  --text-color: #201e18;
  --text-color-light: #a49980;
  --body-color: #EDE1CB;
  --container-color: #f5f0e8;

  --gradient-color: linear-gradient(180deg,
                      rgba(212, 175, 55, 0),
                      rgba(212, 175, 55, 1));

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Inter', sans-serif;
  --title-font: 'Outfit', sans-serif;
  --biggest-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  --tiny-font-size: .625rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
    --tiny-font-size: .688rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background .4s; /* for dark mode animation */
}

h1, h2, h3 {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== THEME ===============*/
.nav__buttons {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
}

.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color .3s;
}

.change-theme:hover {
  color: var(--first-color);
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: #f0ebe0;
  --text-color: #c9bfad;
  --body-color: #1a1710;
  --container-color: #201e18;
}

/* Glassmorphism & Refinements */
.dark-theme .nav__menu,
.dark-theme .nav__buttons,
.dark-theme .scrollup {
    background-color: rgba(32, 30, 24, 0.8);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(237, 225, 203, 0.1);
}

.dark-theme .section__border {
    border-bottom: 1px solid rgba(237, 225, 203, 0.15);
}

/* Core Layout Utilities (Tailwind Replacements) */
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }
.rounded-sm { border-radius: 0.125rem; }
.aspect-square { aspect-ratio: 1 / 1; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.cursor-pointer { cursor: pointer; }
.transition-all { transition: all 0.3s ease; }

/*=============== INSTAGRAM WIDGET ===============*/
.ig-widget-root {
  background: var(--container-color);
  border-radius: 12px;
  border: 1px solid var(--first-color);
  box-shadow: 0 24px 80px rgba(0,0,0,0.8), inset 0 1px 0 rgba(180,150,90,0.08);
  width: 100%;
  padding: 0 0 24px;
  overflow: hidden;
  position: relative;
}

.ig-noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px;
}

.ig-avatar-ring {
  background: linear-gradient(135deg, var(--first-color), #8B6914, var(--first-color));
  background-size: 200% 200%;
  animation: ringRotate 4s linear infinite;
  border-radius: 50%;
  padding: 2px;
}

@keyframes ringRotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ig-stat-divider {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, transparent, var(--first-color), transparent);
}

.ig-follow-btn {
  height: 36px;
  padding: 0 20px;
  border-radius: 6px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(201,168,76,0.7);
  background: linear-gradient(135deg, var(--first-color), #8B6914);
  color: var(--body-color);
  transition: all 0.3s ease;
}

.ig-follow-btn.followed {
  background: rgba(180,150,90,0.08);
  border: 1px solid rgba(180,150,90,0.4);
  color: rgba(180,150,90,0.7);
}

.ig-card {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 1px solid var(--first-color);
  transition: all 0.35s ease;
}

.ig-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 0 1px var(--first-color), 0 8px 32px rgba(0,0,0,0.6);
}

.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.85);
}

.ig-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.45);
}

.ig-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ig-card:hover .ig-card__overlay {
  opacity: 1;
}

.ig-shimmer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--first-color), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ig-card:hover .ig-shimmer {
  opacity: 1;
}

.dark-theme ::-webkit-scrollbar {
    background-color: #1a1710;
}

.dark-theme ::-webkit-scrollbar-thumb {
    background-color: #201e18;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 2rem;
}

.section__border {
  border-bottom: 1px solid var(--title-color);
  padding-bottom: 3.5rem;
}

.section__title, 
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: .25rem;
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-bottom: 3rem;
}

.main {
  overflow: hidden; /* For animation */
}

.button {
    display: inline-block;
    background-color: var(--title-color);
    color: var(--body-color);
    padding: 1.25rem 2rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    transition: box-shadow .3s;
}

.button:hover {
    box-shadow: 0 8px 24px hsla(207, 4%, 16%, .15);
}

/*=============== HEADER & NAV ===============*/
.header {
    width: 100%;
    background-color: var(--body-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    color: var(--title-color);
    font-family: var(--title-font);
    font-weight: var(--font-semi-bold);
    transition: color .3s;
}

.nav__logo:hover {
    color: var(--first-color);
}

@media screen and (max-width: 1023px) {
    .nav__menu {
        position: fixed;
        bottom: 2rem;
        background-color: hsla(207, 4%, 95%, .8);
        backdrop-filter: blur(24px);
        width: 90%;
        left: 0;
        right: 0;
        margin: 0 auto;
        padding: 1.5rem 3rem;
        border-radius: 2rem;
        transition: bottom .3s;
    }
}

.nav__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.nav__link {
    color: var(--text-color);
    font-size: var(--smaller-font-size);
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: .25rem;
    transition: color .3s;
}

.nav__link i {
    font-size: 1.25rem;
}

.nav__link:hover {
    color: var(--title-color);
}

.nav__close {
    display: none;
}

.nav__toggle {
    display: none;
}

/* Responsive Menu */
@media screen and (min-width: 1024px) {
    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav__menu {
        width: initial;
    }

    .nav__list {
        display: flex;
        column-gap: 3rem;
    }

    .nav__link {
        font-size: var(--normal-font-size);
        flex-direction: row;
        border-radius: 0;
        padding: 0;
    }

    .nav__link i {
        display: none;
    }
}

/* Active link */
.active-link {
    color: var(--title-color);
}

/* Change background header */
.scroll-header {
    box-shadow: 0 1px 4px hsla(207, 4%, 16%, .1);
}

/*=============== HOME ===============*/
.home__container {
    row-gap: 4rem;
    padding-top: 2rem;
}

.home__content {
    row-gap: 2.5rem;
    position: relative;
}

.home__title {
    font-size: var(--biggest-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 1.5rem;
}

.home__description {
    margin-bottom: 2rem;
}

.home__social {
    display: flex;
    column-gap: 1.25rem;
    margin-bottom: 3rem;
}

.home__social-link {
    font-size: 1.5rem;
    color: var(--title-color);
    transition: color .3s;
}

.home__social-link:hover {
    color: var(--first-color);
}

.home__images {
    position: relative;
    justify-self: center;
}

.home__blob {
    width: 250px;
    height: 250px;
    background-color: var(--body-color);
    border: 2px solid var(--title-color);
    justify-self: center;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.home__img {
    width: 220px;
}

.home__shape-waves,
.home__shape-circle {
    position: absolute;
    opacity: .1;
}

.home__shape-waves {
    width: 50px;
    left: -1.5rem;
    top: 5rem;
}

.home__shape-circle {
    width: 150px;
    bottom: -2rem;
    right: -3rem;
    transform: rotate(15deg);
    z-index: -1;
}

.home__info {
    row-gap: 2rem;
}

.home__info-title {
    font-family: var(--body-font);
    font-size: var(--tiny-font-size);
    color: var(--text-color-light);
    margin-bottom: .5rem;
}

.home__info-description {
    font-family: var(--title-font);
    color: var(--title-color);
    font-weight: var(--font-medium);
}

/*=============== SKILLS ===============*/
.skills__container {
    row-gap: 3.5rem;
}

.skills__title {
    display: flex;
    align-items: center;
    column-gap: .5rem;
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 2.5rem;
}

.skills__title i {
    font-size: 1rem;
    font-weight: initial;
}

.skills__box {
    display: flex;
    column-gap: 3rem;
}

.skills__group {
    display: grid;
    align-content: flex-start;
    row-gap: 1.25rem;
}

.skills__data {
    display: flex;
    column-gap: .5rem;
}

.skills__data img {
    width: 1.5rem;
    height: 1.5rem;
}

.skills__name {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    line-height: 18px;
}

.skills__subtitle {
    font-size: var(--tiny-font-size);
}

/*=============== QUALIFICATION ===============*/
.qualification {
    position: relative;
}

.qualification__container {
    row-gap: 3.5rem;
}

.qualification__title {
    display: flex;
    align-items: center;
    column-gap: .5rem;
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 2rem;
}

.qualification__title i {
    font-size: 1.25rem;
    font-weight: initial;
}

.qualification__grid {
    vertical-align: top;
    grid-template-columns: repeat(2, 1fr);
}

.qualification__card {
    display: grid;
    row-gap: .25rem;
}

.qualification__name {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--title-color);
}

.qualification__country, 
.qualification__year {
    font-size: var(--small-font-size);
}

/*=============== SERVICES ===============*/
.services__container {
    row-gap: 2.5rem;
    grid-template-columns: repeat(2, 1fr);
}

.services__card {
    background-color: var(--container-color);
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    transition: background .4s;
}

.services__icon {
    display: block;
    font-size: 2rem;
    color: var(--title-color);
    margin-bottom: 1.5rem;
}

.services__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.services__description {
    font-size: var(--small-font-size);
}

.services__card:hover {
    background-color: var(--first-color);
}

/*=============== PROJECTS ===============*/
.projects__container {
    overflow: initial;
}

.projects__content {
    display: grid;
    justify-content: center;
}

.projects__img {
    width: 250px;
    border-radius: .75rem;
    margin-bottom: 1.25rem;
}

.projects__subtitle {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.projects__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1.25rem;
}

.projects__button {
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
    color: var(--title-color);
    font-size: var(--small-font-size);
}

.projects__button i {
    font-size: 1rem;
    transition: transform .3s;
}

.projects__button:hover i {
    transform: translateX(.25rem);
}

.projects__container .swiper-button-prev::after,
.projects__container .swiper-button-next::after {
    content: '';
}

.projects__container .swiper-button-prev,
.projects__container .swiper-button-next {
    width: initial;
    height: initial;
    margin: initial;
    font-size: 2rem;
    color: var(--title-color);
}

.projects__container .swiper-button-prev {
    left: -1rem;
    top: 4.5rem;
}

.projects__container .swiper-button-next {
    right: -1rem;
    top: 4.5rem;
}

.projects__container .swiper-pagination-bullet {
    background-color: var(--text-color-light);
    opacity: 1;
}

.projects__container .swiper-pagination-bullet-active {
    background-color: var(--title-color);
}

/*=============== TESTIMONIAL ===============*/
.testimonial__container {
    position: relative;
}

.testimonial__card {
    padding: 2rem 1.5rem;
    background-color: var(--container-color);
    border-radius: 1.25rem;
    margin-bottom: 3rem;
    transition: background .4s;
}

.testimonial__description {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial__name {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    margin-bottom: .25rem;
}

.testimonial__subtitle {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

/*=============== CONTACT ===============*/
.contact__container {
    row-gap: 3.5rem;
}

.contact__title {
    display: flex;
    align-items: center;
    column-gap: .5rem;
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 2.5rem;
}

.contact__title i {
    font-size: 1.25rem;
    font-weight: initial;
}

.contact__info {
    display: grid;
    gap: 1.5rem;
}

.contact__card {
    background-color: var(--container-color);
    padding: 1rem;
    border-radius: .75rem;
    text-align: center;
    transition: background .4s;
}

.contact__card-icon {
    font-size: 2rem;
    color: var(--title-color);
    margin-bottom: .25rem;
}

.contact__card-title,
.contact__card-data {
    font-size: var(--small-font-size);
}

.contact__card-title {
    font-weight: var(--font-medium);
}

.contact__card-data {
    display: block;
    margin-bottom: .75rem;
}

.contact__button {
    color: var(--title-color);
    font-size: var(--small-font-size);
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .25rem;
    cursor: pointer;
}

.contact__button:hover i {
    transform: translateX(.25rem);
}

.contact__button i {
    font-size: 1rem;
    transition: transform .3s;
}

.contact__form-div {
    position: relative;
    margin-bottom: 2rem;
    height: 4rem;
}

.contact__form-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--text-color-light);
    background: none;
    color: var(--text-color);
    outline: none;
    padding: 1.5rem;
    border-radius: .75rem;
    z-index: 1;
}

.contact__form-tag {
    position: absolute;
    top: -.75rem;
    left: 1.25rem;
    font-size: var(--smaller-font-size);
    padding: .25rem;
    background-color: var(--body-color);
    z-index: 10;
}

.contact__form-area {
    height: 10rem;
}

.contact__form-area textarea {
    resize: none;
}

.contact__message {
    font-size: var(--small-font-size);
    position: absolute;
    bottom: 2.8rem;
    left: 1.5rem;
}

.color-red {
    color: #FF5B5C; /* Lofi Red */
}

.color-blue {
    color: #d4af37; /* Replaced with Gold just in case */
}

/*=============== FOOTER ===============*/
.footer {
    background-color: var(--container-color);
    border-top: 1px solid rgba(212, 175, 55, 0.2); /* Subtle Gold Border */
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--first-color), transparent);
}

.footer__container {
    padding: 3.5rem 0 6rem;
    text-align: center;
}

.footer__title {
    font-size: var(--h1-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 0.5rem;
    color: var(--title-color);
}

.footer__container p {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

.footer__list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 2rem;
    row-gap: 1rem;
    margin-bottom: 2.5rem;
}

.footer__link {
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: color 0.3s, transform 0.3s;
    font-size: var(--normal-font-size);
}

.footer__link:hover {
    color: var(--first-color);
    transform: translateY(-2px);
    display: inline-block;
}

.footer__social {
    display: flex;
    justify-content: center;
    column-gap: 1.5rem;
    margin-bottom: 3rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--body-color);
    color: var(--title-color);
    font-size: 1.25rem;
    border-radius: 50%;
    transition: background-color 0.4s, color 0.4s, transform 0.4s, box-shadow 0.4s;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.footer__social-link:hover {
    background-color: var(--first-color);
    color: var(--body-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px hsla(43, 65%, 52%, 0.2); /* Gold glow */
}

.footer__copy {
    display: block;
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
    width: .6rem;
    border-radius: .5rem;
    background-color: hsl(207, 4%, 85%);
}

::-webkit-scrollbar-thumb {
    background-color: hsl(207, 4%, 75%);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(207, 4%, 65%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -30%;
    background-color: hsla(207, 4%, 95%, .8);
    backdrop-filter: blur(24px);
    display: inline-flex;
    padding: .45rem;
    border-radius: .25rem;
    z-index: var(--z-tooltip);
    color: var(--title-color);
    font-size: 1.15rem;
    transition: .4s;
}

.scrollup:hover {
    transform: translateY(-.25rem);
}

/* Show Scroll Up*/
.show-scroll {
    bottom: 7.5rem;
}

/*=============== HOME IMPROVEMENTS ===============*/
.home__subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
    margin-bottom: .5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button--ghost {
    background-color: transparent;
    border: 2px solid var(--title-color);
    color: var(--title-color);
}

.button--ghost:hover {
    background-color: var(--title-color);
    color: var(--body-color);
}

/*=============== CTA SECTION ===============*/
.cta {
    background-color: var(--container-color);
    border-radius: 1rem;
    margin: 0 1.5rem;
}

.cta__content {
    text-align: center;
    padding: 3rem 1.5rem;
}

.cta__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1rem;
}

.cta__description {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.cta__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/*=============== ABOUT PAGE STYLES ===============*/
.about-hero,
.projects-hero,
.contact-hero {
    padding-top: 6rem;
    text-align: center;
}

.about-hero__description,
.projects-hero__description,
.contact-hero__description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
}

/*=============== SUMMARY SECTION ===============*/
.summary__grid {
    display: grid;
    gap: 1.5rem;
}

.summary__card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform .3s, box-shadow .3s;
}

.summary__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px hsla(207, 4%, 16%, .15);
}

.summary__icon {
    font-size: 2.5rem;
    color: var(--first-color);
    margin-bottom: 1rem;
}

.summary__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.75rem;
}

.summary__description {
    font-size: var(--small-font-size);
    color: var(--text-color);
}

/*=============== COMPETENCIES SECTION ===============*/
.competencies__grid {
    display: grid;
    gap: 1.5rem;
}

.competency {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.competency:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px hsla(43, 65%, 52%, 0.1);
}

.competency__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.competency__header i {
    font-size: 1.5rem;
    color: var(--first-color);
}

.competency__header h3 {
    font-size: var(--h3-font-size);
}

.competency__list {
    list-style: none;
}

.competency__list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: var(--small-font-size);
}

.competency__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--first-color);
    border-radius: 50%;
}

/*=============== TIMELINE ===============*/
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--first-color), var(--text-color-light));
}

.timeline__item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    background-color: var(--body-color);
    border: 2px solid var(--first-color);
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline__marker--current {
    background-color: var(--first-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
    animation: goldPulse 2s infinite;
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.timeline__content {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-left: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline__content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px hsla(43, 65%, 52%, 0.1);
}

.timeline__badge {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--body-color);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: var(--tiny-font-size);
    font-weight: var(--font-medium);
    margin-bottom: 0.75rem;
}

.timeline__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.25rem;
}

.timeline__company {
    display: block;
    font-weight: var(--font-medium);
    color: var(--first-color);
    margin-bottom: 0.25rem;
}

.timeline__location,
.timeline__period {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 0.25rem;
}

.timeline__responsibilities {
    margin-top: 1rem;
    padding-left: 1.25rem;
}

.timeline__responsibilities li {
    font-size: var(--small-font-size);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/*=============== EDUCATION SECTION ===============*/
.education__grid {
    display: grid;
    gap: 1.5rem;
}

.education__card {
    display: flex;
    gap: 1.5rem;
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.education__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px hsla(207, 4%, 16%, .15);
}

.education__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--first-color);
    color: var(--body-color);
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.4s;
}

.education__card:hover .education__icon {
    transform: rotate(360deg);
}

.education__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.25rem;
}

.education__school {
    display: block;
    font-weight: var(--font-medium);
    color: var(--first-color);
    margin-bottom: 0.25rem;
}

.education__location,
.education__period {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.education__description {
    margin-top: 0.75rem;
    font-size: var(--small-font-size);
}

/*=============== LANGUAGES SECTION ===============*/
.languages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.language__card {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
}

.language__flag {
    width: 50px;
    height: 50px;
    background-color: var(--first-color);
    color: var(--body-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: var(--font-semi-bold);
}

.language__name {
    font-size: var(--h3-font-size);
    margin-bottom: 0.25rem;
}

.language__level {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 1rem;
    display: block;
}

.language__bar {
    height: 6px;
    background-color: var(--body-color);
    border-radius: 3px;
    overflow: hidden;
}

.language__progress {
    height: 100%;
    background-color: var(--first-color);
    border-radius: 3px;
    transition: width 1s ease;
}

/*=============== PROJECTS PAGE STYLES ===============*/
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter__btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--text-color-light);
    background: transparent;
    color: var(--text-color);
    border-radius: 2rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all .3s;
}

.filter__btn:hover,
.filter__btn.active {
    background-color: var(--first-color);
    border-color: var(--first-color);
    color: var(--body-color);
}

.projects__container {
    display: grid;
    gap: 2rem;
}

.project__card {
    background-color: var(--container-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}

.project__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px hsla(207, 4%, 16%, .2);
}

.project__image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.project__card:hover .project__image img {
    transform: scale(1.1);
}

.project__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}

.project__card:hover .project__overlay {
    opacity: 1;
}

.project__link {
    width: 50px;
    height: 50px;
    background-color: var(--first-color);
    color: var(--body-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transform: translateY(20px);
    transition: transform .3s;
}

.project__card:hover .project__link {
    transform: translateY(0);
}

.project__content {
    padding: 1.5rem;
}

.project__category {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--body-color);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: var(--tiny-font-size);
    font-weight: var(--font-medium);
    margin-bottom: 0.75rem;
}

.project__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.75rem;
}

.project__description {
    font-size: var(--small-font-size);
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.project__tech li {
    background-color: var(--body-color);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: var(--tiny-font-size);
    color: var(--text-color-light);
}

/*=============== STATS SECTION ===============*/
.stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat__card {
    background-color: var(--container-color);
    padding: 2rem 1rem;
    border-radius: 1rem;
    text-align: center;
}

.stat__icon {
    font-size: 2rem;
    color: var(--first-color);
    margin-bottom: 0.75rem;
}

.stat__number {
    display: block;
    font-size: var(--h1-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
    margin-bottom: 0.25rem;
}

.stat__label {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

/*=============== LOCATION SECTION ===============*/
.location__content {
    max-width: 800px;
    margin: 0 auto;
}

.location__info {
    display: grid;
    gap: 1.5rem;
}

.location__card {
    display: flex;
    gap: 1rem;
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 1rem;
}

.location__card i {
    font-size: 1.5rem;
    color: var(--first-color);
    flex-shrink: 0;
}

.location__card h3 {
    font-size: var(--normal-font-size);
    margin-bottom: 0.25rem;
}

.location__card p {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

/*=============== FAQ SECTION ===============*/
.faq__grid {
    display: grid;
    gap: 1.5rem;
}

.faq__item {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 1rem;
}

.faq__question {
    font-size: var(--normal-font-size);
    margin-bottom: 0.75rem;
    color: var(--title-color);
}

.faq__answer {
    font-size: var(--small-font-size);
    color: var(--text-color);
    line-height: 1.6;
}

/*=============== CONTACT PAGE IMPROVEMENTS ===============*/
.contact__button-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/*=============== ANIMATIONS ===============*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*=============== ACCESSIBILITY ===============*/
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--first-color);
    outline-offset: 2px;
}

/*=============== NEW PAGE RESPONSIVE BREAKPOINTS ===============*/
/* Small devices */
@media screen and (max-width: 340px) {
    .home__buttons {
        flex-direction: column;
    }
    
    .cta__buttons {
        flex-direction: column;
    }
    
    .education__card {
        flex-direction: column;
        text-align: center;
    }
    
    .education__icon {
        margin: 0 auto;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline__marker {
        left: -1.5rem;
    }
}

/* Medium devices */
@media screen and (min-width: 576px) {
    .summary__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .competencies__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .education__grid {
        grid-template-columns: 1fr;
    }
    
    .projects__container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .faq__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location__info {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets */
@media screen and (min-width: 768px) {
    .summary__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cta {
        margin: 0 2rem;
    }
    
    .cta__content {
        padding: 4rem 3rem;
    }
}

/* Large devices */
@media screen and (min-width: 1024px) {
    .competencies__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .projects__container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .timeline__content {
        padding: 2rem;
    }
    
    .cta {
        margin: 0 auto;
        max-width: 900px;
    }
    
    .cta__content {
        padding: 5rem 4rem;
    }
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }
  .nav__menu {
      padding-inline: 1rem;
  }
  .nav__list {
      gap: 1.5rem 1rem;
  }
  .home__blob {
      width: 200px;
      height: 200px;
  }
  .home__img {
      width: 170px;
  }
  .skills__box {
      column-gap: 1rem;
  }
  .qualification__grid {
      grid-template-columns: 1fr;
  }
  .services__container {
      grid-template-columns: 1fr;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
    .nav__menu {
        width: 380px;
    }
    .home__container,
    .skills__container,
    .qualification__container,
    .services__container,
    .contact__container {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }
    .home__info {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 2rem;
    }
}

/* For tablets and medium devices */
@media screen and (min-width: 768px) {
    .home__container,
    .skills__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
    .home__info {
        column-gap: 3rem;
    }
    .home__blob {
        width: 320px;
        height: 320px;
    }
    .home__img {
        width: 270px;
    }
    .qualification__container {
        grid-template-columns: repeat(2, 1fr);
    }
    .services__container {
        grid-template-columns: repeat(3, 1fr);
    }
    .projects__container {
        width: 600px;
    }
    .testimonial__container {
        width: 600px;
    }
}

/* For large devices */
@media screen and (min-width: 1024px) {
    .section {
        padding-block: 7rem 2rem;
    }
    .home__container {
        column-gap: 6rem;
    }
    .home__blob {
        width: 450px;
        height: 450px;
        border: 4px solid var(--title-color);
    }
    .home__img {
        width: 380px;
    }
    .home__shape-waves {
        width: 100px;
        left: -4rem;
    }
    .home__shape-circle {
        width: 250px;
        bottom: -5rem;
        right: -7rem;
    }
    .skills__container {
        column-gap: 10rem;
    }
    .services__container {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact__container {
        grid-template-columns: 440px 1fr;
        column-gap: 8rem;
    }
    .footer__container {
        padding-block: 4rem;
    }
    .footer__list {
        column-gap: 3rem;
    }
    .scrollup {
        right: 3rem;
    }
    .show-scroll {
        bottom: 3rem;
    }
}
