@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap");

:root {
   --bg: #f6f7f2;
   --surface: #fffdf6;
   --surface-strong: #fff4dd;
   --ink: #15202b;
   --ink-soft: #41505f;
   --line: #dfdccf;
   --brand: #0f2a43;
   --brand-2: #087e8b;
   --shadow-soft: 0 8px 24px rgba(15, 42, 67, 0.08);
   --shadow-lift: 0 14px 36px rgba(15, 42, 67, 0.16);
}

body {
   margin: 0;
   color: var(--ink);
   font-size: 17px;
   background:
      radial-gradient(circle at 0% 0%, rgba(248, 216, 168, 0.35), transparent 40%),
      radial-gradient(circle at 100% 20%, rgba(8, 126, 139, 0.14), transparent 45%),
      linear-gradient(180deg, #f7f8f3, #eef2ea 40%, #f9f7ef 100%);
}

.title,
h1,
h2,
h3 {
   font-family: "Source Serif 4", serif;
   letter-spacing: 0.01em;
}

p,
li,
.subtitle {
   color: var(--ink-soft);
   line-height: 1.85;
}

.section-title {
   text-align: center;
   color: var(--brand);
   font-size: clamp(2rem, 3vw, 2.8rem);
   margin-bottom: 0.5rem;
}

hr {
   background-color: var(--line);
   height: 1px;
}

.navbar.is-primary {
   background: transparent;
}

.site-navbar {
   position: sticky;
   top: 0;
   z-index: 50;
   padding: 0;
}

.site-navbar-menu {
   width: 100%;
   margin: 0;
   min-height: 4.5rem;
   background: linear-gradient(120deg, rgba(12, 48, 72, 0.96), rgba(20, 92, 108, 0.96));
   border-bottom: 1px solid rgba(255, 255, 255, 0.18);
   box-shadow: 0 10px 26px rgba(13, 30, 50, 0.2);
   border-radius: 0 0 18px 18px;
   padding: 0.35rem 1rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
   backdrop-filter: blur(12px);
   position: relative;
}

.navbar .navbar-link,
.navbar .navbar-item {
   color: #f4fcff;
}

.navbar-start,
.navbar-end {
   display: flex;
   align-items: center;
}

.navbar-start {
   position: absolute;
   left: 50%;
   transform: translateX(-50%);
}

.navbar-end {
   margin-left: auto;
}

.language-dropdown-item .navbar-link {
   color: #fff;
   font-weight: 700;
   border-radius: 999px;
   background: rgba(255, 255, 255, 0.12);
   border: 1px solid rgba(255, 255, 255, 0.18);
   padding-right: 2.5em;
   transition: background-color 180ms ease, transform 180ms ease;
}

.language-dropdown-item .navbar-link:hover,
.language-dropdown-item:hover .navbar-link {
   color: #fff;
   background: rgba(255, 255, 255, 0.2);
   transform: translateY(-1px);
}

.language-dropdown {
   background: #fffdf8;
   border-radius: 14px;
   border: 1px solid rgba(21, 32, 43, 0.1);
   box-shadow: 0 16px 34px rgba(15, 42, 67, 0.18);
   min-width: 180px;
   overflow: hidden;
}

.language-dropdown .navbar-item {
   color: var(--ink);
   font-weight: 600;
   background: transparent;
}

.language-dropdown .navbar-item:hover {
   color: var(--brand);
   background: rgba(8, 126, 139, 0.08);
}

.hero-surface {
   background: linear-gradient(130deg, #3f6c8d 0%, #4d8791 40%, #8eb18a 100%);
   padding-top: 5rem;
   padding-bottom: 5rem;
}

#heroSection .title,
#heroSection .subtitle,
#heroSection .icon strong {
   color: #fff;
}

.hero-avatar {
   margin-bottom: 1.2rem;
}

.hero-avatar img {
   border: 4px solid rgba(255, 255, 255, 0.75);
   box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.hero-role {
   margin-top: 0.35rem;
   font-weight: 500;
   font-size: 1.35rem;
}

.hero-summary {
   max-width: 700px;
   margin: 1.35rem auto 0;
   color: rgba(255, 255, 255, 0.92);
   font-size: 1.18rem;
   line-height: 1.9;
}

#heroSection .title.is-1 {
   font-size: clamp(3rem, 7vw, 5rem);
}

#heroSection p {
   color: rgba(255, 255, 255, 0.92);
}

#heroSection a.icon {
   display: inline-flex;
   align-items: center;
   gap: 0.4rem;
   margin-top: 1.15rem;
   padding: 0.85rem 1.3rem;
   border-radius: 999px;
   background: rgba(255, 255, 255, 0.14);
   border: 1px solid rgba(255, 255, 255, 0.22);
   transition: transform 180ms ease, background-color 180ms ease;
}

#heroSection a.icon:hover {
   transform: translateY(-2px);
   background: rgba(255, 255, 255, 0.2);
}

.resume-icon {
   margin-left: 0.3rem;
}

.detail-list {
   margin-left: 1.2rem;
   list-style-type: disc;
}

.detail-list li {
   margin-bottom: 0.5rem;
}

.card {
   border: 1px solid var(--line);
   border-radius: 18px;
   box-shadow: 0 14px 30px rgba(15, 42, 67, 0.09);
   background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 233, 0.85));
}

.card .title.is-4 {
   color: var(--brand);
}

.experience-logo {
   object-fit: cover;
   width: 48px;
   height: 48px;
   border-radius: 8px;
   border: 1px solid rgba(21, 32, 43, 0.1);
   background: #fff;
   display: block;
}

