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

/*===== CSS VARIABLES =====*/
:root {
  /* Header */
  --header-height: 4rem;
  
  /* Font weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi: 600;
  --font-bold: 700;
  
  /* Modern Color Palette */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #0f172a;
  --secondary-light: #1e293b;
  --accent-color: #f59e0b;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-light: #64748b;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --border-color: #e2e8f0;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --body-font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --heading-font: "Space Grotesk", sans-serif;
  --big-font-size: 2.5rem;
  --h1-font-size: 2rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.813rem;
  
  /* Spacing */
  --mb-0-5: 0.5rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  --mb-4: 4rem;
  
  /* Z-index */
  --z-back: -10;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

@media screen and (min-width: 768px) {
  :root {
    --big-font-size: 3.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1.125rem;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: var(--font-bold);
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
  color: var(--text-secondary);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
}

/*===== REUSABLE CSS CLASSES =====*/
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: var(--h2-font-size);
  color: var(--text-primary);
  margin-bottom: var(--mb-3);
  text-align: center;
  position: relative;
  font-weight: var(--font-bold);
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.bd-grid {
  max-width: 1140px;
  width: calc(100% - 3rem);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 1.5rem;
}

/*===== HEADER & NAVIGATION =====*/
.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  color: var(--text-primary);
  font-weight: var(--font-bold);
  font-size: var(--h3-font-size);
  font-family: var(--heading-font);
  transition: var(--transition-normal);
}

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

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  color: var(--text-secondary);
  font-weight: var(--font-medium);
  font-size: var(--normal-font-size);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-normal);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__toggle {
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

.show {
  right: 0;
}

/*===== HOME SECTION =====*/
.home {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.home__data {
  animation: fadeInUp 0.8s ease;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-2);
  line-height: 1.1;
}

.home__title-color {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home__subtitle {
  font-size: var(--h3-font-size);
  color: var(--text-secondary);
  margin-bottom: var(--mb-2);
  font-weight: var(--font-medium);
}

.home__img {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--bg-primary);
  box-shadow: var(--shadow-xl);
  transition: var(--transition-normal);
}

.home_image:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

/*===== BUTTONS =====*/
.button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  padding: 1rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

/*===== ABOUT SECTION =====*/
.about__container {
  gap: 3rem;
  align-items: center;
}

.about__subtitle {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1-5);
  color: var(--text-primary);
}

.about__text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--mb-2);
  text-align: justify;
}

.about__img {
  display: flex;
  justify-content: center;
}

.about__img img {
  width: 100%;
  max-width: 350px;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.about__img img:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

/*===== SKILLS SECTION =====*/
.skills__container {
  gap: 3rem;
}

.skills__subtitle {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-2);
  color: var(--text-primary);
  text-align: center;
}

.skills__text {
  color: var(--text-secondary);
  margin-bottom: var(--mb-3);
  text-align: center;
}

.skills__data {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--mb-1-5);
}

.skills__data:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.skills__names {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skills__icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.skills__name,
.skills__name_rn,
.skills__name_fl,
.skills__name_jv {
  font-weight: var(--font-semi);
  color: var(--text-primary);
}

.skills__percentage {
  font-size: var(--small-font-size);
  color: var(--text-light);
  font-weight: var(--font-medium);
  padding: 0.25rem 0.75rem;
  background: var(--bg-tertiary);
  border-radius: 20px;
}

.skills__bar {
  display: none;
}

.skills__img {
  width: 100%;
  max-width: 400px;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  display: block;
}

/*===== WORK SECTION =====*/
.work__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.work__img {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  background: var(--bg-secondary);
}

.work__img:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.work__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.work__img h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
  color: white;
  padding: 1.5rem;
  font-size: var(--h3-font-size);
  text-align: center;
  margin: 0;
}

/*===== EXPERIENCE SECTION =====*/
.sectionClass {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.row {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sectiontitle {
  text-align: center;
  margin-bottom: var(--mb-4);
}

.sectiontitle h2 {
  font-size: var(--h2-font-size);
  color: var(--text-primary);
  font-weight: var(--font-bold);
  font-family: var(--heading-font);
  margin-bottom: var(--mb-1);
}

.headerLine {
  width: 80px;
  height: 4px;
  display: inline-block;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 2px;
}

.fullWidth {
  width: 100%;
}

/*===== TIMELINE =====*/
.cbp_tmtimeline {
  margin: 3rem 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.cbp_tmtimeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
  left: 75px;
  border-radius: 2px;
}

.cbp_tmtimeline > li {
  margin-bottom: 4rem;
  position: relative;
}

.cbp_tmtimeline > li:last-child {
  margin-bottom: 0;
}

.cbp_tmtimeline > li .cbp_tmlabel {
  margin-left: 170px;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.cbp_tmtimeline > li .cbp_tmlabel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.cbp_tmtimeline > li .cbp_tmlabel::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 15px solid var(--bg-primary);
}

.cbp_tmtimeline > li .cbp_tmlabel h3 {
  margin: 0 0 var(--mb-1) 0;
  color: var(--text-primary);
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  padding-bottom: var(--mb-1);
  border-bottom: 2px solid var(--border-color);
  text-align: left;
}

.cbp_tmtimeline > li .cbp_tmlabel h4 {
  color: var(--text-secondary);
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin: var(--mb-0-5) 0;
  text-align: left;
}

.cbp_tmtimeline > li .cbp_tmlabel h4 i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.cbp_tmtimeline > li .cbp_tmicon {
  width: 150px;
  height: 150px;
  position: absolute;
  left: 0;
  top: 0;
  background: var(--bg-primary);
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: var(--transition-normal);
}

.cbp_tmtimeline > li .cbp_tmicon:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.cbp_tmtimeline > li .cbp_tmicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company_name {
  display: flex;
  justify-content: flex-start;
}

.date {
  color: var(--text-light);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  display: block;
  margin-top: var(--mb-1);
}

.date i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.experience_description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: var(--mb-1-5);
  text-align: justify;
  font-size: var(--normal-font-size);
}

.experience_skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--mb-1-5);
}

.skill-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border-radius: 20px;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  transition: var(--transition-fast);
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/*===== FOOTER =====*/
.footer {
  background-color: var(--secondary-color);
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 3rem 0;
}

.footer__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-2);
}

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

/*===== MEDIA QUERIES =====*/
@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 70%;
    height: 100vh;
    padding: 2rem;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-slow);
  }
  
  .nav__list {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .nav__toggle {
    display: block;
  }
  
  .home {
    grid-template-columns: 1fr;
  }
  
  .home__img {
    order: -1;
    width: 250px;
    height: 250px;
  }
  
  .about__container,
  .skills__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about__text {
    text-align: left;
  }
  
  .cbp_tmtimeline:before {
    display: none;
  }
  
  .cbp_tmtimeline > li .cbp_tmicon {
    position: relative;
    float: left;
    left: auto;
    margin: 0 1rem 1rem 0;
    width: 100px;
    height: 100px;
  }
  
  .cbp_tmtimeline > li .cbp_tmlabel {
    margin: 0;
    clear: both;
  }
  
  .cbp_tmtimeline > li .cbp_tmlabel::before {
    display: none;
  }
}

@media screen and (min-width: 769px) {
  .section {
    padding: 6rem 0;
  }
  
  .home {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .home__img {
    width: 400px;
    height: 400px;
  }
  
  .about__container {
    grid-template-columns: 1fr 1fr;
  }
  
  .skills__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 1024px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  
  .nav {
    padding: 0 2rem;
  }
}
