* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

body {
  font-family: 'Roboto Condensed', sans-serif;
  background: linear-gradient(135deg, #cee2ff 0%, #edf4fe 100%);
  color: white;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  max-width: 100%;
  font-size: 16px;
}

.container {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Card styles */
.card {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.2s,
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  will-change: opacity, transform;
  transform-origin: center center;
}

.card.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear,
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.2s,
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rest of the CSS remains unchanged */
.card-blue {
  background: linear-gradient(to bottom, #93c5fd 0%, #60a5fa 30%, #2563eb 70%, #1e40af 100%);
  padding: min(5vw, 2.5rem);
  gap: min(4vw, 2rem);
}

.header {
  text-align: center;
}

.header h1 {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.header h2 {
  font-size: clamp(1rem, 3vw, 1.25rem);
  letter-spacing: 0.15em;
  margin-top: min(2vw, 0.5rem);
}

.name-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: min(3vw, 1.25rem);
  border-radius: min(2vw, 0.5rem);
  display: inline-flex;
  align-items: flex-start;
  gap: min(3vw, 1rem);
  margin: min(3vw, 1.5rem) 0;
  backdrop-filter: blur(5px);
}

.name-tag .name {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.name-tag .info {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  letter-spacing: 0.05em;
}

.preview-container {
  width: 100%;
  max-width: min(90vw, 450px);
  background: rgba(30, 64, 175, 0.3);
  border-radius: min(3vw, 1rem);
  padding: min(4vw, 1.5rem);
  display: flex;
  gap: min(4vw, 1.5rem);
  align-items: center;
  backdrop-filter: blur(5px);
}

.preview-card {
  width: min(40vw, 150px);
  aspect-ratio: 0.7;
  border-radius: min(1vw, 0.25rem);
  overflow: hidden;
  flex-shrink: 0;
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: min(2vw, 0.75rem);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: min(2vw, 0.75rem);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  letter-spacing: 0.05em;
}

.contact-item svg {
  width: min(5vw, 18px);
  height: min(5vw, 18px);
}

/* Second card styles */
.card-bw {
  background: linear-gradient(135deg, #cee2ff 0%, #edf4fe 100%);
  color: #000000;
  padding: 2rem;
}

.bw-container {
  max-width: 100vw;
  max-height: 95vh;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e5e5;
}



.bw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #e5e5e5;
  background: #f8f8f8;
}

.bw-name {
  font-size: 0.85rem;
  font-weight: 400;
}

.bw-title {
  font-size: 0.85rem;
  color: #666;
}

.bw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media screen and (max-width: 768px) {
  .bw-grid {
    grid-template-columns: 1fr;
  }

  .img-container {
    display: none;
  }
}

.bw-left {
  border-right: 1px solid #e5e5e5;
}

.bw-section {
  padding: 1.5rem;
}

.bw-section-title {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid #000;
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bw-content {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #333;
}

.bw-content>a {
  padding-right: 20px;
  color: #2196f3;
}

.bw-content>a>svg {
  width: 16px;
  display: inline-block;
}

.bw-list {
  list-style: none;
}

.bw-list li {
  font-size: 0.85rem;
  color: #333;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
  position: relative;
  line-height: 1.4;
}

.bw-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #000;
}

.bw-image {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

/* Third card styles */
.card-skills {
  background: linear-gradient(135deg, #cee2ff 0%, #edf4fe 100%);
  color: #000000;
  padding: 2rem;
}

.skills-container {
  width: 100%;
  max-width: 900px;
  max-height: 100vh;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e5e5;
}

.skills-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #e5e5e5;
  background: #f8f8f8;
}

.skills-name {
  font-size: 0.85rem;
  font-weight: 400;
}

.skills-title {
  font-size: 0.85rem;
  color: #666;
}

.skills-content {
  padding: 2rem;
}

.technical-skills {
  color: #000080;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.dev-tools {
  margin-bottom: 2rem;
}

.dev-tools-title {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid #000;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.progress-container {
  margin-bottom: 1rem;
}

.skill-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin: 0 auto;
}

.stick-icon {
  display: flex;
  gap: 0.5rem;
}

.progress-label {
  display: inline-block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #000080;
  border-radius: 4px;
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.skills-section {
  text-align: center;
}

.skills-section-title {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid #000;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.vertical-bars {
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  justify-content: space-between;
}

.vertical-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vertical-bar {
  width: 8px;
  height: 150px;
  background: #f0f0f0;
  border-radius: 4px;
  position: relative;
  margin-bottom: 0.5rem;
}

.vertical-fill {
  width: 100%;
  background: #000080;
  border-radius: 4px;
  position: absolute;
  bottom: 0;
}

.vertical-label {
  font-size: 0.8rem;
  color: #333;
  text-wrap: wrap;
  text-align: center;
}

/* Fourth card styles - Projects */
.card-projects {
  background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
  color: white;
  padding: 2rem;
}

.projects-container {
  width: 100%;
  max-width: 1200px;
  max-height: 95vh;
  margin: 0 auto;
}

.projects-header {
  text-align: center;
  margin-bottom: 1rem;
}

.projects-title-main {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #64b5f6, #2196f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.project-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.5rem;
}

.project-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-details {
  color: white;
}

.project-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #90caf9;
}

.project-duration {
  font-size: 0.9rem;
  color: #90caf9;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(144, 202, 249, 0.1);
  border-radius: 20px;
}

.project-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  color: #90caf9;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  cursor: pointer;
}

@media screen and (max-width: 1024px) {
  .card-projects {
    padding: 0.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.5rem;
  }

  .project-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .project-duration {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .project-description {
    margin-bottom: 0.5rem;
  }
}

@media screen and (max-width: 768px) {
  .project-description {
    font-size: 0.9rem;
    line-height: 1em;
    height: 6em;
    overflow: hidden;
    white-space: normal; 
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    max-inline-size: 50ch;
    text-wrap: balance;
    width: 100%;
  }

  .project-description::before {
    content: '...';
    float: right;
    margin-top: 5em;
 }

  .tech-tag {
    display: none;
  }
}

.react {
  background-color: rgb(154, 75, 22);
}

.net {
  background-color: rgb(34, 34, 163);
}

.vuejs {
  background-color: rgb(13, 102, 20);
}

.angular {
  background-color: rgb(15, 41, 92);
}

.javascript {
  background-color: rgb(152, 131, 25);
}

@media screen and (min-width: 1024px) {
  .bw-container {
    max-width: 70vw;
  }
}