/* FONTS */
@font-face {
  font-family: 'Papernotes';
  src: url('./fonts/Papernotes.woff2') format('woff2'),
       url('./fonts/Papernotes.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* GLOBAL STYLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f5f7fa;
  color: #222;
  scroll-behavior: smooth;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  padding: 20px 60px;
  display: flex;
  justify-content: center;
  z-index: 100;
  border-bottom: 2px solid #2563eb;
}

nav a {
  margin: 0 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #2563eb;
  left: 0;
  bottom: -5px;
  transition: .3s;
}

nav a:hover::after {
  width: 100%;
}

/* SECTIONS */
section {
  padding: 120px 60px;
}

/* HERO SECTION */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: white;
}

.triangle {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  background: #2563eb;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 10% 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: 1s ease;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  font-family: 'Papernotes', cursive;
}

.hero p {
  font-size: 1.3rem;
  color: #555;
  font-family: 'Papernotes', cursive;
}

/* PHOTO */
.photo-wrapper {
  position: absolute;
  right: 14%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  transform: scale(0.6);
  transition: transform 0.6s ease;
  z-index: 2;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* WORK SECTION */
#work h2 {
  font-family: 'Papernotes', cursive;
  text-align: center;
  font-size: 3rem;
  margin-bottom: 90px;
  letter-spacing: 1px;
}

#work h3 {
  font-family: 'Papernotes', cursive;
  letter-spacing: 1px;
  transform: rotate(-1deg);
}

/* TIMELINE */
.timeline {
  max-width: 900px;
  margin: auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #2563eb;
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin: 40px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: .6s ease;
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 45%;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

/* JOB CARD */
.job-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.job-logo {
  width: 72px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.job-info {
  display: flex;
  flex-direction: column;
}

.job-date-top {
  display: block;
  font-size: 0.9rem;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 8px;
}

.company {
  font-family: 'Papernotes', cursive;
  font-size: 1.4rem;
  margin: 0;
}

.role {
  font-size: 0.95rem;
  color: #2563eb;
  font-weight: 600;
}

.job-description {
  margin-top: 12px;
  color: #444;
  line-height: 1.6;
}

/* CONTACT SECTION */
.contact {
  text-align: center;
  background: #111827;
  color: white;
  padding: 80px 20px;
}

.contact a {
  color: #60a5fa;
  text-decoration: none;
}

/* SKILLS LANDSCAPE SECTION */
.skills-landscape {
  position: relative;
  background: white;
  color: #0f172a;
  text-align: center;
  overflow: hidden;
}

.skills-landscape h2 {
  font-family: 'Papernotes', cursive;
  font-size: 2.6rem;
  margin-bottom: 60px;
}

.skills-landscape .triangle-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 45%;
  height: 100%;
  background: #2563eb;
  clip-path: polygon(0 0, 70% 0, 90% 100%, 0 100%);
  z-index: 1;
}

.skills-landscape h2,
.skills-landscape .landscape {
  position: relative;
  z-index: 2;
}

.landscape {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.skill-layer {
  display: flex;
  justify-content: center;
  gap: 30px;
  transition: opacity .4s ease;
}

.skill {
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(37,99,235,.4);
  color: #0f172a;
  cursor: pointer;
  font-size: .95rem;
  transition: 
    transform .35s ease,
    background .35s ease,
    box-shadow .35s ease,
    opacity .35s ease;
}

.skill:hover {
  transform: translateY(-10px) scale(1.1);
  background: #2563eb;
  color: white;
}

.landscape:hover .skill {
  opacity: .25;
}

.landscape:hover .skill:hover {
  opacity: 1;
}

/* EDUCATION ITEM */
.education-item .education-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(37,99,235,.15);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 16px;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
  .photo-wrapper {
    right: 8%;
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  header { padding: 15px 20px; }

  section { padding: 100px 30px; }

  .hero {
    flex-direction: column;
  }

  .triangle {
    width: 100%;
    height: 50%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
  }

  .photo-wrapper {
    position: relative;
    margin-top: 40px;
    width: 160px;
    height: 160px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding-left: 40px;
  }

  .timeline-content {
    width: 100%;
  }

  .skills-landscape .triangle-left {
    width: 100%;
    height: 45%;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
  }

  #work h2 {
    font-size: 2.2rem;
    margin-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .photo-wrapper {
    width: 140px;
    height: 140px;
  }
}

#work {
  position: relative; 
}

#work .corner-img.top-left {
  top: 0;
  left: 0;
}

#work .corner-img.bottom-right {
  bottom: 0;
  right: 0;
}

.corner-img {
  position: absolute;
  width: 128px;
  height: 128px;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}



@media (max-width: 1024px) {
  #work .corner-img {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 768px) {
  #work .corner-img {
    width: 72px;
    height: 72px;
  }
}


@media (max-width: 480px) {
  #work .corner-img {
    width: 48px;
    height: 48px;
  }

  #work .corner-img.top-left {
    top: 10px;
    left: 10px;
  }

  #work .corner-img.bottom-right {
    bottom: 10px;
    right: 10px;
  }
}