.experience-header {
   align-items: flex-start;
   gap: 1rem;
}

.experience-header .media-left {
   margin-right: 1rem;
}

.experience-header .media-content {
   min-width: 0;
}

.experience-header .title,
.experience-header .subtitle {
   text-align: left;
}

#ExperienceSection.rtl .experience-header {
   flex-direction: row-reverse;
}

#ExperienceSection.rtl .experience-header .media-left {
   margin-right: 0;
   margin-left: 1rem;
}

#ExperienceSection.rtl .experience-header .title,
#ExperienceSection.rtl .experience-header .subtitle,
#ExperienceSection.rtl .experience-header .media-content,
#ExperienceSection.rtl .content {
   text-align: right;
}

#ExperienceSection.rtl .content ul {
   padding-right: 1.2rem;
   padding-left: 0;
}

#ExperienceSection.rtl .tags {
   justify-content: flex-end;
}

.project-card {
   background: linear-gradient(180deg, var(--surface), var(--surface-strong));
   border-radius: 18px;
   box-shadow: 0 16px 32px rgba(15, 42, 67, 0.08);
   border: 1px solid var(--line);
   padding: 24px;
   transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
   transform: translateY(-4px);
   box-shadow: var(--shadow-lift);
}

.project-image {
   border-radius: 10px;
   box-shadow: 0 6px 14px rgba(15, 42, 67, 0.15);
}

.project-image-contain {
   max-height: 100%;
   max-width: 100%;
   object-fit: contain;
}

.project-content {
   padding-top: 1.1rem;
}

.project-content p,
.content p,
.content li,
#aboutMeSection p,
#aboutMeSection li,
#EducationSection .content,
#ContactSection .heading a {
   font-size: 1.02rem;
}

.project-tags {
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
   gap: 0.45rem;
   margin-bottom: 1.1rem;
}

.project-tag {
   background-color: #ffd39b;
   color: #4d3004;
   border-radius: 999px;
   padding: 0.3rem 0.8rem;
}

.button.is-primary {
   background: linear-gradient(135deg, #145674, #087e8b);
   border: none;
   border-radius: 10px;
   font-weight: 600;
   box-shadow: 0 6px 18px rgba(8, 126, 139, 0.3);
   transition: transform 180ms ease, box-shadow 180ms ease;
}

.button.is-primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 10px 22px rgba(8, 126, 139, 0.35);
}

#ContactSection .level {
   gap: 1.5rem;
}

.contact-card {
   min-width: 128px;
}

.contact-icon {
   width: 3.5rem;
   height: 3.5rem;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   border-radius: 18px;
   color: var(--brand);
   background: rgba(21, 42, 67, 0.06);
   border: 1px solid rgba(21, 42, 67, 0.1);
   transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.contact-icon:hover {
   color: #fff;
   background: linear-gradient(135deg, #145674, #087e8b);
   transform: translateY(-2px);
}

.contact-icon-svg {
   width: 1.65rem;
   height: 1.65rem;
   fill: currentColor;
}

#ContactSection .heading {
   margin-top: 0.75rem;
}

#ContactSection .heading a {
   color: var(--ink-soft);
   font-weight: 600;
}

.footer {
   background: transparent;
}

.section .container {
   animation: fadeInUp 420ms ease both;
}

.section {
   padding-top: 4.5rem;
   padding-bottom: 4.5rem;
   scroll-margin-top: 5rem;
}

#aboutMeSection .container,
#ExperienceSection .container,
#EducationSection .container,
#ContactSection .container {
   max-width: 1120px;
}

#aboutMeSection .container,
#ExperienceSection .container,
#EducationSection .container {
   background: rgba(255, 253, 246, 0.58);
   border: 1px solid rgba(223, 220, 207, 0.72);
   border-radius: 24px;
   box-shadow: 0 20px 40px rgba(15, 42, 67, 0.06);
   padding: 2rem;
}

#aboutMeSection .detail-list,
#aboutMeSection p {
   max-width: 920px;
   margin-left: auto;
   margin-right: auto;
}

#ExperienceSection .title.is-4,
#EducationSection .title.is-4 {
   font-size: 1.35rem;
}

#EducationSection .card + br {
   display: none;
}

#EducationSection .card {
   margin-top: 1.5rem;
}

@keyframes fadeInUp {
   from {
      opacity: 0;
      transform: translateY(8px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@media (max-width: 768px) {
   body {
      font-size: 16px;
   }

   .site-navbar-menu {
      gap: 0.5rem;
      padding: 0.3rem 0.6rem;
      border-radius: 0 0 14px 14px;
   }

   .navbar-start,
   .navbar-end {
      width: auto;
      position: static;
      transform: none;
   }

   .language-dropdown-item .navbar-link {
      padding-left: 0.9rem;
      padding-right: 2.2rem;
   }

   .project-card {
      padding: 16px;
   }

   .hero-surface {
      padding-top: 3.75rem;
      padding-bottom: 3.75rem;
   }

   .hero-summary {
      font-size: 1.02rem;
   }

   .section {
      padding-top: 3rem;
      padding-bottom: 3rem;
   }

   #aboutMeSection .container,
   #ExperienceSection .container,
   #EducationSection .container {
      padding: 1.25rem;
      border-radius: 18px;
   }

   #ContactSection .level {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
   }

   .experience-header {
      gap: 0.75rem;
   }

   .experience-header .media-left {
      margin-right: 0.75rem;
   }

   #ExperienceSection.rtl .experience-header .media-left {
      margin-left: 0.75rem;
   }

   #ContactSection .level-item {
      justify-content: center;
   }
}
