
:root {
  --lg-bg-color: rgba(255, 255, 255, 0.4);
  --lg-highlight: rgba(255, 255, 255, 0.75);
  --lg-text: #ffffff;
  --lg-hover-glow: rgba(255, 255, 255, 0.4);
  --lg-red: #fb4268;
  --lg-grey: #5b5b5b;
}

/* ========== BASE LAYOUT ========== */
body {
  margin: 0;
  padding: 2rem 0;
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  background: url("https://images.unsplash.com/photo-1551384963-cccb0b7ed94b?q=80&w=3247&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
    center/cover;
  animation: bg-move 5s ease-in-out infinite alternate;
  line-height: 1.6;
  color: var(--lg-text);
}

@keyframes bg-move {
  from {
    background-position: center center;
  }
  to {
    background-position: center top;
  }
}

/* ========== CONTAINER ========== */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container--inline {
  flex-direction: row;
}

/* ========== GLASS CONTAINER ========== */
.glass-container {
  position: relative;
  display: flex;
  font-weight: 600;
  color: var(--lg-text);
  background: transparent;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.glass-container--large {
  min-width: 32rem;
}

/* ========== GLASS LAYERS ========== */
.glass-filter {
  position: absolute;
  inset: 0;
  z-index: 0;
  backdrop-filter: blur(0px);
  filter: url(#lg-dist);
  isolation: isolate;
}

.glass-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.45) 0%, 
    rgba(255, 255, 255, 0.35) 50%, 
    rgba(255, 255, 255, 0.4) 100%);
  backdrop-filter: blur(15px);
}

.glass-specular {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  overflow: hidden;
  box-shadow: inset 1px 1px 0 var(--lg-highlight),
    inset 0 0 5px var(--lg-highlight);
}

.glass-content {
  position: relative;
  z-index: 3;
  display: block;
  padding: 1.5rem 2rem;
}

/* ========== CV SPECIFIC STYLES ========== */
.cv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.cv-header {
  margin-bottom: 1rem;
}

.cv-header-content {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.profile-image {
  flex-shrink: 0;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--lg-highlight);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-info {
  flex: 1;
  word-wrap: break-word;
}

.name {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #fff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.title {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 1.5rem 0;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
}

.contact-item {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cv-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.cv-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cv-section {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.5rem;
  color: var(--lg-text);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Skills Styles */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-category h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.8rem 0;
  color: rgba(255, 255, 255, 0.9);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.25);
  color: var(--lg-text);
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

/* Languages Styles */
.language-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language-name {
  font-weight: 500;
  color: var(--lg-text);
}

.language-level {
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.level-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.level-native {
  width: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

.level-intermediate {
  width: 70%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

/* Certifications Styles */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.cert-year {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* About Styles */
.about-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Experience Styles */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.experience-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--lg-text);
}

.exp-period {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

.exp-company {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 1rem;
}

.exp-achievements {
  margin: 0;
  padding-left: 1.2rem;
}

.exp-achievements li {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Education Styles */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.edu-degree {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--lg-text);
}

.edu-school {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.edu-year {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Projects Styles */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.8rem 0;
  color: var(--lg-text);
}

.project-desc {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.25);
  color: var(--lg-text);
  padding: 0.3rem 0.6rem;
  border-radius: 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .cv-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-section {
    gap: 1.5rem;
  }
  
  .name {
    font-size: 2.5rem;
  }
  
  .contact-info {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .glass-container--large {
    min-width: 0;
  }

  body {
    padding: 1.5rem 0;
  }

  .cv-container {
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .profile-img {
    width: 100px;
    height: 100px;
  }
  
  .name {
    font-size: 2.2rem;
  }
  
  .title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.5rem;
    justify-items: center;
  }
  
  .contact-item {
    font-size: 0.9rem;
    justify-content: center;
  }
  
  .cv-header-content {
    padding: 1.5rem;
  }
  
  .glass-content {
    padding: 1.2rem;
  }
  
  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .skills-grid {
    gap: 1.2rem;
  }
  
  .skill-tags {
    gap: 0.4rem;
    justify-content: center;
  }
  
  .skill-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  .experience-item,
  .education-item,
  .project-item {
    padding: 1.2rem;
  }
  
  .experience-list,
  .projects-list {
    gap: 1.2rem;
  }
  
  .exp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  
  .exp-title {
    font-size: 1.1rem;
  }
  
  .about-text {
    font-size: 0.95rem;
  }
  
  .project-tech {
    gap: 0.4rem;
  }
  
  .tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem 0.5rem;
  }
  
  .cv-container {
    padding: 0.5rem;
    gap: 1rem;
  }
  
  .cv-header-content {
    padding: 1rem;
  }
  
  .glass-content {
    padding: 1rem;
  }
  
  .name {
    font-size: 1.8rem;
  }
  
  .title {
    font-size: 1.1rem;
  }
  
  .profile-img {
    width: 80px;
    height: 80px;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .skill-category h4 {
    font-size: 1rem;
  }
  
  .exp-title {
    font-size: 1rem;
  }
  
  .project-title,
  .edu-degree {
    font-size: 1rem;
  }
  
  .experience-item,
  .education-item,
  .project-item,
  .cert-item {
    padding: 1rem;
  }
  
  .cv-column {
    gap: 1rem;
  }
  
  .glass-container {
    border-radius: 1.5rem;
  }
  
  .skill-tags,
  .project-tech {
    gap: 0.4rem;
  }
  
  .contact-item {
    font-size: 0.85rem;
    padding: 0.4rem;
  }

  .about-text {
    font-size: 1rem;
    line-height: 1.6;
  }
}
