:root {
  --primary: #0A1828;  
  --secondary: #BFA181;  
  --accent: #178582;  
  --light: #F2F2F2; 
  --dark: #1E1E1E;       
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #F8F7F4 0%, #F0EEE8 50%, #F8F7F4 100%);
  color: var(--dark);
  overflow-x: hidden;
  font-family: 'Playfair Display', -apple-system, BlinkMacSystemFont, serif;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(191, 161, 129, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(23, 133, 130, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(10, 24, 40, 0.08) 0%, transparent 40%);
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.app {
  display: flex;
  min-height: 100vh;
}

.nav-wrapper {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 80px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  background: rgba(248, 247, 244, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(191, 161, 129, 0.3);
  box-shadow: 0 8px 32px rgba(30, 30, 30, 0.1);
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 30px;
}

.nav-wrapper:hover {
  width: 220px;
  height: auto;
  padding: 40px 20px;
  border-radius: 25px;
  transform: translateY(-50%) scale(1.05);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}

.initials {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 4px;
  color: var(--secondary);
  text-shadow: 0 0 10px rgba(191, 161, 129, 0.3);
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.nav-wrapper:hover .initials {
  font-size: 36px;
  margin-bottom: 30px;
}

.nav-item {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: rgba(248, 247, 244, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(191, 161, 129, 0.3);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transform: scale(0.9);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin: 0 auto;
}

.nav-wrapper:hover .nav-item {
  width: 100%;
  justify-content: flex-start;
  padding: 0 15px;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  z-index: -1;
  border-radius: 20px;
}

.nav-item i {
  width: 28px;
  height: 28px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  color: var(--dark);
}

.nav-item span {
  font-size: 16px;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: 0;
  position: absolute;
  left: 60px;
  color: var(--dark);
}

.nav-wrapper:hover .nav-item span {
  opacity: 1;
  transform: translateX(15px);
  position: static;
  margin-left: 15px;
}

.nav-item:hover {
  opacity: 1;
  transform: scale(1);
  background: rgba(191, 161, 129, 0.15);
  box-shadow: 0 0 20px rgba(191, 161, 129, 0.3);
}

.nav-item:hover i {
  transform: translateY(-5px);
  color: var(--secondary);
}

.nav-item.active {
  opacity: 1;
  transform: scale(1);
  background: rgba(191, 161, 129, 0.2);
  box-shadow: 0 0 30px rgba(191, 161, 129, 0.4);
}

.nav-item.active i {
  transform: scale(1.2);
  color: var(--secondary);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 4px;
  background: var(--secondary);
  border-radius: 0 4px 4px 0;
}

.nav-item:not(.active):hover {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

.main {
  flex: 1;
  margin-left: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  width: calc(100% - 100px);
  transition: margin-left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-wrapper:hover ~ .main {
  margin-left: 260px;
  width: calc(100% - 260px);
}


.section {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: scale(0.1);
  transform-origin: left center;
  transition: none;
}

.section.active {
  display: flex;
  animation: expandFromIcon 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes expandFromIcon {
  0% {
    opacity: 0;
    transform: scale(0.1) translateX(-50px);
  }
  70% {
    transform: scale(1.05) translateX(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

.expanding-circle {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 161, 129, 0.7) 0%, rgba(191, 161, 129, 0) 70%);
  transform: scale(0);
  animation: expandCircle 0.8s ease-out;
  z-index: 5;
  pointer-events: none;
}

@keyframes expandCircle {
  0% {
    transform: scale(0);
    opacity: 0.8;
  }
  100% {
    transform: scale(25);
    opacity: 0;
  }
}

.home-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 20px;
}

h1.main-title {
  font-size: 8rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-align: center;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  user-select: none;
  text-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 40px;
  position: relative;
  gap: 80px;
}

.col-left {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;
}

.description {
  font-family: 'Bebas Neue', cursive;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.7;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  max-width: 320px;
  z-index: 5;
  user-select: none;
  margin-top: -30px;
  color: var(--dark);
}

.emoji {
  font-size: 1.2rem;
  vertical-align: middle;
}

.col-center {
  flex: 0 0 auto;
  position: relative;
  z-index: 10;
  margin-top: -120px;
}

.avatar-img {
  width: 250px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
  border-radius: 20px;
}

.col-right {
  flex: 1;
}

.about-container {
  display: flex;
  width: 90%;
  max-width: 1250px;
  align-items: center;
  gap: 60px;
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.about-content {
  flex: 1;
  padding-right: 40px;
}

.about-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: left;
  width: 100%;
  color: var(--primary);
}

.about-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--secondary), transparent);
  margin: 30px 0;
  width: 100%;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 20px;
  opacity: 0.9;
  color: var(--dark);
  text-align: justify;
}

.about-image-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image {
  width: 320px;
  height: 400px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(191, 161, 129, 0.3);
}

.contact-container {
  width: 85%;
  max-width: 900px;
  padding: 30px 0;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
  color: var(--primary);
}

.contact-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 50px;
  line-height: 1.5;
  text-align: center;
  color: var(--dark);
}

.contact-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--secondary), transparent);
  margin: 30px 0;
}

.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.contact-email {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.email-label {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 10px;
  color: var(--dark);
}

.email-address {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.email-address:hover {
  transform: translateY(-3px);
  text-shadow: 0 0 10px rgba(191, 161, 129, 0.3);
}

.email-address i {
  width: 24px;
  height: 24px;
}

.contact-social {
  display: flex;
  gap: 20px;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-item:hover {
  transform: translateY(-5px);
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(248, 247, 244, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(191, 161, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon i {
  width: 28px;
  height: 28px;
  color: var(--dark);
}

.social-label {
  font-size: 0.9rem;
  opacity: 0.9;
  color: var(--dark);
}

.other-section {
  text-align: center;
  padding: 40px;
  background: rgba(248, 247, 244, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(191, 161, 129, 0.3);
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
}

.other-section h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.other-section p {
  color: var(--dark);
  font-size: 1.2rem;
}

.work-container {
  width: 90%;
  max-width: 1400px;
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.work-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: left;
  width: 100%;
  color: var(--primary);
}

.work-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--secondary), transparent);
  margin: 30px 0;
  width: 100%;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.work-item {
  background: rgba(248, 247, 244, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(191, 161, 129, 0.2);
  cursor: pointer;
  position: relative;
}

.work-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(191, 161, 129, 0.4);
}

.work-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-item:hover .work-image {
  transform: scale(1.05);
}

.work-content {
  padding: 25px;
}

.work-item-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.work-item-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
  opacity: 0.9;
}

.work-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(179, 183, 189, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-item:hover .work-item-overlay {
  opacity: 1;
}

.work-item-button {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.work-item:hover .work-item-button {
  opacity: 1;
  transform: translateY(0);
}

.work-item-button:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.05);
}

.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--light);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 20px 30px;
  background: var(--primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.8rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.modal-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--dark);
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.modal-feature {
  background: rgba(191, 161, 129, 0.1);
  padding: 15px;
  border-radius: 10px;
  border-left: 3px solid var(--secondary);
}

.modal-footer {
  padding: 20px 30px;
  background: rgba(248, 247, 244, 0.9);
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.modal-button {
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-button.primary {
  background: var(--secondary);
  color: var(--primary);
}

.modal-button.secondary {
  background: var(--primary);
  color: white;
}

.modal-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skills-container {
  width: 90%;
  max-width: 1200px;
  text-align: center;
  padding: 50px 0;
}

.skills-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skills-divider {
  height: 2px;
  width: 180px;
  margin: 22px auto 35px;
  background: linear-gradient(
    to right,
    transparent,
    var(--secondary),
    transparent
  );
}

.skills-subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 70px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
}

.skill-card {
  background: rgba(248, 247, 244, 0.85);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 36px 28px;
  border: 1px solid rgba(191, 161, 129, 0.3);
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: left;
  position: relative;
  overflow: hidden;

  opacity: 0;
  transform: translateY(40px);
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(191,161,129,0.25),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover {
  transform: translateY(-14px) scale(1.03);
  box-shadow: 0 22px 50px rgba(191,161,129,0.35);
}

.skill-card i {
  width: 36px;
  height: 36px;
  color: var(--secondary);
  margin-bottom: 22px;
}

.skill-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.skill-card p {
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.9;
  margin-bottom: 22px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(191,161,129,0.15);
  border: 1px solid rgba(191,161,129,0.3);
}